Class: Aws::S3::Plugins::S3Signer::BucketRegionErrorHandler Private
- Defined in:
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
- #call(context) ⇒ Object private
Instance Method Details
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.
72 73 74 75
# File 'lib/aws-sdk-s3/plugins/s3_signer.rb', line 72 def call(context) response = @handler.call(context) handle_region_errors(response) end