sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ FMS/ DeleteNotificationChannel.ts

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

/**
 * Request for {@link DeleteNotificationChannel}.
 */
export interface DeleteNotificationChannelRequest extends fms.DeleteNotificationChannelRequest {}

/**
 * Runtime binding for `fms:DeleteNotificationChannel`.
 *
 * Deletes the Firewall Manager association with the IAM role and SNS topic used to record SNS logs. Provide the
 * implementation with `Effect.provide(AWS.FMS.DeleteNotificationChannelHttp)`.
 * ### Notification Channel
 * **Example:** Delete the Notification Channel
 * ```typescript
 * // init — account-level binding takes no resource
 * const deleteNotificationChannel = yield* AWS.FMS.DeleteNotificationChannel();
 *
 * // runtime
 * yield* deleteNotificationChannel();
 * ```
 *
 * @binding
 */
export interface DeleteNotificationChannel extends Binding.Service<
  DeleteNotificationChannel,
  "AWS.FMS.DeleteNotificationChannel",
  () => Effect.Effect<
    (
      request?: DeleteNotificationChannelRequest,
    ) => Effect.Effect<fms.DeleteNotificationChannelResponse, fms.DeleteNotificationChannelError>
  >
> {}

export const DeleteNotificationChannel = Binding.Service<DeleteNotificationChannel>(
  "AWS.FMS.DeleteNotificationChannel",
);