Class CfnKeyspaceProps
Properties for defining a CfnKeyspace
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Cassandra
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnKeyspaceProps : ICfnKeyspaceProps
Syntax (vb)
Public Class CfnKeyspaceProps Implements ICfnKeyspaceProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-keyspace.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cassandra;
var cfnKeyspaceProps = new CfnKeyspaceProps {
ClientSideTimestampsEnabled = false,
KeyspaceName = "keyspaceName",
ReplicationSpecification = new ReplicationSpecificationProperty {
RegionList = new [] { "regionList" },
ReplicationStrategy = "replicationStrategy"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnKeyspaceProps() | Properties for defining a |
Properties
ClientSideTimestampsEnabled | Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace. |
KeyspaceName | The name of the keyspace to be created. |
ReplicationSpecification | Specifies the |
Tags | An array of key-value pairs to apply to this resource. |
Constructors
CfnKeyspaceProps()
Properties for defining a CfnKeyspace
.
public CfnKeyspaceProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-keyspace.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cassandra;
var cfnKeyspaceProps = new CfnKeyspaceProps {
ClientSideTimestampsEnabled = false,
KeyspaceName = "keyspaceName",
ReplicationSpecification = new ReplicationSpecificationProperty {
RegionList = new [] { "regionList" },
ReplicationStrategy = "replicationStrategy"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
ClientSideTimestampsEnabled
Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace.
public object? ClientSideTimestampsEnabled { get; set; }
Property Value
Remarks
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.
KeyspaceName
The name of the keyspace to be created.
public string? KeyspaceName { get; set; }
Property Value
Remarks
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.
ReplicationSpecification
Specifies the ReplicationStrategy
of a keyspace. The options are:.
public object? ReplicationSpecification { get; set; }
Property Value
Remarks
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
An array of key-value pairs to apply to this resource.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
For more information, see Tag .