Skip to content

RegisterMemberToAddressList

Source: src/AWS/MailManager/RegisterMemberToAddressList.ts

Runtime binding for ses:RegisterMemberToAddressList.

Adds an email address to the bound address list. The address list id is injected from the binding. Registering an already-present address succeeds (idempotent upsert). Provide the implementation with Effect.provide(AWS.MailManager.RegisterMemberToAddressListHttp).

// init — bind the operation to the address list
const registerMember = yield* MailManager.RegisterMemberToAddressList(blockList);
// runtime
yield* registerMember({ Address: "spammer@example.com" });