Class CfnCluster
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::MemoryDB::Cluster
.
Specifies a cluster . All nodes in the cluster run the same protocol-compliant engine software.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.memorydb.*; CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster") .aclName("aclName") .clusterName("clusterName") .nodeType("nodeType") // the properties below are optional .autoMinorVersionUpgrade(false) .clusterEndpoint(EndpointProperty.builder() .address("address") .port(123) .build()) .dataTiering("dataTiering") .description("description") .engineVersion("engineVersion") .finalSnapshotName("finalSnapshotName") .kmsKeyId("kmsKeyId") .maintenanceWindow("maintenanceWindow") .numReplicasPerShard(123) .numShards(123) .parameterGroupName("parameterGroupName") .port(123) .securityGroupIds(List.of("securityGroupIds")) .snapshotArns(List.of("snapshotArns")) .snapshotName("snapshotName") .snapshotRetentionLimit(123) .snapshotWindow("snapshotWindow") .snsTopicArn("snsTopicArn") .snsTopicStatus("snsTopicStatus") .subnetGroupName("subnetGroupName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .tlsEnabled(false) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnCluster
.static interface
Represents the information required for client programs to connect to the cluster and its nodes.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnCluster
(Construct scope, String id, CfnClusterProps props) Create a newAWS::MemoryDB::Cluster
.protected
CfnCluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCluster
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the Access Control List to associate with the cluster .When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the cluster , such asarn:aws:memorydb:us-east-1:123456789012:cluster/my-cluster
.The address of the cluster 's configuration endpoint.The port used by the cluster configuration endpoint.The status of the parameter group used by the cluster , for exampleactive
orapplying
.The status of the cluster.When set to true, the cluster will automatically receive minor engine version upgrades after launch.The cluster 's configuration endpoint.The name of the cluster .Enables data tiering.A description of the cluster .The Redis engine version used by the cluster .The user-supplied name of a final cluster snapshot.The ID of the KMS key used to encrypt the cluster .Specifies the weekly time range during which maintenance on the cluster is performed.The cluster 's node type.The number of replicas to apply to each shard.The number of shards in the cluster .The name of the parameter group used by the cluster .getPort()
The port used by the cluster .A list of security group names to associate with this cluster .A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.The name of a snapshot from which to restore data into the new cluster .The number of days for which MemoryDB retains automatic snapshots before deleting them.The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
.The SNS topic must be in Active status to receive notifications.The name of the subnet group used by the cluster .getTags()
An array of key-value pairs to apply to this resource.A flag to indicate if In-transit encryption is enabled.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAclName
(String value) The name of the Access Control List to associate with the cluster .void
When set to true, the cluster will automatically receive minor engine version upgrades after launch.void
When set to true, the cluster will automatically receive minor engine version upgrades after launch.void
setClusterEndpoint
(IResolvable value) The cluster 's configuration endpoint.void
The cluster 's configuration endpoint.void
setClusterName
(String value) The name of the cluster .void
setDataTiering
(String value) Enables data tiering.void
setDescription
(String value) A description of the cluster .void
setEngineVersion
(String value) The Redis engine version used by the cluster .void
setFinalSnapshotName
(String value) The user-supplied name of a final cluster snapshot.void
setKmsKeyId
(String value) The ID of the KMS key used to encrypt the cluster .void
setMaintenanceWindow
(String value) Specifies the weekly time range during which maintenance on the cluster is performed.void
setNodeType
(String value) The cluster 's node type.void
setNumReplicasPerShard
(Number value) The number of replicas to apply to each shard.void
setNumShards
(Number value) The number of shards in the cluster .void
setParameterGroupName
(String value) The name of the parameter group used by the cluster .void
The port used by the cluster .void
setSecurityGroupIds
(List<String> value) A list of security group names to associate with this cluster .void
setSnapshotArns
(List<String> value) A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.void
setSnapshotName
(String value) The name of a snapshot from which to restore data into the new cluster .void
setSnapshotRetentionLimit
(Number value) The number of days for which MemoryDB retains automatic snapshots before deleting them.void
setSnapshotWindow
(String value) The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.void
setSnsTopicArn
(String value) When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
.void
setSnsTopicStatus
(String value) The SNS topic must be in Active status to receive notifications.void
setSubnetGroupName
(String value) The name of the subnet group used by the cluster .void
setTlsEnabled
(Boolean value) A flag to indicate if In-transit encryption is enabled.void
setTlsEnabled
(IResolvable value) A flag to indicate if In-transit encryption is enabled.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCluster
@Stability(Stable) public CfnCluster(@NotNull Construct scope, @NotNull String id, @NotNull CfnClusterProps props) Create a newAWS::MemoryDB::Cluster
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the cluster , such asarn:aws:memorydb:us-east-1:123456789012:cluster/my-cluster
. -
getAttrClusterEndpointAddress
The address of the cluster 's configuration endpoint. -
getAttrClusterEndpointPort
The port used by the cluster configuration endpoint. -
getAttrParameterGroupStatus
The status of the parameter group used by the cluster , for exampleactive
orapplying
. -
getAttrStatus
The status of the cluster.For example, 'available', 'updating' or 'creating'.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getAclName
The name of the Access Control List to associate with the cluster . -
setAclName
The name of the Access Control List to associate with the cluster . -
getClusterName
The name of the cluster . -
setClusterName
The name of the cluster . -
getNodeType
The cluster 's node type. -
setNodeType
The cluster 's node type. -
getAutoMinorVersionUpgrade
When set to true, the cluster will automatically receive minor engine version upgrades after launch. -
setAutoMinorVersionUpgrade
When set to true, the cluster will automatically receive minor engine version upgrades after launch. -
setAutoMinorVersionUpgrade
When set to true, the cluster will automatically receive minor engine version upgrades after launch. -
getClusterEndpoint
The cluster 's configuration endpoint. -
setClusterEndpoint
The cluster 's configuration endpoint. -
setClusterEndpoint
The cluster 's configuration endpoint. -
getDataTiering
Enables data tiering.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 .
-
setDataTiering
Enables data tiering.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 .
-
getDescription
A description of the cluster . -
setDescription
A description of the cluster . -
getEngineVersion
The Redis engine version used by the cluster . -
setEngineVersion
The Redis engine version used by the cluster . -
getFinalSnapshotName
The user-supplied name of a final cluster snapshot.This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
-
setFinalSnapshotName
The user-supplied name of a final cluster snapshot.This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
-
getKmsKeyId
The ID of the KMS key used to encrypt the cluster . -
setKmsKeyId
The ID of the KMS key used to encrypt the cluster . -
getMaintenanceWindow
Specifies the weekly time range during which maintenance on the cluster is performed.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
-
setMaintenanceWindow
Specifies the weekly time range during which maintenance on the cluster is performed.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
-
getNumReplicasPerShard
The number of replicas to apply to each shard.Default value :
1
Maximum value :
5
-
setNumReplicasPerShard
The number of replicas to apply to each shard.Default value :
1
Maximum value :
5
-
getNumShards
The number of shards in the cluster . -
setNumShards
The number of shards in the cluster . -
getParameterGroupName
The name of the parameter group used by the cluster . -
setParameterGroupName
The name of the parameter group used by the cluster . -
getPort
The port used by the cluster . -
setPort
The port used by the cluster . -
getSecurityGroupIds
A list of security group names to associate with this cluster . -
setSecurityGroupIds
A list of security group names to associate with this cluster . -
getSnapshotArns
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.
-
setSnapshotArns
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.
-
getSnapshotName
The name of a snapshot from which to restore data into the new cluster .The snapshot status changes to restoring while the new cluster is being created.
-
setSnapshotName
The name of a snapshot from which to restore data into the new cluster .The snapshot status changes to restoring while the new cluster is being created.
-
getSnapshotRetentionLimit
The number of days for which MemoryDB retains automatic snapshots before deleting them.For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
-
setSnapshotRetentionLimit
The number of days for which MemoryDB retains automatic snapshots before deleting them.For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
-
getSnapshotWindow
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
-
setSnapshotWindow
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
-
getSnsTopicArn
When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
. -
setSnsTopicArn
When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
. -
getSnsTopicStatus
The SNS topic must be in Active status to receive notifications. -
setSnsTopicStatus
The SNS topic must be in Active status to receive notifications. -
getSubnetGroupName
The name of the subnet group used by the cluster . -
setSubnetGroupName
The name of the subnet group used by the cluster . -
getTlsEnabled
A flag to indicate if In-transit encryption is enabled. -
setTlsEnabled
A flag to indicate if In-transit encryption is enabled. -
setTlsEnabled
A flag to indicate if In-transit encryption is enabled.
-