Skip to main content

multi_region_clusters

Creates, updates, deletes or gets a multi_region_cluster resource or lists multi_region_clusters in a region

Overview

Namemulti_region_clusters
TypeResource
DescriptionThe AWS::MemoryDB::Multi Region Cluster resource creates an Amazon MemoryDB Multi Region Cluster.
Idaws.memorydb.multi_region_clusters

Fields

NameDatatypeDescription
multi_region_cluster_name_suffixstringThe name of the Multi Region cluster. This value must be unique as it also serves as the multi region cluster identifier.
descriptionstringDescription of the multi region cluster.
multi_region_cluster_namestringThe name of the Global Datastore, it is generated by MemoryDB adding a prefix to MultiRegionClusterNameSuffix.
statusstringThe status of the multi region cluster. For example, Available, Updating, Creating.
node_typestringThe compute and memory capacity of the nodes in the multi region cluster.
num_shardsintegerThe number of shards the multi region cluster will contain.
multi_region_parameter_group_namestringThe name of the parameter group associated with the multi region cluster.
tls_enabledbooleanA flag that enables in-transit encryption when set to true.
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.
arnstringThe Amazon Resource Name (ARN) of the multi region cluster.
enginestringThe engine type used by the multi region cluster.
engine_versionstringThe Redis engine version used by the multi region cluster.
tagsarrayAn array of key-value pairs to apply to this multi region cluster.
update_strategystringAn enum string value that determines the update strategy for scaling. Possible values are 'COORDINATED' and 'UNCOORDINATED'. Default is 'COORDINATED'.
regionstringAWS region.

For more information, see AWS::MemoryDB::MultiRegionCluster.

Methods

NameAccessible byRequired Params
create_resourceINSERTNodeType, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all multi_region_clusters in a region.

SELECT
region,
multi_region_cluster_name_suffix,
description,
multi_region_cluster_name,
status,
node_type,
num_shards,
multi_region_parameter_group_name,
tls_enabled,
arn,
engine,
engine_version,
tags,
update_strategy
FROM aws.memorydb.multi_region_clusters
WHERE region = 'us-east-1';

Gets all properties from an individual multi_region_cluster.

SELECT
region,
multi_region_cluster_name_suffix,
description,
multi_region_cluster_name,
status,
node_type,
num_shards,
multi_region_parameter_group_name,
tls_enabled,
arn,
engine,
engine_version,
tags,
update_strategy
FROM aws.memorydb.multi_region_clusters
WHERE region = 'us-east-1' AND data__Identifier = '<MultiRegionClusterName>';

INSERT example

Use the following StackQL query and manifest file to create a new multi_region_cluster resource, using stack-deploy.

/*+ create */
INSERT INTO aws.memorydb.multi_region_clusters (
NodeType,
region
)
SELECT
'{{ NodeType }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.memorydb.multi_region_clusters
WHERE data__Identifier = '<MultiRegionClusterName>'
AND region = 'us-east-1';

Permissions

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

Create

memorydb:CreateMultiRegionCluster,
memorydb:DescribeMultiRegionClusters,
memorydb:TagResource,
memorydb:ListTags

Read

memorydb:DescribeMultiRegionClusters,
memorydb:ListTags

Update

memorydb:UpdateMultiRegionCluster,
memorydb:DescribeMultiRegionClusters,
memorydb:ListTags,
memorydb:TagResource,
memorydb:UntagResource

Delete

memorydb:DeleteMultiRegionCluster,
memorydb:DescribeMultiRegionClusters

List

memorydb:DescribeMultiRegionClusters