79396459

Date: 2025-01-29 10:46:55
Score: 2.5
Natty:
Report link

Just use the updateItem operation to upsert. From the AWS docs: The most common usage for UpdateItem is to update an existing item. However, UpdateItem actually performs an upsert, meaning that it automatically creates the item if it doesn't already exist.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: fetree