Class: Aws::S3::Plugins::ARN::UrlHandler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
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.

After extracting out any ARN input, resolve a new URL with it.

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.


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/aws-sdk-s3/plugins/arn.rb', line 49

def call(context)
  if context.[:s3_arn]
    ARN.resolve_url!(
      context.http_request.endpoint,
      context.[:s3_arn][:arn],
      context.[:s3_arn][:resolved_region],
      context.[:s3_arn][:fips],
      context.[:s3_arn][:dualstack],
      # if regional_endpoint is false, a custom endpoint was provided
      # in this case, we want to prefix the endpoint using the ARN
      !context.config.regional_endpoint
    )
  end
  @handler.call(context)
end