aws-cdk-lib.aws_cassandra.CfnKeyspaceProps

interface CfnKeyspaceProps

LanguageType name
.NETAmazon.CDK.AWS.Cassandra.CfnKeyspaceProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscassandra#CfnKeyspaceProps
Javasoftware.amazon.awscdk.services.cassandra.CfnKeyspaceProps
Pythonaws_cdk.aws_cassandra.CfnKeyspaceProps
TypeScript aws-cdk-lib » aws_cassandra » CfnKeyspaceProps

Properties for defining a CfnKeyspace.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cassandra as cassandra } from 'aws-cdk-lib';
const cfnKeyspaceProps: cassandra.CfnKeyspaceProps = {
  keyspaceName: 'keyspaceName',
  replicationSpecification: {
    regionList: ['regionList'],
    replicationStrategy: 'replicationStrategy',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
keyspaceName?stringThe name of the keyspace to be created.
replicationSpecification?IResolvable | ReplicationSpecificationPropertySpecifies the ReplicationStrategy of a keyspace. The options are:.
tags?CfnTag[]An array of key-value pairs to apply to this resource.

keyspaceName?

Type: string (optional)

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}$


replicationSpecification?

Type: IResolvable | ReplicationSpecificationProperty (optional)

Specifies the ReplicationStrategy of a keyspace. The options are:.

  • SINGLE_REGION for a single Region keyspace (optional) or
  • MULTI_REGION for a multi-Region keyspace

If no ReplicationStrategy is provided, the default is SINGLE_REGION . If you choose MULTI_REGION , you must also provide a RegionList with the AWS Regions that the keyspace is replicated in.


tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.

For more information, see Tag .