@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.902Z") @Stability(value=Stable) public class CfnCluster extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnCluster.Builder
A fluent builder for
CfnCluster. |
static interface |
CfnCluster.SSESpecificationProperty
Represents the settings used to enable server-side encryption.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCluster(software.constructs.Construct scope,
String id,
CfnClusterProps props)
Create a new `AWS::DAX::Cluster`.
|
protected |
CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
Returns the ARN of the DAX cluster.
|
String |
getAttrClusterDiscoveryEndpoint()
Returns the endpoint of the DAX cluster.
|
String |
getAttrClusterDiscoveryEndpointUrl()
Returns the endpoint URL of the DAX cluster.
|
List<String> |
getAvailabilityZones()
The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getClusterEndpointEncryptionType()
The encryption type of the cluster's endpoint.
|
String |
getClusterName()
The name of the DAX cluster.
|
String |
getDescription()
The description of the cluster.
|
String |
getIamRoleArn()
A valid Amazon Resource Name (ARN) that identifies an IAM role.
|
String |
getNodeType()
The node type for the nodes in the cluster.
|
String |
getNotificationTopicArn()
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.
|
String |
getParameterGroupName()
The parameter group to be associated with the DAX cluster.
|
String |
getPreferredMaintenanceWindow()
A range of time when maintenance of DAX cluster software will be performed.
|
Number |
getReplicationFactor()
The number of nodes in the DAX cluster.
|
List<String> |
getSecurityGroupIds()
A list of security group IDs to be assigned to each node in the DAX cluster.
|
Object |
getSseSpecification()
Represents the settings used to enable server-side encryption on the cluster.
|
String |
getSubnetGroupName()
The name of the subnet group to be used for the replication group.
|
TagManager |
getTags()
A set of tags to associate with the DAX cluster.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
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 |
setClusterEndpointEncryptionType(String value)
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 |
setPreferredMaintenanceWindow(String value)
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(CfnCluster.SSESpecificationProperty value)
Represents the settings used to enable server-side encryption on the cluster.
|
void |
setSseSpecification(IResolvable value)
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnClusterProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
{ "Fn::GetAtt": [" MyDAXCluster ", "Arn"] }
Returns a value similar to the following:
arn:aws:dax:us-east-1:111122223333:cache/MyDAXCluster
@Stability(value=Stable) @NotNull public String getAttrClusterDiscoveryEndpoint()
{ "Fn::GetAtt": [" MyDAXCluster ", "ClusterDiscoveryEndpoint"] }
Returns a value similar to the following:
mydaxcluster.0h3d6x.clustercfg.dax.use1.cache.amazonaws.com:8111
@Stability(value=Stable) @NotNull public String getAttrClusterDiscoveryEndpointUrl()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getIamRoleArn()
At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.
@Stability(value=Stable)
public void setIamRoleArn(@NotNull
String value)
At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.
@Stability(value=Stable) @NotNull public String getNodeType()
(All nodes in a DAX cluster are of the same type.)
@Stability(value=Stable)
public void setNodeType(@NotNull
String value)
(All nodes in a DAX cluster are of the same type.)
@Stability(value=Stable) @NotNull public Number getReplicationFactor()
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 the ReplicationFactor .
AWS recommends that you have at least two read replicas per cluster.
@Stability(value=Stable)
public void setReplicationFactor(@NotNull
Number value)
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 the ReplicationFactor .
AWS recommends that you have at least two read replicas per cluster.
@Stability(value=Stable) @Nullable public List<String> getAvailabilityZones()
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.
@Stability(value=Stable)
public void setAvailabilityZones(@Nullable
List<String> value)
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.
@Stability(value=Stable) @Nullable public String getClusterEndpointEncryptionType()
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 .
@Stability(value=Stable)
public void setClusterEndpointEncryptionType(@Nullable
String value)
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 .
@Stability(value=Stable) @Nullable public String getClusterName()
@Stability(value=Stable)
public void setClusterName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getNotificationTopicArn()
The Amazon SNS topic owner must be same as the DAX cluster owner.
@Stability(value=Stable)
public void setNotificationTopicArn(@Nullable
String value)
The Amazon SNS topic owner must be same as the DAX cluster owner.
@Stability(value=Stable) @Nullable public String getParameterGroupName()
@Stability(value=Stable)
public void setParameterGroupName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPreferredMaintenanceWindow()
For example: sun:01:00-sun:09:00 . Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.
@Stability(value=Stable)
public void setPreferredMaintenanceWindow(@Nullable
String value)
For example: sun:01:00-sun:09:00 . Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.
@Stability(value=Stable) @Nullable public List<String> getSecurityGroupIds()
(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.
@Stability(value=Stable)
public void setSecurityGroupIds(@Nullable
List<String> value)
(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.
@Stability(value=Stable) @Nullable public Object getSseSpecification()
@Stability(value=Stable)
public void setSseSpecification(@Nullable
CfnCluster.SSESpecificationProperty value)
@Stability(value=Stable)
public void setSseSpecification(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getSubnetGroupName()
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.
@Stability(value=Stable)
public void setSubnetGroupName(@Nullable
String value)
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.
Copyright © 2022. All rights reserved.