Annotation Type DynamoDbSecondaryPartitionKey
@SdkPublicApi
@Target(METHOD)
@Retention(RUNTIME)
@Repeatable(DynamoDbSecondaryPartitionKeys.class)
public @interface DynamoDbSecondaryPartitionKey
Denotes a partition key for a global secondary index.
You must also specify at least one index name.
The index name will be used if a table is created from this bean. For data-oriented operations like reads and writes, this name does not need to match the service-side name of the index.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionString[]The names of one or more global secondary indices that this partition key should participate in. -
Optional Element Summary
Optional Elements
-
Element Details
-
indexNames
String[] indexNamesThe names of one or more global secondary indices that this partition key should participate in.
-
-
-
order
Order orderThe order of this partition key attribute in composite keys (0-3). Required when multiple partition keys are defined.- Default:
- UNSPECIFIED
-