Skip to main content

rotation_overrides

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

Overview

Namerotation_overrides
TypeResource
Idaws.ssm_contacts.rotation_overrides

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_timestring (date-time)The time a rotation override was created.
end_timestring (date-time)The time a rotation override ends.
new_contact_idsarrayThe Amazon Resource Names (ARNs) of the contacts assigned to the override of the on-call rotation.
rotation_override_idstringThe Amazon Resource Name (ARN) of the override to an on-call rotation. (pattern: <code>([a-fA-Z0-9]{8,11}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}){1}</code>)
start_timestring (date-time)The time a rotation override begins.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_rotation_overridesselectregionRetrieves a list of overrides currently specified for an on-call rotation.
get_rotation_overrideselectregionRetrieves information about an override to an on-call rotation.
create_rotation_overrideinsertregion, RotationId, NewContactIds, StartTime, EndTimeCreates an override for a rotation in an on-call schedule.
delete_rotation_overridedeleteregionDeletes an existing override for an on-call rotation.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list of overrides currently specified for an on-call rotation.

SELECT
create_time,
end_time,
new_contact_ids,
rotation_override_id,
start_time
FROM aws.ssm_contacts.rotation_overrides
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an override for a rotation in an on-call schedule.

INSERT INTO aws.ssm_contacts.rotation_overrides (
RotationId,
NewContactIds,
StartTime,
EndTime,
IdempotencyToken,
region
)
SELECT
'{{ RotationId }}' /* required */,
'{{ NewContactIds }}' /* required */,
'{{ StartTime }}' /* required */,
'{{ EndTime }}' /* required */,
'{{ IdempotencyToken }}',
'{{ region }}'
RETURNING
rotation_override_id
;

DELETE examples

Deletes an existing override for an on-call rotation.

DELETE FROM aws.ssm_contacts.rotation_overrides
WHERE region = '{{ region }}' --required
;