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.
Idawscc.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_enabledboolean
A 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

NameResourceAccessible byRequired Params
create_resourcemulti_region_clustersINSERTNodeType, region
delete_resourcemulti_region_clustersDELETEIdentifier, region
update_resourcemulti_region_clustersUPDATEIdentifier, PatchDocument, region
list_resourcesmulti_region_clusters_list_onlySELECTregion
get_resourcemulti_region_clustersSELECTIdentifier, region

SELECT examples

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 awscc.memorydb.multi_region_clusters
WHERE
region = '{{ region }}' AND
Identifier = '{{ multi_region_cluster_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.memorydb.multi_region_clusters (
NodeType,
region
)
SELECT
'{{ node_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.memorydb.multi_region_clusters
SET PatchDocument = string('{{ {
"Description": description,
"NodeType": node_type,
"NumShards": num_shards,
"Engine": engine,
"Tags": tags,
"UpdateStrategy": update_strategy
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ multi_region_cluster_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.memorydb.multi_region_clusters
WHERE
Identifier = '{{ multi_region_cluster_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

memorydb:CreateMultiRegionCluster,
memorydb:DescribeMultiRegionClusters,
memorydb:TagResource,
memorydb:ListTags,
iam:CreateServiceLinkedRole