Class: Aws::S3::Plugins::IADRegionalEndpoint

Inherits:
Seahorse::Client::Plugin show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, #before_initialize, before_initialize, option

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Class Method Details

.legacy_host(host) ⇒ Object



39
40
41
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb', line 39

def self.legacy_host(host)
  host.sub(".us-east-1", '')
end

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



19
20
21
22
23
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb', line 19

def add_handlers(handlers, config)
  if config.region == 'us-east-1'
    handlers.add(Handler)
  end
end