Skip to content

TransactWriteItems

Source: src/AWS/DynamoDB/TransactWriteItems.ts

Runtime binding for dynamodb:TransactWriteItems.

Bind this operation to one or more tables and identify each item’s target table by the bound table’s LogicalId.

const transactWriteItems = yield* TransactWriteItems.bind(
sourceTable,
archiveTable,
);
yield* transactWriteItems({
TransactItems: [
{
Put: {
Table: sourceTable.LogicalId,
Item: { pk: { S: "user#1" }, sk: { S: "profile" } },
},
},
],
});