Interface GlobalSecondaryIndexPropsV2
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,SecondaryIndexProps
- All Known Implementing Classes:
GlobalSecondaryIndexPropsV2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)",
date="2023-12-06T04:49:37.147Z")
@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
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. -
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
-