AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ListPhoneNumbers operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Connect.AmazonConnectRequest
      Amazon.Connect.Model.ListPhoneNumbersRequest

Namespace: Amazon.Connect.Model
Assembly: AWSSDK.Connect.dll
Version: 3.x.y.z

Syntax

C#
public class ListPhoneNumbersRequest : AmazonConnectRequest
         IAmazonWebServiceRequest

The ListPhoneNumbersRequest type exposes the following members

Constructors

NameDescription
Public Method ListPhoneNumbersRequest()

Properties

NameTypeDescription
Public Property InstanceId System.String

Gets and sets the property InstanceId.

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of results to return per page. The default MaxResult size is 100.

Public Property NextToken System.String

Gets and sets the property NextToken.

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.

Public Property PhoneNumberCountryCodes System.Collections.Generic.List<System.String>

Gets and sets the property PhoneNumberCountryCodes.

The ISO country code.

Public Property PhoneNumberTypes System.Collections.Generic.List<System.String>

Gets and sets the property PhoneNumberTypes.

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.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5