Skip to content

Commit e45b880

Browse files
author
AWS
committed
AWS Outposts Update: This release adds a new API CreateOrder.
1 parent 1452b6f commit e45b880

File tree

2 files changed

+213
-3
lines changed

2 files changed

+213
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Outposts",
4+
"contributor": "",
5+
"description": "This release adds a new API CreateOrder."
6+
}

services/outposts/src/main/resources/codegen-resources/service-2.json

Lines changed: 207 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@
1313
"uid":"outposts-2019-12-03"
1414
},
1515
"operations":{
16+
"CreateOrder":{
17+
"name":"CreateOrder",
18+
"http":{
19+
"method":"POST",
20+
"requestUri":"/orders"
21+
},
22+
"input":{"shape":"CreateOrderInput"},
23+
"output":{"shape":"CreateOrderOutput"},
24+
"errors":[
25+
{"shape":"ValidationException"},
26+
{"shape":"ConflictException"},
27+
{"shape":"AccessDeniedException"},
28+
{"shape":"NotFoundException"},
29+
{"shape":"InternalServerException"},
30+
{"shape":"ServiceQuotaExceededException"}
31+
],
32+
"documentation":"<p>Creates an order for an Outpost.</p>"
33+
},
1634
"CreateOutpost":{
1735
"name":"CreateOutpost",
1836
"http":{
@@ -238,6 +256,41 @@
238256
"error":{"httpStatusCode":409},
239257
"exception":true
240258
},
259+
"CreateOrderInput":{
260+
"type":"structure",
261+
"required":[
262+
"OutpostIdentifier",
263+
"LineItems",
264+
"PaymentOption"
265+
],
266+
"members":{
267+
"OutpostIdentifier":{
268+
"shape":"OutpostIdentifier",
269+
"documentation":"<p> The ID or the Amazon Resource Name (ARN) of the Outpost. </p>"
270+
},
271+
"LineItems":{
272+
"shape":"LineItemRequestListDefinition",
273+
"documentation":"<p>The line items that make up the order.</p>"
274+
},
275+
"PaymentOption":{
276+
"shape":"PaymentOption",
277+
"documentation":"<p>The payment option for the order.</p>"
278+
},
279+
"PaymentTerm":{
280+
"shape":"PaymentTerm",
281+
"documentation":"<p>The payment terms for the order.</p>"
282+
}
283+
}
284+
},
285+
"CreateOrderOutput":{
286+
"type":"structure",
287+
"members":{
288+
"Order":{
289+
"shape":"Order",
290+
"documentation":"<p>Information about this order.</p>"
291+
}
292+
}
293+
},
241294
"CreateOutpostInput":{
242295
"type":"structure",
243296
"required":[
@@ -268,6 +321,7 @@
268321
"members":{
269322
"OutpostId":{
270323
"shape":"OutpostId",
324+
"documentation":"<p> The ID of the Outpost. </p>",
271325
"location":"uri",
272326
"locationName":"OutpostId"
273327
}
@@ -306,6 +360,7 @@
306360
"members":{
307361
"OutpostId":{
308362
"shape":"OutpostId",
363+
"documentation":"<p> The ID of the Outpost. </p>",
309364
"location":"uri",
310365
"locationName":"OutpostId"
311366
}
@@ -317,6 +372,7 @@
317372
"members":{
318373
"OutpostId":{
319374
"shape":"OutpostId",
375+
"documentation":"<p> The ID of the Outpost. </p>",
320376
"location":"uri",
321377
"locationName":"OutpostId"
322378
},
@@ -337,7 +393,10 @@
337393
"members":{
338394
"InstanceTypes":{"shape":"InstanceTypeListDefinition"},
339395
"NextToken":{"shape":"Token"},
340-
"OutpostId":{"shape":"OutpostId"},
396+
"OutpostId":{
397+
"shape":"OutpostId",
398+
"documentation":"<p> The ID of the Outpost. </p>"
399+
},
341400
"OutpostArn":{"shape":"OutpostArn"}
342401
}
343402
},
@@ -347,6 +406,7 @@
347406
"Outpost":{"shape":"Outpost"}
348407
}
349408
},
409+
"ISO8601Timestamp":{"type":"timestamp"},
350410
"InstanceType":{
351411
"type":"string",
352412
"documentation":"<p>The instance type.</p>"
@@ -385,6 +445,61 @@
385445
"max":5,
386446
"min":1
387447
},
448+
"LineItem":{
449+
"type":"structure",
450+
"members":{
451+
"CatalogItemId":{
452+
"shape":"SkuCode",
453+
"documentation":"<p> The ID of the catalog item. </p>"
454+
},
455+
"LineItemId":{
456+
"shape":"LineItemId",
457+
"documentation":"<p>The ID of the line item.</p>"
458+
},
459+
"Quantity":{
460+
"shape":"LineItemQuantity",
461+
"documentation":"<p>The quantity of the line item.</p>"
462+
},
463+
"Status":{
464+
"shape":"Status",
465+
"documentation":"<p>The status of the line item.</p>"
466+
}
467+
},
468+
"documentation":"<p>Information about a line item.</p>"
469+
},
470+
"LineItemId":{
471+
"type":"string",
472+
"pattern":"ooi-[a-f0-9]{17}"
473+
},
474+
"LineItemListDefinition":{
475+
"type":"list",
476+
"member":{"shape":"LineItem"}
477+
},
478+
"LineItemQuantity":{
479+
"type":"integer",
480+
"max":20,
481+
"min":1
482+
},
483+
"LineItemRequest":{
484+
"type":"structure",
485+
"members":{
486+
"CatalogItemId":{
487+
"shape":"SkuCode",
488+
"documentation":"<p>The ID of the catalog item.</p>"
489+
},
490+
"Quantity":{
491+
"shape":"LineItemQuantity",
492+
"documentation":"<p>The quantity of a line item request.</p>"
493+
}
494+
},
495+
"documentation":"<p>Information about a line item request.</p>"
496+
},
497+
"LineItemRequestListDefinition":{
498+
"type":"list",
499+
"member":{"shape":"LineItemRequest"},
500+
"max":20,
501+
"min":1
502+
},
388503
"ListOutpostsInput":{
389504
"type":"structure",
390505
"members":{
@@ -484,10 +599,64 @@
484599
"error":{"httpStatusCode":404},
485600
"exception":true
486601
},
602+
"Order":{
603+
"type":"structure",
604+
"members":{
605+
"OutpostId":{
606+
"shape":"OutpostIdOnly",
607+
"documentation":"<p> The ID of the Outpost. </p>"
608+
},
609+
"OrderId":{
610+
"shape":"OrderId",
611+
"documentation":"<p>The ID of the order.</p>"
612+
},
613+
"Status":{
614+
"shape":"OrderStatus",
615+
"documentation":"<p>The status of the order</p>"
616+
},
617+
"LineItems":{
618+
"shape":"LineItemListDefinition",
619+
"documentation":"<p>The line items for the order</p>"
620+
},
621+
"PaymentOption":{
622+
"shape":"PaymentOption",
623+
"documentation":"<p>The payment option for the order.</p>"
624+
},
625+
"OrderSubmissionDate":{
626+
"shape":"ISO8601Timestamp",
627+
"documentation":"<p>The submission date for the order.</p>"
628+
},
629+
"OrderFulfilledDate":{
630+
"shape":"ISO8601Timestamp",
631+
"documentation":"<p>The fulfillment date of the order.</p>"
632+
}
633+
},
634+
"documentation":"<p>Information about an order.</p>"
635+
},
636+
"OrderId":{
637+
"type":"string",
638+
"max":20,
639+
"min":1,
640+
"pattern":"oo-[a-f0-9]{17}$"
641+
},
642+
"OrderStatus":{
643+
"type":"string",
644+
"enum":[
645+
"RECEIVED",
646+
"PENDING",
647+
"PROCESSING",
648+
"INSTALLING",
649+
"FULFILLED",
650+
"CANCELLED"
651+
]
652+
},
487653
"Outpost":{
488654
"type":"structure",
489655
"members":{
490-
"OutpostId":{"shape":"OutpostId"},
656+
"OutpostId":{
657+
"shape":"OutpostId",
658+
"documentation":"<p> The ID of the Outpost. </p>"
659+
},
491660
"OwnerId":{"shape":"OwnerId"},
492661
"OutpostArn":{"shape":"OutpostArn"},
493662
"SiteId":{"shape":"SiteId"},
@@ -520,7 +689,18 @@
520689
},
521690
"OutpostId":{
522691
"type":"string",
523-
"documentation":"<p>The ID of the Outpost.</p>",
692+
"max":180,
693+
"min":1,
694+
"pattern":"^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$"
695+
},
696+
"OutpostIdOnly":{
697+
"type":"string",
698+
"max":20,
699+
"min":1,
700+
"pattern":"^op-[a-f0-9]{17}$"
701+
},
702+
"OutpostIdentifier":{
703+
"type":"string",
524704
"max":180,
525705
"min":1,
526706
"pattern":"^(arn:aws([a-z-]+)?:outposts:[a-z\\d-]+:\\d{12}:outpost/)?op-[a-f0-9]{17}$"
@@ -539,6 +719,18 @@
539719
"min":12,
540720
"pattern":"\\d{12}"
541721
},
722+
"PaymentOption":{
723+
"type":"string",
724+
"enum":[
725+
"ALL_UPFRONT",
726+
"NO_UPFRONT",
727+
"PARTIAL_UPFRONT"
728+
]
729+
},
730+
"PaymentTerm":{
731+
"type":"string",
732+
"enum":["THREE_YEARS"]
733+
},
542734
"ResourceType":{
543735
"type":"string",
544736
"enum":["OUTPOST"]
@@ -595,6 +787,18 @@
595787
"min":1,
596788
"pattern":"^[\\S ]+$"
597789
},
790+
"SkuCode":{
791+
"type":"string",
792+
"max":10,
793+
"min":1,
794+
"pattern":"OR-[A-Z0-9]{7}"
795+
},
796+
"Status":{
797+
"type":"string",
798+
"max":1000,
799+
"min":1,
800+
"pattern":"^[\\S ]+$"
801+
},
598802
"String":{
599803
"type":"string",
600804
"max":1000,

0 commit comments

Comments
 (0)