Skip to content

Instantly share code, notes, and snippets.

@jdaarevalo
Created April 21, 2023 18:57
Show Gist options
  • Save jdaarevalo/3e7d0e21934c28ce19610d0a17cccd99 to your computer and use it in GitHub Desktop.
Save jdaarevalo/3e7d0e21934c28ce19610d0a17cccd99 to your computer and use it in GitHub Desktop.
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