Skip to main content

clusters

Creates, updates, deletes, gets or lists a clusters resource.

Overview

Nameclusters
TypeResource
Idaws.dax.clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
active_nodesintegerThe number of nodes in the cluster that are active (i.e., capable of serving requests).
cluster_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the cluster.
cluster_discovery_endpointobjectThe endpoint for this DAX cluster, consisting of a DNS name, a port number, and a URL. Applications should use the URL to configure the DAX client to find their cluster.
cluster_endpoint_encryption_typestringThe type of encryption supported by the cluster's endpoint. Values are: NONE for no encryption TLS for Transport Layer Security (NONE, TLS)
cluster_namestringThe name of the DAX cluster.
descriptionstringThe description of the cluster.
iam_role_arnstringA 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.
network_typestringThe IP address type of the cluster. Values are: ipv4 - IPv4 addresses only ipv6 - IPv6 addresses only dual_stack - Both IPv4 and IPv6 addresses (ipv4, ipv6, dual_stack)
node_ids_to_removearrayA list of nodes to be removed from the cluster.
node_typestringThe node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)
nodesarrayA list of nodes that are currently in the cluster.
notification_configurationobjectDescribes a notification topic and its status. Notification topics are used for publishing DAX events to subscribers using Amazon Simple Notification Service (SNS).
parameter_groupobjectThe parameter group being used by nodes in the cluster.
preferred_maintenance_windowstringA 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.
sse_descriptionobjectThe description of the server-side encryption status on the specified DAX cluster.
security_groupsarrayA list of security groups, and the status of each, for the nodes in the cluster.
statusstringThe current status of the cluster.
subnet_groupstringThe subnet group where the DAX cluster is running.
total_nodesintegerThe total number of nodes in the cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_clustersselectregionReturns information about all provisioned DAX clusters if no cluster identifier is specified, or about a specific DAX cluster if a cluster identifier is supplied. If the cluster is in the CREATING state, only cluster level information will be displayed until all of the nodes are successfully provisioned. If the cluster is in the DELETING state, only cluster level information will be displayed. If nodes are currently being added to the DAX cluster, node endpoint information and creation time for the additional nodes will not be displayed until they are completely provisioned. When the DAX cluster state is available, the cluster is ready for use. If nodes are currently being removed from the DAX cluster, no endpoint information for the removed nodes is displayed.
create_clusterinsertregion, ClusterName, NodeType, ReplicationFactor, IamRoleArnCreates a DAX cluster. All nodes in the cluster run the same DAX caching software.
update_clusterupdateregion, ClusterNameModifies the settings for a DAX cluster. You can use this action to change one or more cluster configuration parameters by specifying the parameters and the new values.
delete_clusterdeleteregionDeletes a previously provisioned DAX cluster. DeleteCluster deletes all associated nodes, node endpoints and the DAX cluster itself. When you receive a successful response from this action, DAX immediately begins deleting the cluster; you cannot cancel or revert this action.
decrease_replication_factorexecregion, ClusterName, NewReplicationFactorRemoves one or more nodes from a DAX cluster. You cannot use DecreaseReplicationFactor to remove the last node in a DAX cluster. If you need to do this, use DeleteCluster instead.
increase_replication_factorexecregion, ClusterName, NewReplicationFactorAdds one or more nodes to a DAX cluster.
reboot_nodeexecregion, ClusterName, NodeIdReboots a single node of a DAX cluster. The reboot action takes place as soon as possible. During the reboot, the node status is set to REBOOTING. RebootNode restarts the DAX engine process and does not remove the contents of the cache.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about all provisioned DAX clusters if no cluster identifier is specified, or about a specific DAX cluster if a cluster identifier is supplied. If the cluster is in the CREATING state, only cluster level information will be displayed until all of the nodes are successfully provisioned. If the cluster is in the DELETING state, only cluster level information will be displayed. If nodes are currently being added to the DAX cluster, node endpoint information and creation time for the additional nodes will not be displayed until they are completely provisioned. When the DAX cluster state is available, the cluster is ready for use. If nodes are currently being removed from the DAX cluster, no endpoint information for the removed nodes is displayed.

SELECT
active_nodes,
cluster_arn,
cluster_discovery_endpoint,
cluster_endpoint_encryption_type,
cluster_name,
description,
iam_role_arn,
network_type,
node_ids_to_remove,
node_type,
nodes,
notification_configuration,
parameter_group,
preferred_maintenance_window,
sse_description,
security_groups,
status,
subnet_group,
total_nodes
FROM aws.dax.clusters
WHERE region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.dax.clusters (
ClusterName,
NodeType,
Description,
ReplicationFactor,
AvailabilityZones,
SubnetGroupName,
SecurityGroupIds,
PreferredMaintenanceWindow,
NotificationTopicArn,
IamRoleArn,
ParameterGroupName,
Tags,
SSESpecification,
ClusterEndpointEncryptionType,
NetworkType,
region
)
SELECT
'{{ ClusterName }}' /* required */,
'{{ NodeType }}' /* required */,
'{{ Description }}',
{{ ReplicationFactor }} /* required */,
'{{ AvailabilityZones }}',
'{{ SubnetGroupName }}',
'{{ SecurityGroupIds }}',
'{{ PreferredMaintenanceWindow }}',
'{{ NotificationTopicArn }}',
'{{ IamRoleArn }}' /* required */,
'{{ ParameterGroupName }}',
'{{ Tags }}',
'{{ SSESpecification }}',
'{{ ClusterEndpointEncryptionType }}',
'{{ NetworkType }}',
'{{ region }}'
RETURNING
cluster
;

UPDATE examples

Modifies the settings for a DAX cluster. You can use this action to change one or more cluster configuration parameters by specifying the parameters and the new values.

UPDATE aws.dax.clusters
SET
ClusterName = '{{ ClusterName }}',
Description = '{{ Description }}',
PreferredMaintenanceWindow = '{{ PreferredMaintenanceWindow }}',
NotificationTopicArn = '{{ NotificationTopicArn }}',
NotificationTopicStatus = '{{ NotificationTopicStatus }}',
ParameterGroupName = '{{ ParameterGroupName }}',
SecurityGroupIds = '{{ SecurityGroupIds }}'
WHERE
region = '{{ region }}' --required
AND ClusterName = '{{ ClusterName }}' --required
RETURNING
cluster;

DELETE examples

Deletes a previously provisioned DAX cluster. DeleteCluster deletes all associated nodes, node endpoints and the DAX cluster itself. When you receive a successful response from this action, DAX immediately begins deleting the cluster; you cannot cancel or revert this action.

DELETE FROM aws.dax.clusters
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Removes one or more nodes from a DAX cluster. You cannot use DecreaseReplicationFactor to remove the last node in a DAX cluster. If you need to do this, use DeleteCluster instead.

EXEC aws.dax.clusters.decrease_replication_factor
@region='{{ region }}' --required
@@json=
'{
"ClusterName": "{{ ClusterName }}",
"NewReplicationFactor": {{ NewReplicationFactor }},
"AvailabilityZones": "{{ AvailabilityZones }}",
"NodeIdsToRemove": "{{ NodeIdsToRemove }}"
}'
;