sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ SES/ DeleteSuppressedDestination.ts

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

/**
 * Runtime binding for `sesv2:DeleteSuppressedDestination`.
 *
 * Removes an email address from the account-level suppression list — e.g.
 * after a recipient re-subscribes or a bounce is resolved. Fails with the
 * typed `NotFoundException` tag when the address is not on the list.
 * Account-level operation. Provide the implementation with
 * `Effect.provide(AWS.SES.DeleteSuppressedDestinationHttp)`.
 * ### Suppression List
 * **Example:** Unsuppress an Address
 * ```typescript
 * // init — account-level binding, no resource argument
 * const unsuppress = yield* SES.DeleteSuppressedDestination();
 *
 * // runtime
 * yield* unsuppress({ EmailAddress: "resubscribed@example.com" }).pipe(
 *   Effect.catchTag("NotFoundException", () => Effect.void),
 * );
 * ```
 *
 * @binding
 */
export interface DeleteSuppressedDestination extends Binding.Service<
  DeleteSuppressedDestination,
  "AWS.SES.DeleteSuppressedDestination",
  () => Effect.Effect<
    (
      request: sesv2.DeleteSuppressedDestinationRequest,
    ) => Effect.Effect<
      sesv2.DeleteSuppressedDestinationResponse,
      sesv2.DeleteSuppressedDestinationError
    >
  >
> {}
export const DeleteSuppressedDestination = Binding.Service<DeleteSuppressedDestination>(
  "AWS.SES.DeleteSuppressedDestination",
);