BatchExecuteStatement
Source:
src/AWS/DynamoDB/BatchExecuteStatement.ts
Runtime binding for DynamoDB PartiQL BatchExecuteStatement.
The request is passed through unchanged, but IAM is scoped to the explicitly bound tables and their indexes.
PartiQL
Section titled “PartiQL”const batchExecuteStatement = yield* BatchExecuteStatement.bind( sourceTable, archiveTable,);
const response = yield* batchExecuteStatement({ Statements: [ { Statement: `SELECT * FROM "${yield* sourceTable.tableName}" WHERE pk=?`, Parameters: [{ S: "user#1" }], }, ],});