list_phone_numbers
¶
list_phone_numbers(
*,
config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
status: Optional[String] = 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 SDK account, Amazon Chime SDK user, Amazon Chime SDK Voice Connector, or Amazon Chime SDK Voice Connector group.
Parameters:
-
status(Optional[String], default:None) –The status of your organization's phone numbers.
-
product_type(Optional[PhoneNumberProductType], default:None) –The phone number product types.
-
filter_name(Optional[PhoneNumberAssociationName], default:None) –The filter to limit the number of results.
-
filter_value(Optional[String], default:None) –The filter value.
-
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 used to return 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–The requested resource couldn't be found.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/chime_sdk_voice.py
3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 | |