Method: Aws::DynamoDB::Client#batch_execute_statement
- Defined in:
- lib/aws-sdk-dynamodb/client.rb
#batch_execute_statement(params = {}) ⇒ Types::BatchExecuteStatementOutput
This operation allows you to perform batch reads or writes on data stored in DynamoDB, using PartiQL. Each read statement in a ‘BatchExecuteStatement` must specify an equality condition on all key attributes. This enforces that each `SELECT` statement in a batch returns at most a single item. For more information, see [Running batch operations with PartiQL for DynamoDB ][1].
<note markdown=“1”> The entire batch must consist of either read statements or write statements, you cannot mix both in one batch.
</note>
A HTTP 200 response does not mean that all statements in the BatchExecuteStatement succeeded. Error details for individual statements can be found under the [Error] field of the ‘BatchStatementResponse` for each statement.
[1]: docs.aws.amazon.com/amazondynamodb/latest/developerguide/ql-reference.multiplestatements.batching.html [2]: docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchStatementResponse.html#DDB-Type-BatchStatementResponse-Error
609 610 611 612 |
# File 'lib/aws-sdk-dynamodb/client.rb', line 609 def batch_execute_statement(params = {}, = {}) req = build_request(:batch_execute_statement, params) req.send_request() end |