Class: Aws::Plugins::S3Accelerate

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/aws-sdk-core/plugins/s3_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

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, after_initialize_hooks, before_initialize, #before_initialize, before_initialize_hooks, handlers, option, options

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response, #handler_for, #new_handler

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/aws-sdk-core/plugins/s3_accelerate.rb', line 20

def add_handlers(handlers, config)
  operations = config.api.operation_names - [
    :create_bucket, :list_buckets, :delete_bucket,
  ]
  handlers.add(OptionHandler, step: :initialize, operations: operations)
  handlers.add(AccelerateHandler, step: :build, priority: 0, operations: operations)
end