You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Seahorse::Client::Plugin show all
Defined in:
gems/aws-sdk-s3/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: http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, #before_initialize, before_initialize, option

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



21
22
23
24
25
26
27
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/accelerate.rb', line 21

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