Class CfnKeyspace
You can use the AWS::Cassandra::Keyspace
resource to create a new keyspace in Amazon Keyspaces (for Apache Cassandra).
Inherited Members
Namespace: Amazon.CDK.AWS.Cassandra
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnKeyspace : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnKeyspace
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
For more information, see Create a keyspace and a table in the Amazon Keyspaces Developer Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-keyspace.html
CloudformationResource: AWS::Cassandra::Keyspace
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 cfnKeyspace = new CfnKeyspace(this, "MyCfnKeyspace", new CfnKeyspaceProps {
KeyspaceName = "keyspaceName",
ReplicationSpecification = new ReplicationSpecificationProperty {
RegionList = new [] { "regionList" },
ReplicationStrategy = "replicationStrategy"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnKeyspace(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnKeyspace(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnKeyspace(Construct, String, ICfnKeyspaceProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
KeyspaceName | The name of the keyspace to be created. |
ReplicationSpecification | Specifies the |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | An array of key-value pairs to apply to this resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnKeyspace(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnKeyspace(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnKeyspace(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnKeyspace(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnKeyspace(Construct, String, ICfnKeyspaceProps)
public CfnKeyspace(Construct scope, string id, ICfnKeyspaceProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnKeyspaceProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
KeyspaceName
The name of the keyspace to be created.
public virtual string KeyspaceName { get; set; }
Property Value
System.String
ReplicationSpecification
Specifies the ReplicationStrategy
of a keyspace.
public virtual object ReplicationSpecification { get; set; }
Property Value
System.Object
Remarks
The options are:.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
An array of key-value pairs to apply to this resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>