Class: Aws::Plugins::SQSMd5s

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

Defined Under Namespace

Classes: Handler

Constant Summary collapse

OPERATIONS_TO_VERIFY =
[:send_message, :send_message_batch]

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



151
152
153
154
155
156
157
158
159
# File '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