1 Answer
- Newest
- Most votes
- Most comments
1
Yes, the behavior you're seeing is expected when using put_item
in DynamoDB. The put_item
operation in DynamoDB creates a new item or replaces an existing item with the same primary key. This means that any attributes that are not included in the put_item
request will be deleted. [1] Source
💡 If you want to update specific attributes of an existing item without affecting the other attributes, you should use the
update_item
operation instead. [2] source
Relevant content
- Accepted Answerasked 7 months ago
- asked 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago