Accepts a phone number and indicates whether the phone holder has opted out of
receiving SMS messages from your Amazon Web Services account. You cannot send SMS messages to a number
that is opted out.
To resume sending messages, you can opt in the number by using the
OptInPhoneNumber action.
example
Use a bare-bones client and the command you need to make an API call.
Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your Amazon Web Services account. You cannot send SMS messages to a number that is opted out.
To resume sending messages, you can opt in the number by using the
OptInPhoneNumber
action.Use a bare-bones client and the command you need to make an API call.
import { SNSClient, CheckIfPhoneNumberIsOptedOutCommand } from "@aws-sdk/client-sns"; // ES Modules import // const { SNSClient, CheckIfPhoneNumberIsOptedOutCommand } = require("@aws-sdk/client-sns"); // CommonJS import const client = new SNSClient(config); const command = new CheckIfPhoneNumberIsOptedOutCommand(input); const response = await client.send(command);
CheckIfPhoneNumberIsOptedOutCommandInput for command's
input
shape.CheckIfPhoneNumberIsOptedOutCommandOutput for command's
response
shape.config for SNSClient's
config
shape.