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 GetManagedNotificationChildEvent}.
7 */
8export interface GetManagedNotificationChildEventRequest
9 extends notifications.GetManagedNotificationChildEventRequest {}
10
11/**
12 * Runtime binding for `notifications:GetManagedNotificationChildEvent`.
13 *
14 * Fetch one child event of an aggregated AWS-managed notification (e.g. a
15 * single account/region item inside an aggregate AWS Health event) by its
16 * ARN. Provide the implementation with
17 * `Effect.provide(AWS.Notifications.GetManagedNotificationChildEventHttp)`.
18 * ### Reading AWS-Managed Notifications
19 * **Example:** Fetch a Managed Notification Child Event
20 * ```typescript
21 * // init — account-level binding takes no resource
22 * const getManagedNotificationChildEvent =
23 * yield* AWS.Notifications.GetManagedNotificationChildEvent();
24 *
25 * // runtime
26 * const child = yield* getManagedNotificationChildEvent({ arn: childArn });
27 * ```
28 *
29 * @binding
30 */
31export interface GetManagedNotificationChildEvent extends Binding.Service<
32 GetManagedNotificationChildEvent,
33 "AWS.Notifications.GetManagedNotificationChildEvent",
34 () => Effect.Effect<
35 (
36 request: GetManagedNotificationChildEventRequest,
37 ) => Effect.Effect<
38 notifications.GetManagedNotificationChildEventResponse,
39 notifications.GetManagedNotificationChildEventError
40 >
41 >
42> {}
43
44export const GetManagedNotificationChildEvent =
45 Binding.Service<GetManagedNotificationChildEvent>(
46 "AWS.Notifications.GetManagedNotificationChildEvent",
47 );