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

Class: Aws::Plugins::SQSMd5s

Inherits:
Seahorse::Client::Plugin show all
Defined in:
aws-sdk-core/lib/aws-sdk-core/plugins/sqs_md5s.rb

Constant Summary

OPERATIONS_TO_VERIFY =
[:send_message, :send_message_batch]

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



151
152
153
154
155
156
157
158
159
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/sqs_md5s.rb', line 151

def add_handlers(handlers, config)
  if config.verify_checksums
    handlers.add(Handler, {
      priority: 10 ,
      step: :validate,
      operations: SQSMd5s::OPERATIONS_TO_VERIFY
    })
  end
end