Class: Aws::S3::Plugins::Accelerate

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

Overview

Provides support for using `Aws::S3::Client` with Amazon S3 Transfer Acceleration.

Go here for more information about transfer acceleration: [docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html](http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html)

Defined Under Namespace

Classes: AccelerateHandler, OptionHandler

Instance Method Summary collapse

Instance Method Details

#add_handlers(handlers, config) ⇒ Object


22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/aws-sdk-s3/plugins/accelerate.rb', line 22

def add_handlers(handlers, config)
  operations = config.api.operation_names - [
    :create_bucket, :list_buckets, :delete_bucket
  ]
  # Need 2 handlers so that the context can be set for other plugins
  # and to remove :use_accelerate_endpoint from the params.
  handlers.add(
    OptionHandler, step: :initialize, operations: operations
  )
  handlers.add(
    AccelerateHandler, step: :build, priority: 11, operations: operations
  )
end