list_sms_sandbox_phone_numbers
¶
list_sms_sandbox_phone_numbers(
*,
config_overrides: Optional[SNSClientConfig] = None,
next_token: Optional[nextToken] = None,
max_results: Optional[MaxItems] = None,
) -> ListSMSSandboxPhoneNumbersResult
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 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:
-
next_token(Optional[nextToken], default:None) –Token that the previous
ListSMSSandboxPhoneNumbersInputrequest returns. -
max_results(Optional[MaxItems], default:None) –The maximum number of phone numbers to return.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sns/_services/sns.py
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 | |