@Stability(value=Stable) public static final class CfnTable.KeySchemaProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnTable.KeySchemaProperty>
CfnTable.KeySchemaProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnTable.KeySchemaProperty.Builder |
attributeName(String attributeName)
Sets the value of
CfnTable.KeySchemaProperty.getAttributeName() |
CfnTable.KeySchemaProperty |
build()
Builds the configured instance.
|
CfnTable.KeySchemaProperty.Builder |
keyType(String keyType)
Sets the value of
CfnTable.KeySchemaProperty.getKeyType() |
@Stability(value=Stable) public CfnTable.KeySchemaProperty.Builder attributeName(String attributeName)
CfnTable.KeySchemaProperty.getAttributeName()attributeName - The name of a key attribute. This parameter is required.this@Stability(value=Stable) public CfnTable.KeySchemaProperty.Builder keyType(String keyType)
CfnTable.KeySchemaProperty.getKeyType()keyType - The role that this key attribute will assume:. This parameter is required.
HASH - partition keyRANGE - sort key
The partition key of an item is also known as its hash attribute . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
this@Stability(value=Stable) public CfnTable.KeySchemaProperty build()
build in interface software.amazon.jsii.Builder<CfnTable.KeySchemaProperty>CfnTable.KeySchemaPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.