Interface GlobalSecondaryIndexProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SchemaOptions,SecondaryIndexProps
- All Known Implementing Classes:
GlobalSecondaryIndexProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.265Z")
@Stability(Stable)
public interface GlobalSecondaryIndexProps
extends software.amazon.jsii.JsiiSerializable, SecondaryIndexProps, SchemaOptions
Properties for a global secondary index.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;
GlobalSecondaryIndexProps globalSecondaryIndexProps = GlobalSecondaryIndexProps.builder()
.indexName("indexName")
.partitionKey(Attribute.builder()
.name("name")
.type(AttributeType.BINARY)
.build())
// the properties below are optional
.nonKeyAttributes(List.of("nonKeyAttributes"))
.projectionType(ProjectionType.KEYS_ONLY)
.readCapacity(123)
.sortKey(Attribute.builder()
.name("name")
.type(AttributeType.BINARY)
.build())
.writeCapacity(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGlobalSecondaryIndexPropsstatic final classAn implementation forGlobalSecondaryIndexProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.dynamodb.SchemaOptions
getPartitionKey, getSortKeyMethods inherited from interface software.amazon.awscdk.services.dynamodb.SecondaryIndexProps
getIndexName, getNonKeyAttributes, getProjectionType
-
Method Details
-
getReadCapacity
The read capacity for the global secondary index.Can only be provided if table billingMode is Provisioned or undefined.
Default: 5
-
getWriteCapacity
The write capacity for the global secondary index.Can only be provided if table billingMode is Provisioned or undefined.
Default: 5
-
builder
- Returns:
- a
GlobalSecondaryIndexProps.BuilderofGlobalSecondaryIndexProps
-