@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 39 lines 1.31 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:PutSuppressedDestination`.
7 *
8 * Adds an email address to the account-level suppression list — the
9 * data-plane half of bounce/complaint handling: consume feedback events and
10 * suppress the offending address so SES never attempts it again.
11 * Account-level operation. Provide the implementation with
12 * `Effect.provide(AWS.SES.PutSuppressedDestinationHttp)`.
13 * ### Suppression List
14 * **Example:** Suppress a Hard-Bouncing Address
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const suppress = yield* SES.PutSuppressedDestination();
18 *
19 * // runtime
20 * yield* suppress({
21 * EmailAddress: "bouncing@example.com",
22 * Reason: "BOUNCE",
23 * });
24 * ```
25 *
26 * @binding
27 */
28 export interface PutSuppressedDestination extends Binding.Service<
29 PutSuppressedDestination,
30 "AWS.SES.PutSuppressedDestination",
31 () => Effect.Effect<
32 (
33 request: sesv2.PutSuppressedDestinationRequest,
34 ) => Effect.Effect<sesv2.PutSuppressedDestinationResponse, sesv2.PutSuppressedDestinationError>
35 >
36 > {}
37 export const PutSuppressedDestination = Binding.Service<PutSuppressedDestination>(
38 "AWS.SES.PutSuppressedDestination",
39 );