Class: Aws::S3::Plugins::LocationConstraint::Handler

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

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object



14
15
16
17
18
19
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/location_constraint.rb', line 14

def call(context)
  unless context.config.region == 'us-east-1'
    populate_location_constraint(context.params, context.config.region)
  end
  @handler.call(context)
end