Skip to main content

replication_sets

Creates, updates, deletes or gets a replication_set resource or lists replication_sets in a region

Overview

Namereplication_sets
TypeResource
DescriptionResource type definition for AWS::SSMIncidents::ReplicationSet
Idawscc.ssmincidents.replication_sets

Fields

NameDatatypeDescription
arnstringThe ARN of the ReplicationSet.
regionsarrayThe ReplicationSet configuration.
deletion_protectedbooleanConfigures the ReplicationSet deletion protection.
tagsarrayThe tags to apply to the replication set.
regionstringAWS region.

For more information, see AWS::SSMIncidents::ReplicationSet.

Methods

NameResourceAccessible byRequired Params
create_resourcereplication_setsINSERTRegions, region
delete_resourcereplication_setsDELETEIdentifier, region
update_resourcereplication_setsUPDATEIdentifier, PatchDocument, region
list_resourcesreplication_sets_list_onlySELECTregion
get_resourcereplication_setsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual replication_set.

SELECT
region,
arn,
regions,
deletion_protected,
tags
FROM awscc.ssmincidents.replication_sets
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.ssmincidents.replication_sets (
Regions,
region
)
SELECT
'{{ regions }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.ssmincidents.replication_sets
SET PatchDocument = string('{{ {
"Regions": regions,
"DeletionProtected": deletion_protected,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ssmincidents.replication_sets
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

ssm-incidents:CreateReplicationSet,
ssm-incidents:ListReplicationSets,
ssm-incidents:UpdateDeletionProtection,
ssm-incidents:GetReplicationSet,
ssm-incidents:TagResource,
ssm-incidents:ListTagsForResource,
iam:CreateServiceLinkedRole