class Aws::Client

Base class for all {Aws} service clients.

Constants

DEFAULT_PLUGINS

@api private

PROTOCOL_PLUGINS

@api private

Attributes

identifier[RW]

@return [Symbol] @api private

Public Class Methods

define(svc_name, options) click to toggle source

@api private

# File lib/aws-sdk-core/client.rb, line 39
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])

  protocol = client_class.api.metadata['protocol']
  PROTOCOL_PLUGINS[protocol].each do |plugin|
    client_class.add_plugin(plugin)
  end

  Api::Customizations.apply_plugins(client_class)

  client_class
end