SNSClient.create_sms_sandbox_phone_number
rboto-sns==0.4.0 · Service index · Types
Model summary (excerpt): Adds a destination phone number to an Amazon Web Services 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 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...
Install and imports
from rboto import SNSClient
from rboto_sns.types import (
CreateSMSSandboxPhoneNumberOutput,
LanguageCodeString,
)
Signature
async def create_sms_sandbox_phone_number(
*,
phone_number: str,
language_code: LanguageCodeString | None = None,
) -> CreateSMSSandboxPhoneNumberOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
phone_number |
Yes | 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. |
language_code |
No | The language to use for sending the OTP. The default value is en-US . |
Output
CreateSMSSandboxPhoneNumberOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CreateSMSSandboxPhoneNumberOutput, LanguageCodeString
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_sns.exceptions:
AuthorizationError, InternalError, InvalidParameterError, OptedOutError, ThrottledError, UserError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.