@aws-sdk/client-outposts 3.554.0 → 3.556.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +302 -1
  3. package/dist-es/Outposts.js +10 -0
  4. package/dist-es/commands/CancelCapacityTaskCommand.js +24 -0
  5. package/dist-es/commands/GetCapacityTaskCommand.js +24 -0
  6. package/dist-es/commands/GetOutpostSupportedInstanceTypesCommand.js +24 -0
  7. package/dist-es/commands/ListCapacityTasksCommand.js +24 -0
  8. package/dist-es/commands/StartCapacityTaskCommand.js +24 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +11 -0
  11. package/dist-es/pagination/GetOutpostSupportedInstanceTypesPaginator.js +4 -0
  12. package/dist-es/pagination/ListCapacityTasksPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +2 -0
  14. package/dist-es/protocols/Aws_restJson1.js +175 -1
  15. package/dist-types/Outposts.d.ts +36 -0
  16. package/dist-types/OutpostsClient.d.ts +7 -2
  17. package/dist-types/commands/CancelCapacityTaskCommand.d.ts +73 -0
  18. package/dist-types/commands/CreateOrderCommand.d.ts +1 -1
  19. package/dist-types/commands/GetCapacityTaskCommand.d.ts +89 -0
  20. package/dist-types/commands/GetOrderCommand.d.ts +1 -1
  21. package/dist-types/commands/GetOutpostSupportedInstanceTypesCommand.d.ts +82 -0
  22. package/dist-types/commands/ListCapacityTasksCommand.d.ts +90 -0
  23. package/dist-types/commands/StartCapacityTaskCommand.d.ts +99 -0
  24. package/dist-types/commands/index.d.ts +5 -0
  25. package/dist-types/models/models_0.d.ts +381 -8
  26. package/dist-types/pagination/GetOutpostSupportedInstanceTypesPaginator.d.ts +7 -0
  27. package/dist-types/pagination/ListCapacityTasksPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +2 -0
  29. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  30. package/dist-types/ts3.4/Outposts.d.ts +86 -0
  31. package/dist-types/ts3.4/OutpostsClient.d.ts +30 -0
  32. package/dist-types/ts3.4/commands/CancelCapacityTaskCommand.d.ts +39 -0
  33. package/dist-types/ts3.4/commands/GetCapacityTaskCommand.d.ts +38 -0
  34. package/dist-types/ts3.4/commands/GetOutpostSupportedInstanceTypesCommand.d.ts +39 -0
  35. package/dist-types/ts3.4/commands/ListCapacityTasksCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/StartCapacityTaskCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +94 -3
  39. package/dist-types/ts3.4/pagination/GetOutpostSupportedInstanceTypesPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/ListCapacityTasksPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  43. package/package.json +4 -4
package/README.md CHANGED
@@ -207,6 +207,14 @@ see LICENSE for more information.
207
207
 
208
208
  ## Client Commands (Operations List)
209
209
 
210
+ <details>
211
+ <summary>
212
+ CancelCapacityTask
213
+ </summary>
214
+
215
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/CancelCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/CancelCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/CancelCapacityTaskCommandOutput/)
216
+
217
+ </details>
210
218
  <details>
211
219
  <summary>
212
220
  CancelOrder
@@ -254,6 +262,14 @@ DeleteSite
254
262
 
255
263
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/DeleteSiteCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/DeleteSiteCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/DeleteSiteCommandOutput/)
256
264
 
265
+ </details>
266
+ <details>
267
+ <summary>
268
+ GetCapacityTask
269
+ </summary>
270
+
271
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetCapacityTaskCommandOutput/)
272
+
257
273
  </details>
258
274
  <details>
259
275
  <summary>
@@ -294,6 +310,14 @@ GetOutpostInstanceTypes
294
310
 
295
311
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetOutpostInstanceTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostInstanceTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostInstanceTypesCommandOutput/)
296
312
 
313
+ </details>
314
+ <details>
315
+ <summary>
316
+ GetOutpostSupportedInstanceTypes
317
+ </summary>
318
+
319
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetOutpostSupportedInstanceTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostSupportedInstanceTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetOutpostSupportedInstanceTypesCommandOutput/)
320
+
297
321
  </details>
298
322
  <details>
299
323
  <summary>
@@ -318,6 +342,14 @@ ListAssets
318
342
 
319
343
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListAssetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListAssetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListAssetsCommandOutput/)
320
344
 
345
+ </details>
346
+ <details>
347
+ <summary>
348
+ ListCapacityTasks
349
+ </summary>
350
+
351
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListCapacityTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListCapacityTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListCapacityTasksCommandOutput/)
352
+
321
353
  </details>
322
354
  <details>
323
355
  <summary>
@@ -358,6 +390,14 @@ ListTagsForResource
358
390
 
359
391
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListTagsForResourceCommandOutput/)
360
392
 
393
+ </details>
394
+ <details>
395
+ <summary>
396
+ StartCapacityTask
397
+ </summary>
398
+
399
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/StartCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/StartCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/StartCapacityTaskCommandOutput/)
400
+
361
401
  </details>
362
402
  <details>
363
403
  <summary>
package/dist-cjs/index.js CHANGED
@@ -25,7 +25,10 @@ __export(src_exports, {
25
25
  AddressType: () => AddressType,
26
26
  AssetState: () => AssetState,
27
27
  AssetType: () => AssetType,
28
+ CancelCapacityTaskCommand: () => CancelCapacityTaskCommand,
28
29
  CancelOrderCommand: () => CancelOrderCommand,
30
+ CapacityTaskFailureType: () => CapacityTaskFailureType,
31
+ CapacityTaskStatus: () => CapacityTaskStatus,
29
32
  CatalogItemClass: () => CatalogItemClass,
30
33
  CatalogItemStatus: () => CatalogItemStatus,
31
34
  ComputeAssetState: () => ComputeAssetState,
@@ -36,16 +39,19 @@ __export(src_exports, {
36
39
  DeleteOutpostCommand: () => DeleteOutpostCommand,
37
40
  DeleteSiteCommand: () => DeleteSiteCommand,
38
41
  FiberOpticCableType: () => FiberOpticCableType,
42
+ GetCapacityTaskCommand: () => GetCapacityTaskCommand,
39
43
  GetCatalogItemCommand: () => GetCatalogItemCommand,
40
44
  GetConnectionCommand: () => GetConnectionCommand,
41
45
  GetOrderCommand: () => GetOrderCommand,
42
46
  GetOutpostCommand: () => GetOutpostCommand,
43
47
  GetOutpostInstanceTypesCommand: () => GetOutpostInstanceTypesCommand,
48
+ GetOutpostSupportedInstanceTypesCommand: () => GetOutpostSupportedInstanceTypesCommand,
44
49
  GetSiteAddressCommand: () => GetSiteAddressCommand,
45
50
  GetSiteCommand: () => GetSiteCommand,
46
51
  InternalServerException: () => InternalServerException,
47
52
  LineItemStatus: () => LineItemStatus,
48
53
  ListAssetsCommand: () => ListAssetsCommand,
54
+ ListCapacityTasksCommand: () => ListCapacityTasksCommand,
49
55
  ListCatalogItemsCommand: () => ListCatalogItemsCommand,
50
56
  ListOrdersCommand: () => ListOrdersCommand,
51
57
  ListOutpostsCommand: () => ListOutpostsCommand,
@@ -68,6 +74,7 @@ __export(src_exports, {
68
74
  ResourceType: () => ResourceType,
69
75
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
70
76
  ShipmentCarrier: () => ShipmentCarrier,
77
+ StartCapacityTaskCommand: () => StartCapacityTaskCommand,
71
78
  StartConnectionCommand: () => StartConnectionCommand,
72
79
  SupportedHardwareType: () => SupportedHardwareType,
73
80
  SupportedStorageEnum: () => SupportedStorageEnum,
@@ -82,7 +89,9 @@ __export(src_exports, {
82
89
  ValidationException: () => ValidationException,
83
90
  __Client: () => import_smithy_client.Client,
84
91
  paginateGetOutpostInstanceTypes: () => paginateGetOutpostInstanceTypes,
92
+ paginateGetOutpostSupportedInstanceTypes: () => paginateGetOutpostSupportedInstanceTypes,
85
93
  paginateListAssets: () => paginateListAssets,
94
+ paginateListCapacityTasks: () => paginateListCapacityTasks,
86
95
  paginateListCatalogItems: () => paginateListCatalogItems,
87
96
  paginateListOrders: () => paginateListOrders,
88
97
  paginateListOutposts: () => paginateListOutposts,
@@ -236,7 +245,7 @@ var OutpostsClient = _OutpostsClient;
236
245
  // src/Outposts.ts
237
246
 
238
247
 
239
- // src/commands/CancelOrderCommand.ts
248
+ // src/commands/CancelCapacityTaskCommand.ts
240
249
 
241
250
  var import_middleware_serde = require("@smithy/middleware-serde");
242
251
 
@@ -375,6 +384,16 @@ var _ValidationException = class _ValidationException extends OutpostsServiceExc
375
384
  };
376
385
  __name(_ValidationException, "ValidationException");
377
386
  var ValidationException = _ValidationException;
387
+ var CapacityTaskFailureType = {
388
+ UNSUPPORTED_CAPACITY_CONFIGURATION: "UNSUPPORTED_CAPACITY_CONFIGURATION"
389
+ };
390
+ var CapacityTaskStatus = {
391
+ CANCELLED: "CANCELLED",
392
+ COMPLETED: "COMPLETED",
393
+ FAILED: "FAILED",
394
+ IN_PROGRESS: "IN_PROGRESS",
395
+ REQUESTED: "REQUESTED"
396
+ };
378
397
  var CatalogItemStatus = {
379
398
  AVAILABLE: "AVAILABLE",
380
399
  DISCONTINUED: "DISCONTINUED"
@@ -399,6 +418,7 @@ var PaymentTerm = {
399
418
  var ShipmentCarrier = {
400
419
  DBS: "DBS",
401
420
  DHL: "DHL",
421
+ EXPEDITORS: "EXPEDITORS",
402
422
  FEDEX: "FEDEX",
403
423
  UPS: "UPS"
404
424
  };
@@ -517,6 +537,16 @@ var UplinkGbps = {
517
537
  };
518
538
 
519
539
  // src/protocols/Aws_restJson1.ts
540
+ var se_CancelCapacityTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
541
+ const b = (0, import_core.requestBuilder)(input, context);
542
+ const headers = {};
543
+ b.bp("/outposts/{OutpostIdentifier}/capacity/{CapacityTaskId}");
544
+ b.p("CapacityTaskId", () => input.CapacityTaskId, "{CapacityTaskId}", false);
545
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
546
+ let body;
547
+ b.m("POST").h(headers).b(body);
548
+ return b.build();
549
+ }, "se_CancelCapacityTaskCommand");
520
550
  var se_CancelOrderCommand = /* @__PURE__ */ __name(async (input, context) => {
521
551
  const b = (0, import_core.requestBuilder)(input, context);
522
552
  const headers = {};
@@ -604,6 +634,16 @@ var se_DeleteSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
604
634
  b.m("DELETE").h(headers).b(body);
605
635
  return b.build();
606
636
  }, "se_DeleteSiteCommand");
637
+ var se_GetCapacityTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
638
+ const b = (0, import_core.requestBuilder)(input, context);
639
+ const headers = {};
640
+ b.bp("/outposts/{OutpostIdentifier}/capacity/{CapacityTaskId}");
641
+ b.p("CapacityTaskId", () => input.CapacityTaskId, "{CapacityTaskId}", false);
642
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
643
+ let body;
644
+ b.m("GET").h(headers).b(body);
645
+ return b.build();
646
+ }, "se_GetCapacityTaskCommand");
607
647
  var se_GetCatalogItemCommand = /* @__PURE__ */ __name(async (input, context) => {
608
648
  const b = (0, import_core.requestBuilder)(input, context);
609
649
  const headers = {};
@@ -653,6 +693,20 @@ var se_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (input, con
653
693
  b.m("GET").h(headers).q(query).b(body);
654
694
  return b.build();
655
695
  }, "se_GetOutpostInstanceTypesCommand");
696
+ var se_GetOutpostSupportedInstanceTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
697
+ const b = (0, import_core.requestBuilder)(input, context);
698
+ const headers = {};
699
+ b.bp("/outposts/{OutpostIdentifier}/supportedInstanceTypes");
700
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
701
+ const query = (0, import_smithy_client.map)({
702
+ [_OI]: [, (0, import_smithy_client.expectNonNull)(input[_OI], `OrderId`)],
703
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
704
+ [_NT]: [, input[_NT]]
705
+ });
706
+ let body;
707
+ b.m("GET").h(headers).q(query).b(body);
708
+ return b.build();
709
+ }, "se_GetOutpostSupportedInstanceTypesCommand");
656
710
  var se_GetSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
657
711
  const b = (0, import_core.requestBuilder)(input, context);
658
712
  const headers = {};
@@ -689,6 +743,23 @@ var se_ListAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
689
743
  b.m("GET").h(headers).q(query).b(body);
690
744
  return b.build();
691
745
  }, "se_ListAssetsCommand");
746
+ var se_ListCapacityTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
747
+ const b = (0, import_core.requestBuilder)(input, context);
748
+ const headers = {};
749
+ b.bp("/capacity/tasks");
750
+ const query = (0, import_smithy_client.map)({
751
+ [_OIF]: [, input[_OIF]],
752
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
753
+ [_NT]: [, input[_NT]],
754
+ [_CTSF]: [
755
+ () => input.CapacityTaskStatusFilter !== void 0,
756
+ () => (input[_CTSF] || []).map((_entry) => _entry)
757
+ ]
758
+ });
759
+ let body;
760
+ b.m("GET").h(headers).q(query).b(body);
761
+ return b.build();
762
+ }, "se_ListCapacityTasksCommand");
692
763
  var se_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
693
764
  const b = (0, import_core.requestBuilder)(input, context);
694
765
  const headers = {};
@@ -768,6 +839,24 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
768
839
  b.m("GET").h(headers).b(body);
769
840
  return b.build();
770
841
  }, "se_ListTagsForResourceCommand");
842
+ var se_StartCapacityTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
843
+ const b = (0, import_core.requestBuilder)(input, context);
844
+ const headers = {
845
+ "content-type": "application/json"
846
+ };
847
+ b.bp("/outposts/{OutpostIdentifier}/capacity");
848
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
849
+ let body;
850
+ body = JSON.stringify(
851
+ (0, import_smithy_client.take)(input, {
852
+ DryRun: [],
853
+ InstancePools: (_) => (0, import_smithy_client._json)(_),
854
+ OrderId: []
855
+ })
856
+ );
857
+ b.m("POST").h(headers).b(body);
858
+ return b.build();
859
+ }, "se_StartCapacityTaskCommand");
771
860
  var se_StartConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
772
861
  const b = (0, import_core.requestBuilder)(input, context);
773
862
  const headers = {
@@ -894,6 +983,16 @@ var se_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (i
894
983
  b.m("PATCH").h(headers).b(body);
895
984
  return b.build();
896
985
  }, "se_UpdateSiteRackPhysicalPropertiesCommand");
986
+ var de_CancelCapacityTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
987
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
988
+ return de_CommandError(output, context);
989
+ }
990
+ const contents = (0, import_smithy_client.map)({
991
+ $metadata: deserializeMetadata(output)
992
+ });
993
+ await (0, import_smithy_client.collectBody)(output.body, context);
994
+ return contents;
995
+ }, "de_CancelCapacityTaskCommand");
897
996
  var de_CancelOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
898
997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
899
998
  return de_CommandError(output, context);
@@ -966,6 +1065,29 @@ var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
966
1065
  await (0, import_smithy_client.collectBody)(output.body, context);
967
1066
  return contents;
968
1067
  }, "de_DeleteSiteCommand");
1068
+ var de_GetCapacityTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1069
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1070
+ return de_CommandError(output, context);
1071
+ }
1072
+ const contents = (0, import_smithy_client.map)({
1073
+ $metadata: deserializeMetadata(output)
1074
+ });
1075
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1076
+ const doc = (0, import_smithy_client.take)(data, {
1077
+ CapacityTaskId: import_smithy_client.expectString,
1078
+ CapacityTaskStatus: import_smithy_client.expectString,
1079
+ CompletionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1080
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1081
+ DryRun: import_smithy_client.expectBoolean,
1082
+ Failed: import_smithy_client._json,
1083
+ LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1084
+ OrderId: import_smithy_client.expectString,
1085
+ OutpostId: import_smithy_client.expectString,
1086
+ RequestedInstancePools: import_smithy_client._json
1087
+ });
1088
+ Object.assign(contents, doc);
1089
+ return contents;
1090
+ }, "de_GetCapacityTaskCommand");
969
1091
  var de_GetCatalogItemCommand = /* @__PURE__ */ __name(async (output, context) => {
970
1092
  if (output.statusCode !== 200 && output.statusCode >= 300) {
971
1093
  return de_CommandError(output, context);
@@ -1040,6 +1162,21 @@ var de_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (output, co
1040
1162
  Object.assign(contents, doc);
1041
1163
  return contents;
1042
1164
  }, "de_GetOutpostInstanceTypesCommand");
1165
+ var de_GetOutpostSupportedInstanceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
1166
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1167
+ return de_CommandError(output, context);
1168
+ }
1169
+ const contents = (0, import_smithy_client.map)({
1170
+ $metadata: deserializeMetadata(output)
1171
+ });
1172
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1173
+ const doc = (0, import_smithy_client.take)(data, {
1174
+ InstanceTypes: import_smithy_client._json,
1175
+ NextToken: import_smithy_client.expectString
1176
+ });
1177
+ Object.assign(contents, doc);
1178
+ return contents;
1179
+ }, "de_GetOutpostSupportedInstanceTypesCommand");
1043
1180
  var de_GetSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
1044
1181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1045
1182
  return de_CommandError(output, context);
@@ -1085,6 +1222,21 @@ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1085
1222
  Object.assign(contents, doc);
1086
1223
  return contents;
1087
1224
  }, "de_ListAssetsCommand");
1225
+ var de_ListCapacityTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1226
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1227
+ return de_CommandError(output, context);
1228
+ }
1229
+ const contents = (0, import_smithy_client.map)({
1230
+ $metadata: deserializeMetadata(output)
1231
+ });
1232
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1233
+ const doc = (0, import_smithy_client.take)(data, {
1234
+ CapacityTasks: (_) => de_CapacityTaskList(_, context),
1235
+ NextToken: import_smithy_client.expectString
1236
+ });
1237
+ Object.assign(contents, doc);
1238
+ return contents;
1239
+ }, "de_ListCapacityTasksCommand");
1088
1240
  var de_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1089
1241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1090
1242
  return de_CommandError(output, context);
@@ -1159,6 +1311,29 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1159
1311
  Object.assign(contents, doc);
1160
1312
  return contents;
1161
1313
  }, "de_ListTagsForResourceCommand");
1314
+ var de_StartCapacityTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1315
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1316
+ return de_CommandError(output, context);
1317
+ }
1318
+ const contents = (0, import_smithy_client.map)({
1319
+ $metadata: deserializeMetadata(output)
1320
+ });
1321
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1322
+ const doc = (0, import_smithy_client.take)(data, {
1323
+ CapacityTaskId: import_smithy_client.expectString,
1324
+ CapacityTaskStatus: import_smithy_client.expectString,
1325
+ CompletionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1326
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1327
+ DryRun: import_smithy_client.expectBoolean,
1328
+ Failed: import_smithy_client._json,
1329
+ LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1330
+ OrderId: import_smithy_client.expectString,
1331
+ OutpostId: import_smithy_client.expectString,
1332
+ RequestedInstancePools: import_smithy_client._json
1333
+ });
1334
+ Object.assign(contents, doc);
1335
+ return contents;
1336
+ }, "de_StartCapacityTaskCommand");
1162
1337
  var de_StartConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
1338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
1339
  return de_CommandError(output, context);
@@ -1386,6 +1561,23 @@ var de_AssetLocation = /* @__PURE__ */ __name((output, context) => {
1386
1561
  RackElevation: import_smithy_client.limitedParseFloat32
1387
1562
  });
1388
1563
  }, "de_AssetLocation");
1564
+ var de_CapacityTaskList = /* @__PURE__ */ __name((output, context) => {
1565
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1566
+ return de_CapacityTaskSummary(entry, context);
1567
+ });
1568
+ return retVal;
1569
+ }, "de_CapacityTaskList");
1570
+ var de_CapacityTaskSummary = /* @__PURE__ */ __name((output, context) => {
1571
+ return (0, import_smithy_client.take)(output, {
1572
+ CapacityTaskId: import_smithy_client.expectString,
1573
+ CapacityTaskStatus: import_smithy_client.expectString,
1574
+ CompletionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1575
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1576
+ LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1577
+ OrderId: import_smithy_client.expectString,
1578
+ OutpostId: import_smithy_client.expectString
1579
+ });
1580
+ }, "de_CapacityTaskSummary");
1389
1581
  var de_CatalogItem = /* @__PURE__ */ __name((output, context) => {
1390
1582
  return (0, import_smithy_client.take)(output, {
1391
1583
  CatalogItemId: import_smithy_client.expectString,
@@ -1442,6 +1634,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1442
1634
  var _AT = "AddressType";
1443
1635
  var _AZF = "AvailabilityZoneFilter";
1444
1636
  var _AZIF = "AvailabilityZoneIdFilter";
1637
+ var _CTSF = "CapacityTaskStatusFilter";
1445
1638
  var _ECFF = "EC2FamilyFilter";
1446
1639
  var _HIF = "HostIdFilter";
1447
1640
  var _ICF = "ItemClassFilter";
@@ -1451,13 +1644,31 @@ var _NT = "NextToken";
1451
1644
  var _OACCF = "OperatingAddressCountryCodeFilter";
1452
1645
  var _OACF = "OperatingAddressCityFilter";
1453
1646
  var _OASORF = "OperatingAddressStateOrRegionFilter";
1647
+ var _OI = "OrderId";
1454
1648
  var _OIF = "OutpostIdentifierFilter";
1455
1649
  var _SF = "StatusFilter";
1456
1650
  var _SSF = "SupportedStorageFilter";
1457
1651
  var _TK = "TagKeys";
1458
1652
  var _tK = "tagKeys";
1459
1653
 
1654
+ // src/commands/CancelCapacityTaskCommand.ts
1655
+ var _CancelCapacityTaskCommand = class _CancelCapacityTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1656
+ ...commonParams
1657
+ }).m(function(Command, cs, config, o) {
1658
+ return [
1659
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1660
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1661
+ ];
1662
+ }).s("OutpostsOlafService", "CancelCapacityTask", {}).n("OutpostsClient", "CancelCapacityTaskCommand").f(void 0, void 0).ser(se_CancelCapacityTaskCommand).de(de_CancelCapacityTaskCommand).build() {
1663
+ };
1664
+ __name(_CancelCapacityTaskCommand, "CancelCapacityTaskCommand");
1665
+ var CancelCapacityTaskCommand = _CancelCapacityTaskCommand;
1666
+
1460
1667
  // src/commands/CancelOrderCommand.ts
1668
+
1669
+
1670
+
1671
+
1461
1672
  var _CancelOrderCommand = class _CancelOrderCommand extends import_smithy_client.Command.classBuilder().ep({
1462
1673
  ...commonParams
1463
1674
  }).m(function(Command, cs, config, o) {
@@ -1555,6 +1766,23 @@ var _DeleteSiteCommand = class _DeleteSiteCommand extends import_smithy_client.C
1555
1766
  __name(_DeleteSiteCommand, "DeleteSiteCommand");
1556
1767
  var DeleteSiteCommand = _DeleteSiteCommand;
1557
1768
 
1769
+ // src/commands/GetCapacityTaskCommand.ts
1770
+
1771
+
1772
+
1773
+
1774
+ var _GetCapacityTaskCommand = class _GetCapacityTaskCommand extends import_smithy_client.Command.classBuilder().ep({
1775
+ ...commonParams
1776
+ }).m(function(Command, cs, config, o) {
1777
+ return [
1778
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1779
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1780
+ ];
1781
+ }).s("OutpostsOlafService", "GetCapacityTask", {}).n("OutpostsClient", "GetCapacityTaskCommand").f(void 0, void 0).ser(se_GetCapacityTaskCommand).de(de_GetCapacityTaskCommand).build() {
1782
+ };
1783
+ __name(_GetCapacityTaskCommand, "GetCapacityTaskCommand");
1784
+ var GetCapacityTaskCommand = _GetCapacityTaskCommand;
1785
+
1558
1786
  // src/commands/GetCatalogItemCommand.ts
1559
1787
 
1560
1788
 
@@ -1640,6 +1868,23 @@ var _GetOutpostInstanceTypesCommand = class _GetOutpostInstanceTypesCommand exte
1640
1868
  __name(_GetOutpostInstanceTypesCommand, "GetOutpostInstanceTypesCommand");
1641
1869
  var GetOutpostInstanceTypesCommand = _GetOutpostInstanceTypesCommand;
1642
1870
 
1871
+ // src/commands/GetOutpostSupportedInstanceTypesCommand.ts
1872
+
1873
+
1874
+
1875
+
1876
+ var _GetOutpostSupportedInstanceTypesCommand = class _GetOutpostSupportedInstanceTypesCommand extends import_smithy_client.Command.classBuilder().ep({
1877
+ ...commonParams
1878
+ }).m(function(Command, cs, config, o) {
1879
+ return [
1880
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1881
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1882
+ ];
1883
+ }).s("OutpostsOlafService", "GetOutpostSupportedInstanceTypes", {}).n("OutpostsClient", "GetOutpostSupportedInstanceTypesCommand").f(void 0, void 0).ser(se_GetOutpostSupportedInstanceTypesCommand).de(de_GetOutpostSupportedInstanceTypesCommand).build() {
1884
+ };
1885
+ __name(_GetOutpostSupportedInstanceTypesCommand, "GetOutpostSupportedInstanceTypesCommand");
1886
+ var GetOutpostSupportedInstanceTypesCommand = _GetOutpostSupportedInstanceTypesCommand;
1887
+
1643
1888
  // src/commands/GetSiteAddressCommand.ts
1644
1889
 
1645
1890
 
@@ -1691,6 +1936,23 @@ var _ListAssetsCommand = class _ListAssetsCommand extends import_smithy_client.C
1691
1936
  __name(_ListAssetsCommand, "ListAssetsCommand");
1692
1937
  var ListAssetsCommand = _ListAssetsCommand;
1693
1938
 
1939
+ // src/commands/ListCapacityTasksCommand.ts
1940
+
1941
+
1942
+
1943
+
1944
+ var _ListCapacityTasksCommand = class _ListCapacityTasksCommand extends import_smithy_client.Command.classBuilder().ep({
1945
+ ...commonParams
1946
+ }).m(function(Command, cs, config, o) {
1947
+ return [
1948
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1949
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1950
+ ];
1951
+ }).s("OutpostsOlafService", "ListCapacityTasks", {}).n("OutpostsClient", "ListCapacityTasksCommand").f(void 0, void 0).ser(se_ListCapacityTasksCommand).de(de_ListCapacityTasksCommand).build() {
1952
+ };
1953
+ __name(_ListCapacityTasksCommand, "ListCapacityTasksCommand");
1954
+ var ListCapacityTasksCommand = _ListCapacityTasksCommand;
1955
+
1694
1956
  // src/commands/ListCatalogItemsCommand.ts
1695
1957
 
1696
1958
 
@@ -1776,6 +2038,23 @@ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends impo
1776
2038
  __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1777
2039
  var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1778
2040
 
2041
+ // src/commands/StartCapacityTaskCommand.ts
2042
+
2043
+
2044
+
2045
+
2046
+ var _StartCapacityTaskCommand = class _StartCapacityTaskCommand extends import_smithy_client.Command.classBuilder().ep({
2047
+ ...commonParams
2048
+ }).m(function(Command, cs, config, o) {
2049
+ return [
2050
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2051
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2052
+ ];
2053
+ }).s("OutpostsOlafService", "StartCapacityTask", {}).n("OutpostsClient", "StartCapacityTaskCommand").f(void 0, void 0).ser(se_StartCapacityTaskCommand).de(de_StartCapacityTaskCommand).build() {
2054
+ };
2055
+ __name(_StartCapacityTaskCommand, "StartCapacityTaskCommand");
2056
+ var StartCapacityTaskCommand = _StartCapacityTaskCommand;
2057
+
1779
2058
  // src/commands/StartConnectionCommand.ts
1780
2059
 
1781
2060
 
@@ -1897,25 +2176,30 @@ var UpdateSiteRackPhysicalPropertiesCommand = _UpdateSiteRackPhysicalPropertiesC
1897
2176
 
1898
2177
  // src/Outposts.ts
1899
2178
  var commands = {
2179
+ CancelCapacityTaskCommand,
1900
2180
  CancelOrderCommand,
1901
2181
  CreateOrderCommand,
1902
2182
  CreateOutpostCommand,
1903
2183
  CreateSiteCommand,
1904
2184
  DeleteOutpostCommand,
1905
2185
  DeleteSiteCommand,
2186
+ GetCapacityTaskCommand,
1906
2187
  GetCatalogItemCommand,
1907
2188
  GetConnectionCommand,
1908
2189
  GetOrderCommand,
1909
2190
  GetOutpostCommand,
1910
2191
  GetOutpostInstanceTypesCommand,
2192
+ GetOutpostSupportedInstanceTypesCommand,
1911
2193
  GetSiteCommand,
1912
2194
  GetSiteAddressCommand,
1913
2195
  ListAssetsCommand,
2196
+ ListCapacityTasksCommand,
1914
2197
  ListCatalogItemsCommand,
1915
2198
  ListOrdersCommand,
1916
2199
  ListOutpostsCommand,
1917
2200
  ListSitesCommand,
1918
2201
  ListTagsForResourceCommand,
2202
+ StartCapacityTaskCommand,
1919
2203
  StartConnectionCommand,
1920
2204
  TagResourceCommand,
1921
2205
  UntagResourceCommand,
@@ -1934,10 +2218,18 @@ var Outposts = _Outposts;
1934
2218
 
1935
2219
  var paginateGetOutpostInstanceTypes = (0, import_core.createPaginator)(OutpostsClient, GetOutpostInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
1936
2220
 
2221
+ // src/pagination/GetOutpostSupportedInstanceTypesPaginator.ts
2222
+
2223
+ var paginateGetOutpostSupportedInstanceTypes = (0, import_core.createPaginator)(OutpostsClient, GetOutpostSupportedInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
2224
+
1937
2225
  // src/pagination/ListAssetsPaginator.ts
1938
2226
 
1939
2227
  var paginateListAssets = (0, import_core.createPaginator)(OutpostsClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
1940
2228
 
2229
+ // src/pagination/ListCapacityTasksPaginator.ts
2230
+
2231
+ var paginateListCapacityTasks = (0, import_core.createPaginator)(OutpostsClient, ListCapacityTasksCommand, "NextToken", "NextToken", "MaxResults");
2232
+
1941
2233
  // src/pagination/ListCatalogItemsPaginator.ts
1942
2234
 
1943
2235
  var paginateListCatalogItems = (0, import_core.createPaginator)(OutpostsClient, ListCatalogItemsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1961,25 +2253,30 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
1961
2253
  OutpostsClient,
1962
2254
  Outposts,
1963
2255
  $Command,
2256
+ CancelCapacityTaskCommand,
1964
2257
  CancelOrderCommand,
1965
2258
  CreateOrderCommand,
1966
2259
  CreateOutpostCommand,
1967
2260
  CreateSiteCommand,
1968
2261
  DeleteOutpostCommand,
1969
2262
  DeleteSiteCommand,
2263
+ GetCapacityTaskCommand,
1970
2264
  GetCatalogItemCommand,
1971
2265
  GetConnectionCommand,
1972
2266
  GetOrderCommand,
1973
2267
  GetOutpostCommand,
1974
2268
  GetOutpostInstanceTypesCommand,
2269
+ GetOutpostSupportedInstanceTypesCommand,
1975
2270
  GetSiteAddressCommand,
1976
2271
  GetSiteCommand,
1977
2272
  ListAssetsCommand,
2273
+ ListCapacityTasksCommand,
1978
2274
  ListCatalogItemsCommand,
1979
2275
  ListOrdersCommand,
1980
2276
  ListOutpostsCommand,
1981
2277
  ListSitesCommand,
1982
2278
  ListTagsForResourceCommand,
2279
+ StartCapacityTaskCommand,
1983
2280
  StartConnectionCommand,
1984
2281
  TagResourceCommand,
1985
2282
  UntagResourceCommand,
@@ -1988,7 +2285,9 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
1988
2285
  UpdateSiteCommand,
1989
2286
  UpdateSiteRackPhysicalPropertiesCommand,
1990
2287
  paginateGetOutpostInstanceTypes,
2288
+ paginateGetOutpostSupportedInstanceTypes,
1991
2289
  paginateListAssets,
2290
+ paginateListCapacityTasks,
1992
2291
  paginateListCatalogItems,
1993
2292
  paginateListOrders,
1994
2293
  paginateListOutposts,
@@ -2003,6 +2302,8 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
2003
2302
  InternalServerException,
2004
2303
  NotFoundException,
2005
2304
  ValidationException,
2305
+ CapacityTaskFailureType,
2306
+ CapacityTaskStatus,
2006
2307
  CatalogItemStatus,
2007
2308
  SupportedStorageEnum,
2008
2309
  CatalogItemClass,