check_if_phone_number_is_opted_out¶
Operation¶
check_if_phone_number_is_opted_out
async
¶
check_if_phone_number_is_opted_out(input: CheckIfPhoneNumberIsOptedOutInput, plugins: list[Plugin] | None = None) -> CheckIfPhoneNumberIsOptedOutOutput
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CheckIfPhoneNumberIsOptedOutInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
CheckIfPhoneNumberIsOptedOutOutput
|
An instance of |