aws.connect.list_phone_numbers_v2
Example SQL Queries
SELECT * FROMaws.connect.list_phone_numbers_v2;Description
Lists phone numbers claimed to your Amazon Connect 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 Amazon Connect Administrator Guide.
When given an instance ARN, ListPhoneNumbersV2 returns only the phone numbers claimed to the instance.
When given a traffic distribution group ARN ListPhoneNumbersV2 returns only the phone numbers claimed to the traffic distribution group.
Table Definition
| Column Name | Column Data Type |
|---|---|
| instance_id Input Column The identifier of the Amazon Connect instance that phone numbers are claimed to. 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_prefix Input Column The prefix of the phone number. If provided, it must contain + as part of the country code. | VARCHAR |
| phone_number_types Input Column The type of phone number. | VARCHAR[] |
Show child fields
| |
| target_arn Input Column The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. | VARCHAR |
| _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 |
| phone_number The phone number. Phone numbers are formatted [+] [country code] [subscriber number including area code]. | VARCHAR |
| phone_number_arn The Amazon Resource Name (ARN) of the phone number. | VARCHAR |
| phone_number_country_code The ISO country code. | VARCHAR |
| phone_number_description The description of the phone number. | VARCHAR |
| phone_number_id A unique identifier for the phone number. | VARCHAR |
| phone_number_type The type of phone number. | VARCHAR |
| source_phone_number_arn The claimed phone number ARN that was previously imported from the external service, such as Amazon Pinpoint. If it is from Amazon Pinpoint, it looks like the ARN of the phone number that was imported from Amazon Pinpoint. | VARCHAR |