Class CfnKeyspace.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyspace>
- Enclosing class:
CfnKeyspace
CfnKeyspace
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientSideTimestampsEnabled
(Boolean clientSideTimestampsEnabled) Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace.clientSideTimestampsEnabled
(IResolvable clientSideTimestampsEnabled) Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace.static CfnKeyspace.Builder
keyspaceName
(String keyspaceName) The name of the keyspace to be created.replicationSpecification
(IResolvable replicationSpecification) Specifies theReplicationStrategy
of a keyspace.replicationSpecification
(CfnKeyspace.ReplicationSpecificationProperty replicationSpecification) Specifies theReplicationStrategy
of a keyspace.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnKeyspace.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnKeyspace.Builder
.
-
clientSideTimestampsEnabled
@Stability(Stable) public CfnKeyspace.Builder clientSideTimestampsEnabled(Boolean clientSideTimestampsEnabled) Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace.To add a Region to a single-Region keyspace with at least one table, the value must be set to true. After you've enabled client-side timestamps for a table, you can’t disable it again.
- Parameters:
clientSideTimestampsEnabled
- Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace. This parameter is required.- Returns:
this
- See Also:
-
clientSideTimestampsEnabled
@Stability(Stable) public CfnKeyspace.Builder clientSideTimestampsEnabled(IResolvable clientSideTimestampsEnabled) Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace.To add a Region to a single-Region keyspace with at least one table, the value must be set to true. After you've enabled client-side timestamps for a table, you can’t disable it again.
- Parameters:
clientSideTimestampsEnabled
- Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace. This parameter is required.- Returns:
this
- See Also:
-
keyspaceName
The name of the keyspace to be created.The keyspace name is case sensitive. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the keyspace name. For more information, see Name type .
Length constraints: Minimum length of 3. Maximum length of 255.
Pattern:
^[a-zA-Z0-9][a-zA-Z0-9_]{1,47}$
- Parameters:
keyspaceName
- The name of the keyspace to be created. This parameter is required.- Returns:
this
- See Also:
-
replicationSpecification
@Stability(Stable) public CfnKeyspace.Builder replicationSpecification(IResolvable replicationSpecification) Specifies theReplicationStrategy
of a keyspace. The options are:.SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- Parameters:
replicationSpecification
- Specifies theReplicationStrategy
of a keyspace. The options are:. This parameter is required.- Returns:
this
- See Also:
-
replicationSpecification
@Stability(Stable) public CfnKeyspace.Builder replicationSpecification(CfnKeyspace.ReplicationSpecificationProperty replicationSpecification) Specifies theReplicationStrategy
of a keyspace. The options are:.SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- Parameters:
replicationSpecification
- Specifies theReplicationStrategy
of a keyspace. The options are:. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnKeyspace>
- Returns:
- a newly built instance of
CfnKeyspace
.
-