list_phone_numbers
async
¶
list_phone_numbers(
*,
config_overrides: Optional[AsyncChimeSDKVoiceClientConfig] = 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/async_chime_sdk_voice.py
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 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 | |