I am migration to AWS java sdk to version 2 to improve cold starts for infrequently used lambdas.
In version 1.x i used @DynamoDBTypeConvertedEnum to annotate enums and @DynamoDBDocument to store nested objects. how could i achieve the same, i don't want to change data stored in tables.
https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/client-configuration-starttime.html
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>dynamodb</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>dynamodb-enhanced</artifactId>
</dependency>
The enum can be converted with the following annotation.