Skip to main content

orders

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

Overview

Nameorders
TypeResource
Idaws.outposts.orders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
line_itemsarrayThe line items for the order
order_fulfilled_datestring (date-time)The fulfillment date of the order.
order_idstringThe ID of the order. (pattern: <code>oo-[a-f0-9]{17}$</code>)
order_submission_datestring (date-time)The submission date for the order.
order_typestringThe type of order. (OUTPOST, REPLACEMENT)
outpost_idstringThe ID of the Outpost in the order. (pattern: <code>^op-[a-f0-9]{17}$</code>)
payment_optionstringThe payment option for the order. (ALL_UPFRONT, NO_UPFRONT, PARTIAL_UPFRONT)
payment_termstringThe payment term. (THREE_YEARS, ONE_YEAR, FIVE_YEARS)
quote_identifierstringThe ID of the quote associated with the order. (pattern: <code>^(arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:quote/)?oq-[a-f0-9]{17}$</code>)
quote_option_identifierstringThe ID of the quote option associated with the order. (pattern: <code>^oqo-[a-f0-9]{17}$</code>)
statusstringThe status of the order. PREPARING - Order is received and being prepared. IN_PROGRESS - Order is either being built or shipped. To get more details, see the line item status. DELIVERED - Order was delivered to the Outpost site. COMPLETED - Order is complete. CANCELLED - Order is cancelled. ERROR - Customer should contact support. The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED. (RECEIVED, PENDING, PROCESSING, INSTALLING, FULFILLED, CANCELLED, PREPARING, IN_PROGRESS, DELIVERED, COMPLETED, ERROR)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_orderselectorder_id, regionGets information about the specified order.
list_ordersselectregionOutpostIdentifierFilter, NextToken, MaxResultsLists the Outpost orders for your Amazon Web Services account.
create_orderinsertregion, OutpostIdentifier, PaymentOptionCreates an order for an Outpost.
cancel_orderexecorder_id, regionCancels the specified order for an Outpost.

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
order_idstringThe ID of the order.
regionstringAWS region (default: us-east-1)
MaxResultsinteger
NextTokenstring
OutpostIdentifierFilterstringThe ID or the Amazon Resource Name (ARN) of the Outpost.

SELECT examples

Gets information about the specified order.

SELECT
line_items,
order_fulfilled_date,
order_id,
order_submission_date,
order_type,
outpost_id,
payment_option,
payment_term,
quote_identifier,
quote_option_identifier,
status
FROM aws.outposts.orders
WHERE order_id = '{{ order_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an order for an Outpost.

INSERT INTO aws.outposts.orders (
OutpostIdentifier,
QuoteIdentifier,
QuoteOptionIdentifier,
LineItems,
PaymentOption,
PaymentTerm,
region
)
SELECT
'{{ OutpostIdentifier }}' /* required */,
'{{ QuoteIdentifier }}',
'{{ QuoteOptionIdentifier }}',
'{{ LineItems }}',
'{{ PaymentOption }}' /* required */,
'{{ PaymentTerm }}',
'{{ region }}'
RETURNING
order
;

Lifecycle Methods

Cancels the specified order for an Outpost.

EXEC aws.outposts.orders.cancel_order
@order_id='{{ order_id }}' --required,
@region='{{ region }}' --required
;