Created
April 21, 2023 18:57
-
-
Save jdaarevalo/3e7d0e21934c28ce19610d0a17cccd99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table.update_item( | |
Key={ | |
'scatter_gather_id': scatter_gather_id | |
}, | |
UpdateExpression='SET finished_processes = finished_processes + :val, #updated_at = :updated_at', | |
ExpressionAttributeValues={ | |
':val': value_to_sum, | |
':updated_at': datetime_now | |
}, | |
ExpressionAttributeNames={ | |
'#updated_at': 'updated_at' | |
}, | |
ReturnValues='ALL_NEW' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment