Skip to content

GetInternetEvent

Source: src/AWS/InternetMonitor/GetInternetEvent.ts

Runtime binding for internetmonitor:GetInternetEvent — read the detail (impacted client location, start/end time, type, status) of one global internet event from the outages map Internet Monitor publishes for all AWS customers. Internet events are account-level; no monitor is required.

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

// init — grants internetmonitor:GetInternetEvent
const getInternetEvent = yield* AWS.InternetMonitor.GetInternetEvent();
// runtime
const event = yield* getInternetEvent({ EventId: eventId });
const location = event.ClientLocation;