Skip to main content

rotations

Creates, updates, deletes or gets a rotation resource or lists rotations in a region

Overview

Namerotations
TypeResource
DescriptionResource Type definition for AWS::SSMContacts::Rotation.
Idaws.ssmcontacts.rotations

Fields

NameDatatypeDescription
namestringName of the Rotation
contact_idsarrayMembers of the rotation
start_timestringStart time of the first shift of Oncall Schedule
time_zone_idstringTimeZone Identifier for the Oncall Schedule
recurrenceobjectInformation about when an on-call rotation is in effect and how long the rotation period lasts.
tagsarray
arnstringThe Amazon Resource Name (ARN) of the rotation.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, ContactIds, StartTime, TimeZoneId, Recurrence, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all rotations in a region.

SELECT
region,
name,
contact_ids,
start_time,
time_zone_id,
recurrence,
tags,
arn
FROM aws.ssmcontacts.rotations
WHERE region = 'us-east-1';

Gets all properties from an individual rotation.

SELECT
region,
name,
contact_ids,
start_time,
time_zone_id,
recurrence,
tags,
arn
FROM aws.ssmcontacts.rotations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.ssmcontacts.rotations (
Name,
ContactIds,
StartTime,
TimeZoneId,
Recurrence,
region
)
SELECT
'{{ Name }}',
'{{ ContactIds }}',
'{{ StartTime }}',
'{{ TimeZoneId }}',
'{{ Recurrence }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

ssm-contacts:CreateRotation,
ssm-contacts:GetRotation,
ssm-contacts:TagResource,
ssm-contacts:ListTagsForResource,
ssm-contacts:UntagResource

Read

ssm-contacts:GetRotation,
ssm-contacts:TagResource,
ssm-contacts:ListTagsForResource,
ssm-contacts:UntagResource

Update

ssm-contacts:UpdateRotation,
ssm-contacts:GetRotation,
ssm-contacts:TagResource,
ssm-contacts:ListTagsForResource,
ssm-contacts:UntagResource

Delete

ssm-contacts:DeleteRotation,
ssm-contacts:GetRotation,
ssm-contacts:ListTagsForResource,
ssm-contacts:UntagResource

List

ssm-contacts:ListRotations,
ssm-contacts:GetRotation,
ssm-contacts:ListTagsForResource