origination_numbers
Creates, updates, deletes, gets or lists an origination_numbers resource.
Overview
| Name | origination_numbers |
| Type | Resource |
| Id | aws.sns.origination_numbers |
Fields
The following fields are returned by SELECT queries:
- list_origination_numbers
| Name | Datatype | Description |
|---|---|---|
created_at | string | The date and time when the phone number was created. |
iso_2_country_code | string | The two-character code for the country or region, in ISO 3166-1 alpha-2 format. |
number_capabilities | string | The capabilities of each phone number. |
phone_number | string | The phone number. |
route_type | string | The list of supported routes. |
status | string | The status of the phone number. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_origination_numbers | select | region | NextToken, MaxResults | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
MaxResults | integer | The maximum number of origination numbers to return. |
NextToken | string | Token that the previous ListOriginationNumbers request returns. |
SELECT examples
- list_origination_numbers
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 }}'
;