Class CfnKeyspace.Builder
java.lang.Object
software.amazon.awscdk.services.cassandra.CfnKeyspace.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyspace>
- Enclosing class:
CfnKeyspace
@Stability(Stable)
public static final class CfnKeyspace.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyspace>
A fluent builder for
CfnKeyspace
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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
.
-
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
.
-