Amazon DynamoDB · Arazzo Workflow
Amazon DynamoDB Conditional Update of an Existing Item
Version 1.0.0
Read an item, then update it only when it already exists.
Provider
Workflows
conditional-update-item
Update an item only when a prior read confirms it exists.
Reads an item by primary key and branches: when the item is present it runs UpdateItem, otherwise it ends without modifying anything.
1
readItem
getItem
Read the target item by its primary key to confirm it exists.
2
updateItem
updateItem
Apply the update expression to the item that the prior read confirmed exists, returning the new attribute values.