@aws-sdk/client-batch 3.28.0 → 3.32.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/CHANGELOG.md +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +54 -54
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +115 -91
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +58 -55
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1CancelJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -609,9 +609,9 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
609
609
|
});
|
|
610
610
|
}); };
|
|
611
611
|
export var deserializeAws_restJson1CreateComputeEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
612
|
-
var contents, data;
|
|
613
|
-
return __generator(this, function (
|
|
614
|
-
switch (
|
|
612
|
+
var contents, data, _a, _b;
|
|
613
|
+
return __generator(this, function (_c) {
|
|
614
|
+
switch (_c.label) {
|
|
615
615
|
case 0:
|
|
616
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
617
|
return [2 /*return*/, deserializeAws_restJson1CreateComputeEnvironmentCommandError(output, context)];
|
|
@@ -621,9 +621,11 @@ export var deserializeAws_restJson1CreateComputeEnvironmentCommand = function (o
|
|
|
621
621
|
computeEnvironmentArn: undefined,
|
|
622
622
|
computeEnvironmentName: undefined,
|
|
623
623
|
};
|
|
624
|
+
_a = __expectNonNull;
|
|
625
|
+
_b = __expectObject;
|
|
624
626
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
625
627
|
case 1:
|
|
626
|
-
data = _a.sent();
|
|
628
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
627
629
|
if (data.computeEnvironmentArn !== undefined && data.computeEnvironmentArn !== null) {
|
|
628
630
|
contents.computeEnvironmentArn = __expectString(data.computeEnvironmentArn);
|
|
629
631
|
}
|
|
@@ -681,9 +683,9 @@ var deserializeAws_restJson1CreateComputeEnvironmentCommandError = function (out
|
|
|
681
683
|
});
|
|
682
684
|
}); };
|
|
683
685
|
export var deserializeAws_restJson1CreateJobQueueCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
684
|
-
var contents, data;
|
|
685
|
-
return __generator(this, function (
|
|
686
|
-
switch (
|
|
686
|
+
var contents, data, _a, _b;
|
|
687
|
+
return __generator(this, function (_c) {
|
|
688
|
+
switch (_c.label) {
|
|
687
689
|
case 0:
|
|
688
690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
689
691
|
return [2 /*return*/, deserializeAws_restJson1CreateJobQueueCommandError(output, context)];
|
|
@@ -693,9 +695,11 @@ export var deserializeAws_restJson1CreateJobQueueCommand = function (output, con
|
|
|
693
695
|
jobQueueArn: undefined,
|
|
694
696
|
jobQueueName: undefined,
|
|
695
697
|
};
|
|
698
|
+
_a = __expectNonNull;
|
|
699
|
+
_b = __expectObject;
|
|
696
700
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
697
701
|
case 1:
|
|
698
|
-
data = _a.sent();
|
|
702
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
699
703
|
if (data.jobQueueArn !== undefined && data.jobQueueArn !== null) {
|
|
700
704
|
contents.jobQueueArn = __expectString(data.jobQueueArn);
|
|
701
705
|
}
|
|
@@ -945,9 +949,9 @@ var deserializeAws_restJson1DeregisterJobDefinitionCommandError = function (outp
|
|
|
945
949
|
});
|
|
946
950
|
}); };
|
|
947
951
|
export var deserializeAws_restJson1DescribeComputeEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
948
|
-
var contents, data;
|
|
949
|
-
return __generator(this, function (
|
|
950
|
-
switch (
|
|
952
|
+
var contents, data, _a, _b;
|
|
953
|
+
return __generator(this, function (_c) {
|
|
954
|
+
switch (_c.label) {
|
|
951
955
|
case 0:
|
|
952
956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
957
|
return [2 /*return*/, deserializeAws_restJson1DescribeComputeEnvironmentsCommandError(output, context)];
|
|
@@ -957,9 +961,11 @@ export var deserializeAws_restJson1DescribeComputeEnvironmentsCommand = function
|
|
|
957
961
|
computeEnvironments: undefined,
|
|
958
962
|
nextToken: undefined,
|
|
959
963
|
};
|
|
964
|
+
_a = __expectNonNull;
|
|
965
|
+
_b = __expectObject;
|
|
960
966
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
961
967
|
case 1:
|
|
962
|
-
data = _a.sent();
|
|
968
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
963
969
|
if (data.computeEnvironments !== undefined && data.computeEnvironments !== null) {
|
|
964
970
|
contents.computeEnvironments = deserializeAws_restJson1ComputeEnvironmentDetailList(data.computeEnvironments, context);
|
|
965
971
|
}
|
|
@@ -1017,9 +1023,9 @@ var deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = function (
|
|
|
1017
1023
|
});
|
|
1018
1024
|
}); };
|
|
1019
1025
|
export var deserializeAws_restJson1DescribeJobDefinitionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1020
|
-
var contents, data;
|
|
1021
|
-
return __generator(this, function (
|
|
1022
|
-
switch (
|
|
1026
|
+
var contents, data, _a, _b;
|
|
1027
|
+
return __generator(this, function (_c) {
|
|
1028
|
+
switch (_c.label) {
|
|
1023
1029
|
case 0:
|
|
1024
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
1031
|
return [2 /*return*/, deserializeAws_restJson1DescribeJobDefinitionsCommandError(output, context)];
|
|
@@ -1029,9 +1035,11 @@ export var deserializeAws_restJson1DescribeJobDefinitionsCommand = function (out
|
|
|
1029
1035
|
jobDefinitions: undefined,
|
|
1030
1036
|
nextToken: undefined,
|
|
1031
1037
|
};
|
|
1038
|
+
_a = __expectNonNull;
|
|
1039
|
+
_b = __expectObject;
|
|
1032
1040
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1033
1041
|
case 1:
|
|
1034
|
-
data = _a.sent();
|
|
1042
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1035
1043
|
if (data.jobDefinitions !== undefined && data.jobDefinitions !== null) {
|
|
1036
1044
|
contents.jobDefinitions = deserializeAws_restJson1JobDefinitionList(data.jobDefinitions, context);
|
|
1037
1045
|
}
|
|
@@ -1089,9 +1097,9 @@ var deserializeAws_restJson1DescribeJobDefinitionsCommandError = function (outpu
|
|
|
1089
1097
|
});
|
|
1090
1098
|
}); };
|
|
1091
1099
|
export var deserializeAws_restJson1DescribeJobQueuesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1092
|
-
var contents, data;
|
|
1093
|
-
return __generator(this, function (
|
|
1094
|
-
switch (
|
|
1100
|
+
var contents, data, _a, _b;
|
|
1101
|
+
return __generator(this, function (_c) {
|
|
1102
|
+
switch (_c.label) {
|
|
1095
1103
|
case 0:
|
|
1096
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
1105
|
return [2 /*return*/, deserializeAws_restJson1DescribeJobQueuesCommandError(output, context)];
|
|
@@ -1101,9 +1109,11 @@ export var deserializeAws_restJson1DescribeJobQueuesCommand = function (output,
|
|
|
1101
1109
|
jobQueues: undefined,
|
|
1102
1110
|
nextToken: undefined,
|
|
1103
1111
|
};
|
|
1112
|
+
_a = __expectNonNull;
|
|
1113
|
+
_b = __expectObject;
|
|
1104
1114
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1105
1115
|
case 1:
|
|
1106
|
-
data = _a.sent();
|
|
1116
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1107
1117
|
if (data.jobQueues !== undefined && data.jobQueues !== null) {
|
|
1108
1118
|
contents.jobQueues = deserializeAws_restJson1JobQueueDetailList(data.jobQueues, context);
|
|
1109
1119
|
}
|
|
@@ -1161,9 +1171,9 @@ var deserializeAws_restJson1DescribeJobQueuesCommandError = function (output, co
|
|
|
1161
1171
|
});
|
|
1162
1172
|
}); };
|
|
1163
1173
|
export var deserializeAws_restJson1DescribeJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1164
|
-
var contents, data;
|
|
1165
|
-
return __generator(this, function (
|
|
1166
|
-
switch (
|
|
1174
|
+
var contents, data, _a, _b;
|
|
1175
|
+
return __generator(this, function (_c) {
|
|
1176
|
+
switch (_c.label) {
|
|
1167
1177
|
case 0:
|
|
1168
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1169
1179
|
return [2 /*return*/, deserializeAws_restJson1DescribeJobsCommandError(output, context)];
|
|
@@ -1172,9 +1182,11 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1172
1182
|
$metadata: deserializeMetadata(output),
|
|
1173
1183
|
jobs: undefined,
|
|
1174
1184
|
};
|
|
1185
|
+
_a = __expectNonNull;
|
|
1186
|
+
_b = __expectObject;
|
|
1175
1187
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1176
1188
|
case 1:
|
|
1177
|
-
data = _a.sent();
|
|
1189
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1178
1190
|
if (data.jobs !== undefined && data.jobs !== null) {
|
|
1179
1191
|
contents.jobs = deserializeAws_restJson1JobDetailList(data.jobs, context);
|
|
1180
1192
|
}
|
|
@@ -1229,9 +1241,9 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1229
1241
|
});
|
|
1230
1242
|
}); };
|
|
1231
1243
|
export var deserializeAws_restJson1ListJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1232
|
-
var contents, data;
|
|
1233
|
-
return __generator(this, function (
|
|
1234
|
-
switch (
|
|
1244
|
+
var contents, data, _a, _b;
|
|
1245
|
+
return __generator(this, function (_c) {
|
|
1246
|
+
switch (_c.label) {
|
|
1235
1247
|
case 0:
|
|
1236
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1237
1249
|
return [2 /*return*/, deserializeAws_restJson1ListJobsCommandError(output, context)];
|
|
@@ -1241,9 +1253,11 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
1241
1253
|
jobSummaryList: undefined,
|
|
1242
1254
|
nextToken: undefined,
|
|
1243
1255
|
};
|
|
1256
|
+
_a = __expectNonNull;
|
|
1257
|
+
_b = __expectObject;
|
|
1244
1258
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1245
1259
|
case 1:
|
|
1246
|
-
data = _a.sent();
|
|
1260
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1247
1261
|
if (data.jobSummaryList !== undefined && data.jobSummaryList !== null) {
|
|
1248
1262
|
contents.jobSummaryList = deserializeAws_restJson1JobSummaryList(data.jobSummaryList, context);
|
|
1249
1263
|
}
|
|
@@ -1301,9 +1315,9 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
1301
1315
|
});
|
|
1302
1316
|
}); };
|
|
1303
1317
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1304
|
-
var contents, data;
|
|
1305
|
-
return __generator(this, function (
|
|
1306
|
-
switch (
|
|
1318
|
+
var contents, data, _a, _b;
|
|
1319
|
+
return __generator(this, function (_c) {
|
|
1320
|
+
switch (_c.label) {
|
|
1307
1321
|
case 0:
|
|
1308
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1309
1323
|
return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
@@ -1312,9 +1326,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1312
1326
|
$metadata: deserializeMetadata(output),
|
|
1313
1327
|
tags: undefined,
|
|
1314
1328
|
};
|
|
1329
|
+
_a = __expectNonNull;
|
|
1330
|
+
_b = __expectObject;
|
|
1315
1331
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1316
1332
|
case 1:
|
|
1317
|
-
data = _a.sent();
|
|
1333
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1318
1334
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1319
1335
|
contents.tags = deserializeAws_restJson1TagrisTagsMap(data.tags, context);
|
|
1320
1336
|
}
|
|
@@ -1369,9 +1385,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1369
1385
|
});
|
|
1370
1386
|
}); };
|
|
1371
1387
|
export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1372
|
-
var contents, data;
|
|
1373
|
-
return __generator(this, function (
|
|
1374
|
-
switch (
|
|
1388
|
+
var contents, data, _a, _b;
|
|
1389
|
+
return __generator(this, function (_c) {
|
|
1390
|
+
switch (_c.label) {
|
|
1375
1391
|
case 0:
|
|
1376
1392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
1393
|
return [2 /*return*/, deserializeAws_restJson1RegisterJobDefinitionCommandError(output, context)];
|
|
@@ -1382,9 +1398,11 @@ export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (outp
|
|
|
1382
1398
|
jobDefinitionName: undefined,
|
|
1383
1399
|
revision: undefined,
|
|
1384
1400
|
};
|
|
1401
|
+
_a = __expectNonNull;
|
|
1402
|
+
_b = __expectObject;
|
|
1385
1403
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1386
1404
|
case 1:
|
|
1387
|
-
data = _a.sent();
|
|
1405
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1388
1406
|
if (data.jobDefinitionArn !== undefined && data.jobDefinitionArn !== null) {
|
|
1389
1407
|
contents.jobDefinitionArn = __expectString(data.jobDefinitionArn);
|
|
1390
1408
|
}
|
|
@@ -1392,7 +1410,7 @@ export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (outp
|
|
|
1392
1410
|
contents.jobDefinitionName = __expectString(data.jobDefinitionName);
|
|
1393
1411
|
}
|
|
1394
1412
|
if (data.revision !== undefined && data.revision !== null) {
|
|
1395
|
-
contents.revision =
|
|
1413
|
+
contents.revision = __expectInt32(data.revision);
|
|
1396
1414
|
}
|
|
1397
1415
|
return [2 /*return*/, Promise.resolve(contents)];
|
|
1398
1416
|
}
|
|
@@ -1445,9 +1463,9 @@ var deserializeAws_restJson1RegisterJobDefinitionCommandError = function (output
|
|
|
1445
1463
|
});
|
|
1446
1464
|
}); };
|
|
1447
1465
|
export var deserializeAws_restJson1SubmitJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1448
|
-
var contents, data;
|
|
1449
|
-
return __generator(this, function (
|
|
1450
|
-
switch (
|
|
1466
|
+
var contents, data, _a, _b;
|
|
1467
|
+
return __generator(this, function (_c) {
|
|
1468
|
+
switch (_c.label) {
|
|
1451
1469
|
case 0:
|
|
1452
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1453
1471
|
return [2 /*return*/, deserializeAws_restJson1SubmitJobCommandError(output, context)];
|
|
@@ -1458,9 +1476,11 @@ export var deserializeAws_restJson1SubmitJobCommand = function (output, context)
|
|
|
1458
1476
|
jobId: undefined,
|
|
1459
1477
|
jobName: undefined,
|
|
1460
1478
|
};
|
|
1479
|
+
_a = __expectNonNull;
|
|
1480
|
+
_b = __expectObject;
|
|
1461
1481
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1462
1482
|
case 1:
|
|
1463
|
-
data = _a.sent();
|
|
1483
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1464
1484
|
if (data.jobArn !== undefined && data.jobArn !== null) {
|
|
1465
1485
|
contents.jobArn = __expectString(data.jobArn);
|
|
1466
1486
|
}
|
|
@@ -1713,9 +1733,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1713
1733
|
});
|
|
1714
1734
|
}); };
|
|
1715
1735
|
export var deserializeAws_restJson1UpdateComputeEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1716
|
-
var contents, data;
|
|
1717
|
-
return __generator(this, function (
|
|
1718
|
-
switch (
|
|
1736
|
+
var contents, data, _a, _b;
|
|
1737
|
+
return __generator(this, function (_c) {
|
|
1738
|
+
switch (_c.label) {
|
|
1719
1739
|
case 0:
|
|
1720
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1721
1741
|
return [2 /*return*/, deserializeAws_restJson1UpdateComputeEnvironmentCommandError(output, context)];
|
|
@@ -1725,9 +1745,11 @@ export var deserializeAws_restJson1UpdateComputeEnvironmentCommand = function (o
|
|
|
1725
1745
|
computeEnvironmentArn: undefined,
|
|
1726
1746
|
computeEnvironmentName: undefined,
|
|
1727
1747
|
};
|
|
1748
|
+
_a = __expectNonNull;
|
|
1749
|
+
_b = __expectObject;
|
|
1728
1750
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1729
1751
|
case 1:
|
|
1730
|
-
data = _a.sent();
|
|
1752
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1731
1753
|
if (data.computeEnvironmentArn !== undefined && data.computeEnvironmentArn !== null) {
|
|
1732
1754
|
contents.computeEnvironmentArn = __expectString(data.computeEnvironmentArn);
|
|
1733
1755
|
}
|
|
@@ -1785,9 +1807,9 @@ var deserializeAws_restJson1UpdateComputeEnvironmentCommandError = function (out
|
|
|
1785
1807
|
});
|
|
1786
1808
|
}); };
|
|
1787
1809
|
export var deserializeAws_restJson1UpdateJobQueueCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1788
|
-
var contents, data;
|
|
1789
|
-
return __generator(this, function (
|
|
1790
|
-
switch (
|
|
1810
|
+
var contents, data, _a, _b;
|
|
1811
|
+
return __generator(this, function (_c) {
|
|
1812
|
+
switch (_c.label) {
|
|
1791
1813
|
case 0:
|
|
1792
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
1815
|
return [2 /*return*/, deserializeAws_restJson1UpdateJobQueueCommandError(output, context)];
|
|
@@ -1797,9 +1819,11 @@ export var deserializeAws_restJson1UpdateJobQueueCommand = function (output, con
|
|
|
1797
1819
|
jobQueueArn: undefined,
|
|
1798
1820
|
jobQueueName: undefined,
|
|
1799
1821
|
};
|
|
1822
|
+
_a = __expectNonNull;
|
|
1823
|
+
_b = __expectObject;
|
|
1800
1824
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1801
1825
|
case 1:
|
|
1802
|
-
data = _a.sent();
|
|
1826
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1803
1827
|
if (data.jobQueueArn !== undefined && data.jobQueueArn !== null) {
|
|
1804
1828
|
contents.jobQueueArn = __expectString(data.jobQueueArn);
|
|
1805
1829
|
}
|
|
@@ -2306,13 +2330,13 @@ var deserializeAws_restJson1ArrayJobStatusSummary = function (output, context) {
|
|
|
2306
2330
|
if (value === null) {
|
|
2307
2331
|
return acc;
|
|
2308
2332
|
}
|
|
2309
|
-
return __assign(__assign({}, acc), (_b = {}, _b[key] =
|
|
2333
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectInt32(value), _b));
|
|
2310
2334
|
}, {});
|
|
2311
2335
|
};
|
|
2312
2336
|
var deserializeAws_restJson1ArrayPropertiesDetail = function (output, context) {
|
|
2313
2337
|
return {
|
|
2314
|
-
index:
|
|
2315
|
-
size:
|
|
2338
|
+
index: __expectInt32(output.index),
|
|
2339
|
+
size: __expectInt32(output.size),
|
|
2316
2340
|
statusSummary: output.statusSummary !== undefined && output.statusSummary !== null
|
|
2317
2341
|
? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context)
|
|
2318
2342
|
: undefined,
|
|
@@ -2320,14 +2344,14 @@ var deserializeAws_restJson1ArrayPropertiesDetail = function (output, context) {
|
|
|
2320
2344
|
};
|
|
2321
2345
|
var deserializeAws_restJson1ArrayPropertiesSummary = function (output, context) {
|
|
2322
2346
|
return {
|
|
2323
|
-
index:
|
|
2324
|
-
size:
|
|
2347
|
+
index: __expectInt32(output.index),
|
|
2348
|
+
size: __expectInt32(output.size),
|
|
2325
2349
|
};
|
|
2326
2350
|
};
|
|
2327
2351
|
var deserializeAws_restJson1AttemptContainerDetail = function (output, context) {
|
|
2328
2352
|
return {
|
|
2329
2353
|
containerInstanceArn: __expectString(output.containerInstanceArn),
|
|
2330
|
-
exitCode:
|
|
2354
|
+
exitCode: __expectInt32(output.exitCode),
|
|
2331
2355
|
logStreamName: __expectString(output.logStreamName),
|
|
2332
2356
|
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
2333
2357
|
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
@@ -2341,9 +2365,9 @@ var deserializeAws_restJson1AttemptDetail = function (output, context) {
|
|
|
2341
2365
|
container: output.container !== undefined && output.container !== null
|
|
2342
2366
|
? deserializeAws_restJson1AttemptContainerDetail(output.container, context)
|
|
2343
2367
|
: undefined,
|
|
2344
|
-
startedAt:
|
|
2368
|
+
startedAt: __expectLong(output.startedAt),
|
|
2345
2369
|
statusReason: __expectString(output.statusReason),
|
|
2346
|
-
stoppedAt:
|
|
2370
|
+
stoppedAt: __expectLong(output.stoppedAt),
|
|
2347
2371
|
};
|
|
2348
2372
|
};
|
|
2349
2373
|
var deserializeAws_restJson1AttemptDetails = function (output, context) {
|
|
@@ -2387,7 +2411,7 @@ var deserializeAws_restJson1ComputeEnvironmentDetailList = function (output, con
|
|
|
2387
2411
|
var deserializeAws_restJson1ComputeEnvironmentOrder = function (output, context) {
|
|
2388
2412
|
return {
|
|
2389
2413
|
computeEnvironment: __expectString(output.computeEnvironment),
|
|
2390
|
-
order:
|
|
2414
|
+
order: __expectInt32(output.order),
|
|
2391
2415
|
};
|
|
2392
2416
|
};
|
|
2393
2417
|
var deserializeAws_restJson1ComputeEnvironmentOrders = function (output, context) {
|
|
@@ -2403,8 +2427,8 @@ var deserializeAws_restJson1ComputeEnvironmentOrders = function (output, context
|
|
|
2403
2427
|
var deserializeAws_restJson1ComputeResource = function (output, context) {
|
|
2404
2428
|
return {
|
|
2405
2429
|
allocationStrategy: __expectString(output.allocationStrategy),
|
|
2406
|
-
bidPercentage:
|
|
2407
|
-
desiredvCpus:
|
|
2430
|
+
bidPercentage: __expectInt32(output.bidPercentage),
|
|
2431
|
+
desiredvCpus: __expectInt32(output.desiredvCpus),
|
|
2408
2432
|
ec2Configuration: output.ec2Configuration !== undefined && output.ec2Configuration !== null
|
|
2409
2433
|
? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context)
|
|
2410
2434
|
: undefined,
|
|
@@ -2417,8 +2441,8 @@ var deserializeAws_restJson1ComputeResource = function (output, context) {
|
|
|
2417
2441
|
launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
|
|
2418
2442
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
2419
2443
|
: undefined,
|
|
2420
|
-
maxvCpus:
|
|
2421
|
-
minvCpus:
|
|
2444
|
+
maxvCpus: __expectInt32(output.maxvCpus),
|
|
2445
|
+
minvCpus: __expectInt32(output.minvCpus),
|
|
2422
2446
|
placementGroup: __expectString(output.placementGroup),
|
|
2423
2447
|
securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
2424
2448
|
? deserializeAws_restJson1StringList(output.securityGroupIds, context)
|
|
@@ -2443,7 +2467,7 @@ var deserializeAws_restJson1ContainerDetail = function (output, context) {
|
|
|
2443
2467
|
? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
|
|
2444
2468
|
: undefined,
|
|
2445
2469
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2446
|
-
exitCode:
|
|
2470
|
+
exitCode: __expectInt32(output.exitCode),
|
|
2447
2471
|
fargatePlatformConfiguration: output.fargatePlatformConfiguration !== undefined && output.fargatePlatformConfiguration !== null
|
|
2448
2472
|
? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2449
2473
|
: undefined,
|
|
@@ -2457,7 +2481,7 @@ var deserializeAws_restJson1ContainerDetail = function (output, context) {
|
|
|
2457
2481
|
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2458
2482
|
: undefined,
|
|
2459
2483
|
logStreamName: __expectString(output.logStreamName),
|
|
2460
|
-
memory:
|
|
2484
|
+
memory: __expectInt32(output.memory),
|
|
2461
2485
|
mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
|
|
2462
2486
|
? deserializeAws_restJson1MountPoints(output.mountPoints, context)
|
|
2463
2487
|
: undefined,
|
|
@@ -2481,7 +2505,7 @@ var deserializeAws_restJson1ContainerDetail = function (output, context) {
|
|
|
2481
2505
|
? deserializeAws_restJson1Ulimits(output.ulimits, context)
|
|
2482
2506
|
: undefined,
|
|
2483
2507
|
user: __expectString(output.user),
|
|
2484
|
-
vcpus:
|
|
2508
|
+
vcpus: __expectInt32(output.vcpus),
|
|
2485
2509
|
volumes: output.volumes !== undefined && output.volumes !== null
|
|
2486
2510
|
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
2487
2511
|
: undefined,
|
|
@@ -2508,7 +2532,7 @@ var deserializeAws_restJson1ContainerProperties = function (output, context) {
|
|
|
2508
2532
|
logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
|
|
2509
2533
|
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2510
2534
|
: undefined,
|
|
2511
|
-
memory:
|
|
2535
|
+
memory: __expectInt32(output.memory),
|
|
2512
2536
|
mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
|
|
2513
2537
|
? deserializeAws_restJson1MountPoints(output.mountPoints, context)
|
|
2514
2538
|
: undefined,
|
|
@@ -2527,7 +2551,7 @@ var deserializeAws_restJson1ContainerProperties = function (output, context) {
|
|
|
2527
2551
|
? deserializeAws_restJson1Ulimits(output.ulimits, context)
|
|
2528
2552
|
: undefined,
|
|
2529
2553
|
user: __expectString(output.user),
|
|
2530
|
-
vcpus:
|
|
2554
|
+
vcpus: __expectInt32(output.vcpus),
|
|
2531
2555
|
volumes: output.volumes !== undefined && output.volumes !== null
|
|
2532
2556
|
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
2533
2557
|
: undefined,
|
|
@@ -2535,7 +2559,7 @@ var deserializeAws_restJson1ContainerProperties = function (output, context) {
|
|
|
2535
2559
|
};
|
|
2536
2560
|
var deserializeAws_restJson1ContainerSummary = function (output, context) {
|
|
2537
2561
|
return {
|
|
2538
|
-
exitCode:
|
|
2562
|
+
exitCode: __expectInt32(output.exitCode),
|
|
2539
2563
|
reason: __expectString(output.reason),
|
|
2540
2564
|
};
|
|
2541
2565
|
};
|
|
@@ -2598,7 +2622,7 @@ var deserializeAws_restJson1EFSVolumeConfiguration = function (output, context)
|
|
|
2598
2622
|
fileSystemId: __expectString(output.fileSystemId),
|
|
2599
2623
|
rootDirectory: __expectString(output.rootDirectory),
|
|
2600
2624
|
transitEncryption: __expectString(output.transitEncryption),
|
|
2601
|
-
transitEncryptionPort:
|
|
2625
|
+
transitEncryptionPort: __expectInt32(output.transitEncryptionPort),
|
|
2602
2626
|
};
|
|
2603
2627
|
};
|
|
2604
2628
|
var deserializeAws_restJson1EnvironmentVariables = function (output, context) {
|
|
@@ -2659,7 +2683,7 @@ var deserializeAws_restJson1JobDefinition = function (output, context) {
|
|
|
2659
2683
|
retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
|
|
2660
2684
|
? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
|
|
2661
2685
|
: undefined,
|
|
2662
|
-
revision:
|
|
2686
|
+
revision: __expectInt32(output.revision),
|
|
2663
2687
|
status: __expectString(output.status),
|
|
2664
2688
|
tags: output.tags !== undefined && output.tags !== null
|
|
2665
2689
|
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
@@ -2707,7 +2731,7 @@ var deserializeAws_restJson1JobDetail = function (output, context) {
|
|
|
2707
2731
|
container: output.container !== undefined && output.container !== null
|
|
2708
2732
|
? deserializeAws_restJson1ContainerDetail(output.container, context)
|
|
2709
2733
|
: undefined,
|
|
2710
|
-
createdAt:
|
|
2734
|
+
createdAt: __expectLong(output.createdAt),
|
|
2711
2735
|
dependsOn: output.dependsOn !== undefined && output.dependsOn !== null
|
|
2712
2736
|
? deserializeAws_restJson1JobDependencyList(output.dependsOn, context)
|
|
2713
2737
|
: undefined,
|
|
@@ -2732,10 +2756,10 @@ var deserializeAws_restJson1JobDetail = function (output, context) {
|
|
|
2732
2756
|
retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
|
|
2733
2757
|
? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
|
|
2734
2758
|
: undefined,
|
|
2735
|
-
startedAt:
|
|
2759
|
+
startedAt: __expectLong(output.startedAt),
|
|
2736
2760
|
status: __expectString(output.status),
|
|
2737
2761
|
statusReason: __expectString(output.statusReason),
|
|
2738
|
-
stoppedAt:
|
|
2762
|
+
stoppedAt: __expectLong(output.stoppedAt),
|
|
2739
2763
|
tags: output.tags !== undefined && output.tags !== null
|
|
2740
2764
|
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
2741
2765
|
: undefined,
|
|
@@ -2761,7 +2785,7 @@ var deserializeAws_restJson1JobQueueDetail = function (output, context) {
|
|
|
2761
2785
|
: undefined,
|
|
2762
2786
|
jobQueueArn: __expectString(output.jobQueueArn),
|
|
2763
2787
|
jobQueueName: __expectString(output.jobQueueName),
|
|
2764
|
-
priority:
|
|
2788
|
+
priority: __expectInt32(output.priority),
|
|
2765
2789
|
state: __expectString(output.state),
|
|
2766
2790
|
status: __expectString(output.status),
|
|
2767
2791
|
statusReason: __expectString(output.statusReason),
|
|
@@ -2788,7 +2812,7 @@ var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
|
2788
2812
|
container: output.container !== undefined && output.container !== null
|
|
2789
2813
|
? deserializeAws_restJson1ContainerSummary(output.container, context)
|
|
2790
2814
|
: undefined,
|
|
2791
|
-
createdAt:
|
|
2815
|
+
createdAt: __expectLong(output.createdAt),
|
|
2792
2816
|
jobArn: __expectString(output.jobArn),
|
|
2793
2817
|
jobDefinition: __expectString(output.jobDefinition),
|
|
2794
2818
|
jobId: __expectString(output.jobId),
|
|
@@ -2796,10 +2820,10 @@ var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
|
2796
2820
|
nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
|
|
2797
2821
|
? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context)
|
|
2798
2822
|
: undefined,
|
|
2799
|
-
startedAt:
|
|
2823
|
+
startedAt: __expectLong(output.startedAt),
|
|
2800
2824
|
status: __expectString(output.status),
|
|
2801
2825
|
statusReason: __expectString(output.statusReason),
|
|
2802
|
-
stoppedAt:
|
|
2826
|
+
stoppedAt: __expectLong(output.stoppedAt),
|
|
2803
2827
|
};
|
|
2804
2828
|
};
|
|
2805
2829
|
var deserializeAws_restJson1JobSummaryList = function (output, context) {
|
|
@@ -2814,7 +2838,7 @@ var deserializeAws_restJson1JobSummaryList = function (output, context) {
|
|
|
2814
2838
|
};
|
|
2815
2839
|
var deserializeAws_restJson1JobTimeout = function (output, context) {
|
|
2816
2840
|
return {
|
|
2817
|
-
attemptDurationSeconds:
|
|
2841
|
+
attemptDurationSeconds: __expectInt32(output.attemptDurationSeconds),
|
|
2818
2842
|
};
|
|
2819
2843
|
};
|
|
2820
2844
|
var deserializeAws_restJson1KeyValuePair = function (output, context) {
|
|
@@ -2836,9 +2860,9 @@ var deserializeAws_restJson1LinuxParameters = function (output, context) {
|
|
|
2836
2860
|
? deserializeAws_restJson1DevicesList(output.devices, context)
|
|
2837
2861
|
: undefined,
|
|
2838
2862
|
initProcessEnabled: __expectBoolean(output.initProcessEnabled),
|
|
2839
|
-
maxSwap:
|
|
2840
|
-
sharedMemorySize:
|
|
2841
|
-
swappiness:
|
|
2863
|
+
maxSwap: __expectInt32(output.maxSwap),
|
|
2864
|
+
sharedMemorySize: __expectInt32(output.sharedMemorySize),
|
|
2865
|
+
swappiness: __expectInt32(output.swappiness),
|
|
2842
2866
|
tmpfs: output.tmpfs !== undefined && output.tmpfs !== null
|
|
2843
2867
|
? deserializeAws_restJson1TmpfsList(output.tmpfs, context)
|
|
2844
2868
|
: undefined,
|
|
@@ -2907,23 +2931,23 @@ var deserializeAws_restJson1NetworkInterfaceList = function (output, context) {
|
|
|
2907
2931
|
var deserializeAws_restJson1NodeDetails = function (output, context) {
|
|
2908
2932
|
return {
|
|
2909
2933
|
isMainNode: __expectBoolean(output.isMainNode),
|
|
2910
|
-
nodeIndex:
|
|
2934
|
+
nodeIndex: __expectInt32(output.nodeIndex),
|
|
2911
2935
|
};
|
|
2912
2936
|
};
|
|
2913
2937
|
var deserializeAws_restJson1NodeProperties = function (output, context) {
|
|
2914
2938
|
return {
|
|
2915
|
-
mainNode:
|
|
2939
|
+
mainNode: __expectInt32(output.mainNode),
|
|
2916
2940
|
nodeRangeProperties: output.nodeRangeProperties !== undefined && output.nodeRangeProperties !== null
|
|
2917
2941
|
? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context)
|
|
2918
2942
|
: undefined,
|
|
2919
|
-
numNodes:
|
|
2943
|
+
numNodes: __expectInt32(output.numNodes),
|
|
2920
2944
|
};
|
|
2921
2945
|
};
|
|
2922
2946
|
var deserializeAws_restJson1NodePropertiesSummary = function (output, context) {
|
|
2923
2947
|
return {
|
|
2924
2948
|
isMainNode: __expectBoolean(output.isMainNode),
|
|
2925
|
-
nodeIndex:
|
|
2926
|
-
numNodes:
|
|
2949
|
+
nodeIndex: __expectInt32(output.nodeIndex),
|
|
2950
|
+
numNodes: __expectInt32(output.numNodes),
|
|
2927
2951
|
};
|
|
2928
2952
|
};
|
|
2929
2953
|
var deserializeAws_restJson1NodeRangeProperties = function (output, context) {
|
|
@@ -2982,7 +3006,7 @@ var deserializeAws_restJson1ResourceRequirements = function (output, context) {
|
|
|
2982
3006
|
};
|
|
2983
3007
|
var deserializeAws_restJson1RetryStrategy = function (output, context) {
|
|
2984
3008
|
return {
|
|
2985
|
-
attempts:
|
|
3009
|
+
attempts: __expectInt32(output.attempts),
|
|
2986
3010
|
evaluateOnExit: output.evaluateOnExit !== undefined && output.evaluateOnExit !== null
|
|
2987
3011
|
? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context)
|
|
2988
3012
|
: undefined,
|
|
@@ -3040,7 +3064,7 @@ var deserializeAws_restJson1Tmpfs = function (output, context) {
|
|
|
3040
3064
|
mountOptions: output.mountOptions !== undefined && output.mountOptions !== null
|
|
3041
3065
|
? deserializeAws_restJson1StringList(output.mountOptions, context)
|
|
3042
3066
|
: undefined,
|
|
3043
|
-
size:
|
|
3067
|
+
size: __expectInt32(output.size),
|
|
3044
3068
|
};
|
|
3045
3069
|
};
|
|
3046
3070
|
var deserializeAws_restJson1TmpfsList = function (output, context) {
|
|
@@ -3055,9 +3079,9 @@ var deserializeAws_restJson1TmpfsList = function (output, context) {
|
|
|
3055
3079
|
};
|
|
3056
3080
|
var deserializeAws_restJson1Ulimit = function (output, context) {
|
|
3057
3081
|
return {
|
|
3058
|
-
hardLimit:
|
|
3082
|
+
hardLimit: __expectInt32(output.hardLimit),
|
|
3059
3083
|
name: __expectString(output.name),
|
|
3060
|
-
softLimit:
|
|
3084
|
+
softLimit: __expectInt32(output.softLimit),
|
|
3061
3085
|
};
|
|
3062
3086
|
};
|
|
3063
3087
|
var deserializeAws_restJson1Ulimits = function (output, context) {
|