@aws-sdk/client-batch 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +30 -24
- package/dist-es/Batch.js +98 -105
- package/dist-es/BatchClient.js +22 -28
- package/dist-es/commands/CancelJobCommand.js +21 -28
- package/dist-es/commands/CreateComputeEnvironmentCommand.js +21 -28
- package/dist-es/commands/CreateJobQueueCommand.js +21 -28
- package/dist-es/commands/CreateSchedulingPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteComputeEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteJobQueueCommand.js +21 -28
- package/dist-es/commands/DeleteSchedulingPolicyCommand.js +21 -28
- package/dist-es/commands/DeregisterJobDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +21 -28
- package/dist-es/commands/DescribeJobDefinitionsCommand.js +21 -28
- package/dist-es/commands/DescribeJobQueuesCommand.js +21 -28
- package/dist-es/commands/DescribeJobsCommand.js +21 -28
- package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListSchedulingPoliciesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RegisterJobDefinitionCommand.js +21 -28
- package/dist-es/commands/SubmitJobCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/TerminateJobCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateComputeEnvironmentCommand.js +21 -28
- package/dist-es/commands/UpdateJobQueueCommand.js +21 -28
- package/dist-es/commands/UpdateSchedulingPolicyCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BatchServiceException.js +5 -10
- package/dist-es/models/models_0.js +319 -122
- package/dist-es/pagination/DescribeComputeEnvironmentsPaginator.js +25 -68
- package/dist-es/pagination/DescribeJobDefinitionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeJobQueuesPaginator.js +25 -68
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2036 -2458
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-batch
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-batch
|
|
@@ -617,7 +617,7 @@ exports.deserializeAws_restJson1CancelJobCommand = deserializeAws_restJson1Cance
|
|
|
617
617
|
const deserializeAws_restJson1CancelJobCommandError = async (output, context) => {
|
|
618
618
|
const parsedOutput = {
|
|
619
619
|
...output,
|
|
620
|
-
body: await
|
|
620
|
+
body: await parseErrorBody(output.body, context),
|
|
621
621
|
};
|
|
622
622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
623
|
switch (errorCode) {
|
|
@@ -657,7 +657,7 @@ exports.deserializeAws_restJson1CreateComputeEnvironmentCommand = deserializeAws
|
|
|
657
657
|
const deserializeAws_restJson1CreateComputeEnvironmentCommandError = async (output, context) => {
|
|
658
658
|
const parsedOutput = {
|
|
659
659
|
...output,
|
|
660
|
-
body: await
|
|
660
|
+
body: await parseErrorBody(output.body, context),
|
|
661
661
|
};
|
|
662
662
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
663
|
switch (errorCode) {
|
|
@@ -697,7 +697,7 @@ exports.deserializeAws_restJson1CreateJobQueueCommand = deserializeAws_restJson1
|
|
|
697
697
|
const deserializeAws_restJson1CreateJobQueueCommandError = async (output, context) => {
|
|
698
698
|
const parsedOutput = {
|
|
699
699
|
...output,
|
|
700
|
-
body: await
|
|
700
|
+
body: await parseErrorBody(output.body, context),
|
|
701
701
|
};
|
|
702
702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
703
|
switch (errorCode) {
|
|
@@ -737,7 +737,7 @@ exports.deserializeAws_restJson1CreateSchedulingPolicyCommand = deserializeAws_r
|
|
|
737
737
|
const deserializeAws_restJson1CreateSchedulingPolicyCommandError = async (output, context) => {
|
|
738
738
|
const parsedOutput = {
|
|
739
739
|
...output,
|
|
740
|
-
body: await
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
741
|
};
|
|
742
742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
743
|
switch (errorCode) {
|
|
@@ -771,7 +771,7 @@ exports.deserializeAws_restJson1DeleteComputeEnvironmentCommand = deserializeAws
|
|
|
771
771
|
const deserializeAws_restJson1DeleteComputeEnvironmentCommandError = async (output, context) => {
|
|
772
772
|
const parsedOutput = {
|
|
773
773
|
...output,
|
|
774
|
-
body: await
|
|
774
|
+
body: await parseErrorBody(output.body, context),
|
|
775
775
|
};
|
|
776
776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
777
|
switch (errorCode) {
|
|
@@ -805,7 +805,7 @@ exports.deserializeAws_restJson1DeleteJobQueueCommand = deserializeAws_restJson1
|
|
|
805
805
|
const deserializeAws_restJson1DeleteJobQueueCommandError = async (output, context) => {
|
|
806
806
|
const parsedOutput = {
|
|
807
807
|
...output,
|
|
808
|
-
body: await
|
|
808
|
+
body: await parseErrorBody(output.body, context),
|
|
809
809
|
};
|
|
810
810
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
811
|
switch (errorCode) {
|
|
@@ -839,7 +839,7 @@ exports.deserializeAws_restJson1DeleteSchedulingPolicyCommand = deserializeAws_r
|
|
|
839
839
|
const deserializeAws_restJson1DeleteSchedulingPolicyCommandError = async (output, context) => {
|
|
840
840
|
const parsedOutput = {
|
|
841
841
|
...output,
|
|
842
|
-
body: await
|
|
842
|
+
body: await parseErrorBody(output.body, context),
|
|
843
843
|
};
|
|
844
844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
845
|
switch (errorCode) {
|
|
@@ -873,7 +873,7 @@ exports.deserializeAws_restJson1DeregisterJobDefinitionCommand = deserializeAws_
|
|
|
873
873
|
const deserializeAws_restJson1DeregisterJobDefinitionCommandError = async (output, context) => {
|
|
874
874
|
const parsedOutput = {
|
|
875
875
|
...output,
|
|
876
|
-
body: await
|
|
876
|
+
body: await parseErrorBody(output.body, context),
|
|
877
877
|
};
|
|
878
878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
879
|
switch (errorCode) {
|
|
@@ -913,7 +913,7 @@ exports.deserializeAws_restJson1DescribeComputeEnvironmentsCommand = deserialize
|
|
|
913
913
|
const deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = async (output, context) => {
|
|
914
914
|
const parsedOutput = {
|
|
915
915
|
...output,
|
|
916
|
-
body: await
|
|
916
|
+
body: await parseErrorBody(output.body, context),
|
|
917
917
|
};
|
|
918
918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
919
|
switch (errorCode) {
|
|
@@ -953,7 +953,7 @@ exports.deserializeAws_restJson1DescribeJobDefinitionsCommand = deserializeAws_r
|
|
|
953
953
|
const deserializeAws_restJson1DescribeJobDefinitionsCommandError = async (output, context) => {
|
|
954
954
|
const parsedOutput = {
|
|
955
955
|
...output,
|
|
956
|
-
body: await
|
|
956
|
+
body: await parseErrorBody(output.body, context),
|
|
957
957
|
};
|
|
958
958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
959
|
switch (errorCode) {
|
|
@@ -993,7 +993,7 @@ exports.deserializeAws_restJson1DescribeJobQueuesCommand = deserializeAws_restJs
|
|
|
993
993
|
const deserializeAws_restJson1DescribeJobQueuesCommandError = async (output, context) => {
|
|
994
994
|
const parsedOutput = {
|
|
995
995
|
...output,
|
|
996
|
-
body: await
|
|
996
|
+
body: await parseErrorBody(output.body, context),
|
|
997
997
|
};
|
|
998
998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
999
|
switch (errorCode) {
|
|
@@ -1030,7 +1030,7 @@ exports.deserializeAws_restJson1DescribeJobsCommand = deserializeAws_restJson1De
|
|
|
1030
1030
|
const deserializeAws_restJson1DescribeJobsCommandError = async (output, context) => {
|
|
1031
1031
|
const parsedOutput = {
|
|
1032
1032
|
...output,
|
|
1033
|
-
body: await
|
|
1033
|
+
body: await parseErrorBody(output.body, context),
|
|
1034
1034
|
};
|
|
1035
1035
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
1036
|
switch (errorCode) {
|
|
@@ -1067,7 +1067,7 @@ exports.deserializeAws_restJson1DescribeSchedulingPoliciesCommand = deserializeA
|
|
|
1067
1067
|
const deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = async (output, context) => {
|
|
1068
1068
|
const parsedOutput = {
|
|
1069
1069
|
...output,
|
|
1070
|
-
body: await
|
|
1070
|
+
body: await parseErrorBody(output.body, context),
|
|
1071
1071
|
};
|
|
1072
1072
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
1073
|
switch (errorCode) {
|
|
@@ -1107,7 +1107,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
|
|
|
1107
1107
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
1108
1108
|
const parsedOutput = {
|
|
1109
1109
|
...output,
|
|
1110
|
-
body: await
|
|
1110
|
+
body: await parseErrorBody(output.body, context),
|
|
1111
1111
|
};
|
|
1112
1112
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
1113
|
switch (errorCode) {
|
|
@@ -1147,7 +1147,7 @@ exports.deserializeAws_restJson1ListSchedulingPoliciesCommand = deserializeAws_r
|
|
|
1147
1147
|
const deserializeAws_restJson1ListSchedulingPoliciesCommandError = async (output, context) => {
|
|
1148
1148
|
const parsedOutput = {
|
|
1149
1149
|
...output,
|
|
1150
|
-
body: await
|
|
1150
|
+
body: await parseErrorBody(output.body, context),
|
|
1151
1151
|
};
|
|
1152
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1153
|
switch (errorCode) {
|
|
@@ -1184,7 +1184,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1184
1184
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1185
1185
|
const parsedOutput = {
|
|
1186
1186
|
...output,
|
|
1187
|
-
body: await
|
|
1187
|
+
body: await parseErrorBody(output.body, context),
|
|
1188
1188
|
};
|
|
1189
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
1190
|
switch (errorCode) {
|
|
@@ -1227,7 +1227,7 @@ exports.deserializeAws_restJson1RegisterJobDefinitionCommand = deserializeAws_re
|
|
|
1227
1227
|
const deserializeAws_restJson1RegisterJobDefinitionCommandError = async (output, context) => {
|
|
1228
1228
|
const parsedOutput = {
|
|
1229
1229
|
...output,
|
|
1230
|
-
body: await
|
|
1230
|
+
body: await parseErrorBody(output.body, context),
|
|
1231
1231
|
};
|
|
1232
1232
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1233
|
switch (errorCode) {
|
|
@@ -1270,7 +1270,7 @@ exports.deserializeAws_restJson1SubmitJobCommand = deserializeAws_restJson1Submi
|
|
|
1270
1270
|
const deserializeAws_restJson1SubmitJobCommandError = async (output, context) => {
|
|
1271
1271
|
const parsedOutput = {
|
|
1272
1272
|
...output,
|
|
1273
|
-
body: await
|
|
1273
|
+
body: await parseErrorBody(output.body, context),
|
|
1274
1274
|
};
|
|
1275
1275
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
1276
|
switch (errorCode) {
|
|
@@ -1304,7 +1304,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1304
1304
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1305
1305
|
const parsedOutput = {
|
|
1306
1306
|
...output,
|
|
1307
|
-
body: await
|
|
1307
|
+
body: await parseErrorBody(output.body, context),
|
|
1308
1308
|
};
|
|
1309
1309
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1310
|
switch (errorCode) {
|
|
@@ -1338,7 +1338,7 @@ exports.deserializeAws_restJson1TerminateJobCommand = deserializeAws_restJson1Te
|
|
|
1338
1338
|
const deserializeAws_restJson1TerminateJobCommandError = async (output, context) => {
|
|
1339
1339
|
const parsedOutput = {
|
|
1340
1340
|
...output,
|
|
1341
|
-
body: await
|
|
1341
|
+
body: await parseErrorBody(output.body, context),
|
|
1342
1342
|
};
|
|
1343
1343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
switch (errorCode) {
|
|
@@ -1372,7 +1372,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1372
1372
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1373
1373
|
const parsedOutput = {
|
|
1374
1374
|
...output,
|
|
1375
|
-
body: await
|
|
1375
|
+
body: await parseErrorBody(output.body, context),
|
|
1376
1376
|
};
|
|
1377
1377
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1378
|
switch (errorCode) {
|
|
@@ -1412,7 +1412,7 @@ exports.deserializeAws_restJson1UpdateComputeEnvironmentCommand = deserializeAws
|
|
|
1412
1412
|
const deserializeAws_restJson1UpdateComputeEnvironmentCommandError = async (output, context) => {
|
|
1413
1413
|
const parsedOutput = {
|
|
1414
1414
|
...output,
|
|
1415
|
-
body: await
|
|
1415
|
+
body: await parseErrorBody(output.body, context),
|
|
1416
1416
|
};
|
|
1417
1417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1418
|
switch (errorCode) {
|
|
@@ -1452,7 +1452,7 @@ exports.deserializeAws_restJson1UpdateJobQueueCommand = deserializeAws_restJson1
|
|
|
1452
1452
|
const deserializeAws_restJson1UpdateJobQueueCommandError = async (output, context) => {
|
|
1453
1453
|
const parsedOutput = {
|
|
1454
1454
|
...output,
|
|
1455
|
-
body: await
|
|
1455
|
+
body: await parseErrorBody(output.body, context),
|
|
1456
1456
|
};
|
|
1457
1457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1458
|
switch (errorCode) {
|
|
@@ -1486,7 +1486,7 @@ exports.deserializeAws_restJson1UpdateSchedulingPolicyCommand = deserializeAws_r
|
|
|
1486
1486
|
const deserializeAws_restJson1UpdateSchedulingPolicyCommandError = async (output, context) => {
|
|
1487
1487
|
const parsedOutput = {
|
|
1488
1488
|
...output,
|
|
1489
|
-
body: await
|
|
1489
|
+
body: await parseErrorBody(output.body, context),
|
|
1490
1490
|
};
|
|
1491
1491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
1492
|
switch (errorCode) {
|
|
@@ -2883,6 +2883,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2883
2883
|
}
|
|
2884
2884
|
return {};
|
|
2885
2885
|
});
|
|
2886
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2887
|
+
var _a;
|
|
2888
|
+
const value = await parseBody(errorBody, context);
|
|
2889
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2890
|
+
return value;
|
|
2891
|
+
};
|
|
2886
2892
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2887
2893
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2888
2894
|
const sanitizeErrorCode = (rawValue) => {
|