Skip to content
v2.278.0

CfnClusterProps Struct ​

Properties for defining a CfnCluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dax as dax } from 'aws-cdk-lib';

declare const tags: any;
const cfnClusterProps: dax.CfnClusterProps = {
  iamRoleArn: 'iamRoleArn',
  nodeType: 'nodeType',
  replicationFactor: 123,

  // the properties below are optional
  availabilityZones: ['availabilityZones'],
  clusterEndpointEncryptionType: 'clusterEndpointEncryptionType',
  clusterName: 'clusterName',
  description: 'description',
  networkType: 'networkType',
  notificationTopicArn: 'notificationTopicArn',
  parameterGroupName: 'parameterGroupName',
  preferredMaintenanceWindow: 'preferredMaintenanceWindow',
  securityGroupIds: ['securityGroupIds'],
  sseSpecification: {
    sseEnabled: false,
  },
  subnetGroupName: 'subnetGroupName',
  tags: tags,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dax as dax

# tags: Any

cfn_cluster_props = dax.CfnClusterProps(
    iam_role_arn="iamRoleArn",
    node_type="nodeType",
    replication_factor=123,

    # the properties below are optional
    availability_zones=["availabilityZones"],
    cluster_endpoint_encryption_type="clusterEndpointEncryptionType",
    cluster_name="clusterName",
    description="description",
    network_type="networkType",
    notification_topic_arn="notificationTopicArn",
    parameter_group_name="parameterGroupName",
    preferred_maintenance_window="preferredMaintenanceWindow",
    security_group_ids=["securityGroupIds"],
    sse_specification=dax.CfnCluster.SSESpecificationProperty(
        sse_enabled=False
    ),
    subnet_group_name="subnetGroupName",
    tags=tags
)
java
// 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;

CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
        .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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DAX;

var tags;

var cfnClusterProps = new CfnClusterProps {
    IamRoleArn = "iamRoleArn",
    NodeType = "nodeType",
    ReplicationFactor = 123,

    // the properties below are optional
    AvailabilityZones = new [] { "availabilityZones" },
    ClusterEndpointEncryptionType = "clusterEndpointEncryptionType",
    ClusterName = "clusterName",
    Description = "description",
    NetworkType = "networkType",
    NotificationTopicArn = "notificationTopicArn",
    ParameterGroupName = "parameterGroupName",
    PreferredMaintenanceWindow = "preferredMaintenanceWindow",
    SecurityGroupIds = new [] { "securityGroupIds" },
    SseSpecification = new SSESpecificationProperty {
        SseEnabled = false
    },
    SubnetGroupName = "subnetGroupName",
    Tags = tags
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var tags interface{}

cfnClusterProps := &CfnClusterProps{
	IamRoleArn: jsii.String("iamRoleArn"),
	NodeType: jsii.String("nodeType"),
	ReplicationFactor: jsii.Number(123),

	// the properties below are optional
	AvailabilityZones: []*string{
		jsii.String("availabilityZones"),
	},
	ClusterEndpointEncryptionType: jsii.String("clusterEndpointEncryptionType"),
	ClusterName: jsii.String("clusterName"),
	Description: jsii.String("description"),
	NetworkType: jsii.String("networkType"),
	NotificationTopicArn: jsii.String("notificationTopicArn"),
	ParameterGroupName: jsii.String("parameterGroupName"),
	PreferredMaintenanceWindow: jsii.String("preferredMaintenanceWindow"),
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
	SseSpecification: &SSESpecificationProperty{
		SseEnabled: jsii.Boolean(false),
	},
	SubnetGroupName: jsii.String("subnetGroupName"),
	Tags: tags,
}

Properties ​

availabilityZonesoptionalstring[]availability_zonesoptionaltyping.List[str]availabilityZonesoptionalList<String>AvailabilityZonesoptionalstring[]AvailabilityZonesoptional*[]*string #
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.

clusterEndpointEncryptionTypeoptionalstringcluster_endpoint_encryption_typeoptionalstrclusterEndpointEncryptionTypeoptionalStringClusterEndpointEncryptionTypeoptionalstringClusterEndpointEncryptionTypeoptional*string #
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 .

clusterNameoptionalstringcluster_nameoptionalstrclusterNameoptionalStringClusterNameoptionalstringClusterNameoptional*string #
The name of the DAX cluster.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the cluster.
iamRoleArnstringiam_role_arnstriamRoleArnStringIamRoleArnstringIamRoleArn*string required #
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.

networkTypeoptionalstringnetwork_typeoptionalstrnetworkTypeoptionalStringNetworkTypeoptionalstringNetworkTypeoptional*string #
The IP address type of the cluster. Values are:.
  • ipv4 - IPv4 addresses only
  • ipv6 - IPv6 addresses only
  • dual_stack - Both IPv4 and IPv6 addresses
nodeTypestringnode_typestrnodeTypeStringNodeTypestringNodeType*string required #
The node type for the nodes in the cluster.

(All nodes in a DAX cluster are of the same type.)

notificationTopicArnoptionalstringnotification_topic_arnoptionalstrnotificationTopicArnoptionalStringNotificationTopicArnoptionalstringNotificationTopicArnoptional*string #
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.

parameterGroupNameoptionalstringparameter_group_nameoptionalstrparameterGroupNameoptionalStringParameterGroupNameoptionalstringParameterGroupNameoptional*string #
The parameter group to be associated with the DAX cluster.
preferredMaintenanceWindowoptionalstringpreferred_maintenance_windowoptionalstrpreferredMaintenanceWindowoptionalStringPreferredMaintenanceWindowoptionalstringPreferredMaintenanceWindowoptional*string #
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.

replicationFactornumberreplication_factorint | floatreplicationFactorNumberReplicationFactordoubleReplicationFactor*float64 required #
The number of nodes in the DAX cluster.
notes

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.

securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string #
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.

sseSpecificationoptionalIResolvable | CfnCluster.SSESpecificationPropertysse_specificationoptionaltyping.Union[IResolvable, SSESpecificationProperty]sseSpecificationoptionalIResolvableSseSpecificationoptionalIResolvableSseSpecificationoptionalinterface{} #
Represents the settings used to enable server-side encryption on the cluster.
subnetGroupNameoptionalstringsubnet_group_nameoptionalstrsubnetGroupNameoptionalStringSubnetGroupNameoptionalstringSubnetGroupNameoptional*string #
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.

tagsoptionalanytagsoptionalAnytagsoptionalObjectTagsoptionalobjectTagsoptionalinterface{} #
A set of tags to associate with the DAX cluster.