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.dax.CfnCluster
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IClusterRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:02.037Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, IClusterRef, ITaggable
Creates a DAX cluster.
All nodes in the cluster run the same DAX caching 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.dax.*;
Object tags;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.iamRoleArn("iamRoleArn")
.nodeType("nodeType")
.replicationFactor(123)
// the properties below are optional
.availabilityZones(List.of("availabilityZones"))
.clusterEndpointEncryptionType("clusterEndpointEncryptionType")
.clusterName("clusterName")
.description("description")
.networkType("networkType")
.notificationTopicArn("notificationTopicArn")
.parameterGroupName("parameterGroupName")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.securityGroupIds(List.of("securityGroupIds"))
.sseSpecification(SSESpecificationProperty.builder()
.sseEnabled(false)
.build())
.subnetGroupName("subnetGroupName")
.tags(tags)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCluster.static interfaceRepresents the settings used to enable server-side encryption.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.dax.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) -
Method Summary
Modifier and TypeMethodDescriptionReturns the ARN of the DAX cluster.Returns the endpoint of the DAX cluster.Returns the endpoint URL of the DAX cluster.The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.The encryption type of the cluster's endpoint.The name of the DAX cluster.A reference to a Cluster resource.The description of the cluster.A valid Amazon Resource Name (ARN) that identifies an IAM role.The IP address type of the cluster.The node type for the nodes in the cluster.The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.The parameter group to be associated with the DAX cluster.A range of time when maintenance of DAX cluster software will be performed.The number of nodes in the DAX cluster.A list of security group IDs to be assigned to each node in the DAX cluster.Represents the settings used to enable server-side encryption on the cluster.The name of the subnet group to be used for the replication group.getTags()Tag Manager which manages the tags for this resource.A set of tags to associate with the DAX cluster.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAvailabilityZones(List<String> value) The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.voidThe encryption type of the cluster's endpoint.voidsetClusterName(String value) The name of the DAX cluster.voidsetDescription(String value) The description of the cluster.voidsetIamRoleArn(String value) A valid Amazon Resource Name (ARN) that identifies an IAM role.voidsetNetworkType(String value) The IP address type of the cluster.voidsetNodeType(String value) The node type for the nodes in the cluster.voidsetNotificationTopicArn(String value) The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.voidsetParameterGroupName(String value) The parameter group to be associated with the DAX cluster.voidA range of time when maintenance of DAX cluster software will be performed.voidsetReplicationFactor(Number value) The number of nodes in the DAX cluster.voidsetSecurityGroupIds(List<String> value) A list of security group IDs to be assigned to each node in the DAX cluster.voidsetSseSpecification(IResolvable value) Represents the settings used to enable server-side encryption on the cluster.voidRepresents the settings used to enable server-side encryption on the cluster.voidsetSubnetGroupName(String value) The name of the subnet group to be used for the replication group.voidsetTagsRaw(Object value) A set of tags to associate with the DAX cluster.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.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) - 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
-
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
Returns the ARN of the DAX cluster. For example:.{ "Fn::GetAtt": [" MyDAXCluster ", "Arn"] }Returns a value similar to the following:
arn:aws:dax:us-east-1:111122223333:cache/MyDAXCluster -
getAttrClusterDiscoveryEndpoint
Returns the endpoint of the DAX cluster. For example:.{ "Fn::GetAtt": [" MyDAXCluster ", "ClusterDiscoveryEndpoint"] }Returns a value similar to the following:
mydaxcluster.0h3d6x.clustercfg.dax.use1.cache.amazonaws.com:8111 -
getAttrClusterDiscoveryEndpointUrl
Returns the endpoint URL of the DAX cluster. -
getAttrId
-
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. -
getIamRoleArn
A valid Amazon Resource Name (ARN) that identifies an IAM role. -
setIamRoleArn
A valid Amazon Resource Name (ARN) that identifies an IAM role. -
getNodeType
The node type for the nodes in the cluster. -
setNodeType
The node type for the nodes in the cluster. -
getReplicationFactor
The number of nodes in the DAX cluster. -
setReplicationFactor
The number of nodes in the DAX cluster. -
getAvailabilityZones
The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. -
setAvailabilityZones
The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. -
getClusterEndpointEncryptionType
The encryption type of the cluster's endpoint.Available values are:.
-
setClusterEndpointEncryptionType
The encryption type of the cluster's endpoint.Available values are:.
-
getClusterName
The name of the DAX cluster. -
setClusterName
The name of the DAX cluster. -
getDescription
The description of the cluster. -
setDescription
The description of the cluster. -
getNetworkType
The IP address type of the cluster.Values are:.
-
setNetworkType
The IP address type of the cluster.Values are:.
-
getNotificationTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. -
setNotificationTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. -
getParameterGroupName
The parameter group to be associated with the DAX cluster. -
setParameterGroupName
The parameter group to be associated with the DAX cluster. -
getPreferredMaintenanceWindow
A range of time when maintenance of DAX cluster software will be performed. -
setPreferredMaintenanceWindow
A range of time when maintenance of DAX cluster software will be performed. -
getSecurityGroupIds
A list of security group IDs to be assigned to each node in the DAX cluster. -
setSecurityGroupIds
A list of security group IDs to be assigned to each node in the DAX cluster. -
getSseSpecification
Represents the settings used to enable server-side encryption on the cluster.Returns union: either
IResolvableorCfnCluster.SSESpecificationProperty -
setSseSpecification
Represents the settings used to enable server-side encryption on the cluster. -
setSseSpecification
@Stability(Stable) public void setSseSpecification(@Nullable CfnCluster.SSESpecificationProperty value) Represents the settings used to enable server-side encryption on the cluster. -
getSubnetGroupName
The name of the subnet group to be used for the replication group. -
setSubnetGroupName
The name of the subnet group to be used for the replication group. -
getTagsRaw
A set of tags to associate with the DAX cluster. -
setTagsRaw
A set of tags to associate with the DAX cluster.
-