Skip to content

SendActivationCode

Source: src/AWS/SSMContacts/SendActivationCode.ts

Runtime binding for ssm-contacts:SendActivationCode.

Send (or re-send) the activation code to the bound contact channel’s address. The channel owner passes the code to ActivateContactChannel to confirm the channel. The channel’s ARN is injected as ContactChannelId. Provide the implementation with Effect.provide(AWS.SSMContacts.SendActivationCodeHttp).

const sendActivationCode = yield* AWS.SSMContacts.SendActivationCode(email);
// runtime — e.g. behind a "resend code" button
yield* sendActivationCode();