Skip to content

ActivateEmailContact

Source: src/AWS/NotificationsContacts/ActivateEmailContact.ts

Runtime binding for notifications-contacts:ActivateEmailContact.

Activate the bound email contact with the activation code the address owner received (see SendActivationCode) — e.g. from a confirmation form in your app. Provide the implementation with Effect.provide(AWS.NotificationsContacts.ActivateEmailContactHttp).

// init — bind the operation to the contact
const activate = yield* AWS.NotificationsContacts.ActivateEmailContact(contact);
// runtime — the user pasted the code from the activation email
yield* activate({ code: Redacted.make(userSuppliedCode) });