Skip to content

ListAlerts

Source: src/AWS/MediaLive/ListAlerts.ts

Runtime binding for medialive:ListAlerts.

Lists the bound Channel’s alerts — SET and CLEARED error conditions such as a lost input or a failed output (one page per call; pass NextToken from the previous response to continue). Filter with StateFilter: "SET" to see only active problems — e.g. a health-check Lambda that pages an operator while any alert is SET. The channel id is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaLive.ListAlertsHttp).

// init — bind the operation to the channel
const listAlerts = yield* AWS.MediaLive.ListAlerts(channel);
// runtime
const { Alerts } = yield* listAlerts({ StateFilter: "SET" });