| 1 | import type * as sesv2 from "@distilled.cloud/aws/sesv2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 35 | sesv2.PutSuppressedDestinationResponse, |
| 36 | sesv2.PutSuppressedDestinationError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | export const PutSuppressedDestination = |
| 41 | Binding.Service<PutSuppressedDestination>("AWS.SES.PutSuppressedDestination"); |