Class CfnCluster
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::DAX::Cluster
.
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") .notificationTopicArn("notificationTopicArn") .parameterGroupName("parameterGroupName") .preferredMaintenanceWindow("preferredMaintenanceWindow") .securityGroupIds(List.of("securityGroupIds")) .sseSpecification(SSESpecificationProperty.builder() .sseEnabled(false) .build()) .subnetGroupName("subnetGroupName") .tags(tags) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnCluster
.static interface
Represents the settings used to enable server-side encryption.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::DAX::Cluster
.protected
CfnCluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCluster
(software.amazon.jsii.JsiiObjectRef objRef) -
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.The description of the cluster.A valid Amazon Resource Name (ARN) that identifies an IAM role.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()
A set of tags to associate with the DAX cluster.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAvailabilityZones
(List<String> value) The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.void
The encryption type of the cluster's endpoint.void
setClusterName
(String value) The name of the DAX cluster.void
setDescription
(String value) The description of the cluster.void
setIamRoleArn
(String value) A valid Amazon Resource Name (ARN) that identifies an IAM role.void
setNodeType
(String value) The node type for the nodes in the cluster.void
setNotificationTopicArn
(String value) The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.void
setParameterGroupName
(String value) The parameter group to be associated with the DAX cluster.void
A range of time when maintenance of DAX cluster software will be performed.void
setReplicationFactor
(Number value) The number of nodes in the DAX cluster.void
setSecurityGroupIds
(List<String> value) A list of security group IDs to be assigned to each node in the DAX cluster.void
setSseSpecification
(IResolvable value) Represents the settings used to enable server-side encryption on the cluster.void
Represents the settings used to enable server-side encryption on the cluster.void
setSubnetGroupName
(String value) The name of the subnet group to be used for the replication group.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::DAX::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
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. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
A set of tags to associate with the DAX cluster. -
getIamRoleArn
A valid Amazon Resource Name (ARN) that identifies an IAM role.At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.
-
setIamRoleArn
A valid Amazon Resource Name (ARN) that identifies an IAM role.At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.
-
getNodeType
The node type for the nodes in the cluster.(All nodes in a DAX cluster are of the same type.)
-
setNodeType
The node type for the nodes in the cluster.(All nodes in a DAX cluster are of the same type.)
-
getReplicationFactor
The number of nodes in the DAX cluster.A replication factor of 1 will create a single-node cluster, without any read replicas. For additional fault tolerance, you can create a multiple node cluster with one or more read replicas. To do this, set
ReplicationFactor
to a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas).If the AvailabilityZones
parameter is provided, its length must equal theReplicationFactor
.AWS recommends that you have at least two read replicas per cluster.
-
setReplicationFactor
The number of nodes in the DAX cluster.A replication factor of 1 will create a single-node cluster, without any read replicas. For additional fault tolerance, you can create a multiple node cluster with one or more read replicas. To do this, set
ReplicationFactor
to a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas).If the AvailabilityZones
parameter is provided, its length must equal theReplicationFactor
.AWS recommends that you have at least two read replicas per cluster.
-
getAvailabilityZones
The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.If provided, the length of this list must equal the
ReplicationFactor
parameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability. -
setAvailabilityZones
The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.If provided, the length of this list must equal the
ReplicationFactor
parameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability. -
getClusterEndpointEncryptionType
The encryption type of the cluster's endpoint. Available values are:.NONE
- The cluster's endpoint will be unencrypted.TLS
- The cluster's endpoint will be encrypted with Transport Layer Security, and will provide an x509 certificate for authentication.
The default value is
NONE
. -
setClusterEndpointEncryptionType
The encryption type of the cluster's endpoint. Available values are:.NONE
- The cluster's endpoint will be unencrypted.TLS
- The cluster's endpoint will be encrypted with Transport Layer Security, and will provide an x509 certificate for authentication.
The default value is
NONE
. -
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. -
getNotificationTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.The Amazon SNS topic owner must be same as the DAX cluster owner.
-
setNotificationTopicArn
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.The Amazon SNS topic owner must be same as the DAX cluster owner.
-
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.For example:
sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window. -
setPreferredMaintenanceWindow
A range of time when maintenance of DAX cluster software will be performed.For example:
sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window. -
getSecurityGroupIds
A list of security group IDs to be assigned to each node in the DAX cluster.(Each of the security group ID is system-generated.)
If this parameter is not specified, DAX assigns the default VPC security group to each node.
-
setSecurityGroupIds
A list of security group IDs to be assigned to each node in the DAX cluster.(Each of the security group ID is system-generated.)
If this parameter is not specified, DAX assigns the default VPC security group to each node.
-
getSseSpecification
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. -
setSseSpecification
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.DAX clusters can only run in an Amazon VPC environment. All of the subnets that you specify in a subnet group must exist in the same VPC.
-
setSubnetGroupName
The name of the subnet group to be used for the replication group.DAX clusters can only run in an Amazon VPC environment. All of the subnets that you specify in a subnet group must exist in the same VPC.
-