O'Reilly logo

Mastering AWS Development by Uchit Vyas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Operations in DynamoDB

Most DynamoDB REST API supports all the possible operations. The possible operations are as follows:

  • CreateTable
  • PutItem
  • UpdateItem
  • GetItem
  • Query
  • Scan
  • DeleteItem
  • DescribeTable
  • UpdateTable
  • DeleteTable
  • ListTables
  • BatchGetItem
  • BatchWriteItem

For all of these operations, only two things will change: the request body and x-amz-target that specifies what kind of table operation has to be performed. This attribute is same as that of the name of the operation (as shown in preceding bullet list). For example, for performing the DescribeTable operation, x-amz-target is DynamoDB_20120810.DescribeTable itself).

CreateTable

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

{ "AttributeDefinitions": [ { "AttributeName": "BookTitle", ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required