| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.SNS.CheckIfPhoneNumberIsOptedOut
Description
Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your 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.
- checkIfPhoneNumberIsOptedOut :: Text -> CheckIfPhoneNumberIsOptedOut
- data CheckIfPhoneNumberIsOptedOut
- cipniooPhoneNumber :: Lens' CheckIfPhoneNumberIsOptedOut Text
- checkIfPhoneNumberIsOptedOutResponse :: Int -> CheckIfPhoneNumberIsOptedOutResponse
- data CheckIfPhoneNumberIsOptedOutResponse
- cipnioorsIsOptedOut :: Lens' CheckIfPhoneNumberIsOptedOutResponse (Maybe Bool)
- cipnioorsResponseStatus :: Lens' CheckIfPhoneNumberIsOptedOutResponse Int
Creating a Request
checkIfPhoneNumberIsOptedOut Source #
Arguments
| :: Text | |
| -> CheckIfPhoneNumberIsOptedOut |
Creates a value of CheckIfPhoneNumberIsOptedOut with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cipniooPhoneNumber- The phone number for which you want to check the opt out status.
data CheckIfPhoneNumberIsOptedOut Source #
The input for the CheckIfPhoneNumberIsOptedOut action.
See: checkIfPhoneNumberIsOptedOut smart constructor.
Instances
Request Lenses
cipniooPhoneNumber :: Lens' CheckIfPhoneNumberIsOptedOut Text Source #
The phone number for which you want to check the opt out status.
Destructuring the Response
checkIfPhoneNumberIsOptedOutResponse Source #
Creates a value of CheckIfPhoneNumberIsOptedOutResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cipnioorsIsOptedOut- Indicates whether the phone number is opted out: *true– The phone number is opted out, meaning you cannot publish SMS messages to it. *false– The phone number is opted in, meaning you can publish SMS messages to it.cipnioorsResponseStatus- -- | The response status code.
data CheckIfPhoneNumberIsOptedOutResponse Source #
The response from the CheckIfPhoneNumberIsOptedOut action.
See: checkIfPhoneNumberIsOptedOutResponse smart constructor.
Instances
Response Lenses
cipnioorsIsOptedOut :: Lens' CheckIfPhoneNumberIsOptedOutResponse (Maybe Bool) Source #
Indicates whether the phone number is opted out: * true – The phone number is opted out, meaning you cannot publish SMS messages to it. * false – The phone number is opted in, meaning you can publish SMS messages to it.
cipnioorsResponseStatus :: Lens' CheckIfPhoneNumberIsOptedOutResponse Int Source #
- - | The response status code.