Skip to content

SendActivationCode

Source: src/AWS/NotificationsContacts/SendActivationCode.ts

Runtime binding for notifications-contacts:SendActivationCode.

Send (or re-send) the activation email to the bound contact’s address. The email contains the activation code the address owner uses to confirm the contact (directly via the emailed link, or through your app via ActivateEmailContact). Provide the implementation with Effect.provide(AWS.NotificationsContacts.SendActivationCodeHttp).

// init — bind the operation to the contact
const sendActivationCode =
yield* AWS.NotificationsContacts.SendActivationCode(contact);
// runtime — e.g. behind a "resend confirmation email" button
yield* sendActivationCode();