Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to dynamically change table name in DynamoDbEnhancedClient (Aws Sdk V2 for Java)

In Aws SDK V1 for java when creating DynamoDBMapperConfig you could set

withTableNameResolver(...)

and

withObjectTableNameResolver(...)

to dynamically change table name before save operation occurred even if a bean had @DynamoDBTable annotation.

Is it possible to do something like this with DynamoDbEnhancedClient in Aws Sdk v2 for java?

like image 515
Kivan Avatar asked Jan 20 '26 09:01

Kivan


1 Answers

If I understood you correctly, it can't be done as of now. You seem to be looking for this feature: https://github.com/aws/aws-sdk-java-v2/issues/2935

Looks like it's in development (or at least accepted as a feature request)

like image 115
Dmitry Kuznetsov Avatar answered Jan 22 '26 23:01

Dmitry Kuznetsov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!