Skip to content

SNSClient.list_sms_sandbox_phone_numbers

rboto-sns==0.4.0 · Service index · Types

Model summary (excerpt): Lists the calling Amazon Web Services account's current verified and pending destination phone numbers in the SMS sandbox. 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...

Install and imports

python -m pip install "rboto[sns]==0.4.0"
from rboto import SNSClient
from rboto_sns.types import (
    ListSMSSandboxPhoneNumbersOutput,
)

Signature

async def list_sms_sandbox_phone_numbers(
    *,
    next_token: str | None = None,
    max_results: int | None = None,
) -> ListSMSSandboxPhoneNumbersOutput: ...

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)
next_token No Token that the previous ListSMSSandboxPhoneNumbersInput request returns.
max_results No The maximum number of phone numbers to return.

Output

ListSMSSandboxPhoneNumbersOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
phone_numbers list[SmsSandboxPhoneNumber] Always present SmsSandboxPhoneNumber
next_token str | None Always present —

| 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.

ListSMSSandboxPhoneNumbersOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_sms_sandbox_phone_numbers(...) accepts the same arguments and returns AsyncIterator[ListSMSSandboxPhoneNumbersOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_sns.exceptions:

AuthorizationError, InternalError, InvalidParameterError, ResourceNotFoundError, ThrottledError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model