AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Cassandra::Keyspace

CfnKeyspace

You can use the `AWS::Cassandra::Keyspace` resource to create a new keyspace in Amazon Keyspaces (for Apache Cassandra). For more information, see [Create a keyspace](https://docs.aws.amazon.com/keyspaces/latest/devguide/getting-started.keyspaces.html) in the *Amazon Keyspaces Developer Guide* .

Import

import { CfnKeyspace } from 'aws-cdk-lib/aws-cassandra';

Or use the module namespace:

import * as cassandra from 'aws-cdk-lib/aws-cassandra';
// cassandra.CfnKeyspace

Properties

Configuration passed to the constructor as CfnKeyspaceProps.

clientSideTimestampsEnabledOptional
boolean | IResolvable

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.

keyspaceNameOptional
string

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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) . *Length constraints:* Minimum length of 1. Maximum length of 48.

replicationSpecificationOptional
IResolvable | ReplicationSpecificationProperty

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.

tagsOptional
CfnTag[]

An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-cassandra
CFN TypeAWS::Cassandra::Keyspace
Properties4

Related Constructs

External Links