list_phone_numbers
¶
list_phone_numbers(
instance_id: InstanceId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
phone_number_types: Optional[PhoneNumberTypes] = None,
phone_number_country_codes: Optional[PhoneNumberCountryCodes] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResult1000] = None,
) -> ListPhoneNumbersResponse
Provides information about the phone numbers for the specified Connect Customer instance.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Connect Customer Administrator Guide.
-
We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers doesn't support number types
UIFN,SHARED,THIRD_PARTY_TF, andTHIRD_PARTY_DID. While it returns numbers of those types, it incorrectly lists them asTOLL_FREEorDID. -
The phone number
Arnvalue that is returned from each of the items in the PhoneNumberSummaryList cannot be used to tag phone number resources. It will fail with aResourceNotFoundException. Instead, use the ListPhoneNumbersV2 API. It returns the new phone number ARN that can be used to tag phone number resources.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
phone_number_types(Optional[PhoneNumberTypes], default:None) –The type of phone number.
We recommend using ListPhoneNumbersV2 to return phone number types. While ListPhoneNumbers returns number types
UIFN,SHARED,THIRD_PARTY_TF, andTHIRD_PARTY_DID, it incorrectly lists them asTOLL_FREEorDID. -
phone_number_country_codes(Optional[PhoneNumberCountryCodes], default:None) –The ISO country code.
-
next_token(Optional[NextToken], 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.
-
max_results(Optional[MaxResult1000], default:None) –The maximum number of results to return per page. The default MaxResult size is 100.
Raises:
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is 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/connect.py
16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 | |