Skip to main content

cluster

Gets an individual cluster resource

Overview

Namecluster
TypeResource
Descriptioncluster
Idawscc.memorydb.cluster

Fields

NameDatatypeDescription
cluster_namestringThe name of the cluster. This value must be unique as it also serves as the cluster identifier.
descriptionstringAn optional description of the cluster.
statusstringThe status of the cluster. For example, Available, Updating, Creating.
node_typestringThe compute and memory capacity of the nodes in the cluster.
num_shardsintegerThe number of shards the cluster will contain.
num_replicas_per_shardintegerThe number of replicas to apply to each shard. The limit is 5.
subnet_group_namestringThe name of the subnet group to be used for the cluster.
security_group_idsarrayOne or more Amazon VPC security groups associated with this cluster.
maintenance_windowstringSpecifies the weekly time range during which maintenance on the 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.
parameter_group_namestringThe name of the parameter group associated with the cluster.
parameter_group_statusstringThe status of the parameter group used by the cluster.
portintegerThe port number on which each member of the cluster accepts connections.
snapshot_retention_limitintegerThe number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
snapshot_windowstringThe daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your cluster.
acl_namestringThe name of the Access Control List to associate with the cluster.
sns_topic_arnstringThe Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
sns_topic_statusstringThe status of the Amazon SNS notification topic. Notifications are sent only if the status is enabled.
tls_enabledbooleanA flag that enables in-transit encryption when set to true.<br/><br/>You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.
data_tieringstringEnables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes.
kms_key_idstringThe ID of the KMS key used to encrypt the cluster.
snapshot_arnsarrayA list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new cluster. The Amazon S3 object name in the ARN cannot contain any commas.
snapshot_namestringThe name of a snapshot from which to restore data into the new cluster. The snapshot status changes to restoring while the new cluster is being created.
final_snapshot_namestringThe user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
arnstringThe Amazon Resource Name (ARN) of the cluster.
engine_versionstringThe Redis engine version used by the cluster.
cluster_endpointobjectThe cluster endpoint.
auto_minor_version_upgradebooleanA flag that enables automatic minor version upgrade when set to true.<br/><br/>You cannot modify the value of AutoMinorVersionUpgrade after the cluster is created. To enable AutoMinorVersionUpgrade on a cluster you must set AutoMinorVersionUpgrade to true when you create a cluster.
tagsarrayAn array of key-value pairs to apply to this cluster.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
cluster_name,
description,
status,
node_type,
num_shards,
num_replicas_per_shard,
subnet_group_name,
security_group_ids,
maintenance_window,
parameter_group_name,
parameter_group_status,
port,
snapshot_retention_limit,
snapshot_window,
acl_name,
sns_topic_arn,
sns_topic_status,
tls_enabled,
data_tiering,
kms_key_id,
snapshot_arns,
snapshot_name,
final_snapshot_name,
arn,
engine_version,
cluster_endpoint,
auto_minor_version_upgrade,
tags
FROM awscc.memorydb.cluster
WHERE data__Identifier = '<ClusterName>';

Permissions

To operate on the cluster resource, the following permissions are required:

Read

memorydb:DescribeClusters,
memorydb:ListTags

Update

memorydb:UpdateCluster,
memorydb:DescribeClusters,
memorydb:ListTags,
memorydb:TagResource,
memorydb:UntagResource

Delete

memorydb:DeleteCluster,
memorydb:DescribeClusters