Chime / Client / list_supported_phone_number_countries

list_supported_phone_number_countries#

Chime.Client.list_supported_phone_number_countries(**kwargs)#

Lists supported phone number countries.

See also: AWS API Documentation

Request Syntax

response = client.list_supported_phone_number_countries(
    ProductType='BusinessCalling'|'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 country.

        • CountryCode (string) –

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

        • SupportedPhoneNumberTypes (list) –

          The supported phone number types.

          • (string) –

Exceptions

  • Chime.Client.exceptions.BadRequestException

  • Chime.Client.exceptions.ForbiddenException

  • Chime.Client.exceptions.AccessDeniedException

  • Chime.Client.exceptions.UnauthorizedClientException

  • Chime.Client.exceptions.ThrottledClientException

  • Chime.Client.exceptions.ServiceUnavailableException

  • Chime.Client.exceptions.ServiceFailureException