Class: Aws::S3::Plugins::S3Signer::BucketRegionErrorHandler Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

This handler detects when a request fails because of a mismatched bucket region. It follows up by making a request to determine the correct region, then finally a version 4 signed request against the correct regional endpoint. This is intended for s3’s global endpoint which will return 400 if the bucket is not in region.

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



70
71
72
73
# File 'lib/aws-sdk-s3/plugins/s3_signer.rb', line 70

def call(context)
  response = @handler.call(context)
  handle_region_errors(response)
end