@aws-sdk/client-outposts 3.687.0 → 3.689.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.
- package/README.md +16 -0
- package/dist-cjs/index.js +145 -6
- package/dist-es/Outposts.js +4 -0
- package/dist-es/commands/ListAssetInstancesCommand.js +22 -0
- package/dist-es/commands/ListBlockingInstancesForCapacityTaskCommand.js +22 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +18 -0
- package/dist-es/pagination/ListAssetInstancesPaginator.js +4 -0
- package/dist-es/pagination/ListBlockingInstancesForCapacityTaskPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +72 -1
- package/dist-types/Outposts.d.ts +14 -0
- package/dist-types/OutpostsClient.d.ts +4 -2
- package/dist-types/commands/GetCapacityTaskCommand.d.ts +14 -2
- package/dist-types/commands/GetOutpostSupportedInstanceTypesCommand.d.ts +4 -5
- package/dist-types/commands/ListAssetInstancesCommand.d.ts +107 -0
- package/dist-types/commands/ListAssetsCommand.d.ts +7 -0
- package/dist-types/commands/ListBlockingInstancesForCapacityTaskCommand.d.ts +95 -0
- package/dist-types/commands/ListCapacityTasksCommand.d.ts +2 -2
- package/dist-types/commands/StartCapacityTaskCommand.d.ts +28 -4
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +312 -8
- package/dist-types/pagination/ListAssetInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBlockingInstancesForCapacityTaskPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Outposts.d.ts +40 -0
- package/dist-types/ts3.4/OutpostsClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListAssetInstancesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBlockingInstancesForCapacityTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +76 -2
- package/dist-types/ts3.4/pagination/ListAssetInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBlockingInstancesForCapacityTaskPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -334,6 +334,14 @@ GetSiteAddress
|
|
|
334
334
|
|
|
335
335
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/GetSiteAddressCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetSiteAddressCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/GetSiteAddressCommandOutput/)
|
|
336
336
|
|
|
337
|
+
</details>
|
|
338
|
+
<details>
|
|
339
|
+
<summary>
|
|
340
|
+
ListAssetInstances
|
|
341
|
+
</summary>
|
|
342
|
+
|
|
343
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListAssetInstancesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListAssetInstancesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListAssetInstancesCommandOutput/)
|
|
344
|
+
|
|
337
345
|
</details>
|
|
338
346
|
<details>
|
|
339
347
|
<summary>
|
|
@@ -342,6 +350,14 @@ ListAssets
|
|
|
342
350
|
|
|
343
351
|
[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/)
|
|
344
352
|
|
|
353
|
+
</details>
|
|
354
|
+
<details>
|
|
355
|
+
<summary>
|
|
356
|
+
ListBlockingInstancesForCapacityTask
|
|
357
|
+
</summary>
|
|
358
|
+
|
|
359
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/outposts/command/ListBlockingInstancesForCapacityTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListBlockingInstancesForCapacityTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-outposts/Interface/ListBlockingInstancesForCapacityTaskCommandOutput/)
|
|
360
|
+
|
|
345
361
|
</details>
|
|
346
362
|
<details>
|
|
347
363
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
|
+
AWSServiceName: () => AWSServiceName,
|
|
24
25
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
26
|
AddressType: () => AddressType,
|
|
26
27
|
AssetState: () => AssetState,
|
|
@@ -50,7 +51,9 @@ __export(src_exports, {
|
|
|
50
51
|
GetSiteCommand: () => GetSiteCommand,
|
|
51
52
|
InternalServerException: () => InternalServerException,
|
|
52
53
|
LineItemStatus: () => LineItemStatus,
|
|
54
|
+
ListAssetInstancesCommand: () => ListAssetInstancesCommand,
|
|
53
55
|
ListAssetsCommand: () => ListAssetsCommand,
|
|
56
|
+
ListBlockingInstancesForCapacityTaskCommand: () => ListBlockingInstancesForCapacityTaskCommand,
|
|
54
57
|
ListCapacityTasksCommand: () => ListCapacityTasksCommand,
|
|
55
58
|
ListCatalogItemsCommand: () => ListCatalogItemsCommand,
|
|
56
59
|
ListOrdersCommand: () => ListOrdersCommand,
|
|
@@ -79,6 +82,7 @@ __export(src_exports, {
|
|
|
79
82
|
SupportedHardwareType: () => SupportedHardwareType,
|
|
80
83
|
SupportedStorageEnum: () => SupportedStorageEnum,
|
|
81
84
|
TagResourceCommand: () => TagResourceCommand,
|
|
85
|
+
TaskActionOnBlockingInstances: () => TaskActionOnBlockingInstances,
|
|
82
86
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
83
87
|
UpdateOutpostCommand: () => UpdateOutpostCommand,
|
|
84
88
|
UpdateSiteAddressCommand: () => UpdateSiteAddressCommand,
|
|
@@ -90,7 +94,9 @@ __export(src_exports, {
|
|
|
90
94
|
__Client: () => import_smithy_client.Client,
|
|
91
95
|
paginateGetOutpostInstanceTypes: () => paginateGetOutpostInstanceTypes,
|
|
92
96
|
paginateGetOutpostSupportedInstanceTypes: () => paginateGetOutpostSupportedInstanceTypes,
|
|
97
|
+
paginateListAssetInstances: () => paginateListAssetInstances,
|
|
93
98
|
paginateListAssets: () => paginateListAssets,
|
|
99
|
+
paginateListBlockingInstancesForCapacityTask: () => paginateListBlockingInstancesForCapacityTask,
|
|
94
100
|
paginateListCapacityTasks: () => paginateListCapacityTasks,
|
|
95
101
|
paginateListCatalogItems: () => paginateListCatalogItems,
|
|
96
102
|
paginateListOrders: () => paginateListOrders,
|
|
@@ -294,6 +300,14 @@ var ComputeAssetState = {
|
|
|
294
300
|
ISOLATED: "ISOLATED",
|
|
295
301
|
RETIRING: "RETIRING"
|
|
296
302
|
};
|
|
303
|
+
var AWSServiceName = {
|
|
304
|
+
AWS: "AWS",
|
|
305
|
+
EC2: "EC2",
|
|
306
|
+
ELASTICACHE: "ELASTICACHE",
|
|
307
|
+
ELB: "ELB",
|
|
308
|
+
RDS: "RDS",
|
|
309
|
+
ROUTE53: "ROUTE53"
|
|
310
|
+
};
|
|
297
311
|
var AssetState = {
|
|
298
312
|
ACTIVE: "ACTIVE",
|
|
299
313
|
ISOLATED: "ISOLATED",
|
|
@@ -378,14 +392,20 @@ var _ValidationException = class _ValidationException extends OutpostsServiceExc
|
|
|
378
392
|
__name(_ValidationException, "ValidationException");
|
|
379
393
|
var ValidationException = _ValidationException;
|
|
380
394
|
var CapacityTaskFailureType = {
|
|
395
|
+
BLOCKING_INSTANCES_NOT_EVACUATED: "BLOCKING_INSTANCES_NOT_EVACUATED",
|
|
396
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
397
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
398
|
+
UNEXPECTED_ASSET_STATE: "UNEXPECTED_ASSET_STATE",
|
|
381
399
|
UNSUPPORTED_CAPACITY_CONFIGURATION: "UNSUPPORTED_CAPACITY_CONFIGURATION"
|
|
382
400
|
};
|
|
383
401
|
var CapacityTaskStatus = {
|
|
402
|
+
CANCELLATION_IN_PROGRESS: "CANCELLATION_IN_PROGRESS",
|
|
384
403
|
CANCELLED: "CANCELLED",
|
|
385
404
|
COMPLETED: "COMPLETED",
|
|
386
405
|
FAILED: "FAILED",
|
|
387
406
|
IN_PROGRESS: "IN_PROGRESS",
|
|
388
|
-
REQUESTED: "REQUESTED"
|
|
407
|
+
REQUESTED: "REQUESTED",
|
|
408
|
+
WAITING_FOR_EVACUATION: "WAITING_FOR_EVACUATION"
|
|
389
409
|
};
|
|
390
410
|
var CatalogItemStatus = {
|
|
391
411
|
AVAILABLE: "AVAILABLE",
|
|
@@ -529,6 +549,10 @@ var UplinkGbps = {
|
|
|
529
549
|
UPLINK_1G: "UPLINK_1G",
|
|
530
550
|
UPLINK_40G: "UPLINK_40G"
|
|
531
551
|
};
|
|
552
|
+
var TaskActionOnBlockingInstances = {
|
|
553
|
+
FAIL_TASK: "FAIL_TASK",
|
|
554
|
+
WAIT_FOR_EVACUATION: "WAIT_FOR_EVACUATION"
|
|
555
|
+
};
|
|
532
556
|
|
|
533
557
|
// src/protocols/Aws_restJson1.ts
|
|
534
558
|
var se_CancelCapacityTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -693,7 +717,7 @@ var se_GetOutpostSupportedInstanceTypesCommand = /* @__PURE__ */ __name(async (i
|
|
|
693
717
|
b.bp("/outposts/{OutpostIdentifier}/supportedInstanceTypes");
|
|
694
718
|
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
695
719
|
const query = (0, import_smithy_client.map)({
|
|
696
|
-
[_OI]: [,
|
|
720
|
+
[_OI]: [, input[_OI]],
|
|
697
721
|
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
698
722
|
[_NT]: [, input[_NT]]
|
|
699
723
|
});
|
|
@@ -722,6 +746,23 @@ var se_GetSiteAddressCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
722
746
|
b.m("GET").h(headers).q(query).b(body);
|
|
723
747
|
return b.build();
|
|
724
748
|
}, "se_GetSiteAddressCommand");
|
|
749
|
+
var se_ListAssetInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
750
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
751
|
+
const headers = {};
|
|
752
|
+
b.bp("/outposts/{OutpostIdentifier}/assetInstances");
|
|
753
|
+
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
754
|
+
const query = (0, import_smithy_client.map)({
|
|
755
|
+
[_AIF]: [() => input.AssetIdFilter !== void 0, () => input[_AIF] || []],
|
|
756
|
+
[_ITF]: [() => input.InstanceTypeFilter !== void 0, () => input[_ITF] || []],
|
|
757
|
+
[_AIFc]: [() => input.AccountIdFilter !== void 0, () => input[_AIFc] || []],
|
|
758
|
+
[_ASF]: [() => input.AwsServiceFilter !== void 0, () => input[_ASF] || []],
|
|
759
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
760
|
+
[_NT]: [, input[_NT]]
|
|
761
|
+
});
|
|
762
|
+
let body;
|
|
763
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
764
|
+
return b.build();
|
|
765
|
+
}, "se_ListAssetInstancesCommand");
|
|
725
766
|
var se_ListAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
726
767
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
727
768
|
const headers = {};
|
|
@@ -737,6 +778,20 @@ var se_ListAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
737
778
|
b.m("GET").h(headers).q(query).b(body);
|
|
738
779
|
return b.build();
|
|
739
780
|
}, "se_ListAssetsCommand");
|
|
781
|
+
var se_ListBlockingInstancesForCapacityTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
782
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
783
|
+
const headers = {};
|
|
784
|
+
b.bp("/outposts/{OutpostIdentifier}/capacity/{CapacityTaskId}/blockingInstances");
|
|
785
|
+
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
786
|
+
b.p("CapacityTaskId", () => input.CapacityTaskId, "{CapacityTaskId}", false);
|
|
787
|
+
const query = (0, import_smithy_client.map)({
|
|
788
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
789
|
+
[_NT]: [, input[_NT]]
|
|
790
|
+
});
|
|
791
|
+
let body;
|
|
792
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
793
|
+
return b.build();
|
|
794
|
+
}, "se_ListBlockingInstancesForCapacityTaskCommand");
|
|
740
795
|
var se_ListCapacityTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
741
796
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
742
797
|
const headers = {};
|
|
@@ -830,7 +885,9 @@ var se_StartCapacityTaskCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
830
885
|
(0, import_smithy_client.take)(input, {
|
|
831
886
|
DryRun: [],
|
|
832
887
|
InstancePools: (_) => (0, import_smithy_client._json)(_),
|
|
833
|
-
|
|
888
|
+
InstancesToExclude: (_) => (0, import_smithy_client._json)(_),
|
|
889
|
+
OrderId: [],
|
|
890
|
+
TaskActionOnBlockingInstances: []
|
|
834
891
|
})
|
|
835
892
|
);
|
|
836
893
|
b.m("POST").h(headers).b(body);
|
|
@@ -1056,10 +1113,12 @@ var de_GetCapacityTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1056
1113
|
CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1057
1114
|
DryRun: import_smithy_client.expectBoolean,
|
|
1058
1115
|
Failed: import_smithy_client._json,
|
|
1116
|
+
InstancesToExclude: import_smithy_client._json,
|
|
1059
1117
|
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1060
1118
|
OrderId: import_smithy_client.expectString,
|
|
1061
1119
|
OutpostId: import_smithy_client.expectString,
|
|
1062
|
-
RequestedInstancePools: import_smithy_client._json
|
|
1120
|
+
RequestedInstancePools: import_smithy_client._json,
|
|
1121
|
+
TaskActionOnBlockingInstances: import_smithy_client.expectString
|
|
1063
1122
|
});
|
|
1064
1123
|
Object.assign(contents, doc);
|
|
1065
1124
|
return contents;
|
|
@@ -1183,6 +1242,21 @@ var de_GetSiteAddressCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1183
1242
|
Object.assign(contents, doc);
|
|
1184
1243
|
return contents;
|
|
1185
1244
|
}, "de_GetSiteAddressCommand");
|
|
1245
|
+
var de_ListAssetInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
|
+
return de_CommandError(output, context);
|
|
1248
|
+
}
|
|
1249
|
+
const contents = (0, import_smithy_client.map)({
|
|
1250
|
+
$metadata: deserializeMetadata(output)
|
|
1251
|
+
});
|
|
1252
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1253
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1254
|
+
AssetInstances: import_smithy_client._json,
|
|
1255
|
+
NextToken: import_smithy_client.expectString
|
|
1256
|
+
});
|
|
1257
|
+
Object.assign(contents, doc);
|
|
1258
|
+
return contents;
|
|
1259
|
+
}, "de_ListAssetInstancesCommand");
|
|
1186
1260
|
var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
1261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
1262
|
return de_CommandError(output, context);
|
|
@@ -1198,6 +1272,21 @@ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1198
1272
|
Object.assign(contents, doc);
|
|
1199
1273
|
return contents;
|
|
1200
1274
|
}, "de_ListAssetsCommand");
|
|
1275
|
+
var de_ListBlockingInstancesForCapacityTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1276
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1277
|
+
return de_CommandError(output, context);
|
|
1278
|
+
}
|
|
1279
|
+
const contents = (0, import_smithy_client.map)({
|
|
1280
|
+
$metadata: deserializeMetadata(output)
|
|
1281
|
+
});
|
|
1282
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1283
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1284
|
+
BlockingInstances: import_smithy_client._json,
|
|
1285
|
+
NextToken: import_smithy_client.expectString
|
|
1286
|
+
});
|
|
1287
|
+
Object.assign(contents, doc);
|
|
1288
|
+
return contents;
|
|
1289
|
+
}, "de_ListBlockingInstancesForCapacityTaskCommand");
|
|
1201
1290
|
var de_ListCapacityTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1202
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1203
1292
|
return de_CommandError(output, context);
|
|
@@ -1302,10 +1391,12 @@ var de_StartCapacityTaskCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1302
1391
|
CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1303
1392
|
DryRun: import_smithy_client.expectBoolean,
|
|
1304
1393
|
Failed: import_smithy_client._json,
|
|
1394
|
+
InstancesToExclude: import_smithy_client._json,
|
|
1305
1395
|
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1306
1396
|
OrderId: import_smithy_client.expectString,
|
|
1307
1397
|
OutpostId: import_smithy_client.expectString,
|
|
1308
|
-
RequestedInstancePools: import_smithy_client._json
|
|
1398
|
+
RequestedInstancePools: import_smithy_client._json,
|
|
1399
|
+
TaskActionOnBlockingInstances: import_smithy_client.expectString
|
|
1309
1400
|
});
|
|
1310
1401
|
Object.assign(contents, doc);
|
|
1311
1402
|
return contents;
|
|
@@ -1607,6 +1698,9 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1607
1698
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1608
1699
|
cfId: output.headers["x-amz-cf-id"]
|
|
1609
1700
|
}), "deserializeMetadata");
|
|
1701
|
+
var _AIF = "AssetIdFilter";
|
|
1702
|
+
var _AIFc = "AccountIdFilter";
|
|
1703
|
+
var _ASF = "AwsServiceFilter";
|
|
1610
1704
|
var _AT = "AddressType";
|
|
1611
1705
|
var _AZF = "AvailabilityZoneFilter";
|
|
1612
1706
|
var _AZIF = "AvailabilityZoneIdFilter";
|
|
@@ -1614,6 +1708,7 @@ var _CTSF = "CapacityTaskStatusFilter";
|
|
|
1614
1708
|
var _ECFF = "EC2FamilyFilter";
|
|
1615
1709
|
var _HIF = "HostIdFilter";
|
|
1616
1710
|
var _ICF = "ItemClassFilter";
|
|
1711
|
+
var _ITF = "InstanceTypeFilter";
|
|
1617
1712
|
var _LCSF = "LifeCycleStatusFilter";
|
|
1618
1713
|
var _MR = "MaxResults";
|
|
1619
1714
|
var _NT = "NextToken";
|
|
@@ -1848,6 +1943,20 @@ var _GetSiteCommand = class _GetSiteCommand extends import_smithy_client.Command
|
|
|
1848
1943
|
__name(_GetSiteCommand, "GetSiteCommand");
|
|
1849
1944
|
var GetSiteCommand = _GetSiteCommand;
|
|
1850
1945
|
|
|
1946
|
+
// src/commands/ListAssetInstancesCommand.ts
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
var _ListAssetInstancesCommand = class _ListAssetInstancesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1951
|
+
return [
|
|
1952
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1953
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1954
|
+
];
|
|
1955
|
+
}).s("OutpostsOlafService", "ListAssetInstances", {}).n("OutpostsClient", "ListAssetInstancesCommand").f(void 0, void 0).ser(se_ListAssetInstancesCommand).de(de_ListAssetInstancesCommand).build() {
|
|
1956
|
+
};
|
|
1957
|
+
__name(_ListAssetInstancesCommand, "ListAssetInstancesCommand");
|
|
1958
|
+
var ListAssetInstancesCommand = _ListAssetInstancesCommand;
|
|
1959
|
+
|
|
1851
1960
|
// src/commands/ListAssetsCommand.ts
|
|
1852
1961
|
|
|
1853
1962
|
|
|
@@ -1862,6 +1971,20 @@ var _ListAssetsCommand = class _ListAssetsCommand extends import_smithy_client.C
|
|
|
1862
1971
|
__name(_ListAssetsCommand, "ListAssetsCommand");
|
|
1863
1972
|
var ListAssetsCommand = _ListAssetsCommand;
|
|
1864
1973
|
|
|
1974
|
+
// src/commands/ListBlockingInstancesForCapacityTaskCommand.ts
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
var _ListBlockingInstancesForCapacityTaskCommand = class _ListBlockingInstancesForCapacityTaskCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1979
|
+
return [
|
|
1980
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1981
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1982
|
+
];
|
|
1983
|
+
}).s("OutpostsOlafService", "ListBlockingInstancesForCapacityTask", {}).n("OutpostsClient", "ListBlockingInstancesForCapacityTaskCommand").f(void 0, void 0).ser(se_ListBlockingInstancesForCapacityTaskCommand).de(de_ListBlockingInstancesForCapacityTaskCommand).build() {
|
|
1984
|
+
};
|
|
1985
|
+
__name(_ListBlockingInstancesForCapacityTaskCommand, "ListBlockingInstancesForCapacityTaskCommand");
|
|
1986
|
+
var ListBlockingInstancesForCapacityTaskCommand = _ListBlockingInstancesForCapacityTaskCommand;
|
|
1987
|
+
|
|
1865
1988
|
// src/commands/ListCapacityTasksCommand.ts
|
|
1866
1989
|
|
|
1867
1990
|
|
|
@@ -2076,7 +2199,9 @@ var commands = {
|
|
|
2076
2199
|
GetOutpostSupportedInstanceTypesCommand,
|
|
2077
2200
|
GetSiteCommand,
|
|
2078
2201
|
GetSiteAddressCommand,
|
|
2202
|
+
ListAssetInstancesCommand,
|
|
2079
2203
|
ListAssetsCommand,
|
|
2204
|
+
ListBlockingInstancesForCapacityTaskCommand,
|
|
2080
2205
|
ListCapacityTasksCommand,
|
|
2081
2206
|
ListCatalogItemsCommand,
|
|
2082
2207
|
ListOrdersCommand,
|
|
@@ -2106,10 +2231,18 @@ var paginateGetOutpostInstanceTypes = (0, import_core.createPaginator)(OutpostsC
|
|
|
2106
2231
|
|
|
2107
2232
|
var paginateGetOutpostSupportedInstanceTypes = (0, import_core.createPaginator)(OutpostsClient, GetOutpostSupportedInstanceTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2108
2233
|
|
|
2234
|
+
// src/pagination/ListAssetInstancesPaginator.ts
|
|
2235
|
+
|
|
2236
|
+
var paginateListAssetInstances = (0, import_core.createPaginator)(OutpostsClient, ListAssetInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2237
|
+
|
|
2109
2238
|
// src/pagination/ListAssetsPaginator.ts
|
|
2110
2239
|
|
|
2111
2240
|
var paginateListAssets = (0, import_core.createPaginator)(OutpostsClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2112
2241
|
|
|
2242
|
+
// src/pagination/ListBlockingInstancesForCapacityTaskPaginator.ts
|
|
2243
|
+
|
|
2244
|
+
var paginateListBlockingInstancesForCapacityTask = (0, import_core.createPaginator)(OutpostsClient, ListBlockingInstancesForCapacityTaskCommand, "NextToken", "NextToken", "MaxResults");
|
|
2245
|
+
|
|
2113
2246
|
// src/pagination/ListCapacityTasksPaginator.ts
|
|
2114
2247
|
|
|
2115
2248
|
var paginateListCapacityTasks = (0, import_core.createPaginator)(OutpostsClient, ListCapacityTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -2153,7 +2286,9 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
|
|
|
2153
2286
|
GetOutpostSupportedInstanceTypesCommand,
|
|
2154
2287
|
GetSiteAddressCommand,
|
|
2155
2288
|
GetSiteCommand,
|
|
2289
|
+
ListAssetInstancesCommand,
|
|
2156
2290
|
ListAssetsCommand,
|
|
2291
|
+
ListBlockingInstancesForCapacityTaskCommand,
|
|
2157
2292
|
ListCapacityTasksCommand,
|
|
2158
2293
|
ListCatalogItemsCommand,
|
|
2159
2294
|
ListOrdersCommand,
|
|
@@ -2170,7 +2305,9 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
|
|
|
2170
2305
|
UpdateSiteRackPhysicalPropertiesCommand,
|
|
2171
2306
|
paginateGetOutpostInstanceTypes,
|
|
2172
2307
|
paginateGetOutpostSupportedInstanceTypes,
|
|
2308
|
+
paginateListAssetInstances,
|
|
2173
2309
|
paginateListAssets,
|
|
2310
|
+
paginateListBlockingInstancesForCapacityTask,
|
|
2174
2311
|
paginateListCapacityTasks,
|
|
2175
2312
|
paginateListCatalogItems,
|
|
2176
2313
|
paginateListOrders,
|
|
@@ -2180,6 +2317,7 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
|
|
|
2180
2317
|
AddressType,
|
|
2181
2318
|
AssetType,
|
|
2182
2319
|
ComputeAssetState,
|
|
2320
|
+
AWSServiceName,
|
|
2183
2321
|
AssetState,
|
|
2184
2322
|
ResourceType,
|
|
2185
2323
|
ConflictException,
|
|
@@ -2207,6 +2345,7 @@ var paginateListSites = (0, import_core.createPaginator)(OutpostsClient, ListSit
|
|
|
2207
2345
|
PowerFeedDrop,
|
|
2208
2346
|
PowerPhase,
|
|
2209
2347
|
UplinkCount,
|
|
2210
|
-
UplinkGbps
|
|
2348
|
+
UplinkGbps,
|
|
2349
|
+
TaskActionOnBlockingInstances
|
|
2211
2350
|
});
|
|
2212
2351
|
|
package/dist-es/Outposts.js
CHANGED
|
@@ -15,7 +15,9 @@ import { GetOutpostInstanceTypesCommand, } from "./commands/GetOutpostInstanceTy
|
|
|
15
15
|
import { GetOutpostSupportedInstanceTypesCommand, } from "./commands/GetOutpostSupportedInstanceTypesCommand";
|
|
16
16
|
import { GetSiteAddressCommand, } from "./commands/GetSiteAddressCommand";
|
|
17
17
|
import { GetSiteCommand } from "./commands/GetSiteCommand";
|
|
18
|
+
import { ListAssetInstancesCommand, } from "./commands/ListAssetInstancesCommand";
|
|
18
19
|
import { ListAssetsCommand } from "./commands/ListAssetsCommand";
|
|
20
|
+
import { ListBlockingInstancesForCapacityTaskCommand, } from "./commands/ListBlockingInstancesForCapacityTaskCommand";
|
|
19
21
|
import { ListCapacityTasksCommand, } from "./commands/ListCapacityTasksCommand";
|
|
20
22
|
import { ListCatalogItemsCommand, } from "./commands/ListCatalogItemsCommand";
|
|
21
23
|
import { ListOrdersCommand } from "./commands/ListOrdersCommand";
|
|
@@ -48,7 +50,9 @@ const commands = {
|
|
|
48
50
|
GetOutpostSupportedInstanceTypesCommand,
|
|
49
51
|
GetSiteCommand,
|
|
50
52
|
GetSiteAddressCommand,
|
|
53
|
+
ListAssetInstancesCommand,
|
|
51
54
|
ListAssetsCommand,
|
|
55
|
+
ListBlockingInstancesForCapacityTaskCommand,
|
|
52
56
|
ListCapacityTasksCommand,
|
|
53
57
|
ListCatalogItemsCommand,
|
|
54
58
|
ListOrdersCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
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_ListAssetInstancesCommand, se_ListAssetInstancesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListAssetInstancesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("OutpostsOlafService", "ListAssetInstances", {})
|
|
17
|
+
.n("OutpostsClient", "ListAssetInstancesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListAssetInstancesCommand)
|
|
20
|
+
.de(de_ListAssetInstancesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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_ListBlockingInstancesForCapacityTaskCommand, se_ListBlockingInstancesForCapacityTaskCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListBlockingInstancesForCapacityTaskCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("OutpostsOlafService", "ListBlockingInstancesForCapacityTask", {})
|
|
17
|
+
.n("OutpostsClient", "ListBlockingInstancesForCapacityTaskCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListBlockingInstancesForCapacityTaskCommand)
|
|
20
|
+
.de(de_ListBlockingInstancesForCapacityTaskCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -14,7 +14,9 @@ export * from "./GetOutpostInstanceTypesCommand";
|
|
|
14
14
|
export * from "./GetOutpostSupportedInstanceTypesCommand";
|
|
15
15
|
export * from "./GetSiteAddressCommand";
|
|
16
16
|
export * from "./GetSiteCommand";
|
|
17
|
+
export * from "./ListAssetInstancesCommand";
|
|
17
18
|
export * from "./ListAssetsCommand";
|
|
19
|
+
export * from "./ListBlockingInstancesForCapacityTaskCommand";
|
|
18
20
|
export * from "./ListCapacityTasksCommand";
|
|
19
21
|
export * from "./ListCatalogItemsCommand";
|
|
20
22
|
export * from "./ListOrdersCommand";
|
|
@@ -24,6 +24,14 @@ export const ComputeAssetState = {
|
|
|
24
24
|
ISOLATED: "ISOLATED",
|
|
25
25
|
RETIRING: "RETIRING",
|
|
26
26
|
};
|
|
27
|
+
export const AWSServiceName = {
|
|
28
|
+
AWS: "AWS",
|
|
29
|
+
EC2: "EC2",
|
|
30
|
+
ELASTICACHE: "ELASTICACHE",
|
|
31
|
+
ELB: "ELB",
|
|
32
|
+
RDS: "RDS",
|
|
33
|
+
ROUTE53: "ROUTE53",
|
|
34
|
+
};
|
|
27
35
|
export const AssetState = {
|
|
28
36
|
ACTIVE: "ACTIVE",
|
|
29
37
|
ISOLATED: "ISOLATED",
|
|
@@ -88,14 +96,20 @@ export class ValidationException extends __BaseException {
|
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
export const CapacityTaskFailureType = {
|
|
99
|
+
BLOCKING_INSTANCES_NOT_EVACUATED: "BLOCKING_INSTANCES_NOT_EVACUATED",
|
|
100
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
101
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
102
|
+
UNEXPECTED_ASSET_STATE: "UNEXPECTED_ASSET_STATE",
|
|
91
103
|
UNSUPPORTED_CAPACITY_CONFIGURATION: "UNSUPPORTED_CAPACITY_CONFIGURATION",
|
|
92
104
|
};
|
|
93
105
|
export const CapacityTaskStatus = {
|
|
106
|
+
CANCELLATION_IN_PROGRESS: "CANCELLATION_IN_PROGRESS",
|
|
94
107
|
CANCELLED: "CANCELLED",
|
|
95
108
|
COMPLETED: "COMPLETED",
|
|
96
109
|
FAILED: "FAILED",
|
|
97
110
|
IN_PROGRESS: "IN_PROGRESS",
|
|
98
111
|
REQUESTED: "REQUESTED",
|
|
112
|
+
WAITING_FOR_EVACUATION: "WAITING_FOR_EVACUATION",
|
|
99
113
|
};
|
|
100
114
|
export const CatalogItemStatus = {
|
|
101
115
|
AVAILABLE: "AVAILABLE",
|
|
@@ -234,3 +248,7 @@ export const UplinkGbps = {
|
|
|
234
248
|
UPLINK_1G: "UPLINK_1G",
|
|
235
249
|
UPLINK_40G: "UPLINK_40G",
|
|
236
250
|
};
|
|
251
|
+
export const TaskActionOnBlockingInstances = {
|
|
252
|
+
FAIL_TASK: "FAIL_TASK",
|
|
253
|
+
WAIT_FOR_EVACUATION: "WAIT_FOR_EVACUATION",
|
|
254
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListAssetInstancesCommand, } from "../commands/ListAssetInstancesCommand";
|
|
3
|
+
import { OutpostsClient } from "../OutpostsClient";
|
|
4
|
+
export const paginateListAssetInstances = createPaginator(OutpostsClient, ListAssetInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListBlockingInstancesForCapacityTaskCommand, } from "../commands/ListBlockingInstancesForCapacityTaskCommand";
|
|
3
|
+
import { OutpostsClient } from "../OutpostsClient";
|
|
4
|
+
export const paginateListBlockingInstancesForCapacityTask = createPaginator(OutpostsClient, ListBlockingInstancesForCapacityTaskCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./GetOutpostInstanceTypesPaginator";
|
|
2
2
|
export * from "./GetOutpostSupportedInstanceTypesPaginator";
|
|
3
3
|
export * from "./Interfaces";
|
|
4
|
+
export * from "./ListAssetInstancesPaginator";
|
|
4
5
|
export * from "./ListAssetsPaginator";
|
|
6
|
+
export * from "./ListBlockingInstancesForCapacityTaskPaginator";
|
|
5
7
|
export * from "./ListCapacityTasksPaginator";
|
|
6
8
|
export * from "./ListCatalogItemsPaginator";
|
|
7
9
|
export * from "./ListOrdersPaginator";
|
|
@@ -159,7 +159,7 @@ export const se_GetOutpostSupportedInstanceTypesCommand = async (input, context)
|
|
|
159
159
|
b.bp("/outposts/{OutpostIdentifier}/supportedInstanceTypes");
|
|
160
160
|
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
161
161
|
const query = map({
|
|
162
|
-
[_OI]: [,
|
|
162
|
+
[_OI]: [, input[_OI]],
|
|
163
163
|
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
164
164
|
[_NT]: [, input[_NT]],
|
|
165
165
|
});
|
|
@@ -188,6 +188,23 @@ export const se_GetSiteAddressCommand = async (input, context) => {
|
|
|
188
188
|
b.m("GET").h(headers).q(query).b(body);
|
|
189
189
|
return b.build();
|
|
190
190
|
};
|
|
191
|
+
export const se_ListAssetInstancesCommand = async (input, context) => {
|
|
192
|
+
const b = rb(input, context);
|
|
193
|
+
const headers = {};
|
|
194
|
+
b.bp("/outposts/{OutpostIdentifier}/assetInstances");
|
|
195
|
+
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
196
|
+
const query = map({
|
|
197
|
+
[_AIF]: [() => input.AssetIdFilter !== void 0, () => input[_AIF] || []],
|
|
198
|
+
[_ITF]: [() => input.InstanceTypeFilter !== void 0, () => input[_ITF] || []],
|
|
199
|
+
[_AIFc]: [() => input.AccountIdFilter !== void 0, () => input[_AIFc] || []],
|
|
200
|
+
[_ASF]: [() => input.AwsServiceFilter !== void 0, () => input[_ASF] || []],
|
|
201
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
202
|
+
[_NT]: [, input[_NT]],
|
|
203
|
+
});
|
|
204
|
+
let body;
|
|
205
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
206
|
+
return b.build();
|
|
207
|
+
};
|
|
191
208
|
export const se_ListAssetsCommand = async (input, context) => {
|
|
192
209
|
const b = rb(input, context);
|
|
193
210
|
const headers = {};
|
|
@@ -203,6 +220,20 @@ export const se_ListAssetsCommand = async (input, context) => {
|
|
|
203
220
|
b.m("GET").h(headers).q(query).b(body);
|
|
204
221
|
return b.build();
|
|
205
222
|
};
|
|
223
|
+
export const se_ListBlockingInstancesForCapacityTaskCommand = async (input, context) => {
|
|
224
|
+
const b = rb(input, context);
|
|
225
|
+
const headers = {};
|
|
226
|
+
b.bp("/outposts/{OutpostIdentifier}/capacity/{CapacityTaskId}/blockingInstances");
|
|
227
|
+
b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
|
|
228
|
+
b.p("CapacityTaskId", () => input.CapacityTaskId, "{CapacityTaskId}", false);
|
|
229
|
+
const query = map({
|
|
230
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
231
|
+
[_NT]: [, input[_NT]],
|
|
232
|
+
});
|
|
233
|
+
let body;
|
|
234
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
+
return b.build();
|
|
236
|
+
};
|
|
206
237
|
export const se_ListCapacityTasksCommand = async (input, context) => {
|
|
207
238
|
const b = rb(input, context);
|
|
208
239
|
const headers = {};
|
|
@@ -295,7 +326,9 @@ export const se_StartCapacityTaskCommand = async (input, context) => {
|
|
|
295
326
|
body = JSON.stringify(take(input, {
|
|
296
327
|
DryRun: [],
|
|
297
328
|
InstancePools: (_) => _json(_),
|
|
329
|
+
InstancesToExclude: (_) => _json(_),
|
|
298
330
|
OrderId: [],
|
|
331
|
+
TaskActionOnBlockingInstances: [],
|
|
299
332
|
}));
|
|
300
333
|
b.m("POST").h(headers).b(body);
|
|
301
334
|
return b.build();
|
|
@@ -508,10 +541,12 @@ export const de_GetCapacityTaskCommand = async (output, context) => {
|
|
|
508
541
|
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
509
542
|
DryRun: __expectBoolean,
|
|
510
543
|
Failed: _json,
|
|
544
|
+
InstancesToExclude: _json,
|
|
511
545
|
LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
512
546
|
OrderId: __expectString,
|
|
513
547
|
OutpostId: __expectString,
|
|
514
548
|
RequestedInstancePools: _json,
|
|
549
|
+
TaskActionOnBlockingInstances: __expectString,
|
|
515
550
|
});
|
|
516
551
|
Object.assign(contents, doc);
|
|
517
552
|
return contents;
|
|
@@ -635,6 +670,21 @@ export const de_GetSiteAddressCommand = async (output, context) => {
|
|
|
635
670
|
Object.assign(contents, doc);
|
|
636
671
|
return contents;
|
|
637
672
|
};
|
|
673
|
+
export const de_ListAssetInstancesCommand = async (output, context) => {
|
|
674
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
+
return de_CommandError(output, context);
|
|
676
|
+
}
|
|
677
|
+
const contents = map({
|
|
678
|
+
$metadata: deserializeMetadata(output),
|
|
679
|
+
});
|
|
680
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
681
|
+
const doc = take(data, {
|
|
682
|
+
AssetInstances: _json,
|
|
683
|
+
NextToken: __expectString,
|
|
684
|
+
});
|
|
685
|
+
Object.assign(contents, doc);
|
|
686
|
+
return contents;
|
|
687
|
+
};
|
|
638
688
|
export const de_ListAssetsCommand = async (output, context) => {
|
|
639
689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
690
|
return de_CommandError(output, context);
|
|
@@ -650,6 +700,21 @@ export const de_ListAssetsCommand = async (output, context) => {
|
|
|
650
700
|
Object.assign(contents, doc);
|
|
651
701
|
return contents;
|
|
652
702
|
};
|
|
703
|
+
export const de_ListBlockingInstancesForCapacityTaskCommand = async (output, context) => {
|
|
704
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
705
|
+
return de_CommandError(output, context);
|
|
706
|
+
}
|
|
707
|
+
const contents = map({
|
|
708
|
+
$metadata: deserializeMetadata(output),
|
|
709
|
+
});
|
|
710
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
711
|
+
const doc = take(data, {
|
|
712
|
+
BlockingInstances: _json,
|
|
713
|
+
NextToken: __expectString,
|
|
714
|
+
});
|
|
715
|
+
Object.assign(contents, doc);
|
|
716
|
+
return contents;
|
|
717
|
+
};
|
|
653
718
|
export const de_ListCapacityTasksCommand = async (output, context) => {
|
|
654
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
720
|
return de_CommandError(output, context);
|
|
@@ -754,10 +819,12 @@ export const de_StartCapacityTaskCommand = async (output, context) => {
|
|
|
754
819
|
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
755
820
|
DryRun: __expectBoolean,
|
|
756
821
|
Failed: _json,
|
|
822
|
+
InstancesToExclude: _json,
|
|
757
823
|
LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
758
824
|
OrderId: __expectString,
|
|
759
825
|
OutpostId: __expectString,
|
|
760
826
|
RequestedInstancePools: _json,
|
|
827
|
+
TaskActionOnBlockingInstances: __expectString,
|
|
761
828
|
});
|
|
762
829
|
Object.assign(contents, doc);
|
|
763
830
|
return contents;
|
|
@@ -1068,6 +1135,9 @@ const deserializeMetadata = (output) => ({
|
|
|
1068
1135
|
cfId: output.headers["x-amz-cf-id"],
|
|
1069
1136
|
});
|
|
1070
1137
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1138
|
+
const _AIF = "AssetIdFilter";
|
|
1139
|
+
const _AIFc = "AccountIdFilter";
|
|
1140
|
+
const _ASF = "AwsServiceFilter";
|
|
1071
1141
|
const _AT = "AddressType";
|
|
1072
1142
|
const _AZF = "AvailabilityZoneFilter";
|
|
1073
1143
|
const _AZIF = "AvailabilityZoneIdFilter";
|
|
@@ -1075,6 +1145,7 @@ const _CTSF = "CapacityTaskStatusFilter";
|
|
|
1075
1145
|
const _ECFF = "EC2FamilyFilter";
|
|
1076
1146
|
const _HIF = "HostIdFilter";
|
|
1077
1147
|
const _ICF = "ItemClassFilter";
|
|
1148
|
+
const _ITF = "InstanceTypeFilter";
|
|
1078
1149
|
const _LCSF = "LifeCycleStatusFilter";
|
|
1079
1150
|
const _MR = "MaxResults";
|
|
1080
1151
|
const _NT = "NextToken";
|