Class: Aws::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs, ClientWaiters
Defined in:
lib/aws-sdk-core/client.rb

Overview

Base class for all Aws service clients.

Constant Summary collapse

DEFAULT_PLUGINS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[
  'Seahorse::Client::Plugins::Logging',
  'Seahorse::Client::Plugins::ContentLength',
  'Aws::Plugins::ParamConverter',
  'Aws::Plugins::ParamValidator',
  'Aws::Plugins::UserAgent',
  'Aws::Plugins::RetryErrors',
  'Aws::Plugins::GlobalConfiguration',
  'Aws::Plugins::RegionalEndpoint',
  'Aws::Plugins::RequestSigner',
  'Aws::Plugins::ResponsePaging',
  'Aws::Plugins::StubResponses',
]

Class Attribute Summary collapse

Attributes inherited from Seahorse::Client::Base

#config, #handlers

Class Method Summary collapse

Methods included from ClientWaiters

included, #wait_until, #waiter_names

Methods included from ClientStubs

#initialize, #next_stub, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, #build_request, clear_plugins, #initialize, #inspect, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

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

Class Attribute Details

.identifierSymbol

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Symbol)


27
28
29
# File 'lib/aws-sdk-core/client.rb', line 27

def identifier
  @identifier
end

Class Method Details

.define(svc_name, options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/aws-sdk-core/client.rb', line 30

def define(svc_name, options)
  client_class = Class.new(self)
  client_class.identifier = svc_name.downcase.to_sym
  client_class.set_api(Api::Builder.build(options[:api], options))
  client_class.set_waiters(options[:waiters])
  DEFAULT_PLUGINS.each do |plugin|
    client_class.add_plugin(plugin)
  end
  Api::Customizations.apply_plugins(client_class)
  client_class
end