Class | AWS::DynamoDB::Client |
In: |
lib/aws/dynamo_db/client.rb
|
Parent: | Core::JSONClient |
Builds a client for Amazon DynamoDB.
ddb = AWS::DynamoDB::Client.new
## API Versions
Amazon DynamoDB has multiple API versions. It is important to know which API you are using. Each API version accepts different parameters and returns data in a different format.
By default, the oldest API version is used. This ensures customers who started using DynamoDB early would not get broken by API updates. You can construct a client of a specific version by passing the `:api_version` option to the {initialize constructor}.
# defaults to the 2011-12-05 API version ddb = AWS::DynamoDB::Client.new # specify the API version ddb = AWS::DynamoDB::Client.new(:api_version => '2011-12-05') ddb = AWS::DynamoDB::Client.new(:api_version => '2012-08-10')
You can specify a global default API version using AWS.config:
AWS.config(:dynamo_db => { :api_version => '2012-08-10' }) AWS::DynamoDB::Client.new #=> AWS::DynamoDB::Client::V20120810
API_VERSION | = | '2011-12-05' | ||
REGION_US_E1 | = | 'dynamodb.us-east-1.amazonaws.com' | @private | |
CACHEABLE_REQUESTS | = | Set[:list_tables, :describe_table] | @private |