1import type * as sesv2 from "@distilled.cloud/aws/sesv2";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `sesv2:GetSuppressedDestination`.
7 *
8 * Retrieves a specific address from the account-level suppression list —
9 * check whether (and why) an address is suppressed before attempting a
10 * send. Fails with the typed `NotFoundException` tag when the address is
11 * not on the list. Account-level operation. Provide the implementation with
12 * `Effect.provide(AWS.SES.GetSuppressedDestinationHttp)`.
13 * ### Suppression List
14 * **Example:** Look Up a Suppressed Address
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const getSuppressed = yield* SES.GetSuppressedDestination();
18 *
19 * // runtime
20 * const { SuppressedDestination } = yield* getSuppressed({
21 * EmailAddress: "bouncing@example.com",
22 * });
23 * // SuppressedDestination.Reason — "BOUNCE" | "COMPLAINT"
24 * ```
25 *
26 * @binding
27 */
28export interface GetSuppressedDestination extends Binding.Service<
29 GetSuppressedDestination,
30 "AWS.SES.GetSuppressedDestination",
31 () => Effect.Effect<
32 (
33 request: sesv2.GetSuppressedDestinationRequest,
34 ) => Effect.Effect<
35 sesv2.GetSuppressedDestinationResponse,
36 sesv2.GetSuppressedDestinationError
37 >
38 >
39> {}
40export const GetSuppressedDestination =
41 Binding.Service<GetSuppressedDestination>("AWS.SES.GetSuppressedDestination");