aws sns check-if-phone-number-is-opted-out
Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your Amazon Web Services account. AWS CLI reference
1 option Its page in the AWS CLI reference
Options
--phone-numberThe phone number for which you want to check the opt out status.