Skip to content

CheckIfPhoneNumberIsOptedOut

Source: src/AWS/SNS/CheckIfPhoneNumberIsOptedOut.ts

Runtime binding for sns:CheckIfPhoneNumberIsOptedOut.

An account-scoped operation — reports whether SMS delivery to a phone number is blocked because its owner opted out. Provide the CheckIfPhoneNumberIsOptedOutHttp layer on the Function to implement the binding.

const checkOptOut = yield* SNS.CheckIfPhoneNumberIsOptedOut();
const { isOptedOut } = yield* checkOptOut({ phoneNumber: "+15555550123" });