Skip to content

DeleteOptedOutNumber

Source: src/AWS/PinpointSMSVoiceV2/DeleteOptedOutNumber.ts

Runtime binding for sms-voice:DeleteOptedOutNumber.

Removes a destination phone number from the bound opt-out list, opting the end user back in to receiving messages. Numbers that opted themselves out by replying with a keyword can only be removed once every 30 days. The deploy-time half grants sms-voice:DeleteOptedOutNumber on the list. Provide the implementation with Effect.provide(AWS.PinpointSMSVoiceV2.DeleteOptedOutNumberHttp).

// init
const deleteOptedOut =
yield* AWS.PinpointSMSVoiceV2.DeleteOptedOutNumber(optOuts);
// runtime
yield* deleteOptedOut({ OptedOutNumber: "+12065550100" });