Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.6 KB
Raw Blame
import type * as notifications from "@distilled.cloud/aws/notifications";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";

/**
 * Request for {@link GetManagedNotificationChildEvent}.
 */
export interface GetManagedNotificationChildEventRequest
  extends notifications.GetManagedNotificationChildEventRequest {}

/**
 * Runtime binding for `notifications:GetManagedNotificationChildEvent`.
 *
 * Fetch one child event of an aggregated AWS-managed notification (e.g. a
 * single account/region item inside an aggregate AWS Health event) by its
 * ARN. Provide the implementation with
 * `Effect.provide(AWS.Notifications.GetManagedNotificationChildEventHttp)`.
 * @binding
 * @section Reading AWS-Managed Notifications
 * @example Fetch a Managed Notification Child Event
 * ```typescript
 * // init — account-level binding takes no resource
 * const getManagedNotificationChildEvent =
 *   yield* AWS.Notifications.GetManagedNotificationChildEvent();
 *
 * // runtime
 * const child = yield* getManagedNotificationChildEvent({ arn: childArn });
 * ```
 */
export interface GetManagedNotificationChildEvent extends Binding.Service<
  GetManagedNotificationChildEvent,
  "AWS.Notifications.GetManagedNotificationChildEvent",
  () => Effect.Effect<
    (
      request: GetManagedNotificationChildEventRequest,
    ) => Effect.Effect<
      notifications.GetManagedNotificationChildEventResponse,
      notifications.GetManagedNotificationChildEventError
    >
  >
> {}

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