@aws-sdk/client-mediaconvert 3.180.0 → 3.181.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 CHANGED
@@ -3,6 +3,18 @@
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+ * **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))
13
+
14
+
15
+
16
+
17
+
6
18
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
19
 
8
20
  **Note:** Version bump only for package @aws-sdk/client-mediaconvert
@@ -643,7 +643,7 @@ exports.deserializeAws_restJson1AssociateCertificateCommand = deserializeAws_res
643
643
  const deserializeAws_restJson1AssociateCertificateCommandError = async (output, context) => {
644
644
  const parsedOutput = {
645
645
  ...output,
646
- body: await parseBody(output.body, context),
646
+ body: await parseErrorBody(output.body, context),
647
647
  };
648
648
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
649
649
  switch (errorCode) {
@@ -689,7 +689,7 @@ exports.deserializeAws_restJson1CancelJobCommand = deserializeAws_restJson1Cance
689
689
  const deserializeAws_restJson1CancelJobCommandError = async (output, context) => {
690
690
  const parsedOutput = {
691
691
  ...output,
692
- body: await parseBody(output.body, context),
692
+ body: await parseErrorBody(output.body, context),
693
693
  };
694
694
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
695
695
  switch (errorCode) {
@@ -738,7 +738,7 @@ exports.deserializeAws_restJson1CreateJobCommand = deserializeAws_restJson1Creat
738
738
  const deserializeAws_restJson1CreateJobCommandError = async (output, context) => {
739
739
  const parsedOutput = {
740
740
  ...output,
741
- body: await parseBody(output.body, context),
741
+ body: await parseErrorBody(output.body, context),
742
742
  };
743
743
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
744
744
  switch (errorCode) {
@@ -787,7 +787,7 @@ exports.deserializeAws_restJson1CreateJobTemplateCommand = deserializeAws_restJs
787
787
  const deserializeAws_restJson1CreateJobTemplateCommandError = async (output, context) => {
788
788
  const parsedOutput = {
789
789
  ...output,
790
- body: await parseBody(output.body, context),
790
+ body: await parseErrorBody(output.body, context),
791
791
  };
792
792
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
793
793
  switch (errorCode) {
@@ -836,7 +836,7 @@ exports.deserializeAws_restJson1CreatePresetCommand = deserializeAws_restJson1Cr
836
836
  const deserializeAws_restJson1CreatePresetCommandError = async (output, context) => {
837
837
  const parsedOutput = {
838
838
  ...output,
839
- body: await parseBody(output.body, context),
839
+ body: await parseErrorBody(output.body, context),
840
840
  };
841
841
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
842
842
  switch (errorCode) {
@@ -885,7 +885,7 @@ exports.deserializeAws_restJson1CreateQueueCommand = deserializeAws_restJson1Cre
885
885
  const deserializeAws_restJson1CreateQueueCommandError = async (output, context) => {
886
886
  const parsedOutput = {
887
887
  ...output,
888
- body: await parseBody(output.body, context),
888
+ body: await parseErrorBody(output.body, context),
889
889
  };
890
890
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
891
891
  switch (errorCode) {
@@ -931,7 +931,7 @@ exports.deserializeAws_restJson1DeleteJobTemplateCommand = deserializeAws_restJs
931
931
  const deserializeAws_restJson1DeleteJobTemplateCommandError = async (output, context) => {
932
932
  const parsedOutput = {
933
933
  ...output,
934
- body: await parseBody(output.body, context),
934
+ body: await parseErrorBody(output.body, context),
935
935
  };
936
936
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
937
937
  switch (errorCode) {
@@ -977,7 +977,7 @@ exports.deserializeAws_restJson1DeletePolicyCommand = deserializeAws_restJson1De
977
977
  const deserializeAws_restJson1DeletePolicyCommandError = async (output, context) => {
978
978
  const parsedOutput = {
979
979
  ...output,
980
- body: await parseBody(output.body, context),
980
+ body: await parseErrorBody(output.body, context),
981
981
  };
982
982
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
983
983
  switch (errorCode) {
@@ -1023,7 +1023,7 @@ exports.deserializeAws_restJson1DeletePresetCommand = deserializeAws_restJson1De
1023
1023
  const deserializeAws_restJson1DeletePresetCommandError = async (output, context) => {
1024
1024
  const parsedOutput = {
1025
1025
  ...output,
1026
- body: await parseBody(output.body, context),
1026
+ body: await parseErrorBody(output.body, context),
1027
1027
  };
1028
1028
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1029
1029
  switch (errorCode) {
@@ -1069,7 +1069,7 @@ exports.deserializeAws_restJson1DeleteQueueCommand = deserializeAws_restJson1Del
1069
1069
  const deserializeAws_restJson1DeleteQueueCommandError = async (output, context) => {
1070
1070
  const parsedOutput = {
1071
1071
  ...output,
1072
- body: await parseBody(output.body, context),
1072
+ body: await parseErrorBody(output.body, context),
1073
1073
  };
1074
1074
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1075
1075
  switch (errorCode) {
@@ -1121,7 +1121,7 @@ exports.deserializeAws_restJson1DescribeEndpointsCommand = deserializeAws_restJs
1121
1121
  const deserializeAws_restJson1DescribeEndpointsCommandError = async (output, context) => {
1122
1122
  const parsedOutput = {
1123
1123
  ...output,
1124
- body: await parseBody(output.body, context),
1124
+ body: await parseErrorBody(output.body, context),
1125
1125
  };
1126
1126
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1127
1127
  switch (errorCode) {
@@ -1167,7 +1167,7 @@ exports.deserializeAws_restJson1DisassociateCertificateCommand = deserializeAws_
1167
1167
  const deserializeAws_restJson1DisassociateCertificateCommandError = async (output, context) => {
1168
1168
  const parsedOutput = {
1169
1169
  ...output,
1170
- body: await parseBody(output.body, context),
1170
+ body: await parseErrorBody(output.body, context),
1171
1171
  };
1172
1172
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1173
1173
  switch (errorCode) {
@@ -1216,7 +1216,7 @@ exports.deserializeAws_restJson1GetJobCommand = deserializeAws_restJson1GetJobCo
1216
1216
  const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
1217
1217
  const parsedOutput = {
1218
1218
  ...output,
1219
- body: await parseBody(output.body, context),
1219
+ body: await parseErrorBody(output.body, context),
1220
1220
  };
1221
1221
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1222
1222
  switch (errorCode) {
@@ -1265,7 +1265,7 @@ exports.deserializeAws_restJson1GetJobTemplateCommand = deserializeAws_restJson1
1265
1265
  const deserializeAws_restJson1GetJobTemplateCommandError = async (output, context) => {
1266
1266
  const parsedOutput = {
1267
1267
  ...output,
1268
- body: await parseBody(output.body, context),
1268
+ body: await parseErrorBody(output.body, context),
1269
1269
  };
1270
1270
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1271
1271
  switch (errorCode) {
@@ -1314,7 +1314,7 @@ exports.deserializeAws_restJson1GetPolicyCommand = deserializeAws_restJson1GetPo
1314
1314
  const deserializeAws_restJson1GetPolicyCommandError = async (output, context) => {
1315
1315
  const parsedOutput = {
1316
1316
  ...output,
1317
- body: await parseBody(output.body, context),
1317
+ body: await parseErrorBody(output.body, context),
1318
1318
  };
1319
1319
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1320
1320
  switch (errorCode) {
@@ -1363,7 +1363,7 @@ exports.deserializeAws_restJson1GetPresetCommand = deserializeAws_restJson1GetPr
1363
1363
  const deserializeAws_restJson1GetPresetCommandError = async (output, context) => {
1364
1364
  const parsedOutput = {
1365
1365
  ...output,
1366
- body: await parseBody(output.body, context),
1366
+ body: await parseErrorBody(output.body, context),
1367
1367
  };
1368
1368
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1369
1369
  switch (errorCode) {
@@ -1412,7 +1412,7 @@ exports.deserializeAws_restJson1GetQueueCommand = deserializeAws_restJson1GetQue
1412
1412
  const deserializeAws_restJson1GetQueueCommandError = async (output, context) => {
1413
1413
  const parsedOutput = {
1414
1414
  ...output,
1415
- body: await parseBody(output.body, context),
1415
+ body: await parseErrorBody(output.body, context),
1416
1416
  };
1417
1417
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1418
1418
  switch (errorCode) {
@@ -1464,7 +1464,7 @@ exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJo
1464
1464
  const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
1465
1465
  const parsedOutput = {
1466
1466
  ...output,
1467
- body: await parseBody(output.body, context),
1467
+ body: await parseErrorBody(output.body, context),
1468
1468
  };
1469
1469
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1470
1470
  switch (errorCode) {
@@ -1516,7 +1516,7 @@ exports.deserializeAws_restJson1ListJobTemplatesCommand = deserializeAws_restJso
1516
1516
  const deserializeAws_restJson1ListJobTemplatesCommandError = async (output, context) => {
1517
1517
  const parsedOutput = {
1518
1518
  ...output,
1519
- body: await parseBody(output.body, context),
1519
+ body: await parseErrorBody(output.body, context),
1520
1520
  };
1521
1521
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1522
1522
  switch (errorCode) {
@@ -1568,7 +1568,7 @@ exports.deserializeAws_restJson1ListPresetsCommand = deserializeAws_restJson1Lis
1568
1568
  const deserializeAws_restJson1ListPresetsCommandError = async (output, context) => {
1569
1569
  const parsedOutput = {
1570
1570
  ...output,
1571
- body: await parseBody(output.body, context),
1571
+ body: await parseErrorBody(output.body, context),
1572
1572
  };
1573
1573
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1574
1574
  switch (errorCode) {
@@ -1620,7 +1620,7 @@ exports.deserializeAws_restJson1ListQueuesCommand = deserializeAws_restJson1List
1620
1620
  const deserializeAws_restJson1ListQueuesCommandError = async (output, context) => {
1621
1621
  const parsedOutput = {
1622
1622
  ...output,
1623
- body: await parseBody(output.body, context),
1623
+ body: await parseErrorBody(output.body, context),
1624
1624
  };
1625
1625
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1626
1626
  switch (errorCode) {
@@ -1669,7 +1669,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
1669
1669
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1670
1670
  const parsedOutput = {
1671
1671
  ...output,
1672
- body: await parseBody(output.body, context),
1672
+ body: await parseErrorBody(output.body, context),
1673
1673
  };
1674
1674
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1675
1675
  switch (errorCode) {
@@ -1718,7 +1718,7 @@ exports.deserializeAws_restJson1PutPolicyCommand = deserializeAws_restJson1PutPo
1718
1718
  const deserializeAws_restJson1PutPolicyCommandError = async (output, context) => {
1719
1719
  const parsedOutput = {
1720
1720
  ...output,
1721
- body: await parseBody(output.body, context),
1721
+ body: await parseErrorBody(output.body, context),
1722
1722
  };
1723
1723
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1724
1724
  switch (errorCode) {
@@ -1764,7 +1764,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
1764
1764
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1765
1765
  const parsedOutput = {
1766
1766
  ...output,
1767
- body: await parseBody(output.body, context),
1767
+ body: await parseErrorBody(output.body, context),
1768
1768
  };
1769
1769
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1770
1770
  switch (errorCode) {
@@ -1810,7 +1810,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
1810
1810
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1811
1811
  const parsedOutput = {
1812
1812
  ...output,
1813
- body: await parseBody(output.body, context),
1813
+ body: await parseErrorBody(output.body, context),
1814
1814
  };
1815
1815
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1816
1816
  switch (errorCode) {
@@ -1859,7 +1859,7 @@ exports.deserializeAws_restJson1UpdateJobTemplateCommand = deserializeAws_restJs
1859
1859
  const deserializeAws_restJson1UpdateJobTemplateCommandError = async (output, context) => {
1860
1860
  const parsedOutput = {
1861
1861
  ...output,
1862
- body: await parseBody(output.body, context),
1862
+ body: await parseErrorBody(output.body, context),
1863
1863
  };
1864
1864
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1865
1865
  switch (errorCode) {
@@ -1908,7 +1908,7 @@ exports.deserializeAws_restJson1UpdatePresetCommand = deserializeAws_restJson1Up
1908
1908
  const deserializeAws_restJson1UpdatePresetCommandError = async (output, context) => {
1909
1909
  const parsedOutput = {
1910
1910
  ...output,
1911
- body: await parseBody(output.body, context),
1911
+ body: await parseErrorBody(output.body, context),
1912
1912
  };
1913
1913
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1914
1914
  switch (errorCode) {
@@ -1957,7 +1957,7 @@ exports.deserializeAws_restJson1UpdateQueueCommand = deserializeAws_restJson1Upd
1957
1957
  const deserializeAws_restJson1UpdateQueueCommandError = async (output, context) => {
1958
1958
  const parsedOutput = {
1959
1959
  ...output,
1960
- body: await parseBody(output.body, context),
1960
+ body: await parseErrorBody(output.body, context),
1961
1961
  };
1962
1962
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1963
1963
  switch (errorCode) {
@@ -7031,6 +7031,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
7031
7031
  }
7032
7032
  return {};
7033
7033
  });
7034
+ const parseErrorBody = async (errorBody, context) => {
7035
+ var _a;
7036
+ const value = await parseBody(errorBody, context);
7037
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
7038
+ return value;
7039
+ };
7034
7040
  const loadRestJsonErrorCode = (output, data) => {
7035
7041
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
7036
7042
  const sanitizeErrorCode = (rawValue) => {
@@ -724,7 +724,7 @@ var deserializeAws_restJson1AssociateCertificateCommandError = function (output,
724
724
  case 0:
725
725
  _a = [__assign({}, output)];
726
726
  _c = {};
727
- return [4, parseBody(output.body, context)];
727
+ return [4, parseErrorBody(output.body, context)];
728
728
  case 1:
729
729
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
730
730
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -795,7 +795,7 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
795
795
  case 0:
796
796
  _a = [__assign({}, output)];
797
797
  _c = {};
798
- return [4, parseBody(output.body, context)];
798
+ return [4, parseErrorBody(output.body, context)];
799
799
  case 1:
800
800
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
801
801
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -871,7 +871,7 @@ var deserializeAws_restJson1CreateJobCommandError = function (output, context) {
871
871
  case 0:
872
872
  _a = [__assign({}, output)];
873
873
  _c = {};
874
- return [4, parseBody(output.body, context)];
874
+ return [4, parseErrorBody(output.body, context)];
875
875
  case 1:
876
876
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
877
877
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -947,7 +947,7 @@ var deserializeAws_restJson1CreateJobTemplateCommandError = function (output, co
947
947
  case 0:
948
948
  _a = [__assign({}, output)];
949
949
  _c = {};
950
- return [4, parseBody(output.body, context)];
950
+ return [4, parseErrorBody(output.body, context)];
951
951
  case 1:
952
952
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
953
953
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1023,7 +1023,7 @@ var deserializeAws_restJson1CreatePresetCommandError = function (output, context
1023
1023
  case 0:
1024
1024
  _a = [__assign({}, output)];
1025
1025
  _c = {};
1026
- return [4, parseBody(output.body, context)];
1026
+ return [4, parseErrorBody(output.body, context)];
1027
1027
  case 1:
1028
1028
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1029
1029
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1099,7 +1099,7 @@ var deserializeAws_restJson1CreateQueueCommandError = function (output, context)
1099
1099
  case 0:
1100
1100
  _a = [__assign({}, output)];
1101
1101
  _c = {};
1102
- return [4, parseBody(output.body, context)];
1102
+ return [4, parseErrorBody(output.body, context)];
1103
1103
  case 1:
1104
1104
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1105
1105
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1170,7 +1170,7 @@ var deserializeAws_restJson1DeleteJobTemplateCommandError = function (output, co
1170
1170
  case 0:
1171
1171
  _a = [__assign({}, output)];
1172
1172
  _c = {};
1173
- return [4, parseBody(output.body, context)];
1173
+ return [4, parseErrorBody(output.body, context)];
1174
1174
  case 1:
1175
1175
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1176
1176
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1241,7 +1241,7 @@ var deserializeAws_restJson1DeletePolicyCommandError = function (output, context
1241
1241
  case 0:
1242
1242
  _a = [__assign({}, output)];
1243
1243
  _c = {};
1244
- return [4, parseBody(output.body, context)];
1244
+ return [4, parseErrorBody(output.body, context)];
1245
1245
  case 1:
1246
1246
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1247
1247
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1312,7 +1312,7 @@ var deserializeAws_restJson1DeletePresetCommandError = function (output, context
1312
1312
  case 0:
1313
1313
  _a = [__assign({}, output)];
1314
1314
  _c = {};
1315
- return [4, parseBody(output.body, context)];
1315
+ return [4, parseErrorBody(output.body, context)];
1316
1316
  case 1:
1317
1317
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1318
1318
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1383,7 +1383,7 @@ var deserializeAws_restJson1DeleteQueueCommandError = function (output, context)
1383
1383
  case 0:
1384
1384
  _a = [__assign({}, output)];
1385
1385
  _c = {};
1386
- return [4, parseBody(output.body, context)];
1386
+ return [4, parseErrorBody(output.body, context)];
1387
1387
  case 1:
1388
1388
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1389
1389
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1462,7 +1462,7 @@ var deserializeAws_restJson1DescribeEndpointsCommandError = function (output, co
1462
1462
  case 0:
1463
1463
  _a = [__assign({}, output)];
1464
1464
  _c = {};
1465
- return [4, parseBody(output.body, context)];
1465
+ return [4, parseErrorBody(output.body, context)];
1466
1466
  case 1:
1467
1467
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1468
1468
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1533,7 +1533,7 @@ var deserializeAws_restJson1DisassociateCertificateCommandError = function (outp
1533
1533
  case 0:
1534
1534
  _a = [__assign({}, output)];
1535
1535
  _c = {};
1536
- return [4, parseBody(output.body, context)];
1536
+ return [4, parseErrorBody(output.body, context)];
1537
1537
  case 1:
1538
1538
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1539
1539
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1609,7 +1609,7 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
1609
1609
  case 0:
1610
1610
  _a = [__assign({}, output)];
1611
1611
  _c = {};
1612
- return [4, parseBody(output.body, context)];
1612
+ return [4, parseErrorBody(output.body, context)];
1613
1613
  case 1:
1614
1614
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1615
1615
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1685,7 +1685,7 @@ var deserializeAws_restJson1GetJobTemplateCommandError = function (output, conte
1685
1685
  case 0:
1686
1686
  _a = [__assign({}, output)];
1687
1687
  _c = {};
1688
- return [4, parseBody(output.body, context)];
1688
+ return [4, parseErrorBody(output.body, context)];
1689
1689
  case 1:
1690
1690
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1691
1691
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1761,7 +1761,7 @@ var deserializeAws_restJson1GetPolicyCommandError = function (output, context) {
1761
1761
  case 0:
1762
1762
  _a = [__assign({}, output)];
1763
1763
  _c = {};
1764
- return [4, parseBody(output.body, context)];
1764
+ return [4, parseErrorBody(output.body, context)];
1765
1765
  case 1:
1766
1766
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1767
1767
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1837,7 +1837,7 @@ var deserializeAws_restJson1GetPresetCommandError = function (output, context) {
1837
1837
  case 0:
1838
1838
  _a = [__assign({}, output)];
1839
1839
  _c = {};
1840
- return [4, parseBody(output.body, context)];
1840
+ return [4, parseErrorBody(output.body, context)];
1841
1841
  case 1:
1842
1842
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1843
1843
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1913,7 +1913,7 @@ var deserializeAws_restJson1GetQueueCommandError = function (output, context) {
1913
1913
  case 0:
1914
1914
  _a = [__assign({}, output)];
1915
1915
  _c = {};
1916
- return [4, parseBody(output.body, context)];
1916
+ return [4, parseErrorBody(output.body, context)];
1917
1917
  case 1:
1918
1918
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1919
1919
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1992,7 +1992,7 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
1992
1992
  case 0:
1993
1993
  _a = [__assign({}, output)];
1994
1994
  _c = {};
1995
- return [4, parseBody(output.body, context)];
1995
+ return [4, parseErrorBody(output.body, context)];
1996
1996
  case 1:
1997
1997
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1998
1998
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2071,7 +2071,7 @@ var deserializeAws_restJson1ListJobTemplatesCommandError = function (output, con
2071
2071
  case 0:
2072
2072
  _a = [__assign({}, output)];
2073
2073
  _c = {};
2074
- return [4, parseBody(output.body, context)];
2074
+ return [4, parseErrorBody(output.body, context)];
2075
2075
  case 1:
2076
2076
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2077
2077
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2150,7 +2150,7 @@ var deserializeAws_restJson1ListPresetsCommandError = function (output, context)
2150
2150
  case 0:
2151
2151
  _a = [__assign({}, output)];
2152
2152
  _c = {};
2153
- return [4, parseBody(output.body, context)];
2153
+ return [4, parseErrorBody(output.body, context)];
2154
2154
  case 1:
2155
2155
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2156
2156
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2229,7 +2229,7 @@ var deserializeAws_restJson1ListQueuesCommandError = function (output, context)
2229
2229
  case 0:
2230
2230
  _a = [__assign({}, output)];
2231
2231
  _c = {};
2232
- return [4, parseBody(output.body, context)];
2232
+ return [4, parseErrorBody(output.body, context)];
2233
2233
  case 1:
2234
2234
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2235
2235
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2305,7 +2305,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2305
2305
  case 0:
2306
2306
  _a = [__assign({}, output)];
2307
2307
  _c = {};
2308
- return [4, parseBody(output.body, context)];
2308
+ return [4, parseErrorBody(output.body, context)];
2309
2309
  case 1:
2310
2310
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2311
2311
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2381,7 +2381,7 @@ var deserializeAws_restJson1PutPolicyCommandError = function (output, context) {
2381
2381
  case 0:
2382
2382
  _a = [__assign({}, output)];
2383
2383
  _c = {};
2384
- return [4, parseBody(output.body, context)];
2384
+ return [4, parseErrorBody(output.body, context)];
2385
2385
  case 1:
2386
2386
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2387
2387
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2452,7 +2452,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2452
2452
  case 0:
2453
2453
  _a = [__assign({}, output)];
2454
2454
  _c = {};
2455
- return [4, parseBody(output.body, context)];
2455
+ return [4, parseErrorBody(output.body, context)];
2456
2456
  case 1:
2457
2457
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2458
2458
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2523,7 +2523,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2523
2523
  case 0:
2524
2524
  _a = [__assign({}, output)];
2525
2525
  _c = {};
2526
- return [4, parseBody(output.body, context)];
2526
+ return [4, parseErrorBody(output.body, context)];
2527
2527
  case 1:
2528
2528
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2529
2529
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2599,7 +2599,7 @@ var deserializeAws_restJson1UpdateJobTemplateCommandError = function (output, co
2599
2599
  case 0:
2600
2600
  _a = [__assign({}, output)];
2601
2601
  _c = {};
2602
- return [4, parseBody(output.body, context)];
2602
+ return [4, parseErrorBody(output.body, context)];
2603
2603
  case 1:
2604
2604
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2605
2605
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2675,7 +2675,7 @@ var deserializeAws_restJson1UpdatePresetCommandError = function (output, context
2675
2675
  case 0:
2676
2676
  _a = [__assign({}, output)];
2677
2677
  _c = {};
2678
- return [4, parseBody(output.body, context)];
2678
+ return [4, parseErrorBody(output.body, context)];
2679
2679
  case 1:
2680
2680
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2681
2681
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2751,7 +2751,7 @@ var deserializeAws_restJson1UpdateQueueCommandError = function (output, context)
2751
2751
  case 0:
2752
2752
  _a = [__assign({}, output)];
2753
2753
  _c = {};
2754
- return [4, parseBody(output.body, context)];
2754
+ return [4, parseErrorBody(output.body, context)];
2755
2755
  case 1:
2756
2756
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2757
2757
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -6656,6 +6656,19 @@ var parseBody = function (streamBody, context) {
6656
6656
  return {};
6657
6657
  });
6658
6658
  };
6659
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
6660
+ var value;
6661
+ var _a;
6662
+ return __generator(this, function (_b) {
6663
+ switch (_b.label) {
6664
+ case 0: return [4, parseBody(errorBody, context)];
6665
+ case 1:
6666
+ value = _b.sent();
6667
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
6668
+ return [2, value];
6669
+ }
6670
+ });
6671
+ }); };
6659
6672
  var loadRestJsonErrorCode = function (output, data) {
6660
6673
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
6661
6674
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediaconvert",
3
3
  "description": "AWS SDK for JavaScript Mediaconvert Client for Node.js, Browser and React Native",
4
- "version": "3.180.0",
4
+ "version": "3.181.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.180.0",
22
+ "@aws-sdk/client-sts": "3.181.0",
23
23
  "@aws-sdk/config-resolver": "3.178.0",
24
- "@aws-sdk/credential-provider-node": "3.180.0",
24
+ "@aws-sdk/credential-provider-node": "3.181.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.178.0",
26
26
  "@aws-sdk/hash-node": "3.178.0",
27
27
  "@aws-sdk/invalid-dependency": "3.178.0",