question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong possible ReturnValues documented for DynamoDB.Table.put_item

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CodePintcommented, Mar 4, 2021

Still experiencing this issue, documentation does not match implementation and I get the same issue as @LaszloKatona

0reactions
tim-finnigancommented, Apr 21, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found