-
Notifications
You must be signed in to change notification settings - Fork 974
Description
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