Skip to main content

pages

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

Overview

Namepages
TypeResource
Idaws.ssm_contacts.pages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contact_arnstringThe ARN of the contact that was engaged. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):ssm-contacts:[-\w+=/,.@]:[0-9]+:([\w+=/,.@:-]+)</code>)
contentstringThe secure content of the message that was sent to the contact. Use this field for engagements to VOICE and EMAIL. (pattern: <code>^[.\s\S]*$</code>)
delivery_timestring (date-time)The time that the contact channel received the engagement.
engagement_arnstringThe ARN of the engagement that engaged the contact channel. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):ssm-contacts:[-\w+=/,.@]:[0-9]+:([\w+=/,.@:-]+)</code>)
incident_idstringThe ARN of the incident that engaged the contact channel. (pattern: <code>^[\a-zA-Z0-9_@#%+=:?./!\s-]$</code>)
page_arnstringThe Amazon Resource Name (ARN) of the engagement to a contact channel. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):ssm-contacts:[-\w+=/,.@]:[0-9]+:([\w+=/,.@:-]+)</code>)
public_contentstringThe insecure content of the message that was sent to the contact. Use this field for engagements to SMS. (pattern: <code>^[.\s\S]*$</code>)
public_subjectstringThe insecure subject of the message that was sent to the contact. Use this field for engagements to SMS. (pattern: <code>^[.\s\S]*$</code>)
read_timestring (date-time)The time that the contact channel acknowledged the engagement.
senderstringThe user that started the engagement. (pattern: <code>^[\a-zA-Z0-9_@#%+=:?./!\s-]$</code>)
sent_timestring (date-time)The time the engagement was sent to the contact channel.
subjectstringThe secure subject of the message that was sent to the contact. Use this field for engagements to VOICE and EMAIL. (pattern: <code>^[.\s\S]*$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_pageselectregionLists details of the engagement to a contact channel.
accept_pageexecregion, PageId, AcceptType, AcceptCodeUsed to acknowledge an engagement to a contact channel during an incident.

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

Lists details of the engagement to a contact channel.

SELECT
contact_arn,
content,
delivery_time,
engagement_arn,
incident_id,
page_arn,
public_content,
public_subject,
read_time,
sender,
sent_time,
subject
FROM aws.ssm_contacts.pages
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Used to acknowledge an engagement to a contact channel during an incident.

EXEC aws.ssm_contacts.pages.accept_page
@region='{{ region }}' --required
@@json=
'{
"PageId": "{{ PageId }}",
"ContactChannelId": "{{ ContactChannelId }}",
"AcceptType": "{{ AcceptType }}",
"Note": "{{ Note }}",
"AcceptCode": "{{ AcceptCode }}",
"AcceptCodeValidation": "{{ AcceptCodeValidation }}"
}'
;