Class CfnKeyspaceProps
Properties for defining a CfnKeyspace
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Cassandra
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnKeyspaceProps : Object, ICfnKeyspaceProps
Syntax (vb)
Public Class CfnKeyspaceProps
Inherits Object
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
Cfn |
Properties
Client |
Indicates whether client-side timestamps are enabled (true) or disabled (false) for all tables in the keyspace. |
Keyspace |
The name of the keyspace to be created. |
Replication |
Specifies the |
Tags | An array of key-value pairs to apply to this resource. |
Constructors
CfnKeyspaceProps()
public CfnKeyspaceProps()
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
System.
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
System.
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 3. Maximum length of 255.
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_]{1,47}$
ReplicationSpecification
Specifies the ReplicationStrategy
of a keyspace. The options are:.
public object ReplicationSpecification { get; set; }
Property Value
System.
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
ICfn
Remarks
For more information, see Tag .