Modifier and Type | Method and Description |
---|---|
CfnTable.Builder |
billingMode(CfnTable.BillingModeProperty billingMode)
The billing mode for the table, which determines how you'll be charged for reads and writes:.
|
CfnTable.Builder |
billingMode(IResolvable billingMode)
The billing mode for the table, which determines how you'll be charged for reads and writes:.
|
CfnTable |
build() |
CfnTable.Builder |
clusteringKeyColumns(IResolvable clusteringKeyColumns)
One or more columns that determine how the table data is sorted.
|
CfnTable.Builder |
clusteringKeyColumns(java.util.List<? extends java.lang.Object> clusteringKeyColumns)
One or more columns that determine how the table data is sorted.
|
static CfnTable.Builder |
create(Construct scope,
java.lang.String id) |
CfnTable.Builder |
defaultTimeToLive(java.lang.Number defaultTimeToLive)
The default Time To Live (TTL) value for all rows in a table in seconds.
|
CfnTable.Builder |
encryptionSpecification(CfnTable.EncryptionSpecificationProperty encryptionSpecification)
The encryption at rest options for the table.
|
CfnTable.Builder |
encryptionSpecification(IResolvable encryptionSpecification)
The encryption at rest options for the table.
|
CfnTable.Builder |
keyspaceName(java.lang.String keyspaceName)
The name of the keyspace in which to create the table.
|
CfnTable.Builder |
partitionKeyColumns(IResolvable partitionKeyColumns)
One or more columns that uniquely identify every row in the table.
|
CfnTable.Builder |
partitionKeyColumns(java.util.List<? extends java.lang.Object> partitionKeyColumns)
One or more columns that uniquely identify every row in the table.
|
CfnTable.Builder |
pointInTimeRecoveryEnabled(java.lang.Boolean pointInTimeRecoveryEnabled)
Specifies if point-in-time recovery is enabled or disabled for the table.
|
CfnTable.Builder |
pointInTimeRecoveryEnabled(IResolvable pointInTimeRecoveryEnabled)
Specifies if point-in-time recovery is enabled or disabled for the table.
|
CfnTable.Builder |
regularColumns(IResolvable regularColumns)
One or more columns that are not part of the primary key - that is, columns that are *not* defined as partition key columns or clustering key columns.
|
CfnTable.Builder |
regularColumns(java.util.List<? extends java.lang.Object> regularColumns)
One or more columns that are not part of the primary key - that is, columns that are *not* defined as partition key columns or clustering key columns.
|
CfnTable.Builder |
tableName(java.lang.String tableName)
The name of the table to be created.
|
CfnTable.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of key-value pair tags to be attached to the resource.
|
public static CfnTable.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnTable.BillingModeProperty.Builder
.public CfnTable.Builder keyspaceName(java.lang.String keyspaceName)
The keyspace must already exist.
keyspaceName
- The name of the keyspace in which to create the table. This parameter is required.this
public CfnTable.Builder partitionKeyColumns(IResolvable partitionKeyColumns)
Every table must have a partition key.
partitionKeyColumns
- One or more columns that uniquely identify every row in the table. This parameter is required.this
public CfnTable.Builder partitionKeyColumns(java.util.List<? extends java.lang.Object> partitionKeyColumns)
Every table must have a partition key.
partitionKeyColumns
- One or more columns that uniquely identify every row in the table. This parameter is required.this
public CfnTable.Builder billingMode(IResolvable billingMode)
If you don't specify a value for this property, then the table will use on-demand mode.
billingMode
- The billing mode for the table, which determines how you'll be charged for reads and writes:. This parameter is required.this
public CfnTable.Builder billingMode(CfnTable.BillingModeProperty billingMode)
If you don't specify a value for this property, then the table will use on-demand mode.
billingMode
- The billing mode for the table, which determines how you'll be charged for reads and writes:. This parameter is required.this
public CfnTable.Builder clusteringKeyColumns(IResolvable clusteringKeyColumns)
clusteringKeyColumns
- One or more columns that determine how the table data is sorted. This parameter is required.this
public CfnTable.Builder clusteringKeyColumns(java.util.List<? extends java.lang.Object> clusteringKeyColumns)
clusteringKeyColumns
- One or more columns that determine how the table data is sorted. This parameter is required.this
public CfnTable.Builder defaultTimeToLive(java.lang.Number defaultTimeToLive)
The maximum configurable value is 630,720,000 seconds, which is the equivalent of 20 years. By default, the TTL value for a table is 0, which means data does not expire.
For more information, see Setting the default TTL value for a table in the Amazon Keyspaces Developer Guide .
defaultTimeToLive
- The default Time To Live (TTL) value for all rows in a table in seconds. This parameter is required.this
public CfnTable.Builder encryptionSpecification(IResolvable encryptionSpecification)
If you choose encryption with a customer managed key, you must specify a valid customer managed KMS key with permissions granted to Amazon Keyspaces.
For more information, see Encryption at rest in Amazon Keyspaces in the Amazon Keyspaces Developer Guide .
encryptionSpecification
- The encryption at rest options for the table. This parameter is required.this
public CfnTable.Builder encryptionSpecification(CfnTable.EncryptionSpecificationProperty encryptionSpecification)
If you choose encryption with a customer managed key, you must specify a valid customer managed KMS key with permissions granted to Amazon Keyspaces.
For more information, see Encryption at rest in Amazon Keyspaces in the Amazon Keyspaces Developer Guide .
encryptionSpecification
- The encryption at rest options for the table. This parameter is required.this
public CfnTable.Builder pointInTimeRecoveryEnabled(java.lang.Boolean pointInTimeRecoveryEnabled)
The options are PointInTimeRecoveryEnabled=true
and PointInTimeRecoveryEnabled=false
. If not specified, the default is PointInTimeRecoveryEnabled=false
.
pointInTimeRecoveryEnabled
- Specifies if point-in-time recovery is enabled or disabled for the table. This parameter is required.this
public CfnTable.Builder pointInTimeRecoveryEnabled(IResolvable pointInTimeRecoveryEnabled)
The options are PointInTimeRecoveryEnabled=true
and PointInTimeRecoveryEnabled=false
. If not specified, the default is PointInTimeRecoveryEnabled=false
.
pointInTimeRecoveryEnabled
- Specifies if point-in-time recovery is enabled or disabled for the table. This parameter is required.this
public CfnTable.Builder regularColumns(IResolvable regularColumns)
You can add regular columns to existing tables by adding them to the template.
regularColumns
- One or more columns that are not part of the primary key - that is, columns that are *not* defined as partition key columns or clustering key columns. This parameter is required.this
public CfnTable.Builder regularColumns(java.util.List<? extends java.lang.Object> regularColumns)
You can add regular columns to existing tables by adding them to the template.
regularColumns
- One or more columns that are not part of the primary key - that is, columns that are *not* defined as partition key columns or clustering key columns. This parameter is required.this
public CfnTable.Builder tableName(java.lang.String tableName)
The table name is case sensitive. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the table name. For more information, see Name type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
Length constraints: Minimum length of 3. Maximum length of 255.
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_]{1,47}$
tableName
- The name of the table to be created. This parameter is required.this
public CfnTable.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- A list of key-value pair tags to be attached to the resource. This parameter is required.this
public CfnTable build()