Interface GlobalSecondaryIndexPropsV2
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SecondaryIndexProps
- All Known Implementing Classes:
GlobalSecondaryIndexPropsV2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:06.488Z")
@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
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
-
getWriteCapacity
The write capacity.Note: This can only be configured if the primary table billing is provisioned.
Default: - inherited from the primary table.
-
builder
-