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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.ssmincidents.replication_sets
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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