You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Plugins::S3IADRegionalEndpoint

Inherits:
Seahorse::Client::Plugin show all
Defined in:
aws-sdk-core/lib/aws-sdk-core/plugins/s3_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



36
37
38
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/s3_iad_regional_endpoint.rb', line 36

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

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



16
17
18
19
20
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/s3_iad_regional_endpoint.rb', line 16

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