list_phone_numbers
async
¶
list_phone_numbers(
*,
config_overrides: Optional[AsyncChimeClientConfig] = None,
status: Optional[PhoneNumberStatus] = None,
product_type: Optional[PhoneNumberProductType] = None,
filter_name: Optional[PhoneNumberAssociationName] = None,
filter_value: Optional[String] = None,
max_results: Optional[ResultMax] = None,
next_token: Optional[String] = None,
) -> ListPhoneNumbersResponse
Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group.
Parameters:
-
status(Optional[PhoneNumberStatus], default:None) –The phone number status.
-
product_type(Optional[PhoneNumberProductType], default:None) –The phone number product type.
-
filter_name(Optional[PhoneNumberAssociationName], default:None) –The filter to use to limit the number of results.
-
filter_value(Optional[String], default:None) –The value to use for the filter.
-
max_results(Optional[ResultMax], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
NotFoundException–One or more of the resources in the request does not exist in the system.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The client exceeded its request rate limit.
-
UnauthorizedClientException–The client is not currently authorized to make the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime/_services/async_chime.py
2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 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 2773 2774 2775 2776 | |