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

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

Defined Under Namespace

Classes: Handler

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.legacy_host(host) ⇒ Object


44
45
46
# File 'lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb', line 44

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

Instance Method Details

#add_handlers(handlers, config) ⇒ Object


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

def add_handlers(handlers, config)
  # only modify non-custom endpoints
  if config.regional_endpoint && config.region == 'us-east-1'
    handlers.add(Handler)
  end
end