Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idaws.route53_recovery_control_config.clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cluster_arnstringThe Amazon Resource Name (ARN) of the cluster. (pattern: <code>^[A-Za-z0-9:/_-]*$</code>)
cluster_endpointsarrayEndpoints for a cluster. Specify one of these endpoints when you want to set or retrieve a routing control state in the cluster. To get or update the routing control state, see the Amazon Route 53 Application Recovery Controller Routing Control Actions.
namestringThe name of the cluster. (pattern: <code>^\S+$</code>)
network_typestringThe network type of a cluster. NetworkType can be one of the following: IPV4: Cluster endpoints support IPv4 only. DUALSTACK: Cluster endpoints support both IPv4 and IPv6. (IPV4, DUALSTACK)
ownerstringThe Amazon Web Services account ID of the cluster owner. (pattern: <code>^\d{12}$</code>)
statusstringDeployment status of a resource. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION. (PENDING, DEPLOYED, PENDING_DELETION)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_clusterselectcluster_arn, regionDisplay the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).
list_clustersselectregionMaxResults, NextTokenReturns an array of all the clusters in an account.
create_clusterinsertregion, ClusterNameCreate a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the cluster data plane.
update_clusterupdateregion, ClusterArn, NetworkTypeUpdates an existing cluster. You can only update the network type of a cluster.
delete_clusterdeletecluster_arn, regionDelete a cluster.

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
cluster_arnstringThe Amazon Resource Name (ARN) of the cluster that you're deleting.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe number of objects that you want to return with this call.
NextTokenstringThe token that identifies which batch of results you want to see.

SELECT examples

Display the details about a cluster. The response includes the cluster name, endpoints, status, and Amazon Resource Name (ARN).

SELECT
cluster_arn,
cluster_endpoints,
name,
network_type,
owner,
status
FROM aws.route53_recovery_control_config.clusters
WHERE cluster_arn = '{{ cluster_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new cluster. A cluster is a set of redundant Regional endpoints against which you can run API calls to update or get the state of one or more routing controls. Each cluster has a name, status, Amazon Resource Name (ARN), and an array of the five cluster endpoints (one for each supported Amazon Web Services Region) that you can use with API calls to the cluster data plane.

INSERT INTO aws.route53_recovery_control_config.clusters (
ClientToken,
ClusterName,
Tags,
NetworkType,
region
)
SELECT
'{{ ClientToken }}',
'{{ ClusterName }}' /* required */,
'{{ Tags }}',
'{{ NetworkType }}',
'{{ region }}'
RETURNING
cluster
;

UPDATE examples

Updates an existing cluster. You can only update the network type of a cluster.

UPDATE aws.route53_recovery_control_config.clusters
SET
ClusterArn = '{{ ClusterArn }}',
NetworkType = '{{ NetworkType }}'
WHERE
region = '{{ region }}' --required
AND ClusterArn = '{{ ClusterArn }}' --required
AND NetworkType = '{{ NetworkType }}' --required
RETURNING
cluster;

DELETE examples

Delete a cluster.

DELETE FROM aws.route53_recovery_control_config.clusters
WHERE cluster_arn = '{{ cluster_arn }}' --required
AND region = '{{ region }}' --required
;