Skip to main content

timeline_events

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

Overview

Nametimeline_events
TypeResource
Idaws.ssm_incidents.timeline_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_datastringA short description of the event.
event_idstringThe ID of the timeline event.
event_referencesarrayA list of references in a TimelineEvent.
event_timestring (date-time)The timestamp for when the event occurred.
event_typestringThe type of event that occurred. Currently Incident Manager supports only the Custom Event and Note types.
event_updated_timestring (date-time)The timestamp for when the timeline event was last updated.
incident_record_arnstringThe Amazon Resource Name (ARN) of the incident that the event occurred during. (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-z0-9-]:[a-z0-9-]:([0-9]{12})?:.+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_timeline_eventselecteventId, incidentRecordArn, regionRetrieves a timeline event based on its ID and incident record.
list_timeline_eventsselectregionLists timeline events for the specified incident record.
create_timeline_eventinsertregion, eventData, eventTime, eventType, incidentRecordArnCreates a custom timeline event on the incident details page of an incident record. Incident Manager automatically creates timeline events that mark key moments during an incident. You can create custom timeline events to mark important events that Incident Manager can detect automatically.
update_timeline_eventupdateregion, eventId, incidentRecordArnUpdates a timeline event. You can update events of type Custom Event.
delete_timeline_eventdeleteregionDeletes a timeline event from 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
eventIdstringThe ID of the event. You can get an event's ID when you create it, or by using ListTimelineEvents.
incidentRecordArnstringThe Amazon Resource Name (ARN) of the incident that includes the timeline event.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a timeline event based on its ID and incident record.

SELECT
event_data,
event_id,
event_references,
event_time,
event_type,
event_updated_time,
incident_record_arn
FROM aws.ssm_incidents.timeline_events
WHERE eventId = '{{ eventId }}' -- required
AND incidentRecordArn = '{{ incidentRecordArn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a custom timeline event on the incident details page of an incident record. Incident Manager automatically creates timeline events that mark key moments during an incident. You can create custom timeline events to mark important events that Incident Manager can detect automatically.

INSERT INTO aws.ssm_incidents.timeline_events (
clientToken,
eventData,
eventReferences,
eventTime,
eventType,
incidentRecordArn,
region
)
SELECT
'{{ clientToken }}',
'{{ eventData }}' /* required */,
'{{ eventReferences }}',
'{{ eventTime }}' /* required */,
'{{ eventType }}' /* required */,
'{{ incidentRecordArn }}' /* required */,
'{{ region }}'
RETURNING
event_id,
incident_record_arn
;

UPDATE examples

Updates a timeline event. You can update events of type Custom Event.

UPDATE aws.ssm_incidents.timeline_events
SET
clientToken = '{{ clientToken }}',
eventData = '{{ eventData }}',
eventId = '{{ eventId }}',
eventReferences = '{{ eventReferences }}',
eventTime = '{{ eventTime }}',
eventType = '{{ eventType }}',
incidentRecordArn = '{{ incidentRecordArn }}'
WHERE
region = '{{ region }}' --required
AND eventId = '{{ eventId }}' --required
AND incidentRecordArn = '{{ incidentRecordArn }}' --required;

DELETE examples

Deletes a timeline event from an incident.

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