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.BuilderkeyspaceName(String keyspaceName) The name of the keyspace to be created.replicationSpecification(IResolvable replicationSpecification) Specifies theReplicationStrategyof a keyspace.replicationSpecification(CfnKeyspace.ReplicationSpecificationProperty replicationSpecification) Specifies theReplicationStrategyof 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 1. Maximum length of 48.
- 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 theReplicationStrategyof a keyspace. The options are:.SINGLE_REGIONfor a single Region keyspace (optional) orMULTI_REGIONfor a multi-Region keyspace
If no
ReplicationStrategyis provided, the default isSINGLE_REGION. If you chooseMULTI_REGION, you must also provide aRegionListwith the AWS Regions that the keyspace is replicated in.- Parameters:
replicationSpecification- Specifies theReplicationStrategyof a keyspace. The options are:. This parameter is required.- Returns:
this- See Also:
-
replicationSpecification
@Stability(Stable) public CfnKeyspace.Builder replicationSpecification(CfnKeyspace.ReplicationSpecificationProperty replicationSpecification) Specifies theReplicationStrategyof a keyspace. The options are:.SINGLE_REGIONfor a single Region keyspace (optional) orMULTI_REGIONfor a multi-Region keyspace
If no
ReplicationStrategyis provided, the default isSINGLE_REGION. If you chooseMULTI_REGION, you must also provide aRegionListwith the AWS Regions that the keyspace is replicated in.- Parameters:
replicationSpecification- Specifies theReplicationStrategyof 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyspace>- Returns:
- a newly built instance of
CfnKeyspace.
-