Interface LocalSecondaryIndexProps
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable,- SecondaryIndexProps
- All Known Implementing Classes:
- LocalSecondaryIndexProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-24T13:34:35.282Z")
@Stability(Stable)
public interface LocalSecondaryIndexProps
extends software.amazon.jsii.JsiiSerializable, SecondaryIndexProps
Properties for a local secondary index.
 
Example:
 TableV2 table = TableV2.Builder.create(this, "Table")
         .partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
         .sortKey(Attribute.builder().name("sk").type(AttributeType.NUMBER).build())
         .localSecondaryIndexes(List.of(LocalSecondaryIndexProps.builder()
                 .indexName("lsi1")
                 .sortKey(Attribute.builder().name("sk").type(AttributeType.NUMBER).build())
                 .build()))
         .build();
 table.addLocalSecondaryIndex(LocalSecondaryIndexProps.builder()
         .indexName("lsi2")
         .sortKey(Attribute.builder().name("sk").type(AttributeType.NUMBER).build())
         .build());
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLocalSecondaryIndexPropsstatic final classAn implementation forLocalSecondaryIndexProps
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()The attribute of a sort key for the local secondary index.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.dynamodb.SecondaryIndexPropsgetIndexName, getNonKeyAttributes, getProjectionType
- 
Method Details- 
getSortKeyThe attribute of a sort key for the local secondary index.
- 
builder- Returns:
- a LocalSecondaryIndexProps.BuilderofLocalSecondaryIndexProps
 
 
-