list_phone_numbers_v2
async
¶
list_phone_numbers_v2(
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
target_arn: Optional[ARN] = None,
instance_id: Optional[InstanceId] = None,
max_results: Optional[MaxResult1000] = None,
next_token: Optional[LargeNextToken] = None,
phone_number_country_codes: Optional[PhoneNumberCountryCodes] = None,
phone_number_types: Optional[PhoneNumberTypes] = None,
phone_number_prefix: Optional[PhoneNumberPrefix] = None,
) -> ListPhoneNumbersV2Response
Lists phone numbers claimed to your Connect Customer instance or traffic distribution group. If the provided TargetArn is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with traffic distribution group.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Connect Customer Administrator Guide.
-
When given an instance ARN,
ListPhoneNumbersV2returns only the phone numbers claimed to the instance. -
When given a traffic distribution group ARN
ListPhoneNumbersV2returns only the phone numbers claimed to the traffic distribution group.
Parameters:
-
target_arn(Optional[ARN], default:None) –The Amazon Resource Name (ARN) for Connect Customer instances or traffic distribution groups that phone number inbound traffic is routed through. If both
TargetArnandInstanceIdinput are not provided, this API lists numbers claimed to all the Connect Customer instances belonging to your account in the same Amazon Web Services Region as the request. -
instance_id(Optional[InstanceId], default:None) –The identifier of the Connect Customer instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. If both
TargetArnandInstanceIdare not provided, this API lists numbers claimed to all the Connect Customer instances belonging to your account in the same Amazon Web Services Region as the request. -
max_results(Optional[MaxResult1000], default:None) –The maximum number of results to return per page.
-
next_token(Optional[LargeNextToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
phone_number_country_codes(Optional[PhoneNumberCountryCodes], default:None) –The ISO country code.
-
phone_number_types(Optional[PhoneNumberTypes], default:None) –The type of phone number.
-
phone_number_prefix(Optional[PhoneNumberPrefix], default:None) –The prefix of the phone number. If provided, it must contain
+as part of the country code.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 | |