Skip to content

ListIncidentRecords

Source: src/AWS/SSMIncidents/ListIncidentRecords.ts

Runtime binding for ssm-incidents:ListIncidentRecords.

Lists the incident records in the account — the incidents started from any response plan. Incident records are runtime entities (their ARNs embed the response-plan name and a UUID that only exist once an incident starts), so the deploy-time grant is account-level (Resource: "*"). Provide the implementation with Effect.provide(AWS.SSMIncidents.ListIncidentRecordsHttp).

// init
const listIncidentRecords = yield* AWS.SSMIncidents.ListIncidentRecords();
// runtime
const { incidentRecordSummaries } = yield* listIncidentRecords({
filters: [{ key: "status", condition: { equals: { stringValues: ["OPEN"] } } }],
});