You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Module: Aws::DynamoDB
- Defined in:
- aws-sdk-core/lib/aws-sdk-core/dynamodb.rb,
aws-sdk-core/lib/aws-sdk-core/dynamodb/attribute_value.rb
Overview
This module provides a client for making API requests to Amazon DynamoDB.
Aws::DynamoDB::Client
The Client class provides one-to-one mapping for each API operation.
dynamodb = Aws::DynamoDB::Client.new(region: 'us-east-1')
dynamodb.operation_names
#=> [:batch_get_item, :batch_write_item, :create_backup, :create_global_table, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = dynamodb.batch_get_item(params)
See Client for more information.
Aws::DynamoDB::Errors
Errors returned from Amazon DynamoDB are defined in the Errors module and extend Errors::ServiceError.
begin
# do stuff
rescue Aws::DynamoDB::Errors::ServiceError
# rescues all errors returned by Amazon DynamoDB
end
See Errors for more information.