Skip to content

DynamoDbEnhancedClient allow to request to return capacity on all data plane operations #4123

Open
@arjanschaaf

Description

@arjanschaaf

Describe the feature

#2095 added ReturnConsumedCapacity for putItem, updateItem and deleteItem operations, but other Data plane operations should allow you to request to return consumed capacity as offered by the DynamoDB API on their (paged) return.

This should include the following Data plane operations:

  • DynamoDbEnhancedClient.batchGetItem
  • DynamoDbEnhancedClient.batchWriteItem
  • DynamoDbEnhancedClient.transactGetItems
  • DynamoDbEnhancedClient.transactWriteItems
  • DynamoDbTable.getitem
  • DynamoDbTable.query
  • DynamoDbTable.scan

Use Case

Common scenario is to request to the DynamoDB API to return the consumed capacity to log or debug the read or write capacity used by the data plane operation.

Proposed Solution

Continue by adding functionality introduced in #2095 by either adding *WithResponse methods to these classes or extend the existing response objects to include the consumed capacity.

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.20.88

JDK version used

OpenJDK Runtime Environment Corretto-20.0.1.9.1 (build 20.0.1+9-FR)

Operating System and version

macOS Ventura 13.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    dynamodb-enhancedfeature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions