Skip to content

ListHealthEvents

Source: src/AWS/InternetMonitor/ListHealthEvents.ts

Runtime binding for internetmonitor:ListHealthEvents — list the health events Internet Monitor created for the bound Monitor; the monitor name is injected automatically.

Provide InternetMonitor.ListHealthEventsHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants internetmonitor:ListHealthEvents on the monitor
const listHealthEvents = yield* AWS.InternetMonitor.ListHealthEvents(monitor);
// runtime
const { HealthEvents } = yield* listHealthEvents({ EventStatus: "ACTIVE" });