phone_number_orders
Creates, updates, deletes, gets or lists a phone_number_orders resource.
Overview
| Name | phone_number_orders |
| Type | Resource |
| Id | aws.chime_sdk_voice.phone_number_orders |
Fields
The following fields are returned by SELECT queries:
- get_phone_number_order
- list_phone_number_orders
| Name | Datatype | Description |
|---|---|---|
created_timestamp | string (date-time) | The phone number order creation time stamp, in ISO 8601 format. |
foc_date | string | The Firm Order Commitment (FOC) date for phone number porting orders. This field is null if a phone number order is not a porting order. |
order_type | string | The type of phone number being ordered, local or toll-free. (New, Porting) |
ordered_phone_numbers | array | The ordered phone number details, such as the phone number in E.164 format and the phone number status. |
phone_number_order_id | string | The ID of the phone order. (pattern: <code>[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}</code>) |
product_type | string | The phone number order product type. (VoiceConnector, SipMediaApplicationDialIn) |
status | string | The status of the phone number order. (Processing, Successful, Failed, Partial, PendingDocuments, Submitted, FOC, ChangeRequested, Exception, CancelRequested, Cancelled) |
updated_timestamp | string (date-time) | The updated phone number order time stamp, in ISO 8601 format. |
| Name | Datatype | Description |
|---|---|---|
next_token | string | The token used to retrieve the next page of results. |
phone_number_orders | array | The phone number order details. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_phone_number_order | select | phone_number_order_id, region | Retrieves details for the specified phone number order, such as the order creation timestamp, phone numbers in E.164 format, product type, and order status. | |
list_phone_number_orders | select | region | next-token, max-results | Lists the phone numbers for an administrator's Amazon Chime SDK account. |
create_phone_number_order | insert | region, ProductType, E164PhoneNumbers | Creates an order for phone numbers to be provisioned. For numbers outside the U.S., you must use the Amazon Chime SDK SIP media application dial-in product type. |
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 |
|---|---|---|
phone_number_order_id | string | The ID of the phone number order . |
region | string | AWS region (default: us-east-1) |
max-results | integer | The maximum number of results to return in a single call. |
next-token | string | The token used to retrieve the next page of results. |
SELECT examples
- get_phone_number_order
- list_phone_number_orders
Retrieves details for the specified phone number order, such as the order creation timestamp, phone numbers in E.164 format, product type, and order status.
SELECT
created_timestamp,
foc_date,
order_type,
ordered_phone_numbers,
phone_number_order_id,
product_type,
status,
updated_timestamp
FROM aws.chime_sdk_voice.phone_number_orders
WHERE phone_number_order_id = '{{ phone_number_order_id }}' -- required
AND region = '{{ region }}' -- required
;
Lists the phone numbers for an administrator's Amazon Chime SDK account.
SELECT
next_token,
phone_number_orders
FROM aws.chime_sdk_voice.phone_number_orders
WHERE region = '{{ region }}' -- required
AND `next-token` = '{{ next-token }}'
AND `max-results` = '{{ max-results }}'
;
INSERT examples
- create_phone_number_order
- Manifest
Creates an order for phone numbers to be provisioned. For numbers outside the U.S., you must use the Amazon Chime SDK SIP media application dial-in product type.
INSERT INTO aws.chime_sdk_voice.phone_number_orders (
ProductType,
E164PhoneNumbers,
Name,
region
)
SELECT
'{{ ProductType }}' /* required */,
'{{ E164PhoneNumbers }}' /* required */,
'{{ Name }}',
'{{ region }}'
RETURNING
phone_number_order
;
# Description fields are for documentation purposes
- name: phone_number_orders
props:
- name: region
value: "{{ region }}"
description: Required parameter for the phone_number_orders resource.
- name: ProductType
value: "{{ ProductType }}"
valid_values: ['VoiceConnector', 'SipMediaApplicationDialIn']
- name: E164PhoneNumbers
value:
- "{{ E164PhoneNumbers }}"
- name: Name
value: "{{ Name }}"