/AWS1/IF_SNS=>VERIFYSMSSANDBOXPHONENUMBER()¶
About VerifySMSSandboxPhoneNumber¶
Verifies a destination phone number with a one-time password (OTP) for the calling Amazon Web Services account.
When you start using Amazon SNS to send SMS messages, your Amazon Web Services 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 Amazon Web Services 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.
Method Signature¶
METHODS /AWS1/IF_SNS~VERIFYSMSSANDBOXPHONENUMBER
  IMPORTING
    !IV_PHONENUMBER TYPE /AWS1/SNSPHONENUMBERSTRING OPTIONAL
    !IV_ONETIMEPASSWORD TYPE /AWS1/SNSOTPCODE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_snsverifysmssandbox01
  RAISING
    /AWS1/CX_SNSAUTHERROREXCEPTION
    /AWS1/CX_SNSINTERNALERROREX
    /AWS1/CX_SNSINVALIDPARAMETEREX
    /AWS1/CX_SNSRESOURCENOTFOUNDEX
    /AWS1/CX_SNSTHROTTLEDEXCEPTION
    /AWS1/CX_SNSVERIFICATIONEX
    /AWS1/CX_SNSCLIENTEXC
    /AWS1/CX_SNSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_phonenumber TYPE /AWS1/SNSPHONENUMBERSTRING /AWS1/SNSPHONENUMBERSTRING¶
The destination phone number to verify.
iv_onetimepassword TYPE /AWS1/SNSOTPCODE /AWS1/SNSOTPCODE¶
The OTP sent to the destination number from the
CreateSMSSandBoxPhoneNumbercall.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_snsverifysmssandbox01 /AWS1/CL_SNSVERIFYSMSSANDBOX01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC 
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->verifysmssandboxphonenumber(
  iv_onetimepassword = |string|
  iv_phonenumber = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.