Class CfnClusterProps
Properties for defining a CfnCluster
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.MemoryDB
Assembly: Amazon.CDK.AWS.MemoryDB.dll
Syntax (csharp)
public class CfnClusterProps : Object, ICfnClusterProps
Syntax (vb)
Public Class CfnClusterProps
Inherits Object
Implements ICfnClusterProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-cluster.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.MemoryDB;
var cfnClusterProps = new CfnClusterProps {
AclName = "aclName",
ClusterName = "clusterName",
NodeType = "nodeType",
// the properties below are optional
AutoMinorVersionUpgrade = false,
ClusterEndpoint = new EndpointProperty {
Address = "address",
Port = 123
},
DataTiering = "dataTiering",
Description = "description",
EngineVersion = "engineVersion",
FinalSnapshotName = "finalSnapshotName",
KmsKeyId = "kmsKeyId",
MaintenanceWindow = "maintenanceWindow",
NumReplicasPerShard = 123,
NumShards = 123,
ParameterGroupName = "parameterGroupName",
Port = 123,
SecurityGroupIds = new [] { "securityGroupIds" },
SnapshotArns = new [] { "snapshotArns" },
SnapshotName = "snapshotName",
SnapshotRetentionLimit = 123,
SnapshotWindow = "snapshotWindow",
SnsTopicArn = "snsTopicArn",
SnsTopicStatus = "snsTopicStatus",
SubnetGroupName = "subnetGroupName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TlsEnabled = false
};
Synopsis
Constructors
CfnClusterProps() |
Properties
AclName | The name of the Access Control List to associate with the cluster . |
AutoMinorVersionUpgrade | When set to true, the cluster will automatically receive minor engine version upgrades after launch. |
ClusterEndpoint | The cluster 's configuration endpoint. |
ClusterName | The name of the cluster . |
DataTiering | Enables data tiering. |
Description | A description of the cluster . |
EngineVersion | The Redis engine version used by the cluster . |
FinalSnapshotName | The user-supplied name of a final cluster snapshot. |
KmsKeyId | The ID of the KMS key used to encrypt the cluster . |
MaintenanceWindow | Specifies the weekly time range during which maintenance on the cluster is performed. |
NodeType | The cluster 's node type. |
NumReplicasPerShard | The number of replicas to apply to each shard. |
NumShards | The number of shards in the cluster . |
ParameterGroupName | The name of the parameter group used by the cluster . |
Port | The port used by the cluster . |
SecurityGroupIds | A list of security group names to associate with this cluster . |
SnapshotArns | A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. |
SnapshotName | The name of a snapshot from which to restore data into the new cluster . |
SnapshotRetentionLimit | The number of days for which MemoryDB retains automatic snapshots before deleting them. |
SnapshotWindow | The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. |
SnsTopicArn | When you pass the logical ID of this resource to the intrinsic |
SnsTopicStatus | The SNS topic must be in Active status to receive notifications. |
SubnetGroupName | The name of the subnet group used by the cluster . |
Tags | An array of key-value pairs to apply to this resource. |
TlsEnabled | A flag to indicate if In-transit encryption is enabled. |
Constructors
CfnClusterProps()
public CfnClusterProps()
Properties
AclName
The name of the Access Control List to associate with the cluster .
public string AclName { get; set; }
Property Value
System.String
Remarks
AutoMinorVersionUpgrade
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
public object AutoMinorVersionUpgrade { get; set; }
Property Value
System.Object
Remarks
ClusterEndpoint
The cluster 's configuration endpoint.
public object ClusterEndpoint { get; set; }
Property Value
System.Object
Remarks
ClusterName
The name of the cluster .
public string ClusterName { get; set; }
Property Value
System.String
Remarks
DataTiering
Enables data tiering.
public string DataTiering { get; set; }
Property Value
System.String
Remarks
Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering .
Description
A description of the cluster .
public string Description { get; set; }
Property Value
System.String
Remarks
EngineVersion
The Redis engine version used by the cluster .
public string EngineVersion { get; set; }
Property Value
System.String
Remarks
FinalSnapshotName
The user-supplied name of a final cluster snapshot.
public string FinalSnapshotName { get; set; }
Property Value
System.String
Remarks
This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
KmsKeyId
The ID of the KMS key used to encrypt the cluster .
public string KmsKeyId { get; set; }
Property Value
System.String
Remarks
MaintenanceWindow
Specifies the weekly time range during which maintenance on the cluster is performed.
public string MaintenanceWindow { get; set; }
Property Value
System.String
Remarks
It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period.
Pattern : ddd:hh24:mi-ddd:hh24:mi
NodeType
The cluster 's node type.
public string NodeType { get; set; }
Property Value
System.String
Remarks
NumReplicasPerShard
The number of replicas to apply to each shard.
public Nullable<double> NumReplicasPerShard { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default value : 1
Maximum value : 5
NumShards
The number of shards in the cluster .
public Nullable<double> NumShards { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
ParameterGroupName
The name of the parameter group used by the cluster .
public string ParameterGroupName { get; set; }
Property Value
System.String
Remarks
Port
The port used by the cluster .
public Nullable<double> Port { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
SecurityGroupIds
A list of security group names to associate with this cluster .
public string[] SecurityGroupIds { get; set; }
Property Value
System.String[]
Remarks
SnapshotArns
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.
public string[] SnapshotArns { get; set; }
Property Value
System.String[]
Remarks
The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.
SnapshotName
The name of a snapshot from which to restore data into the new cluster .
public string SnapshotName { get; set; }
Property Value
System.String
Remarks
The snapshot status changes to restoring while the new cluster is being created.
SnapshotRetentionLimit
The number of days for which MemoryDB retains automatic snapshots before deleting them.
public Nullable<double> SnapshotRetentionLimit { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
SnapshotWindow
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.
public string SnapshotWindow { get; set; }
Property Value
System.String
Remarks
Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
SnsTopicArn
When you pass the logical ID of this resource to the intrinsic Ref
function, Ref returns the ARN of the SNS topic, such as arn:aws:memorydb:us-east-1:123456789012:mySNSTopic
.
public string SnsTopicArn { get; set; }
Property Value
System.String
Remarks
SnsTopicStatus
The SNS topic must be in Active status to receive notifications.
public string SnsTopicStatus { get; set; }
Property Value
System.String
Remarks
SubnetGroupName
The name of the subnet group used by the cluster .
public string SubnetGroupName { get; set; }
Property Value
System.String
Remarks
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 .
TlsEnabled
A flag to indicate if In-transit encryption is enabled.
public object TlsEnabled { get; set; }
Property Value
System.Object