BatchExecuteStatement - Amazon DynamoDB


This operation allows you to perform batch reads or writes on data stored in DynamoDB, using PartiQL.


The entire batch must consist of either read statements or write statements, you cannot mix both in one batch.

Request Syntax

{ "Statements": [ { "ConsistentRead": boolean, "Parameters": [ { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } ], "Statement": "string" } ] }

Request Parameters

The request accepts the following data in JSON format.


In the following list, the required parameters are described first.


The list of PartiQL statements representing the batch to run.

Type: Array of BatchStatementRequest objects

Array Members: Minimum number of 1 item. Maximum number of 25 items.

Required: Yes

Response Syntax

{ "Responses": [ { "Error": { "Code": "string", "Message": "string" }, "Item": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "TableName": "string" } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


The response to each PartiQL statement in the batch.

Type: Array of BatchStatementResponse objects


For information about the errors that are common to all actions, see Common Errors.


An error occurred on the server side.

HTTP Status Code: 500


Throughput exceeds the current throughput quota for your account. Please contact AWS Support to request a quota increase.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: