DynamoDbEnhancedAsyncClient#createTable() fails to generate secondary indexes that are defined on annotations of the POJO class.
Expected Behavior
The sync version of the DynamoDB enhanced client does create secondary indexes as defined on the POJO class, and so should the async version.
As noted in the Java SDK Developer Guide, beginning with version 2.20.86, createTable() should automatically generate secondary indexes from data class annotations.
Describe the bug
DynamoDbEnhancedAsyncClient#createTable()
fails to generate secondary indexes that are defined on annotations of the POJO class.Expected Behavior
The sync version of the DynamoDB enhanced client does create secondary indexes as defined on the POJO class, and so should the async version.
As noted in the Java SDK Developer Guide, beginning with version 2.20.86,
createTable()
should automatically generate secondary indexes from data class annotations.Current Behavior
If i run this:
where the following class was used for schema generation:
Click to see the DynamoDbBean
``` package org.example.ddbec.model; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbPartitionKey; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbSecondaryPartitionKey; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbSecondarySortKey; import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbSortKey; import java.util.List; @DynamoDbBean public class MessageThread { private String forumName; private String subject; private String message; private String lastPostedBy; private String lastPostedDateTime; private Integer views; private Integer replies; private Integer answered; private Listno secondary index are generated:
Reproduction Steps
(See above)
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.26.6
JDK version used
17
Operating System and version
Mac - Sonoma 14.5