Skip to main content

incident_records

Creates, updates, deletes, gets or lists an incident_records resource.

Overview

Nameincident_records
TypeResource
Idaws.ssm_incidents.incident_records

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the incident record. (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-z0-9-]:[a-z0-9-]:([0-9]{12})?:.+$</code>)
automation_executionsarrayThe runbook, or automation document, that's run at the beginning of the incident.
chat_channelobjectThe Chatbot chat channel used for collaboration during an incident.
creation_timestring (date-time)The timestamp for when Incident Manager created the incident record.
dedupe_stringstringThe string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the same account.
impactintegerThe impact of the incident on customers and applications. Supported impact codes 1 - Critical 2 - High 3 - Medium 4 - Low 5 - No Impact
incident_record_sourceobjectDetails about the action that started the incident.
last_modified_bystringWho modified the incident most recently. (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-z0-9-]:[a-z0-9-]:([0-9]{12})?:.+$</code>)
last_modified_timestring (date-time)The timestamp for when the incident was most recently modified.
notification_targetsarrayThe Amazon SNS targets that are notified when updates are made to an incident.
resolved_timestring (date-time)The timestamp for when the incident was resolved. This appears as a timeline event.
statusstringThe current status of the incident. (OPEN, RESOLVED)
summarystringThe summary of the incident. The summary is a brief synopsis of what occurred, what's currently happening, and context of the incident.
title_stringThe title of the incident.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_incident_recordselectarn, regionReturns the details for the specified incident record.
list_incident_recordsselectregionLists all incident records in your account. Use this command to retrieve the Amazon Resource Name (ARN) of the incident record you want to update.
update_incident_recordupdateregion, arnUpdate the details of an incident record. You can use this operation to update an incident record from the defined chat channel. For more information about using actions in chat channels, see Interacting through chat.
delete_incident_recorddeleteregionDelete an incident record from Incident Manager.

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

SELECT examples

Returns the details for the specified incident record.

SELECT
arn,
automation_executions,
chat_channel,
creation_time,
dedupe_string,
impact,
incident_record_source,
last_modified_by,
last_modified_time,
notification_targets,
resolved_time,
status,
summary,
title_
FROM aws.ssm_incidents.incident_records
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Update the details of an incident record. You can use this operation to update an incident record from the defined chat channel. For more information about using actions in chat channels, see Interacting through chat.

UPDATE aws.ssm_incidents.incident_records
SET
arn = '{{ arn }}',
chatChannel = '{{ chatChannel }}',
clientToken = '{{ clientToken }}',
impact = {{ impact }},
notificationTargets = '{{ notificationTargets }}',
status = '{{ status }}',
summary = '{{ summary }}',
title = '{{ title }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required;

DELETE examples

Delete an incident record from Incident Manager.

DELETE FROM aws.ssm_incidents.incident_records
WHERE region = '{{ region }}' --required
;