Skip to main content

clusters

Creates, updates, deletes or gets a cluster resource or lists clusters in a region

Overview

Nameclusters
TypeResource
DescriptionResource Type definition for AWS::DSQL::Cluster
Idawscc.dsql.clusters

Fields

NameDatatypeDescription
deletion_protection_enabledbooleanWhether deletion protection is enabled in this cluster.
tagsarray
resource_arnstringThe Amazon Resource Name (ARN) for the cluster.
identifierstringThe ID of the created cluster.
creation_timestringThe time of when the cluster was created in ISO-8601 format.
statusstringThe status of the cluster.
vpc_endpoint_service_namestringThe VPC endpoint service name.
multi_region_propertiesobjectThe Multi-region properties associated to this cluster.
kms_encryption_keystringThe KMS key that encrypts data on the cluster.
encryption_detailsobjectThe encryption configuration details for the cluster.
regionstringAWS region.

For more information, see AWS::DSQL::Cluster.

Methods

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

SELECT examples

Gets all properties from an individual cluster.

SELECT
region,
deletion_protection_enabled,
tags,
resource_arn,
identifier,
creation_time,
status,
vpc_endpoint_service_name,
multi_region_properties,
kms_encryption_key,
encryption_details
FROM awscc.dsql.clusters
WHERE region = 'us-east-1' AND data__Identifier = '<Identifier>';

INSERT example

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

/*+ create */
INSERT INTO awscc.dsql.clusters (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.dsql.clusters
WHERE data__Identifier = '<Identifier>'
AND region = 'us-east-1';

Permissions

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

Create

dsql:CreateCluster,
dsql:UpdateCluster,
dsql:GetCluster,
dsql:TagResource,
dsql:GetVpcEndpointServiceName,
dsql:ListTagsForResource,
iam:CreateServiceLinkedRole,
dsql:PutMultiRegionProperties,
dsql:AddPeerCluster,
dsql:PutWitnessRegion,
kms:Decrypt,
kms:Encrypt,
kms:GenerateDataKey,
kms:DescribeKey

Read

dsql:GetCluster,
dsql:GetVpcEndpointServiceName,
dsql:ListTagsForResource,
tag:GetTagKeys,
tag:GetTagValues

Update

dsql:UpdateCluster,
dsql:GetCluster,
dsql:UntagResource,
dsql:TagResource,
dsql:GetVpcEndpointServiceName,
dsql:ListTagsForResource,
dsql:PutMultiRegionProperties,
dsql:PutWitnessRegion,
dsql:AddPeerCluster,
dsql:RemovePeerCluster,
kms:Decrypt,
kms:Encrypt,
kms:GenerateDataKey,
kms:DescribeKey

Delete

dsql:DeleteCluster,
dsql:GetCluster,
dsql:ListTagsForResource

List

dsql:ListClusters,
dsql:ListTagsForResource,
tag:GetTagKeys,
tag:GetTagValues