Class: Aws::S3::Plugins::S3Signer::BucketRegionErrorHandler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::S3::Plugins::S3Signer::BucketRegionErrorHandler
- 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
- #call(context) ⇒ Object private
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.
77 78 79 80 |
# File 'lib/aws-sdk-s3/plugins/s3_signer.rb', line 77 def call(context) response = @handler.call(context) handle_region_errors(response) end |