BatchWriteItem
Source:
src/AWS/DynamoDB/BatchWriteItem.ts
Runtime binding for dynamodb:BatchWriteItem.
Bind this operation to one or more tables and key the request by each bound
table’s LogicalId.
Writing Data
Section titled “Writing Data”const batchWriteItem = yield* BatchWriteItem.bind(sourceTable, archiveTable);
const response = yield* batchWriteItem({ RequestItems: { [sourceTable.LogicalId]: [ { PutRequest: { Item: { pk: { S: "user#1" }, sk: { S: "profile" }, }, }, }, ], },});