EmailContact
Source:
src/AWS/NotificationsContacts/EmailContact.ts
An AWS User Notifications Contacts email contact — an email address that can be attached to a notification configuration as a delivery channel.
Contacts are created in the unverified inactive state; activation is a
human email-confirmation loop (AWS emails the address a confirmation
link), so Alchemy provisions the contact and leaves activation to the
address owner. Contacts are immutable (no update API) — changing the
name or address replaces the contact; tags update in place.
Creating an Email Contact
Section titled “Creating an Email Contact”Basic email contact
import * as NotificationsContacts from "alchemy/AWS/NotificationsContacts";
const contact = yield* NotificationsContacts.EmailContact("OnCall", { emailAddress: "oncall@example.com",});// contact.status === "inactive" until the address owner confirmsNamed contact with tags
const contact = yield* NotificationsContacts.EmailContact("OnCall", { name: "platform-oncall", emailAddress: "oncall@example.com", tags: { team: "platform" },});