Class: Aws::S3::Plugins::Accelerate::OptionHandler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/aws-sdk-s3/plugins/accelerate.rb

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.

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.



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/aws-sdk-s3/plugins/accelerate.rb', line 33

def call(context)
  # Support client configuration and per-operation configuration
  # TODO: move this to an options hash and warn here.
  if context.params.is_a?(Hash)
    accelerate = context.params.delete(:use_accelerate_endpoint)
  end
  if accelerate.nil?
    accelerate = context.config.use_accelerate_endpoint
  end
  context[:use_accelerate_endpoint] = accelerate
  @handler.call(context)
end