verify_sms_sandbox_phone_number
async
¶
verify_sms_sandbox_phone_number(
phone_number: PhoneNumberString,
one_time_password: OTPCode,
*,
config_overrides: Optional[AsyncSNSClientConfig] = 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/async_sns.py
2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 | |