verify_sms_sandbox_phone_number
¶
verify_sms_sandbox_phone_number(
phone_number: PhoneNumberString,
one_time_password: OTPCode,
*,
config_overrides: Optional[SNSClientConfig] = None,
) -> VerifySMSSandboxPhoneNumberResult
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.
Parameters:
-
phone_number(PhoneNumberString) –The destination phone number to verify.
-
one_time_password(OTPCode) –The OTP sent to the destination number from the
CreateSMSSandBoxPhoneNumbercall.
Raises:
-
AuthorizationErrorException–Indicates that the user has been denied access to the requested resource.
-
InternalErrorException–Indicates an internal service error.
-
InvalidParameterException–Indicates that a request parameter does not comply with the associated constraints.
-
ResourceNotFoundException–Can’t perform the action on the specified resource. Make sure that the resource exists.
-
ThrottledException–Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account.
-
VerificationException–Indicates that the one-time password (OTP) used for verification is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sns/_services/sns.py
2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 | |