Skip to main content

origination_numbers

Creates, updates, deletes, gets or lists an origination_numbers resource.

Overview​

Nameorigination_numbers
TypeResource
Idaws.sns.origination_numbers

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstringThe date and time when the phone number was created.
iso_2_country_codestringThe two-character code for the country or region, in ISO 3166-1 alpha-2 format.
number_capabilitiesstringThe capabilities of each phone number.
phone_numberstringThe phone number.
route_typestringThe list of supported routes.
statusstringThe status of the phone number.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_origination_numbersselectregionNextToken, MaxResultsLists the calling Amazon Web Services account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of origination numbers to return.
NextTokenstringToken that the previous ListOriginationNumbers request returns.

SELECT examples​

Lists the calling Amazon Web Services account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide.

SELECT
created_at,
iso_2_country_code,
number_capabilities,
phone_number,
route_type,
status
FROM aws.sns.origination_numbers
WHERE region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;