@aws-sdk/client-outposts 3.555.0 → 3.563.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 (41) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +301 -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 +10 -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/GetCapacityTaskCommand.d.ts +89 -0
  19. package/dist-types/commands/GetOutpostSupportedInstanceTypesCommand.d.ts +82 -0
  20. package/dist-types/commands/ListCapacityTasksCommand.d.ts +90 -0
  21. package/dist-types/commands/StartCapacityTaskCommand.d.ts +99 -0
  22. package/dist-types/commands/index.d.ts +5 -0
  23. package/dist-types/models/models_0.d.ts +380 -8
  24. package/dist-types/pagination/GetOutpostSupportedInstanceTypesPaginator.d.ts +7 -0
  25. package/dist-types/pagination/ListCapacityTasksPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +2 -0
  27. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  28. package/dist-types/ts3.4/Outposts.d.ts +86 -0
  29. package/dist-types/ts3.4/OutpostsClient.d.ts +30 -0
  30. package/dist-types/ts3.4/commands/CancelCapacityTaskCommand.d.ts +39 -0
  31. package/dist-types/ts3.4/commands/GetCapacityTaskCommand.d.ts +38 -0
  32. package/dist-types/ts3.4/commands/GetOutpostSupportedInstanceTypesCommand.d.ts +39 -0
  33. package/dist-types/ts3.4/commands/ListCapacityTasksCommand.d.ts +38 -0
  34. package/dist-types/ts3.4/commands/StartCapacityTaskCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +93 -3
  37. package/dist-types/ts3.4/pagination/GetOutpostSupportedInstanceTypesPaginator.d.ts +11 -0
  38. package/dist-types/ts3.4/pagination/ListCapacityTasksPaginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  41. 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"
@@ -518,6 +537,16 @@ var UplinkGbps = {
518
537
  };
519
538
 
520
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");
521
550
  var se_CancelOrderCommand = /* @__PURE__ */ __name(async (input, context) => {
522
551
  const b = (0, import_core.requestBuilder)(input, context);
523
552
  const headers = {};
@@ -605,6 +634,16 @@ var se_DeleteSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
605
634
  b.m("DELETE").h(headers).b(body);
606
635
  return b.build();
607
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");
608
647
  var se_GetCatalogItemCommand = /* @__PURE__ */ __name(async (input, context) => {
609
648
  const b = (0, import_core.requestBuilder)(input, context);
610
649
  const headers = {};
@@ -654,6 +693,20 @@ var se_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (input, con
654
693
  b.m("GET").h(headers).q(query).b(body);
655
694
  return b.build();
656
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");
657
710
  var se_GetSiteCommand = /* @__PURE__ */ __name(async (input, context) => {
658
711
  const b = (0, import_core.requestBuilder)(input, context);
659
712
  const headers = {};
@@ -690,6 +743,23 @@ var se_ListAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
690
743
  b.m("GET").h(headers).q(query).b(body);
691
744
  return b.build();
692
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");
693
763
  var se_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
694
764
  const b = (0, import_core.requestBuilder)(input, context);
695
765
  const headers = {};
@@ -769,6 +839,24 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
769
839
  b.m("GET").h(headers).b(body);
770
840
  return b.build();
771
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");
772
860
  var se_StartConnectionCommand = /* @__PURE__ */ __name(async (input, context) => {
773
861
  const b = (0, import_core.requestBuilder)(input, context);
774
862
  const headers = {
@@ -895,6 +983,16 @@ var se_UpdateSiteRackPhysicalPropertiesCommand = /* @__PURE__ */ __name(async (i
895
983
  b.m("PATCH").h(headers).b(body);
896
984
  return b.build();
897
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");
898
996
  var de_CancelOrderCommand = /* @__PURE__ */ __name(async (output, context) => {
899
997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
900
998
  return de_CommandError(output, context);
@@ -967,6 +1065,29 @@ var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
967
1065
  await (0, import_smithy_client.collectBody)(output.body, context);
968
1066
  return contents;
969
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");
970
1091
  var de_GetCatalogItemCommand = /* @__PURE__ */ __name(async (output, context) => {
971
1092
  if (output.statusCode !== 200 && output.statusCode >= 300) {
972
1093
  return de_CommandError(output, context);
@@ -1041,6 +1162,21 @@ var de_GetOutpostInstanceTypesCommand = /* @__PURE__ */ __name(async (output, co
1041
1162
  Object.assign(contents, doc);
1042
1163
  return contents;
1043
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");
1044
1180
  var de_GetSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
1045
1181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1046
1182
  return de_CommandError(output, context);
@@ -1086,6 +1222,21 @@ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1086
1222
  Object.assign(contents, doc);
1087
1223
  return contents;
1088
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");
1089
1240
  var de_ListCatalogItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1090
1241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1091
1242
  return de_CommandError(output, context);
@@ -1160,6 +1311,29 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1160
1311
  Object.assign(contents, doc);
1161
1312
  return contents;
1162
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");
1163
1337
  var de_StartConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
1164
1338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
1339
  return de_CommandError(output, context);
@@ -1387,6 +1561,23 @@ var de_AssetLocation = /* @__PURE__ */ __name((output, context) => {
1387
1561
  RackElevation: import_smithy_client.limitedParseFloat32
1388
1562
  });
1389
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");
1390
1581
  var de_CatalogItem = /* @__PURE__ */ __name((output, context) => {
1391
1582
  return (0, import_smithy_client.take)(output, {
1392
1583
  CatalogItemId: import_smithy_client.expectString,
@@ -1443,6 +1634,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1443
1634
  var _AT = "AddressType";
1444
1635
  var _AZF = "AvailabilityZoneFilter";
1445
1636
  var _AZIF = "AvailabilityZoneIdFilter";
1637
+ var _CTSF = "CapacityTaskStatusFilter";
1446
1638
  var _ECFF = "EC2FamilyFilter";
1447
1639
  var _HIF = "HostIdFilter";
1448
1640
  var _ICF = "ItemClassFilter";
@@ -1452,13 +1644,31 @@ var _NT = "NextToken";
1452
1644
  var _OACCF = "OperatingAddressCountryCodeFilter";
1453
1645
  var _OACF = "OperatingAddressCityFilter";
1454
1646
  var _OASORF = "OperatingAddressStateOrRegionFilter";
1647
+ var _OI = "OrderId";
1455
1648
  var _OIF = "OutpostIdentifierFilter";
1456
1649
  var _SF = "StatusFilter";
1457
1650
  var _SSF = "SupportedStorageFilter";
1458
1651
  var _TK = "TagKeys";
1459
1652
  var _tK = "tagKeys";
1460
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
+
1461
1667
  // src/commands/CancelOrderCommand.ts
1668
+
1669
+
1670
+
1671
+
1462
1672
  var _CancelOrderCommand = class _CancelOrderCommand extends import_smithy_client.Command.classBuilder().ep({
1463
1673
  ...commonParams
1464
1674
  }).m(function(Command, cs, config, o) {
@@ -1556,6 +1766,23 @@ var _DeleteSiteCommand = class _DeleteSiteCommand extends import_smithy_client.C
1556
1766
  __name(_DeleteSiteCommand, "DeleteSiteCommand");
1557
1767
  var DeleteSiteCommand = _DeleteSiteCommand;
1558
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
+
1559
1786
  // src/commands/GetCatalogItemCommand.ts
1560
1787
 
1561
1788
 
@@ -1641,6 +1868,23 @@ var _GetOutpostInstanceTypesCommand = class _GetOutpostInstanceTypesCommand exte
1641
1868
  __name(_GetOutpostInstanceTypesCommand, "GetOutpostInstanceTypesCommand");
1642
1869
  var GetOutpostInstanceTypesCommand = _GetOutpostInstanceTypesCommand;
1643
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
+
1644
1888
  // src/commands/GetSiteAddressCommand.ts
1645
1889
 
1646
1890
 
@@ -1692,6 +1936,23 @@ var _ListAssetsCommand = class _ListAssetsCommand extends import_smithy_client.C
1692
1936
  __name(_ListAssetsCommand, "ListAssetsCommand");
1693
1937
  var ListAssetsCommand = _ListAssetsCommand;
1694
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
+
1695
1956
  // src/commands/ListCatalogItemsCommand.ts
1696
1957
 
1697
1958
 
@@ -1777,6 +2038,23 @@ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends impo
1777
2038
  __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1778
2039
  var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1779
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
+
1780
2058
  // src/commands/StartConnectionCommand.ts
1781
2059
 
1782
2060
 
@@ -1898,25 +2176,30 @@ var UpdateSiteRackPhysicalPropertiesCommand = _UpdateSiteRackPhysicalPropertiesC
1898
2176
 
1899
2177
  // src/Outposts.ts
1900
2178
  var commands = {
2179
+ CancelCapacityTaskCommand,
1901
2180
  CancelOrderCommand,
1902
2181
  CreateOrderCommand,
1903
2182
  CreateOutpostCommand,
1904
2183
  CreateSiteCommand,
1905
2184
  DeleteOutpostCommand,
1906
2185
  DeleteSiteCommand,
2186
+ GetCapacityTaskCommand,
1907
2187
  GetCatalogItemCommand,
1908
2188
  GetConnectionCommand,
1909
2189
  GetOrderCommand,
1910
2190
  GetOutpostCommand,
1911
2191
  GetOutpostInstanceTypesCommand,
2192
+ GetOutpostSupportedInstanceTypesCommand,
1912
2193
  GetSiteCommand,
1913
2194
  GetSiteAddressCommand,
1914
2195
  ListAssetsCommand,
2196
+ ListCapacityTasksCommand,
1915
2197
  ListCatalogItemsCommand,
1916
2198
  ListOrdersCommand,
1917
2199
  ListOutpostsCommand,
1918
2200
  ListSitesCommand,
1919
2201
  ListTagsForResourceCommand,
2202
+ StartCapacityTaskCommand,
1920
2203
  StartConnectionCommand,
1921
2204
  TagResourceCommand,
1922
2205
  UntagResourceCommand,
@@ -1935,10 +2218,18 @@ var Outposts = _Outposts;
1935
2218
 
1936
2219
  var paginateGetOutpostInstanceTypes = (0, import_core.createPaginator)(OutpostsClient, GetOutpostInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
1937
2220
 
2221
+ // src/pagination/GetOutpostSupportedInstanceTypesPaginator.ts
2222
+
2223
+ var paginateGetOutpostSupportedInstanceTypes = (0, import_core.createPaginator)(OutpostsClient, GetOutpostSupportedInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
2224
+
1938
2225
  // src/pagination/ListAssetsPaginator.ts
1939
2226
 
1940
2227
  var paginateListAssets = (0, import_core.createPaginator)(OutpostsClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
1941
2228
 
2229
+ // src/pagination/ListCapacityTasksPaginator.ts
2230
+
2231
+ var paginateListCapacityTasks = (0, import_core.createPaginator)(OutpostsClient, ListCapacityTasksCommand, "NextToken", "NextToken", "MaxResults");
2232
+
1942
2233
  // src/pagination/ListCatalogItemsPaginator.ts
1943
2234
 
1944
2235
  var paginateListCatalogItems = (0, import_core.createPaginator)(OutpostsClient, ListCatalogItemsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1962,25 +2253,30 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
1962
2253
  OutpostsClient,
1963
2254
  Outposts,
1964
2255
  $Command,
2256
+ CancelCapacityTaskCommand,
1965
2257
  CancelOrderCommand,
1966
2258
  CreateOrderCommand,
1967
2259
  CreateOutpostCommand,
1968
2260
  CreateSiteCommand,
1969
2261
  DeleteOutpostCommand,
1970
2262
  DeleteSiteCommand,
2263
+ GetCapacityTaskCommand,
1971
2264
  GetCatalogItemCommand,
1972
2265
  GetConnectionCommand,
1973
2266
  GetOrderCommand,
1974
2267
  GetOutpostCommand,
1975
2268
  GetOutpostInstanceTypesCommand,
2269
+ GetOutpostSupportedInstanceTypesCommand,
1976
2270
  GetSiteAddressCommand,
1977
2271
  GetSiteCommand,
1978
2272
  ListAssetsCommand,
2273
+ ListCapacityTasksCommand,
1979
2274
  ListCatalogItemsCommand,
1980
2275
  ListOrdersCommand,
1981
2276
  ListOutpostsCommand,
1982
2277
  ListSitesCommand,
1983
2278
  ListTagsForResourceCommand,
2279
+ StartCapacityTaskCommand,
1984
2280
  StartConnectionCommand,
1985
2281
  TagResourceCommand,
1986
2282
  UntagResourceCommand,
@@ -1989,7 +2285,9 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
1989
2285
  UpdateSiteCommand,
1990
2286
  UpdateSiteRackPhysicalPropertiesCommand,
1991
2287
  paginateGetOutpostInstanceTypes,
2288
+ paginateGetOutpostSupportedInstanceTypes,
1992
2289
  paginateListAssets,
2290
+ paginateListCapacityTasks,
1993
2291
  paginateListCatalogItems,
1994
2292
  paginateListOrders,
1995
2293
  paginateListOutposts,
@@ -2004,6 +2302,8 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
2004
2302
  InternalServerException,
2005
2303
  NotFoundException,
2006
2304
  ValidationException,
2305
+ CapacityTaskFailureType,
2306
+ CapacityTaskStatus,
2007
2307
  CatalogItemStatus,
2008
2308
  SupportedStorageEnum,
2009
2309
  CatalogItemClass,