Skip to content

GetNotificationEvent

Source: src/AWS/Notifications/GetNotificationEvent.ts

Runtime binding for notifications:GetNotificationEvent.

Fetch one notification event (headline, message components, source event metadata) by its ARN. Provide the implementation with Effect.provide(AWS.Notifications.GetNotificationEventHttp).

// init — account-level binding takes no resource
const getNotificationEvent = yield* AWS.Notifications.GetNotificationEvent();
// runtime
const event = yield* getNotificationEvent({ arn: eventArn });
const headline = event.content.messageComponents.headline;