Class: Aws::Plugins::ApiKey

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

Overview

Provide support for `api_key` parameter for `api-gateway` protocol specific `api-gateway` protocol gems' user-agent

Defined Under Namespace

Classes: ApiKeyHandler, 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, literal, 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



15
16
17
18
# File 'lib/aws-sdk-core/plugins/api_key.rb', line 15

def add_handlers(handlers, config)
  handlers.add(OptionHandler, step: :initialize)
  handlers.add(ApiKeyHandler, step: :build, priority: 0)
end