class Aws::Plugins::S3ControlDualstack::DualstackHandler

def apply_dualstack_endpoint(context)

def apply_dualstack_endpoint(context)
  bucket_name = context.params[:bucket]
  region = context.config.region
  dns_suffix = EndpointProvider.dns_suffix_for(region)
  host = "s3-control.dualstack.#{region}.#{dns_suffix}"
  endpoint = URI.parse(context.http_request.endpoint.to_s)
  endpoint.scheme = context.http_request.endpoint.scheme
  endpoint.port = context.http_request.endpoint.port
  endpoint.host = host
  context.http_request.endpoint = endpoint.to_s
end