Class CfnCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.memorydb.CfnCluster
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IClusterRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:24.847Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, IClusterRef, ITaggable
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")
.engine("engine")
.engineVersion("engineVersion")
.finalSnapshotName("finalSnapshotName")
.ipDiscovery("ipDiscovery")
.kmsKeyId("kmsKeyId")
.maintenanceWindow("maintenanceWindow")
.multiRegionClusterName("multiRegionClusterName")
.networkType("networkType")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCluster.static interfaceRepresents 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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.memorydb.IClusterRef
IClusterRef.Jsii$Default, IClusterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnCluster(software.constructs.Construct scope, String id, CfnClusterProps props) Create a newAWS::MemoryDB::Cluster. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForCluster(IClusterRef resource) static IClusterReffromClusterArn(software.constructs.Construct scope, String id, String arn) Creates a new IClusterRef from an ARN.static IClusterReffromClusterName(software.constructs.Construct scope, String id, String clusterName) Creates a new IClusterRef from a clusterName.The name of the Access Control List to associate with the cluster .When you pass the logical ID of this resource to the intrinsicReffunction, 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 exampleactiveorapplying.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 .A reference to a Cluster resource.Enables data tiering.A description of the cluster .The name of the engine used by the cluster.The Redis engine version used by the cluster .The user-supplied name of a final cluster snapshot.The mechanism that the cluster uses to discover IP addresses.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 name of the multi-Region cluster that this cluster belongs to.The IP address type for the cluster.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 intrinsicReffunction, 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()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.A flag to indicate if In-transit encryption is enabled.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnCluster.renderProperties(Map<String, Object> props) voidsetAclName(String value) The name of the Access Control List to associate with the cluster .voidWhen set to true, the cluster will automatically receive minor engine version upgrades after launch.voidWhen set to true, the cluster will automatically receive minor engine version upgrades after launch.voidsetClusterEndpoint(IResolvable value) The cluster 's configuration endpoint.voidThe cluster 's configuration endpoint.voidsetClusterName(String value) The name of the cluster .voidsetDataTiering(String value) Enables data tiering.voidsetDescription(String value) A description of the cluster .voidThe name of the engine used by the cluster.voidsetEngineVersion(String value) The Redis engine version used by the cluster .voidsetFinalSnapshotName(String value) The user-supplied name of a final cluster snapshot.voidsetIpDiscovery(String value) The mechanism that the cluster uses to discover IP addresses.voidsetKmsKeyId(String value) The ID of the KMS key used to encrypt the cluster .voidsetMaintenanceWindow(String value) Specifies the weekly time range during which maintenance on the cluster is performed.voidsetMultiRegionClusterName(String value) The name of the multi-Region cluster that this cluster belongs to.voidsetNetworkType(String value) The IP address type for the cluster.voidsetNodeType(String value) The cluster 's node type.voidsetNumReplicasPerShard(Number value) The number of replicas to apply to each shard.voidsetNumShards(Number value) The number of shards in the cluster .voidsetParameterGroupName(String value) The name of the parameter group used by the cluster .voidThe port used by the cluster .voidsetSecurityGroupIds(List<String> value) A list of security group names to associate with this cluster .voidsetSnapshotArns(List<String> value) A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.voidsetSnapshotName(String value) The name of a snapshot from which to restore data into the new cluster .voidsetSnapshotRetentionLimit(Number value) The number of days for which MemoryDB retains automatic snapshots before deleting them.voidsetSnapshotWindow(String value) The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.voidsetSnsTopicArn(String value) When you pass the logical ID of this resource to the intrinsicReffunction, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic.voidsetSnsTopicStatus(String value) The SNS topic must be in Active status to receive notifications.voidsetSubnetGroupName(String value) The name of the subnet group used by the cluster .voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.voidsetTlsEnabled(Boolean value) A flag to indicate if In-transit encryption is enabled.voidsetTlsEnabled(IResolvable value) A flag to indicate if In-transit encryption is enabled.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterProps props) Create a newAWS::MemoryDB::Cluster.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForCluster
- Parameters:
resource- This parameter is required.
-
fromClusterArn
@Stability(Stable) @NotNull public static IClusterRef fromClusterArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IClusterRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromClusterName
@Stability(Stable) @NotNull public static IClusterRef fromClusterName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String clusterName) Creates a new IClusterRef from a clusterName.- Parameters:
scope- This parameter is required.id- This parameter is required.clusterName- This parameter is required.
-
isCfnCluster
Checks whether the given object is a CfnCluster.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
When you pass the logical ID of this resource to the intrinsicReffunction, 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 exampleactiveorapplying. -
getAttrStatus
The status of the cluster.For example, 'available', 'updating' or 'creating'.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getClusterRef
A reference to a Cluster resource.- Specified by:
getClusterRefin interfaceIClusterRef
-
getTags
Tag Manager which manages the tags for this resource. -
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.Returns union: either
BooleanorIResolvable -
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.Returns union: either
IResolvableorCfnCluster.EndpointProperty -
setClusterEndpoint
The cluster 's configuration endpoint. -
setClusterEndpoint
The cluster 's configuration endpoint. -
getDataTiering
Enables data tiering. -
setDataTiering
Enables data tiering. -
getDescription
A description of the cluster . -
setDescription
A description of the cluster . -
getEngine
The name of the engine used by the cluster. -
setEngine
The name of the engine used by 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. -
setFinalSnapshotName
The user-supplied name of a final cluster snapshot. -
getIpDiscovery
The mechanism that the cluster uses to discover IP addresses. -
setIpDiscovery
The mechanism that the cluster uses to discover IP addresses. -
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. -
setMaintenanceWindow
Specifies the weekly time range during which maintenance on the cluster is performed. -
getMultiRegionClusterName
The name of the multi-Region cluster that this cluster belongs to. -
setMultiRegionClusterName
The name of the multi-Region cluster that this cluster belongs to. -
getNetworkType
The IP address type for the cluster. -
setNetworkType
The IP address type for the cluster. -
getNumReplicasPerShard
The number of replicas to apply to each shard. -
setNumReplicasPerShard
The number of replicas to apply to each shard. -
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. -
setSnapshotArns
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. -
getSnapshotName
The name of a snapshot from which to restore data into the new cluster . -
setSnapshotName
The name of a snapshot from which to restore data into the new cluster . -
getSnapshotRetentionLimit
The number of days for which MemoryDB retains automatic snapshots before deleting them. -
setSnapshotRetentionLimit
The number of days for which MemoryDB retains automatic snapshots before deleting them. -
getSnapshotWindow
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. -
setSnapshotWindow
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. -
getSnsTopicArn
When you pass the logical ID of this resource to the intrinsicReffunction, 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 intrinsicReffunction, 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 . -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource. -
getTlsEnabled
A flag to indicate if In-transit encryption is enabled.Returns union: either
BooleanorIResolvable -
setTlsEnabled
A flag to indicate if In-transit encryption is enabled. -
setTlsEnabled
A flag to indicate if In-transit encryption is enabled.
-