Skip to main content

replication_sets

Creates, updates, deletes, gets or lists a replication_sets resource.

Overview

Namereplication_sets
TypeResource
Idaws.ssm_incidents.replication_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the replication set. (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-z0-9-]:[a-z0-9-]:([0-9]{12})?:.+$</code>)
created_bystringDetails about who created the replication set. (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-z0-9-]:[a-z0-9-]:([0-9]{12})?:.+$</code>)
created_timestring (date-time)When the replication set was created.
deletion_protectedbooleanDetermines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you can't delete the last Amazon Web Services Region in the replication set.
last_modified_bystringWho last modified the replication set. (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-z0-9-]:[a-z0-9-]:([0-9]{12})?:.+$</code>)
last_modified_timestring (date-time)When the replication set was last updated.
region_mapobjectThe map between each Amazon Web Services Region in your replication set and the KMS key that's used to encrypt the data in that Region.
statusstringThe status of the replication set. If the replication set is still pending, you can't use Incident Manager functionality. (ACTIVE, CREATING, UPDATING, DELETING, FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_replication_setselectarn, regionRetrieve your Incident Manager replication set.
list_replication_setsselectregionLists details about the replication set configured in your account.
create_replication_setinsertregion, regionsA replication set replicates and encrypts your data to the provided Regions with the provided KMS key.
update_replication_setupdateregion, actions, arnAdd or delete Regions from your replication set.
delete_replication_setdeletearn, regionDeletes all Regions in your replication set. Deleting the replication set deletes all Incident Manager data.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the replication set you're deleting.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieve your Incident Manager replication set.

SELECT
arn,
created_by,
created_time,
deletion_protected,
last_modified_by,
last_modified_time,
region_map,
status
FROM aws.ssm_incidents.replication_sets
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

A replication set replicates and encrypts your data to the provided Regions with the provided KMS key.

INSERT INTO aws.ssm_incidents.replication_sets (
clientToken,
regions,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ regions }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
arn
;

UPDATE examples

Add or delete Regions from your replication set.

UPDATE aws.ssm_incidents.replication_sets
SET
actions = '{{ actions }}',
arn = '{{ arn }}',
clientToken = '{{ clientToken }}'
WHERE
region = '{{ region }}' --required
AND actions = '{{ actions }}' --required
AND arn = '{{ arn }}' --required;

DELETE examples

Deletes all Regions in your replication set. Deleting the replication set deletes all Incident Manager data.

DELETE FROM aws.ssm_incidents.replication_sets
WHERE arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
;