Skip to content

GetEmailContact

Source: src/AWS/NotificationsContacts/GetEmailContact.ts

Runtime binding for notifications-contacts:GetEmailContact.

Read the bound email contact — most usefully its activation status, which flips from inactive to active once the address owner confirms the activation email. Provide the implementation with Effect.provide(AWS.NotificationsContacts.GetEmailContactHttp).

// init — bind the operation to the contact
const getContact = yield* AWS.NotificationsContacts.GetEmailContact(contact);
// runtime
const result = yield* getContact();
const isActive = result.emailContact.status === "active";