Skip to content

GetMemberOfAddressList

Source: src/AWS/MailManager/GetMemberOfAddressList.ts

Runtime binding for ses:GetMemberOfAddressList.

Fetches a single member of the bound address list (address + registration timestamp), failing with ResourceNotFoundException when the address is not on the list. The address list id is injected from the binding. Provide the implementation with Effect.provide(AWS.MailManager.GetMemberOfAddressListHttp).

const getMember = yield* MailManager.GetMemberOfAddressList(blockList);
// runtime
const blocked = yield* getMember({ Address: sender }).pipe(
Effect.map(() => true),
Effect.catchTag("ResourceNotFoundException", () => Effect.succeed(false)),
);