1import type * as notifications from "@distilled.cloud/aws/notifications";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Request for {@link GetManagedNotificationEvent}.
7 */
8export interface GetManagedNotificationEventRequest
9 extends notifications.GetManagedNotificationEventRequest {}
10
11/**
12 * Runtime binding for `notifications:GetManagedNotificationEvent`.
13 *
14 * Fetch one AWS-managed notification event (AWS Health security,
15 * operations, billing and issue notifications) by its ARN. Provide the
16 * implementation with
17 * `Effect.provide(AWS.Notifications.GetManagedNotificationEventHttp)`.
18 * ### Reading AWS-Managed Notifications
19 * **Example:** Fetch a Managed Notification Event
20 * ```typescript
21 * // init — account-level binding takes no resource
22 * const getManagedNotificationEvent =
23 * yield* AWS.Notifications.GetManagedNotificationEvent();
24 *
25 * // runtime
26 * const event = yield* getManagedNotificationEvent({ arn: eventArn });
27 * const headline = event.content.messageComponents.headline;
28 * ```
29 *
30 * @binding
31 */
32export interface GetManagedNotificationEvent extends Binding.Service<
33 GetManagedNotificationEvent,
34 "AWS.Notifications.GetManagedNotificationEvent",
35 () => Effect.Effect<
36 (
37 request: GetManagedNotificationEventRequest,
38 ) => Effect.Effect<
39 notifications.GetManagedNotificationEventResponse,
40 notifications.GetManagedNotificationEventError
41 >
42 >
43> {}
44
45export const GetManagedNotificationEvent =
46 Binding.Service<GetManagedNotificationEvent>(
47 "AWS.Notifications.GetManagedNotificationEvent",
48 );