Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateItemEnhancedRequest does not allow specification of the ReturnItems member of the updateItem API call #4247

Closed
1 of 2 tasks
rawlinsc opened this issue Aug 1, 2023 · 3 comments
Assignees
Labels
dynamodb-enhanced feature-request A feature should be added or improved.

Comments

@rawlinsc
Copy link

rawlinsc commented Aug 1, 2023

Describe the feature

The UpdateItem API call defines the ReturnItems member of the Request structure that allows callers to specify NONE | ALL_OLD | UPDATED_OLD | ALL_NEW | UPDATED_NEW for the values returned by the updateItem API call.

Use Case

I have a use case where I need to modify another table based on the changes between one column of a table when a row gets updated and would like to use the old values that were consistent prior to the update request, e.g. the ALL_OLD or UPDATED_OLD.

Proposed Solution

Add a member to the UpdateItemEnhancedRequest.Builder named returnItems, that accepts values from the com.amazonaws.services.dynamodbv2.model.ReturnValue enum, and defaults to the current behaviour ALL_NEW, and pass it to the request instead of the constant ALL_NEW.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Java SDK version used

2

JDK version used

17

Operating System and version

AL2012

@rawlinsc rawlinsc added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 1, 2023
@debora-ito
Copy link
Member

I see. ReturnValues is supported in PutItemEnhancedRequest but not in UpdateItemEnhancedRequest. Feature request acknowledged.

Community note: please show your support by adding a 👍 to the original description above to help us prioritize this request.

@debora-ito
Copy link
Member

This is now supported in SDK version 2.26.10.

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dynamodb-enhanced feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants