ChimeSDKVoice / Client / list_supported_phone_number_countries

list_supported_phone_number_countries#

ChimeSDKVoice.Client.list_supported_phone_number_countries(**kwargs)#

Lists the countries that you can order phone numbers from.

See also: AWS API Documentation

Request Syntax

response = client.list_supported_phone_number_countries(
    ProductType='VoiceConnector'|'SipMediaApplicationDialIn'
)
Parameters:

ProductType (string) –

[REQUIRED]

The phone number product type.

Return type:

dict

Returns:

Response Syntax

{
    'PhoneNumberCountries': [
        {
            'CountryCode': 'string',
            'SupportedPhoneNumberTypes': [
                'Local'|'TollFree',
            ]
        },
    ]
}

Response Structure

  • (dict) –

    • PhoneNumberCountries (list) –

      The supported phone number countries.

      • (dict) –

        The phone number’s country.

        • CountryCode (string) –

          The phone number country code. Format: ISO 3166-1 alpha-2.

        • SupportedPhoneNumberTypes (list) –

          The supported phone number types.

          • (string) –

Exceptions