list_sms_sandbox_phone_numbers
async
¶
list_sms_sandbox_phone_numbers(
*,
config_overrides: Optional[AsyncSNSClientConfig] = 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/async_sns.py
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 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 | |