@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.066Z") @Stability(value=Stable) public interface GlobalSecondaryIndexProps extends software.amazon.jsii.JsiiSerializable, SecondaryIndexProps, SchemaOptions
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
GlobalSecondaryIndexProps.Builder
A builder for
GlobalSecondaryIndexProps |
static class |
GlobalSecondaryIndexProps.Jsii$Proxy
An implementation for
GlobalSecondaryIndexProps |
| Modifier and Type | Method and Description |
|---|---|
static GlobalSecondaryIndexProps.Builder |
builder() |
default Number |
getReadCapacity()
The read capacity for the global secondary index.
|
default Number |
getWriteCapacity()
The write capacity for the global secondary index.
|
getIndexName, getNonKeyAttributes, getProjectionTypegetPartitionKey, getSortKey@Stability(value=Stable) @Nullable default Number getReadCapacity()
Can only be provided if table billingMode is Provisioned or undefined.
Default: 5
@Stability(value=Stable) @Nullable default Number getWriteCapacity()
Can only be provided if table billingMode is Provisioned or undefined.
Default: 5
@Stability(value=Stable) static GlobalSecondaryIndexProps.Builder builder()
builder in interface SchemaOptionsbuilder in interface SecondaryIndexPropsGlobalSecondaryIndexProps.Builder of GlobalSecondaryIndexPropsCopyright © 2022. All rights reserved.