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
Idaws.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.

Methods

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

SELECT examples

Gets all replication_sets in a region.

SELECT
region,
arn,
regions,
deletion_protected,
tags
FROM aws.ssmincidents.replication_sets
WHERE region = 'us-east-1';

Gets all properties from an individual replication_set.

SELECT
region,
arn,
regions,
deletion_protected,
tags
FROM aws.ssmincidents.replication_sets
WHERE region = 'us-east-1' AND data__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 aws.ssmincidents.replication_sets (
Regions,
region
)
SELECT
'{{ Regions }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ssmincidents.replication_sets
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

ssm-incidents:ListReplicationSets,
ssm-incidents:GetReplicationSet,
ssm-incidents:ListTagsForResource

Update

ssm-incidents:UpdateReplicationSet,
ssm-incidents:UpdateDeletionProtection,
ssm-incidents:GetReplicationSet,
ssm-incidents:TagResource,
ssm-incidents:UntagResource,
ssm-incidents:ListTagsForResource

Delete

ssm-incidents:DeleteReplicationSet,
ssm-incidents:GetReplicationSet

List

ssm-incidents:ListReplicationSets