Wrong possible ReturnValues documented for DynamoDB.Table.put_item
See original GitHub issueIn the Request Syntax
of DynamoDB.Table.put_item the followings mentioned as possible ReturnValues: 'NONE'|'ALL_OLD'|'UPDATED_OLD'|'ALL_NEW'|'UPDATED_NEW'
http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Table.put_item
Below it is clarified by the following sentence:
PutItem does not recognize any values other than NONE or ALL_OLD .
But I still find the Request Syntax
misleading.
Anyway it seems logical that requesting any other kind of return values has no sense.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
PutItem - Amazon DynamoDB - AWS Documentation
Creates a new item, or replaces an old item with a new item. If an item that has the same primary key as...
Read more >python - DynamoDB insert (put) item - return the item created?
You need to set the property ReturnValues='ALL_NEW' on your put_item request to get the item back in the response. As documented here.
Read more >put-item — AWS CLI 2.9.6 Command Reference
If Exists is false , DynamoDB assumes that the attribute value does not exist in the table. If in fact the value does...
Read more >DynamoDB Python Boto3 Query Cheat Sheet [14 Examples]
Connecting Boto3 to DynamoDB; Create Table; Delete Table; List tables; Get All Items / Scan; Get Item; Batch Get Item; Put Item ......
Read more >dynamodb - Go Packages
DynamoDB automatically spreads the data and traffic for your tables over a ... (*ListTagsOfResourceOutput, error); func (c *Client) PutItem(ctx context.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still experiencing this issue, documentation does not match implementation and I get the same issue as @LaszloKatona
Thanks for bringing this back to our attention. I had another issue open here for the PutItem documentation: https://github.com/aws/aws-sdk/issues/200
I updated that issue and our internal ticket to add the info from this issue. I hope to share an update there soon from the DynamoDB documentation team.