Interface GlobalSecondaryIndexPropsV2
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SecondaryIndexProps
- All Known Implementing Classes:
GlobalSecondaryIndexPropsV2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:02.693Z")
@Stability(Stable)
public interface GlobalSecondaryIndexPropsV2
extends software.amazon.jsii.JsiiSerializable, SecondaryIndexProps
Properties used to configure a global secondary index.
Example:
TableV2 table = TableV2.Builder.create(this, "Table")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.globalSecondaryIndexes(List.of(GlobalSecondaryIndexPropsV2.builder()
.indexName("gsi1")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.build()))
.build();
table.addGlobalSecondaryIndex(GlobalSecondaryIndexPropsV2.builder()
.indexName("gsi2")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGlobalSecondaryIndexPropsV2static final classAn implementation forGlobalSecondaryIndexPropsV2 -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe maximum read request units.default NumberThe maximum write request units.Partition key attribute definition.default CapacityThe read capacity.default AttributeSort key attribute definition.default WarmThroughputThe warm throughput configuration for the global secondary index.default CapacityThe write capacity.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.dynamodb.SecondaryIndexProps
getIndexName, getNonKeyAttributes, getProjectionType
-
Method Details
-
getPartitionKey
Partition key attribute definition. -
getMaxReadRequestUnits
The maximum read request units.Note: This can only be configured if the primary table billing is PAY_PER_REQUEST.
Default: - inherited from the primary table.
-
getMaxWriteRequestUnits
The maximum write request units.Note: This can only be configured if the primary table billing is PAY_PER_REQUEST.
Default: - inherited from the primary table.
-
getReadCapacity
The read capacity.Note: This can only be configured if the primary table billing is provisioned.
Default: - inherited from the primary table.
-
getSortKey
Sort key attribute definition.Default: - no sort key
-
getWarmThroughput
The warm throughput configuration for the global secondary index.Default: - no warm throughput is configured
-
getWriteCapacity
The write capacity.Note: This can only be configured if the primary table billing is provisioned.
Default: - inherited from the primary table.
-
builder
-