@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
@@ -1,23 +1,28 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CancelCapacityTaskCommand, } from "./commands/CancelCapacityTaskCommand";
2
3
  import { CancelOrderCommand } from "./commands/CancelOrderCommand";
3
4
  import { CreateOrderCommand } from "./commands/CreateOrderCommand";
4
5
  import { CreateOutpostCommand, } from "./commands/CreateOutpostCommand";
5
6
  import { CreateSiteCommand } from "./commands/CreateSiteCommand";
6
7
  import { DeleteOutpostCommand, } from "./commands/DeleteOutpostCommand";
7
8
  import { DeleteSiteCommand } from "./commands/DeleteSiteCommand";
9
+ import { GetCapacityTaskCommand, } from "./commands/GetCapacityTaskCommand";
8
10
  import { GetCatalogItemCommand, } from "./commands/GetCatalogItemCommand";
9
11
  import { GetConnectionCommand, } from "./commands/GetConnectionCommand";
10
12
  import { GetOrderCommand } from "./commands/GetOrderCommand";
11
13
  import { GetOutpostCommand } from "./commands/GetOutpostCommand";
12
14
  import { GetOutpostInstanceTypesCommand, } from "./commands/GetOutpostInstanceTypesCommand";
15
+ import { GetOutpostSupportedInstanceTypesCommand, } from "./commands/GetOutpostSupportedInstanceTypesCommand";
13
16
  import { GetSiteAddressCommand, } from "./commands/GetSiteAddressCommand";
14
17
  import { GetSiteCommand } from "./commands/GetSiteCommand";
15
18
  import { ListAssetsCommand } from "./commands/ListAssetsCommand";
19
+ import { ListCapacityTasksCommand, } from "./commands/ListCapacityTasksCommand";
16
20
  import { ListCatalogItemsCommand, } from "./commands/ListCatalogItemsCommand";
17
21
  import { ListOrdersCommand } from "./commands/ListOrdersCommand";
18
22
  import { ListOutpostsCommand, } from "./commands/ListOutpostsCommand";
19
23
  import { ListSitesCommand } from "./commands/ListSitesCommand";
20
24
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
25
+ import { StartCapacityTaskCommand, } from "./commands/StartCapacityTaskCommand";
21
26
  import { StartConnectionCommand, } from "./commands/StartConnectionCommand";
22
27
  import { TagResourceCommand } from "./commands/TagResourceCommand";
23
28
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -27,25 +32,30 @@ import { UpdateSiteCommand } from "./commands/UpdateSiteCommand";
27
32
  import { UpdateSiteRackPhysicalPropertiesCommand, } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
28
33
  import { OutpostsClient } from "./OutpostsClient";
29
34
  const commands = {
35
+ CancelCapacityTaskCommand,
30
36
  CancelOrderCommand,
31
37
  CreateOrderCommand,
32
38
  CreateOutpostCommand,
33
39
  CreateSiteCommand,
34
40
  DeleteOutpostCommand,
35
41
  DeleteSiteCommand,
42
+ GetCapacityTaskCommand,
36
43
  GetCatalogItemCommand,
37
44
  GetConnectionCommand,
38
45
  GetOrderCommand,
39
46
  GetOutpostCommand,
40
47
  GetOutpostInstanceTypesCommand,
48
+ GetOutpostSupportedInstanceTypesCommand,
41
49
  GetSiteCommand,
42
50
  GetSiteAddressCommand,
43
51
  ListAssetsCommand,
52
+ ListCapacityTasksCommand,
44
53
  ListCatalogItemsCommand,
45
54
  ListOrdersCommand,
46
55
  ListOutpostsCommand,
47
56
  ListSitesCommand,
48
57
  ListTagsForResourceCommand,
58
+ StartCapacityTaskCommand,
49
59
  StartConnectionCommand,
50
60
  TagResourceCommand,
51
61
  UntagResourceCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CancelCapacityTaskCommand, se_CancelCapacityTaskCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CancelCapacityTaskCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "CancelCapacityTask", {})
19
+ .n("OutpostsClient", "CancelCapacityTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CancelCapacityTaskCommand)
22
+ .de(de_CancelCapacityTaskCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetCapacityTaskCommand, se_GetCapacityTaskCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetCapacityTaskCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "GetCapacityTask", {})
19
+ .n("OutpostsClient", "GetCapacityTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetCapacityTaskCommand)
22
+ .de(de_GetCapacityTaskCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetOutpostSupportedInstanceTypesCommand, se_GetOutpostSupportedInstanceTypesCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetOutpostSupportedInstanceTypesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "GetOutpostSupportedInstanceTypes", {})
19
+ .n("OutpostsClient", "GetOutpostSupportedInstanceTypesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetOutpostSupportedInstanceTypesCommand)
22
+ .de(de_GetOutpostSupportedInstanceTypesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListCapacityTasksCommand, se_ListCapacityTasksCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListCapacityTasksCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "ListCapacityTasks", {})
19
+ .n("OutpostsClient", "ListCapacityTasksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListCapacityTasksCommand)
22
+ .de(de_ListCapacityTasksCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StartCapacityTaskCommand, se_StartCapacityTaskCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StartCapacityTaskCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "StartCapacityTask", {})
19
+ .n("OutpostsClient", "StartCapacityTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartCapacityTaskCommand)
22
+ .de(de_StartCapacityTaskCommand)
23
+ .build() {
24
+ }
@@ -1,22 +1,27 @@
1
+ export * from "./CancelCapacityTaskCommand";
1
2
  export * from "./CancelOrderCommand";
2
3
  export * from "./CreateOrderCommand";
3
4
  export * from "./CreateOutpostCommand";
4
5
  export * from "./CreateSiteCommand";
5
6
  export * from "./DeleteOutpostCommand";
6
7
  export * from "./DeleteSiteCommand";
8
+ export * from "./GetCapacityTaskCommand";
7
9
  export * from "./GetCatalogItemCommand";
8
10
  export * from "./GetConnectionCommand";
9
11
  export * from "./GetOrderCommand";
10
12
  export * from "./GetOutpostCommand";
11
13
  export * from "./GetOutpostInstanceTypesCommand";
14
+ export * from "./GetOutpostSupportedInstanceTypesCommand";
12
15
  export * from "./GetSiteAddressCommand";
13
16
  export * from "./GetSiteCommand";
14
17
  export * from "./ListAssetsCommand";
18
+ export * from "./ListCapacityTasksCommand";
15
19
  export * from "./ListCatalogItemsCommand";
16
20
  export * from "./ListOrdersCommand";
17
21
  export * from "./ListOutpostsCommand";
18
22
  export * from "./ListSitesCommand";
19
23
  export * from "./ListTagsForResourceCommand";
24
+ export * from "./StartCapacityTaskCommand";
20
25
  export * from "./StartConnectionCommand";
21
26
  export * from "./TagResourceCommand";
22
27
  export * from "./UntagResourceCommand";
@@ -87,6 +87,16 @@ export class ValidationException extends __BaseException {
87
87
  this.Message = opts.Message;
88
88
  }
89
89
  }
90
+ export const CapacityTaskFailureType = {
91
+ UNSUPPORTED_CAPACITY_CONFIGURATION: "UNSUPPORTED_CAPACITY_CONFIGURATION",
92
+ };
93
+ export const CapacityTaskStatus = {
94
+ CANCELLED: "CANCELLED",
95
+ COMPLETED: "COMPLETED",
96
+ FAILED: "FAILED",
97
+ IN_PROGRESS: "IN_PROGRESS",
98
+ REQUESTED: "REQUESTED",
99
+ };
90
100
  export const CatalogItemStatus = {
91
101
  AVAILABLE: "AVAILABLE",
92
102
  DISCONTINUED: "DISCONTINUED",
@@ -111,6 +121,7 @@ export const PaymentTerm = {
111
121
  export const ShipmentCarrier = {
112
122
  DBS: "DBS",
113
123
  DHL: "DHL",
124
+ EXPEDITORS: "EXPEDITORS",
114
125
  FEDEX: "FEDEX",
115
126
  UPS: "UPS",
116
127
  };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { GetOutpostSupportedInstanceTypesCommand, } from "../commands/GetOutpostSupportedInstanceTypesCommand";
3
+ import { OutpostsClient } from "../OutpostsClient";
4
+ export const paginateGetOutpostSupportedInstanceTypes = createPaginator(OutpostsClient, GetOutpostSupportedInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListCapacityTasksCommand, } from "../commands/ListCapacityTasksCommand";
3
+ import { OutpostsClient } from "../OutpostsClient";
4
+ export const paginateListCapacityTasks = createPaginator(OutpostsClient, ListCapacityTasksCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,6 +1,8 @@
1
1
  export * from "./GetOutpostInstanceTypesPaginator";
2
+ export * from "./GetOutpostSupportedInstanceTypesPaginator";
2
3
  export * from "./Interfaces";
3
4
  export * from "./ListAssetsPaginator";
5
+ export * from "./ListCapacityTasksPaginator";
4
6
  export * from "./ListCatalogItemsPaginator";
5
7
  export * from "./ListOrdersPaginator";
6
8
  export * from "./ListOutpostsPaginator";
@@ -1,8 +1,18 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
5
5
  import { OutpostsServiceException as __BaseException } from "../models/OutpostsServiceException";
6
+ export const se_CancelCapacityTaskCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {};
9
+ b.bp("/outposts/{OutpostIdentifier}/capacity/{CapacityTaskId}");
10
+ b.p("CapacityTaskId", () => input.CapacityTaskId, "{CapacityTaskId}", false);
11
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
12
+ let body;
13
+ b.m("POST").h(headers).b(body);
14
+ return b.build();
15
+ };
6
16
  export const se_CancelOrderCommand = async (input, context) => {
7
17
  const b = rb(input, context);
8
18
  const headers = {};
@@ -84,6 +94,16 @@ export const se_DeleteSiteCommand = async (input, context) => {
84
94
  b.m("DELETE").h(headers).b(body);
85
95
  return b.build();
86
96
  };
97
+ export const se_GetCapacityTaskCommand = async (input, context) => {
98
+ const b = rb(input, context);
99
+ const headers = {};
100
+ b.bp("/outposts/{OutpostIdentifier}/capacity/{CapacityTaskId}");
101
+ b.p("CapacityTaskId", () => input.CapacityTaskId, "{CapacityTaskId}", false);
102
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
103
+ let body;
104
+ b.m("GET").h(headers).b(body);
105
+ return b.build();
106
+ };
87
107
  export const se_GetCatalogItemCommand = async (input, context) => {
88
108
  const b = rb(input, context);
89
109
  const headers = {};
@@ -133,6 +153,20 @@ export const se_GetOutpostInstanceTypesCommand = async (input, context) => {
133
153
  b.m("GET").h(headers).q(query).b(body);
134
154
  return b.build();
135
155
  };
156
+ export const se_GetOutpostSupportedInstanceTypesCommand = async (input, context) => {
157
+ const b = rb(input, context);
158
+ const headers = {};
159
+ b.bp("/outposts/{OutpostIdentifier}/supportedInstanceTypes");
160
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
161
+ const query = map({
162
+ [_OI]: [, __expectNonNull(input[_OI], `OrderId`)],
163
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
164
+ [_NT]: [, input[_NT]],
165
+ });
166
+ let body;
167
+ b.m("GET").h(headers).q(query).b(body);
168
+ return b.build();
169
+ };
136
170
  export const se_GetSiteCommand = async (input, context) => {
137
171
  const b = rb(input, context);
138
172
  const headers = {};
@@ -169,6 +203,23 @@ export const se_ListAssetsCommand = async (input, context) => {
169
203
  b.m("GET").h(headers).q(query).b(body);
170
204
  return b.build();
171
205
  };
206
+ export const se_ListCapacityTasksCommand = async (input, context) => {
207
+ const b = rb(input, context);
208
+ const headers = {};
209
+ b.bp("/capacity/tasks");
210
+ const query = map({
211
+ [_OIF]: [, input[_OIF]],
212
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
213
+ [_NT]: [, input[_NT]],
214
+ [_CTSF]: [
215
+ () => input.CapacityTaskStatusFilter !== void 0,
216
+ () => (input[_CTSF] || []).map((_entry) => _entry),
217
+ ],
218
+ });
219
+ let body;
220
+ b.m("GET").h(headers).q(query).b(body);
221
+ return b.build();
222
+ };
172
223
  export const se_ListCatalogItemsCommand = async (input, context) => {
173
224
  const b = rb(input, context);
174
225
  const headers = {};
@@ -248,6 +299,22 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
248
299
  b.m("GET").h(headers).b(body);
249
300
  return b.build();
250
301
  };
302
+ export const se_StartCapacityTaskCommand = async (input, context) => {
303
+ const b = rb(input, context);
304
+ const headers = {
305
+ "content-type": "application/json",
306
+ };
307
+ b.bp("/outposts/{OutpostIdentifier}/capacity");
308
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
309
+ let body;
310
+ body = JSON.stringify(take(input, {
311
+ DryRun: [],
312
+ InstancePools: (_) => _json(_),
313
+ OrderId: [],
314
+ }));
315
+ b.m("POST").h(headers).b(body);
316
+ return b.build();
317
+ };
251
318
  export const se_StartConnectionCommand = async (input, context) => {
252
319
  const b = rb(input, context);
253
320
  const headers = {
@@ -362,6 +429,16 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context)
362
429
  b.m("PATCH").h(headers).b(body);
363
430
  return b.build();
364
431
  };
432
+ export const de_CancelCapacityTaskCommand = async (output, context) => {
433
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
434
+ return de_CommandError(output, context);
435
+ }
436
+ const contents = map({
437
+ $metadata: deserializeMetadata(output),
438
+ });
439
+ await collectBody(output.body, context);
440
+ return contents;
441
+ };
365
442
  export const de_CancelOrderCommand = async (output, context) => {
366
443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
367
444
  return de_CommandError(output, context);
@@ -434,6 +511,29 @@ export const de_DeleteSiteCommand = async (output, context) => {
434
511
  await collectBody(output.body, context);
435
512
  return contents;
436
513
  };
514
+ export const de_GetCapacityTaskCommand = async (output, context) => {
515
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
516
+ return de_CommandError(output, context);
517
+ }
518
+ const contents = map({
519
+ $metadata: deserializeMetadata(output),
520
+ });
521
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
522
+ const doc = take(data, {
523
+ CapacityTaskId: __expectString,
524
+ CapacityTaskStatus: __expectString,
525
+ CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
526
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
527
+ DryRun: __expectBoolean,
528
+ Failed: _json,
529
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
530
+ OrderId: __expectString,
531
+ OutpostId: __expectString,
532
+ RequestedInstancePools: _json,
533
+ });
534
+ Object.assign(contents, doc);
535
+ return contents;
536
+ };
437
537
  export const de_GetCatalogItemCommand = async (output, context) => {
438
538
  if (output.statusCode !== 200 && output.statusCode >= 300) {
439
539
  return de_CommandError(output, context);
@@ -508,6 +608,21 @@ export const de_GetOutpostInstanceTypesCommand = async (output, context) => {
508
608
  Object.assign(contents, doc);
509
609
  return contents;
510
610
  };
611
+ export const de_GetOutpostSupportedInstanceTypesCommand = async (output, context) => {
612
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
613
+ return de_CommandError(output, context);
614
+ }
615
+ const contents = map({
616
+ $metadata: deserializeMetadata(output),
617
+ });
618
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
619
+ const doc = take(data, {
620
+ InstanceTypes: _json,
621
+ NextToken: __expectString,
622
+ });
623
+ Object.assign(contents, doc);
624
+ return contents;
625
+ };
511
626
  export const de_GetSiteCommand = async (output, context) => {
512
627
  if (output.statusCode !== 200 && output.statusCode >= 300) {
513
628
  return de_CommandError(output, context);
@@ -553,6 +668,21 @@ export const de_ListAssetsCommand = async (output, context) => {
553
668
  Object.assign(contents, doc);
554
669
  return contents;
555
670
  };
671
+ export const de_ListCapacityTasksCommand = async (output, context) => {
672
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
673
+ return de_CommandError(output, context);
674
+ }
675
+ const contents = map({
676
+ $metadata: deserializeMetadata(output),
677
+ });
678
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
679
+ const doc = take(data, {
680
+ CapacityTasks: (_) => de_CapacityTaskList(_, context),
681
+ NextToken: __expectString,
682
+ });
683
+ Object.assign(contents, doc);
684
+ return contents;
685
+ };
556
686
  export const de_ListCatalogItemsCommand = async (output, context) => {
557
687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
558
688
  return de_CommandError(output, context);
@@ -627,6 +757,29 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
627
757
  Object.assign(contents, doc);
628
758
  return contents;
629
759
  };
760
+ export const de_StartCapacityTaskCommand = async (output, context) => {
761
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
762
+ return de_CommandError(output, context);
763
+ }
764
+ const contents = map({
765
+ $metadata: deserializeMetadata(output),
766
+ });
767
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
768
+ const doc = take(data, {
769
+ CapacityTaskId: __expectString,
770
+ CapacityTaskStatus: __expectString,
771
+ CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
772
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
773
+ DryRun: __expectBoolean,
774
+ Failed: _json,
775
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
776
+ OrderId: __expectString,
777
+ OutpostId: __expectString,
778
+ RequestedInstancePools: _json,
779
+ });
780
+ Object.assign(contents, doc);
781
+ return contents;
782
+ };
630
783
  export const de_StartConnectionCommand = async (output, context) => {
631
784
  if (output.statusCode !== 200 && output.statusCode >= 300) {
632
785
  return de_CommandError(output, context);
@@ -856,6 +1009,25 @@ const de_AssetLocation = (output, context) => {
856
1009
  RackElevation: __limitedParseFloat32,
857
1010
  });
858
1011
  };
1012
+ const de_CapacityTaskList = (output, context) => {
1013
+ const retVal = (output || [])
1014
+ .filter((e) => e != null)
1015
+ .map((entry) => {
1016
+ return de_CapacityTaskSummary(entry, context);
1017
+ });
1018
+ return retVal;
1019
+ };
1020
+ const de_CapacityTaskSummary = (output, context) => {
1021
+ return take(output, {
1022
+ CapacityTaskId: __expectString,
1023
+ CapacityTaskStatus: __expectString,
1024
+ CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1025
+ CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1026
+ LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1027
+ OrderId: __expectString,
1028
+ OutpostId: __expectString,
1029
+ });
1030
+ };
859
1031
  const de_CatalogItem = (output, context) => {
860
1032
  return take(output, {
861
1033
  CatalogItemId: __expectString,
@@ -922,6 +1094,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
922
1094
  const _AT = "AddressType";
923
1095
  const _AZF = "AvailabilityZoneFilter";
924
1096
  const _AZIF = "AvailabilityZoneIdFilter";
1097
+ const _CTSF = "CapacityTaskStatusFilter";
925
1098
  const _ECFF = "EC2FamilyFilter";
926
1099
  const _HIF = "HostIdFilter";
927
1100
  const _ICF = "ItemClassFilter";
@@ -931,6 +1104,7 @@ const _NT = "NextToken";
931
1104
  const _OACCF = "OperatingAddressCountryCodeFilter";
932
1105
  const _OACF = "OperatingAddressCityFilter";
933
1106
  const _OASORF = "OperatingAddressStateOrRegionFilter";
1107
+ const _OI = "OrderId";
934
1108
  const _OIF = "OutpostIdentifierFilter";
935
1109
  const _SF = "StatusFilter";
936
1110
  const _SSF = "SupportedStorageFilter";
@@ -1,23 +1,28 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CancelCapacityTaskCommandInput, CancelCapacityTaskCommandOutput } from "./commands/CancelCapacityTaskCommand";
2
3
  import { CancelOrderCommandInput, CancelOrderCommandOutput } from "./commands/CancelOrderCommand";
3
4
  import { CreateOrderCommandInput, CreateOrderCommandOutput } from "./commands/CreateOrderCommand";
4
5
  import { CreateOutpostCommandInput, CreateOutpostCommandOutput } from "./commands/CreateOutpostCommand";
5
6
  import { CreateSiteCommandInput, CreateSiteCommandOutput } from "./commands/CreateSiteCommand";
6
7
  import { DeleteOutpostCommandInput, DeleteOutpostCommandOutput } from "./commands/DeleteOutpostCommand";
7
8
  import { DeleteSiteCommandInput, DeleteSiteCommandOutput } from "./commands/DeleteSiteCommand";
9
+ import { GetCapacityTaskCommandInput, GetCapacityTaskCommandOutput } from "./commands/GetCapacityTaskCommand";
8
10
  import { GetCatalogItemCommandInput, GetCatalogItemCommandOutput } from "./commands/GetCatalogItemCommand";
9
11
  import { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
10
12
  import { GetOrderCommandInput, GetOrderCommandOutput } from "./commands/GetOrderCommand";
11
13
  import { GetOutpostCommandInput, GetOutpostCommandOutput } from "./commands/GetOutpostCommand";
12
14
  import { GetOutpostInstanceTypesCommandInput, GetOutpostInstanceTypesCommandOutput } from "./commands/GetOutpostInstanceTypesCommand";
15
+ import { GetOutpostSupportedInstanceTypesCommandInput, GetOutpostSupportedInstanceTypesCommandOutput } from "./commands/GetOutpostSupportedInstanceTypesCommand";
13
16
  import { GetSiteAddressCommandInput, GetSiteAddressCommandOutput } from "./commands/GetSiteAddressCommand";
14
17
  import { GetSiteCommandInput, GetSiteCommandOutput } from "./commands/GetSiteCommand";
15
18
  import { ListAssetsCommandInput, ListAssetsCommandOutput } from "./commands/ListAssetsCommand";
19
+ import { ListCapacityTasksCommandInput, ListCapacityTasksCommandOutput } from "./commands/ListCapacityTasksCommand";
16
20
  import { ListCatalogItemsCommandInput, ListCatalogItemsCommandOutput } from "./commands/ListCatalogItemsCommand";
17
21
  import { ListOrdersCommandInput, ListOrdersCommandOutput } from "./commands/ListOrdersCommand";
18
22
  import { ListOutpostsCommandInput, ListOutpostsCommandOutput } from "./commands/ListOutpostsCommand";
19
23
  import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSitesCommand";
20
24
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
+ import { StartCapacityTaskCommandInput, StartCapacityTaskCommandOutput } from "./commands/StartCapacityTaskCommand";
21
26
  import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
22
27
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
23
28
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -27,6 +32,12 @@ import { UpdateSiteCommandInput, UpdateSiteCommandOutput } from "./commands/Upda
27
32
  import { UpdateSiteRackPhysicalPropertiesCommandInput, UpdateSiteRackPhysicalPropertiesCommandOutput } from "./commands/UpdateSiteRackPhysicalPropertiesCommand";
28
33
  import { OutpostsClient } from "./OutpostsClient";
29
34
  export interface Outposts {
35
+ /**
36
+ * @see {@link CancelCapacityTaskCommand}
37
+ */
38
+ cancelCapacityTask(args: CancelCapacityTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelCapacityTaskCommandOutput>;
39
+ cancelCapacityTask(args: CancelCapacityTaskCommandInput, cb: (err: any, data?: CancelCapacityTaskCommandOutput) => void): void;
40
+ cancelCapacityTask(args: CancelCapacityTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelCapacityTaskCommandOutput) => void): void;
30
41
  /**
31
42
  * @see {@link CancelOrderCommand}
32
43
  */
@@ -63,6 +74,12 @@ export interface Outposts {
63
74
  deleteSite(args: DeleteSiteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSiteCommandOutput>;
64
75
  deleteSite(args: DeleteSiteCommandInput, cb: (err: any, data?: DeleteSiteCommandOutput) => void): void;
65
76
  deleteSite(args: DeleteSiteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSiteCommandOutput) => void): void;
77
+ /**
78
+ * @see {@link GetCapacityTaskCommand}
79
+ */
80
+ getCapacityTask(args: GetCapacityTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetCapacityTaskCommandOutput>;
81
+ getCapacityTask(args: GetCapacityTaskCommandInput, cb: (err: any, data?: GetCapacityTaskCommandOutput) => void): void;
82
+ getCapacityTask(args: GetCapacityTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCapacityTaskCommandOutput) => void): void;
66
83
  /**
67
84
  * @see {@link GetCatalogItemCommand}
68
85
  */
@@ -93,6 +110,12 @@ export interface Outposts {
93
110
  getOutpostInstanceTypes(args: GetOutpostInstanceTypesCommandInput, options?: __HttpHandlerOptions): Promise<GetOutpostInstanceTypesCommandOutput>;
94
111
  getOutpostInstanceTypes(args: GetOutpostInstanceTypesCommandInput, cb: (err: any, data?: GetOutpostInstanceTypesCommandOutput) => void): void;
95
112
  getOutpostInstanceTypes(args: GetOutpostInstanceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOutpostInstanceTypesCommandOutput) => void): void;
113
+ /**
114
+ * @see {@link GetOutpostSupportedInstanceTypesCommand}
115
+ */
116
+ getOutpostSupportedInstanceTypes(args: GetOutpostSupportedInstanceTypesCommandInput, options?: __HttpHandlerOptions): Promise<GetOutpostSupportedInstanceTypesCommandOutput>;
117
+ getOutpostSupportedInstanceTypes(args: GetOutpostSupportedInstanceTypesCommandInput, cb: (err: any, data?: GetOutpostSupportedInstanceTypesCommandOutput) => void): void;
118
+ getOutpostSupportedInstanceTypes(args: GetOutpostSupportedInstanceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOutpostSupportedInstanceTypesCommandOutput) => void): void;
96
119
  /**
97
120
  * @see {@link GetSiteCommand}
98
121
  */
@@ -111,6 +134,13 @@ export interface Outposts {
111
134
  listAssets(args: ListAssetsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssetsCommandOutput>;
112
135
  listAssets(args: ListAssetsCommandInput, cb: (err: any, data?: ListAssetsCommandOutput) => void): void;
113
136
  listAssets(args: ListAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssetsCommandOutput) => void): void;
137
+ /**
138
+ * @see {@link ListCapacityTasksCommand}
139
+ */
140
+ listCapacityTasks(): Promise<ListCapacityTasksCommandOutput>;
141
+ listCapacityTasks(args: ListCapacityTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListCapacityTasksCommandOutput>;
142
+ listCapacityTasks(args: ListCapacityTasksCommandInput, cb: (err: any, data?: ListCapacityTasksCommandOutput) => void): void;
143
+ listCapacityTasks(args: ListCapacityTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCapacityTasksCommandOutput) => void): void;
114
144
  /**
115
145
  * @see {@link ListCatalogItemsCommand}
116
146
  */
@@ -145,6 +175,12 @@ export interface Outposts {
145
175
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
146
176
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
147
177
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
178
+ /**
179
+ * @see {@link StartCapacityTaskCommand}
180
+ */
181
+ startCapacityTask(args: StartCapacityTaskCommandInput, options?: __HttpHandlerOptions): Promise<StartCapacityTaskCommandOutput>;
182
+ startCapacityTask(args: StartCapacityTaskCommandInput, cb: (err: any, data?: StartCapacityTaskCommandOutput) => void): void;
183
+ startCapacityTask(args: StartCapacityTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCapacityTaskCommandOutput) => void): void;
148
184
  /**
149
185
  * @see {@link StartConnectionCommand}
150
186
  */