lib/aws/service.rb
def new(options = {})
        options = options.dup
        api_version = options.delete(:api_version) || default_api_version
        versioned_client_class(api_version).new(options)
      end
# Constructs and returns versioned API client.  Defaults to the 
# newest/latest API version.
#
#     Aws::DynamoDB.new
#     #=> #<Aws::DynamoDB::V20120810>
#
# ## Specify API Version
#
# You can specify the API version and get a different client.
#
#     Aws::DynamoDB.new(api_version: '2011-12-05')
#     #=> #<Aws::DynamoDB::V20111205>
#
# ## Locking API Versions
#
# You can lock the API version for a service via {Aws.config}:
#
#     Aws.config[:dynamodb] = { api_version: '2011-12-05' }
#     Aws::DynamoDB.new
#     #=> #<Aws::DynamoDB::V20111205>
#
# ## Global Version Lock
#
# It is possible to provide a single 'YYYY-MM-DD' date to lock the
# API version for every service.  This is useful to ensure that
# future API updates do not break existing usage.
#
# When using the single lock, the API version that was current
# at the given date will be used.
#
# For example, Aws::DynamoDB has two API versions, 2011-12-05 and
# 2012-10-01.  If the lock date is in between these two dates, the
# older will be used.
#
#     Aws.config[:api_version] = '2012-01-01'
#     Aws::DynamoDB.new
#     #=> #<Aws::DynamoDB::V20111205>
#
# @return [Seahorse::Client::Base] Returns a versioned client.
Constructs and returns versioned API client.  Defaults to the
newest/latest API version.



Specify API Version

You can specify the API version and get a different client.



Locking API Versions

You can lock the API version for a service via {Aws.config}.



Global Version Lock

It is possible to provide a single 'YYYY-MM-DD' date to lock the
API version for every service.  This is useful to ensure that
future API updates do not break existing usage.

When using the single lock, the API version that was current
at the given date will be used.




Constructs and returns versioned API client . Defaults to the newest / latest API version . Specify API Version You can specify the API version and get a different client . Locking API Versions You can lock the API version for a service via { Aws . config } . Global Version Lock It is possible to provide a single ' YYYY - MM - DD ' date to lock the API version for every service . This is useful to ensure that future API updates do not break existing usage . When using the single lock the API version that was current at the given date will be used .
def new(options = {})
        options = options.dup
        api_version = options.delete(:api_version) || default_api_version
        versioned_client_class(api_version).new(options)
      end
def new ( options = { } ) options = options . dup api_version = options . delete ( :api_version ) || default_api_version versioned_client_class ( api_version ) . new ( options ) end
Constructs and returns versioned API client.
Constructs and returns versioned API client .
Returns a versioned client.
Returns a versioned client .
Seahorse::Client::Base
options