Skip to content

ListManagedNotificationEvents

Source: src/AWS/Notifications/ListManagedNotificationEvents.ts

Runtime binding for notifications:ListManagedNotificationEvents.

List the account’s AWS-managed notification events (AWS Health security, operations, billing and issue notifications), optionally filtered by time range, source, or related account. Provide the implementation with Effect.provide(AWS.Notifications.ListManagedNotificationEventsHttp).

// init — account-level binding takes no resource
const listManagedNotificationEvents =
yield* AWS.Notifications.ListManagedNotificationEvents();
// runtime
const result = yield* listManagedNotificationEvents({
startTime: new Date(Date.now() - 7 * 24 * 3600 * 1000),
});
const count = result.managedNotificationEvents.length;