Amazon SNS CheckIfPhoneNumberIsOptedOut checks whether a number has opted out of SMS from your AWS account. It is not a verdict that the number is invalid across every service.

| isOptedOut | Meaning |
|---|---|
| true | You cannot publish SMS to this opted-out number |
| false | This opt-out check permits sending; delivery is not guaranteed |
Query the correct phoneNumber with an authorized account. Keep authorization, parameter or throttling errors distinct from a returned opt-out status instead of converting a failed query into a default boolean.
Respect the recipient's choice and use only an authorized, documented follow-up process. Switching sending accounts to evade rejection is not a fix. A false result still leaves other sending and delivery checks unresolved.
References: Amazon SNS SMS: Check Account-Specific Opt-Out Status — official documentation.
