class Aws::Plugins::S3LocationConstraint::Handler

Public Instance Methods

call(context) click to toggle source
# File lib/aws-sdk-core/plugins/s3_location_constraint.rb, line 11
def call(context)
  unless context.config.region == 'us-east-1'
    populate_location_constraint(context.params, context.config.region)
  end
  @handler.call(context)
end

Private Instance Methods

populate_location_constraint(params, region) click to toggle source
# File lib/aws-sdk-core/plugins/s3_location_constraint.rb, line 20
def populate_location_constraint(params, region)
  params[:create_bucket_configuration] ||= {}
  params[:create_bucket_configuration][:location_constraint] ||= region
end