class Aws::S3::Plugins::IADRegionalEndpoint::Handler
@api private
Public Instance Methods
call(context)
click to toggle source
# File lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb, line 29 def call(context) # WriteGetObjectResponse does not have a global endpoint # ARNs are regionalized, so don't touch those either. if context.operation.name != 'WriteGetObjectResponse' && context.config.s3_us_east_1_regional_endpoint == 'legacy' && !context.metadata[:s3_arn] host = context.http_request.endpoint.host legacy_host = IADRegionalEndpoint.legacy_host(host) context.http_request.endpoint.host = legacy_host end @handler.call(context) end