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 |
Adds a destination phone number to an account in the SMS sandbox and sends a one-time password (OTP) to that phone number.
When you start using Amazon SNS to send SMS messages, your account is in the SMS sandbox. The SMS sandbox provides a safe environment for you to try Amazon SNS features without risking your reputation as an SMS sender. While your account is in the SMS sandbox, you can use all of the features of Amazon SNS. However, you can send SMS messages only to verified destination phone numbers. For more information, including how to move out of the sandbox to send messages without restrictions, see SMS sandbox in the Amazon SNS Developer Guide.
Synopsis
- data CreateSMSSandboxPhoneNumber = CreateSMSSandboxPhoneNumber' {}
- newCreateSMSSandboxPhoneNumber :: Text -> CreateSMSSandboxPhoneNumber
- createSMSSandboxPhoneNumber_languageCode :: Lens' CreateSMSSandboxPhoneNumber (Maybe LanguageCodeString)
- createSMSSandboxPhoneNumber_phoneNumber :: Lens' CreateSMSSandboxPhoneNumber Text
- data CreateSMSSandboxPhoneNumberResponse = CreateSMSSandboxPhoneNumberResponse' {
- httpStatus :: Int
- newCreateSMSSandboxPhoneNumberResponse :: Int -> CreateSMSSandboxPhoneNumberResponse
- createSMSSandboxPhoneNumberResponse_httpStatus :: Lens' CreateSMSSandboxPhoneNumberResponse Int
Creating a Request
data CreateSMSSandboxPhoneNumber Source #
See: newCreateSMSSandboxPhoneNumber
smart constructor.
CreateSMSSandboxPhoneNumber' | |
|
Instances
newCreateSMSSandboxPhoneNumber Source #
Create a value of CreateSMSSandboxPhoneNumber
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:languageCode:CreateSMSSandboxPhoneNumber'
, createSMSSandboxPhoneNumber_languageCode
- The language to use for sending the OTP. The default value is en-US
.
$sel:phoneNumber:CreateSMSSandboxPhoneNumber'
, createSMSSandboxPhoneNumber_phoneNumber
- The destination phone number to verify. On verification, Amazon SNS adds
this phone number to the list of verified phone numbers that you can
send SMS messages to.
Request Lenses
createSMSSandboxPhoneNumber_languageCode :: Lens' CreateSMSSandboxPhoneNumber (Maybe LanguageCodeString) Source #
The language to use for sending the OTP. The default value is en-US
.
createSMSSandboxPhoneNumber_phoneNumber :: Lens' CreateSMSSandboxPhoneNumber Text Source #
The destination phone number to verify. On verification, Amazon SNS adds this phone number to the list of verified phone numbers that you can send SMS messages to.
Destructuring the Response
data CreateSMSSandboxPhoneNumberResponse Source #
See: newCreateSMSSandboxPhoneNumberResponse
smart constructor.
CreateSMSSandboxPhoneNumberResponse' | |
|
Instances
Eq CreateSMSSandboxPhoneNumberResponse Source # | |
Read CreateSMSSandboxPhoneNumberResponse Source # | |
Show CreateSMSSandboxPhoneNumberResponse Source # | |
Generic CreateSMSSandboxPhoneNumberResponse Source # | |
NFData CreateSMSSandboxPhoneNumberResponse Source # | |
Defined in Amazonka.SNS.CreateSMSSandboxPhoneNumber rnf :: CreateSMSSandboxPhoneNumberResponse -> () # | |
type Rep CreateSMSSandboxPhoneNumberResponse Source # | |
Defined in Amazonka.SNS.CreateSMSSandboxPhoneNumber type Rep CreateSMSSandboxPhoneNumberResponse = D1 ('MetaData "CreateSMSSandboxPhoneNumberResponse" "Amazonka.SNS.CreateSMSSandboxPhoneNumber" "libZSservicesZSamazonka-snsZSamazonka-sns" 'False) (C1 ('MetaCons "CreateSMSSandboxPhoneNumberResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateSMSSandboxPhoneNumberResponse Source #
Create a value of CreateSMSSandboxPhoneNumberResponse
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:CreateSMSSandboxPhoneNumberResponse'
, createSMSSandboxPhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
createSMSSandboxPhoneNumberResponse_httpStatus :: Lens' CreateSMSSandboxPhoneNumberResponse Int Source #
The response's http status code.