Skip to content

ListNotificationEvents

Source: src/AWS/Notifications/ListNotificationEvents.ts

Runtime binding for notifications:ListNotificationEvents.

List the account’s notification events, optionally filtered by time range, EventBridge source, or aggregate parent event. Provide the implementation with Effect.provide(AWS.Notifications.ListNotificationEventsHttp).

// init — account-level binding takes no resource
const listNotificationEvents = yield* AWS.Notifications.ListNotificationEvents();
// runtime
const result = yield* listNotificationEvents({ source: "aws.s3" });
const headlines = result.notificationEvents.map(
(e) => e.notificationEvent.messageComponents.headline,
);