The best way to control Claude Code, Codex and more from any computer or phone

main
ts 39 lines 1.41 KB
Raw
1 import type * as sesv2 from "@distilled.cloud/aws/sesv2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 */
28 export interface GetSuppressedDestination extends Binding.Service<
29 GetSuppressedDestination,
30 "AWS.SES.GetSuppressedDestination",
31 () => Effect.Effect<
32 (
33 request: sesv2.GetSuppressedDestinationRequest,
34 ) => Effect.Effect<sesv2.GetSuppressedDestinationResponse, sesv2.GetSuppressedDestinationError>
35 >
36 > {}
37 export const GetSuppressedDestination = Binding.Service<GetSuppressedDestination>(
38 "AWS.SES.GetSuppressedDestination",
39 );