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

How config dynamodb enhanced client return consumed capacity? #2095

Closed
user20161119 opened this issue Oct 16, 2020 · 3 comments
Closed

How config dynamodb enhanced client return consumed capacity? #2095

user20161119 opened this issue Oct 16, 2020 · 3 comments
Labels
dynamodb-enhanced feature-request A feature should be added or improved.

Comments

@user20161119
Copy link

user20161119 commented Oct 16, 2020

How to config dynamodb enhanced client return consumed capacity? including table-based config and global config?

this request param ReturnConsumedCapacity in the api description.
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html#API_PutItem_RequestSyntax

@user20161119 user20161119 added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Oct 16, 2020
@zoewangg zoewangg added feature-request A feature should be added or improved. and removed guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Oct 29, 2020
@zoewangg
Copy link
Contributor

Hi @user20161119 this is not currently supported in the DDB Enhanced client. Marking it as a feature request.

As a workaround, you can create an ExecutionInterceptor that records the PutItemResponse and then configure it on the DynamoDbClient Builder via ClientOverrideConfiguration#addExecutionInterceptor

@debora-ito
Copy link
Member

@user20161119 Consumed Capacity is now returned in new methods putItemWithResponse and updateItemWithResponse.

See the DynamoDbTable javadoc for more info: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/enhanced/dynamodb/DynamoDbTable.html

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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

3 participants