Interface GlobalSecondaryIndexPropsV2
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,SecondaryIndexProps
- All Known Implementing Classes:
GlobalSecondaryIndexPropsV2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:01.129Z")
@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 class
A builder forGlobalSecondaryIndexPropsV2
static final class
An implementation forGlobalSecondaryIndexPropsV2
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
The maximum read request units.default Number
The maximum write request units.Partition key attribute definition.default Capacity
The read capacity.default Attribute
Sort key attribute definition.default WarmThroughput
The warm throughput configuration for the global secondary index.default Capacity
The write capacity.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods 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
-