class Aws::S3::Plugins::Accelerate::OptionHandler
@api private
Public Instance Methods
call(context)
click to toggle source
# File lib/aws-sdk-s3/plugins/accelerate.rb, line 38 def call(context) # Support client configuration and per-operation configuration if context.params.is_a?(Hash) accelerate = context.params.delete(:use_accelerate_endpoint) end accelerate = context.config.use_accelerate_endpoint if accelerate.nil? # Raise if :endpoint and dualstack are both provided if accelerate && !context.config.regional_endpoint raise ArgumentError, 'Cannot use both :use_accelerate_endpoint and :endpoint' end context[:use_accelerate_endpoint] = accelerate @handler.call(context) end