Copyright | (c) 2013-2021 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 |
Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.
You can opt in a phone number only once every 30 days.
Synopsis
- data OptInPhoneNumber = OptInPhoneNumber' {
- phoneNumber :: Text
- newOptInPhoneNumber :: Text -> OptInPhoneNumber
- optInPhoneNumber_phoneNumber :: Lens' OptInPhoneNumber Text
- data OptInPhoneNumberResponse = OptInPhoneNumberResponse' {
- httpStatus :: Int
- newOptInPhoneNumberResponse :: Int -> OptInPhoneNumberResponse
- optInPhoneNumberResponse_httpStatus :: Lens' OptInPhoneNumberResponse Int
Creating a Request
data OptInPhoneNumber Source #
Input for the OptInPhoneNumber action.
See: newOptInPhoneNumber
smart constructor.
OptInPhoneNumber' | |
|
Instances
Create a value of OptInPhoneNumber
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:phoneNumber:OptInPhoneNumber'
, optInPhoneNumber_phoneNumber
- The phone number to opt in. Use E.164 format.
Request Lenses
optInPhoneNumber_phoneNumber :: Lens' OptInPhoneNumber Text Source #
The phone number to opt in. Use E.164 format.
Destructuring the Response
data OptInPhoneNumberResponse Source #
The response for the OptInPhoneNumber action.
See: newOptInPhoneNumberResponse
smart constructor.
OptInPhoneNumberResponse' | |
|
Instances
newOptInPhoneNumberResponse Source #
Create a value of OptInPhoneNumberResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:OptInPhoneNumberResponse'
, optInPhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
optInPhoneNumberResponse_httpStatus :: Lens' OptInPhoneNumberResponse Int Source #
The response's http status code.