Amazon DynamoDB
API Reference

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


Creates a DAX cluster. All nodes in the cluster run the same DAX caching software.

Request Syntax

{ "AvailabilityZones": [ "string" ], "ClusterName": "string", "Description": "string", "IamRoleArn": "string", "NodeType": "string", "NotificationTopicArn": "string", "ParameterGroupName": "string", "PreferredMaintenanceWindow": "string", "ReplicationFactor": number, "SecurityGroupIds": [ "string" ], "SSESpecification": { "Enabled": boolean }, "SubnetGroupName": "string", "Tags": [ { "Key": "string", "Value": "string" } ] }

Request Parameters

The request accepts the following data in JSON format.


In the following list, the required parameters are described first.


The cluster identifier. This parameter is stored as a lowercase string.


  • A name must contain from 1 to 20 alphanumeric characters or hyphens.

  • The first character must be a letter.

  • A name cannot end with a hyphen or contain two consecutive hyphens.

Type: String

Required: Yes


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.

Type: String

Required: Yes


The compute and memory capacity of the nodes in the cluster.

Type: String

Required: Yes


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 the ReplicationFactor.


AWS recommends that you have at least two read replicas per cluster.

Type: Integer

Required: Yes


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.

Type: Array of strings

Required: No


A description of the cluster.

Type: String

Required: No


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.

Type: String

Required: No


The parameter group to be associated with the DAX cluster.

Type: String

Required: No


Specifies the weekly time range during which maintenance on the DAX cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. Valid values for ddd are:

  • sun

  • mon

  • tue

  • wed

  • thu

  • fri

  • sat

Example: sun:05:00-sun:09:00


If you don't specify a preferred maintenance window when you create or modify a cache cluster, DAX assigns a 60-minute maintenance window on a randomly selected day of the week.

Type: String

Required: No


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.

Type: Array of strings

Required: No


Represents the settings used to enable server-side encryption on the cluster.

Type: SSESpecification object

Required: No


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.

Type: String

Required: No


A set of tags to associate with the DAX cluster.

Type: Array of Tag objects

Required: No

Response Syntax

{ "Cluster": { "ActiveNodes": number, "ClusterArn": "string", "ClusterDiscoveryEndpoint": { "Address": "string", "Port": number }, "ClusterName": "string", "Description": "string", "IamRoleArn": "string", "NodeIdsToRemove": [ "string" ], "Nodes": [ { "AvailabilityZone": "string", "Endpoint": { "Address": "string", "Port": number }, "NodeCreateTime": number, "NodeId": "string", "NodeStatus": "string", "ParameterGroupStatus": "string" } ], "NodeType": "string", "NotificationConfiguration": { "TopicArn": "string", "TopicStatus": "string" }, "ParameterGroup": { "NodeIdsToReboot": [ "string" ], "ParameterApplyStatus": "string", "ParameterGroupName": "string" }, "PreferredMaintenanceWindow": "string", "SecurityGroups": [ { "SecurityGroupIdentifier": "string", "Status": "string" } ], "SSEDescription": { "Status": "string" }, "Status": "string", "SubnetGroup": "string", "TotalNodes": number } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


A description of the DAX cluster that you have created.

Type: Cluster object


For information about the errors that are common to all actions, see Common Errors.


You already have a DAX cluster with the given identifier.

HTTP Status Code: 400


You have attempted to exceed the maximum number of DAX clusters for your AWS account.

HTTP Status Code: 400


There are not enough system resources to create the cluster you requested (or to resize an already-existing cluster).

HTTP Status Code: 400


The requested DAX cluster is not in the available state.

HTTP Status Code: 400


Two or more incompatible parameters were specified.

HTTP Status Code: 400


One or more parameters in a parameter group are in an invalid state.

HTTP Status Code: 400


The value for a parameter is invalid.

HTTP Status Code: 400


The VPC network is in an invalid state.

HTTP Status Code: 400


You have attempted to exceed the maximum number of nodes for a DAX cluster.

HTTP Status Code: 400


You have attempted to exceed the maximum number of nodes for your AWS account.

HTTP Status Code: 400


The specified parameter group does not exist.

HTTP Status Code: 400


The specified service linked role (SLR) was not found.

HTTP Status Code: 400


The requested subnet group name does not refer to an existing subnet group.

HTTP Status Code: 400


You have exceeded the maximum number of tags for this DAX cluster.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: