Reader small image

You're reading from  DynamoDB Applied Design Patterns

Product typeBook
Published inSep 2014
Publisher
ISBN-139781783551897
Edition1st Edition
Right arrow

Operations in DynamoDB


The DynamoDB REST API supports almost all the possible operations that are supported by the SDK and the management console. The possible operations are:

  • CreateTable

  • PutItem

  • UpdateItem

  • GetItem

  • Query

  • Scan

  • DeleteItem

  • DescribeTable

  • UpdateTable

  • DeleteTable

  • ListTables

  • BatchGetItem

  • BatchWriteItem

For all of these operations, only two things will change. The first is the request body and the second is x-amz-target, which specifies what kind of table operation has to be performed. This attribute is the same as that of the name of the operation as shown in the previous bullet list. For example, to perform the DescribeTable operation, x-amz-target is DynamoDB_20120810.DescribeTable itself, so we will not be explaining it in the following text.

CreateTable

To perform the CreateTable operation, the request JSON will look as follows:

{
  "AttributeDefinitions": [
    { "AttributeName": "BookTitle", "AttributeType": "S" },
    { "AttributeName": "Author", "AttributeType...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
DynamoDB Applied Design Patterns
Published in: Sep 2014Publisher: ISBN-13: 9781783551897