list_phone_numbers
¶
list_phone_numbers(
*,
config_overrides: Optional[ChimeClientConfig] = 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/chime.py
2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 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 | |