aws.connect.list_phone_numbers
Example SQL Queries
SELECT * FROMaws.connect.list_phone_numbersWHERE"instance_id" = 'VALUE';Description
Provides information about the phone numbers for the specified Amazon Connect instance.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.
We recommend using ListPhoneNumbersV2 to return phone number types. ListPhoneNumbers doesn't support number types UIFN, SHARED, THIRD_PARTY_TF, and THIRD_PARTY_DID. While it returns numbers of those types, it incorrectly lists them as TOLL_FREE or DID.
The phone number Arn value that is returned from each of the items in the PhoneNumberSummaryList cannot be used to tag phone number resources. It will fail with a ResourceNotFoundException. Instead, use the ListPhoneNumbersV2 API. It returns the new phone number ARN that can be used to tag phone number resources.
Table Definition
| Column Name | Column Data Type |
|---|---|
| instance_id Required Input Column The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. | VARCHAR |
| phone_number_country_codes Input Column The ISO country code. | VARCHAR[] |
Show child fields
| |
| phone_number_types Input Column The type of phone number. We recommend using ListPhoneNumbersV2 to return phone number types. While ListPhoneNumbers returns number types UIFN, SHARED, THIRD_PARTY_TF, and THIRD_PARTY_DID, it incorrectly lists them as TOLL_FREE or DID. | VARCHAR[] |
Show child fields
| |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| arn The Amazon Resource Name (ARN) of the phone number. | VARCHAR |
| id The identifier of the phone number. | VARCHAR |
| phone_number The phone number. | VARCHAR |
| phone_number_country_code The ISO country code. | VARCHAR |
| phone_number_type The type of phone number. | VARCHAR |