Class: Aws::S3::Plugins::ARN::ARNHandler Private
- Inherits:
-
Seahorse::Client::Handler
- Object
- Seahorse::Client::Handler
- Aws::S3::Plugins::ARN::ARNHandler
- Defined in:
- lib/aws-sdk-s3/plugins/arn.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 plugin will extract out any ARN input and set context for other plugins to use without having to translate the ARN again.
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.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/aws-sdk-s3/plugins/arn.rb', line 54 def call(context) bucket_member = _bucket_member(context.operation.input.shape) if bucket_member && (bucket = context.params[bucket_member]) resolved_region, arn = ARN.resolve_arn!( bucket, context.config.region, context.config.s3_use_arn_region ) if arn validate_config!(context, arn) context.[:s3_arn] = { arn: arn, resolved_region: resolved_region, dualstack: extract_dualstack_config!(context) } end end @handler.call(context) end |