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?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With