sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Notifications/ ListManagedNotificationChildEvents.ts

import type * as notifications from "@distilled.cloud/aws/notifications";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Request for {@link ListManagedNotificationChildEvents}.
 */
export interface ListManagedNotificationChildEventsRequest
  extends notifications.ListManagedNotificationChildEventsRequest {}

/**
 * Runtime binding for `notifications:ListManagedNotificationChildEvents`.
 *
 * List the child events of one aggregated AWS-managed notification event.
 * Provide the implementation with
 * `Effect.provide(AWS.Notifications.ListManagedNotificationChildEventsHttp)`.
 * ### Reading AWS-Managed Notifications
 * **Example:** List an Aggregate Event's Children
 * ```typescript
 * // init — account-level binding takes no resource
 * const listManagedNotificationChildEvents =
 *   yield* AWS.Notifications.ListManagedNotificationChildEvents();
 *
 * // runtime
 * const result = yield* listManagedNotificationChildEvents({
 *   aggregateManagedNotificationEventArn: aggregateArn,
 * });
 * const children = result.managedNotificationChildEvents;
 * ```
 *
 * @binding
 */
export interface ListManagedNotificationChildEvents extends Binding.Service<
  ListManagedNotificationChildEvents,
  "AWS.Notifications.ListManagedNotificationChildEvents",
  () => Effect.Effect<
    (
      request: ListManagedNotificationChildEventsRequest,
    ) => Effect.Effect<
      notifications.ListManagedNotificationChildEventsResponse,
      notifications.ListManagedNotificationChildEventsError
    >
  >
> {}

export const ListManagedNotificationChildEvents =
  Binding.Service<ListManagedNotificationChildEvents>(
    "AWS.Notifications.ListManagedNotificationChildEvents",
  );