Skip to content

Add DynamoDbClient dynamoDbClient() to DynamoDbEnhancedClient interface #6654

@cborison

Description

@cborison

Describe the feature

Simply add the method DynamoDbClient dynamoDbClient() to DynamoDbEnhancedClient interface. It already exists on the DefaultDynamoDbEnhancedClient implementation.

Use Case

It is sometimes necessary to dive down into the raw client to perform queries that might not be supported at the enhanced client level (e.g. COUNT queries).

To avoid needing to pass around the DynamoDbClient directly (and avoid ugly casts like var client = ((DefaultDynamoDbEnhancedClient) enhancedClient).dynamoDbClient()) it would be helpful if the enhanced client interface provided the ability to retrieve the raw client (interface) used to build it.

The DynamoDbEnhancedClient.Builder already takes in the DynamoDbClient interface type -- is it possible we could also return that same object from the enhanced client interface?

Proposed Solution

No response

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

JDK version used

25

Operating System and version

macOS 15.7.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions