replication_sets
Creates, updates, deletes or gets a replication_set resource or lists replication_sets in a region
Overview
| Name | replication_sets |
| Type | Resource |
| Description | Resource type definition for AWS::SSMIncidents::ReplicationSet |
| Id | awscc.ssmincidents.replication_sets |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the ReplicationSet. |
regions | array | The ReplicationSet configuration. |
deletion_protected | boolean | Configures the ReplicationSet deletion protection. |
tags | array | The tags to apply to the replication set. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the ReplicationSet. |
region | string | AWS region. |
For more information, see AWS::SSMIncidents::ReplicationSet.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | replication_sets | INSERT | Regions, region |
delete_resource | replication_sets | DELETE | Identifier, region |
update_resource | replication_sets | UPDATE | Identifier, PatchDocument, region |
list_resources | replication_sets_list_only | SELECT | region |
get_resource | replication_sets | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all replication_sets in a region.
SELECT
region,
arn
FROM awscc.ssmincidents.replication_sets_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new replication_set resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ssmincidents.replication_sets (
Regions,
region
)
SELECT
'{{ regions }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ssmincidents.replication_sets (
Regions,
DeletionProtected,
Tags,
region
)
SELECT
'{{ regions }}',
'{{ deletion_protected }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: replication_set
props:
- name: regions
value:
- region_name: '{{ region_name }}'
region_configuration:
sse_kms_key_id: '{{ sse_kms_key_id }}'
- name: deletion_protected
value: '{{ deletion_protected }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
ssm-incidents:CreateReplicationSet,
ssm-incidents:ListReplicationSets,
ssm-incidents:UpdateDeletionProtection,
ssm-incidents:GetReplicationSet,
ssm-incidents:TagResource,
ssm-incidents:ListTagsForResource,
iam:CreateServiceLinkedRole
ssm-incidents:ListReplicationSets,
ssm-incidents:GetReplicationSet,
ssm-incidents:ListTagsForResource
ssm-incidents:UpdateReplicationSet,
ssm-incidents:UpdateDeletionProtection,
ssm-incidents:GetReplicationSet,
ssm-incidents:TagResource,
ssm-incidents:UntagResource,
ssm-incidents:ListTagsForResource
ssm-incidents:DeleteReplicationSet,
ssm-incidents:GetReplicationSet
ssm-incidents:ListReplicationSets