Skip to content

GetSuppressedDestination

Source: src/AWS/SES/GetSuppressedDestination.ts

Runtime binding for sesv2:GetSuppressedDestination.

Retrieves a specific address from the account-level suppression list — check whether (and why) an address is suppressed before attempting a send. 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.GetSuppressedDestinationHttp).

// init — account-level binding, no resource argument
const getSuppressed = yield* SES.GetSuppressedDestination();
// runtime
const { SuppressedDestination } = yield* getSuppressed({
EmailAddress: "bouncing@example.com",
});
// SuppressedDestination.Reason — "BOUNCE" | "COMPLAINT"