- transactWrite(transactItems: (Omit<TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update"> & { ConditionCheck?: Omit<ConditionCheck, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> }; Delete?: Omit<Delete, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> }; Put?: Omit<Put, "Item" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Item: undefined | Record<string, any> }; Update?: Omit<Update, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> } })[], options?: Partial<TransactWriteCommandInput>): Promise<TransactWriteCommandOutput>
-
Parameters
-
transactItems: (Omit<TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update"> & { ConditionCheck?: Omit<ConditionCheck, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> }; Delete?: Omit<Delete, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> }; Put?: Omit<Put, "Item" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Item: undefined | Record<string, any> }; Update?: Omit<Update, "Key" | "ExpressionAttributeValues"> & { ExpressionAttributeValues?: Record<string, any>; Key: undefined | Record<string, any> } })[]
-
Optional
options: Partial<TransactWriteCommandInput>
Returns Promise<TransactWriteCommandOutput>
Synchronous write operation that groups up to 25 action requests by delegating to
TransactWriteCommand
.You can use the transactItem helper to create the request items.
Example
Returns
The same response returned by
send()
ing this command