@aws-sdk/client-managedblockchain 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-managedblockchain
@@ -550,7 +550,7 @@ exports.deserializeAws_restJson1CreateMemberCommand = deserializeAws_restJson1Cr
550
550
  const deserializeAws_restJson1CreateMemberCommandError = async (output, context) => {
551
551
  const parsedOutput = {
552
552
  ...output,
553
- body: await parseBody(output.body, context),
553
+ body: await parseErrorBody(output.body, context),
554
554
  };
555
555
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
556
556
  switch (errorCode) {
@@ -611,7 +611,7 @@ exports.deserializeAws_restJson1CreateNetworkCommand = deserializeAws_restJson1C
611
611
  const deserializeAws_restJson1CreateNetworkCommandError = async (output, context) => {
612
612
  const parsedOutput = {
613
613
  ...output,
614
- body: await parseBody(output.body, context),
614
+ body: await parseErrorBody(output.body, context),
615
615
  };
616
616
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
617
617
  switch (errorCode) {
@@ -663,7 +663,7 @@ exports.deserializeAws_restJson1CreateNodeCommand = deserializeAws_restJson1Crea
663
663
  const deserializeAws_restJson1CreateNodeCommandError = async (output, context) => {
664
664
  const parsedOutput = {
665
665
  ...output,
666
- body: await parseBody(output.body, context),
666
+ body: await parseErrorBody(output.body, context),
667
667
  };
668
668
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
669
669
  switch (errorCode) {
@@ -721,7 +721,7 @@ exports.deserializeAws_restJson1CreateProposalCommand = deserializeAws_restJson1
721
721
  const deserializeAws_restJson1CreateProposalCommandError = async (output, context) => {
722
722
  const parsedOutput = {
723
723
  ...output,
724
- body: await parseBody(output.body, context),
724
+ body: await parseErrorBody(output.body, context),
725
725
  };
726
726
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
727
727
  switch (errorCode) {
@@ -770,7 +770,7 @@ exports.deserializeAws_restJson1DeleteMemberCommand = deserializeAws_restJson1De
770
770
  const deserializeAws_restJson1DeleteMemberCommandError = async (output, context) => {
771
771
  const parsedOutput = {
772
772
  ...output,
773
- body: await parseBody(output.body, context),
773
+ body: await parseErrorBody(output.body, context),
774
774
  };
775
775
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
776
776
  switch (errorCode) {
@@ -816,7 +816,7 @@ exports.deserializeAws_restJson1DeleteNodeCommand = deserializeAws_restJson1Dele
816
816
  const deserializeAws_restJson1DeleteNodeCommandError = async (output, context) => {
817
817
  const parsedOutput = {
818
818
  ...output,
819
- body: await parseBody(output.body, context),
819
+ body: await parseErrorBody(output.body, context),
820
820
  };
821
821
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
822
822
  switch (errorCode) {
@@ -865,7 +865,7 @@ exports.deserializeAws_restJson1GetMemberCommand = deserializeAws_restJson1GetMe
865
865
  const deserializeAws_restJson1GetMemberCommandError = async (output, context) => {
866
866
  const parsedOutput = {
867
867
  ...output,
868
- body: await parseBody(output.body, context),
868
+ body: await parseErrorBody(output.body, context),
869
869
  };
870
870
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
871
871
  switch (errorCode) {
@@ -911,7 +911,7 @@ exports.deserializeAws_restJson1GetNetworkCommand = deserializeAws_restJson1GetN
911
911
  const deserializeAws_restJson1GetNetworkCommandError = async (output, context) => {
912
912
  const parsedOutput = {
913
913
  ...output,
914
- body: await parseBody(output.body, context),
914
+ body: await parseErrorBody(output.body, context),
915
915
  };
916
916
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
917
917
  switch (errorCode) {
@@ -957,7 +957,7 @@ exports.deserializeAws_restJson1GetNodeCommand = deserializeAws_restJson1GetNode
957
957
  const deserializeAws_restJson1GetNodeCommandError = async (output, context) => {
958
958
  const parsedOutput = {
959
959
  ...output,
960
- body: await parseBody(output.body, context),
960
+ body: await parseErrorBody(output.body, context),
961
961
  };
962
962
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
963
963
  switch (errorCode) {
@@ -1003,7 +1003,7 @@ exports.deserializeAws_restJson1GetProposalCommand = deserializeAws_restJson1Get
1003
1003
  const deserializeAws_restJson1GetProposalCommandError = async (output, context) => {
1004
1004
  const parsedOutput = {
1005
1005
  ...output,
1006
- body: await parseBody(output.body, context),
1006
+ body: await parseErrorBody(output.body, context),
1007
1007
  };
1008
1008
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1009
1009
  switch (errorCode) {
@@ -1052,7 +1052,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
1052
1052
  const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
1053
1053
  const parsedOutput = {
1054
1054
  ...output,
1055
- body: await parseBody(output.body, context),
1055
+ body: await parseErrorBody(output.body, context),
1056
1056
  };
1057
1057
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1058
1058
  switch (errorCode) {
@@ -1104,7 +1104,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
1104
1104
  const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
1105
1105
  const parsedOutput = {
1106
1106
  ...output,
1107
- body: await parseBody(output.body, context),
1107
+ body: await parseErrorBody(output.body, context),
1108
1108
  };
1109
1109
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
1110
  switch (errorCode) {
@@ -1150,7 +1150,7 @@ exports.deserializeAws_restJson1ListNetworksCommand = deserializeAws_restJson1Li
1150
1150
  const deserializeAws_restJson1ListNetworksCommandError = async (output, context) => {
1151
1151
  const parsedOutput = {
1152
1152
  ...output,
1153
- body: await parseBody(output.body, context),
1153
+ body: await parseErrorBody(output.body, context),
1154
1154
  };
1155
1155
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
1156
  switch (errorCode) {
@@ -1196,7 +1196,7 @@ exports.deserializeAws_restJson1ListNodesCommand = deserializeAws_restJson1ListN
1196
1196
  const deserializeAws_restJson1ListNodesCommandError = async (output, context) => {
1197
1197
  const parsedOutput = {
1198
1198
  ...output,
1199
- body: await parseBody(output.body, context),
1199
+ body: await parseErrorBody(output.body, context),
1200
1200
  };
1201
1201
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1202
1202
  switch (errorCode) {
@@ -1242,7 +1242,7 @@ exports.deserializeAws_restJson1ListProposalsCommand = deserializeAws_restJson1L
1242
1242
  const deserializeAws_restJson1ListProposalsCommandError = async (output, context) => {
1243
1243
  const parsedOutput = {
1244
1244
  ...output,
1245
- body: await parseBody(output.body, context),
1245
+ body: await parseErrorBody(output.body, context),
1246
1246
  };
1247
1247
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1248
1248
  switch (errorCode) {
@@ -1291,7 +1291,7 @@ exports.deserializeAws_restJson1ListProposalVotesCommand = deserializeAws_restJs
1291
1291
  const deserializeAws_restJson1ListProposalVotesCommandError = async (output, context) => {
1292
1292
  const parsedOutput = {
1293
1293
  ...output,
1294
- body: await parseBody(output.body, context),
1294
+ body: await parseErrorBody(output.body, context),
1295
1295
  };
1296
1296
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
1297
  switch (errorCode) {
@@ -1334,7 +1334,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
1334
1334
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1335
1335
  const parsedOutput = {
1336
1336
  ...output,
1337
- body: await parseBody(output.body, context),
1337
+ body: await parseErrorBody(output.body, context),
1338
1338
  };
1339
1339
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1340
1340
  switch (errorCode) {
@@ -1374,7 +1374,7 @@ exports.deserializeAws_restJson1RejectInvitationCommand = deserializeAws_restJso
1374
1374
  const deserializeAws_restJson1RejectInvitationCommandError = async (output, context) => {
1375
1375
  const parsedOutput = {
1376
1376
  ...output,
1377
- body: await parseBody(output.body, context),
1377
+ body: await parseErrorBody(output.body, context),
1378
1378
  };
1379
1379
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1380
1380
  switch (errorCode) {
@@ -1420,7 +1420,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
1420
1420
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1421
1421
  const parsedOutput = {
1422
1422
  ...output,
1423
- body: await parseBody(output.body, context),
1423
+ body: await parseErrorBody(output.body, context),
1424
1424
  };
1425
1425
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1426
1426
  switch (errorCode) {
@@ -1463,7 +1463,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
1463
1463
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1464
1464
  const parsedOutput = {
1465
1465
  ...output,
1466
- body: await parseBody(output.body, context),
1466
+ body: await parseErrorBody(output.body, context),
1467
1467
  };
1468
1468
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1469
1469
  switch (errorCode) {
@@ -1503,7 +1503,7 @@ exports.deserializeAws_restJson1UpdateMemberCommand = deserializeAws_restJson1Up
1503
1503
  const deserializeAws_restJson1UpdateMemberCommandError = async (output, context) => {
1504
1504
  const parsedOutput = {
1505
1505
  ...output,
1506
- body: await parseBody(output.body, context),
1506
+ body: await parseErrorBody(output.body, context),
1507
1507
  };
1508
1508
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1509
1509
  switch (errorCode) {
@@ -1546,7 +1546,7 @@ exports.deserializeAws_restJson1UpdateNodeCommand = deserializeAws_restJson1Upda
1546
1546
  const deserializeAws_restJson1UpdateNodeCommandError = async (output, context) => {
1547
1547
  const parsedOutput = {
1548
1548
  ...output,
1549
- body: await parseBody(output.body, context),
1549
+ body: await parseErrorBody(output.body, context),
1550
1550
  };
1551
1551
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1552
1552
  switch (errorCode) {
@@ -1589,7 +1589,7 @@ exports.deserializeAws_restJson1VoteOnProposalCommand = deserializeAws_restJson1
1589
1589
  const deserializeAws_restJson1VoteOnProposalCommandError = async (output, context) => {
1590
1590
  const parsedOutput = {
1591
1591
  ...output,
1592
- body: await parseBody(output.body, context),
1592
+ body: await parseErrorBody(output.body, context),
1593
1593
  };
1594
1594
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1595
1595
  switch (errorCode) {
@@ -2260,6 +2260,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
2260
2260
  }
2261
2261
  return {};
2262
2262
  });
2263
+ const parseErrorBody = async (errorBody, context) => {
2264
+ var _a;
2265
+ const value = await parseBody(errorBody, context);
2266
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
2267
+ return value;
2268
+ };
2263
2269
  const loadRestJsonErrorCode = (output, data) => {
2264
2270
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2265
2271
  const sanitizeErrorCode = (rawValue) => {
@@ -642,7 +642,7 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
642
642
  case 0:
643
643
  _a = [__assign({}, output)];
644
644
  _c = {};
645
- return [4, parseBody(output.body, context)];
645
+ return [4, parseErrorBody(output.body, context)];
646
646
  case 1:
647
647
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
648
648
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -733,7 +733,7 @@ var deserializeAws_restJson1CreateNetworkCommandError = function (output, contex
733
733
  case 0:
734
734
  _a = [__assign({}, output)];
735
735
  _c = {};
736
- return [4, parseBody(output.body, context)];
736
+ return [4, parseErrorBody(output.body, context)];
737
737
  case 1:
738
738
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
739
739
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -813,7 +813,7 @@ var deserializeAws_restJson1CreateNodeCommandError = function (output, context)
813
813
  case 0:
814
814
  _a = [__assign({}, output)];
815
815
  _c = {};
816
- return [4, parseBody(output.body, context)];
816
+ return [4, parseErrorBody(output.body, context)];
817
817
  case 1:
818
818
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
819
819
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -901,7 +901,7 @@ var deserializeAws_restJson1CreateProposalCommandError = function (output, conte
901
901
  case 0:
902
902
  _a = [__assign({}, output)];
903
903
  _c = {};
904
- return [4, parseBody(output.body, context)];
904
+ return [4, parseErrorBody(output.body, context)];
905
905
  case 1:
906
906
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
907
907
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -976,7 +976,7 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
976
976
  case 0:
977
977
  _a = [__assign({}, output)];
978
978
  _c = {};
979
- return [4, parseBody(output.body, context)];
979
+ return [4, parseErrorBody(output.body, context)];
980
980
  case 1:
981
981
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
982
982
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1047,7 +1047,7 @@ var deserializeAws_restJson1DeleteNodeCommandError = function (output, context)
1047
1047
  case 0:
1048
1048
  _a = [__assign({}, output)];
1049
1049
  _c = {};
1050
- return [4, parseBody(output.body, context)];
1050
+ return [4, parseErrorBody(output.body, context)];
1051
1051
  case 1:
1052
1052
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1053
1053
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1123,7 +1123,7 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
1123
1123
  case 0:
1124
1124
  _a = [__assign({}, output)];
1125
1125
  _c = {};
1126
- return [4, parseBody(output.body, context)];
1126
+ return [4, parseErrorBody(output.body, context)];
1127
1127
  case 1:
1128
1128
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1129
1129
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1195,7 +1195,7 @@ var deserializeAws_restJson1GetNetworkCommandError = function (output, context)
1195
1195
  case 0:
1196
1196
  _a = [__assign({}, output)];
1197
1197
  _c = {};
1198
- return [4, parseBody(output.body, context)];
1198
+ return [4, parseErrorBody(output.body, context)];
1199
1199
  case 1:
1200
1200
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1201
1201
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1267,7 +1267,7 @@ var deserializeAws_restJson1GetNodeCommandError = function (output, context) { r
1267
1267
  case 0:
1268
1268
  _a = [__assign({}, output)];
1269
1269
  _c = {};
1270
- return [4, parseBody(output.body, context)];
1270
+ return [4, parseErrorBody(output.body, context)];
1271
1271
  case 1:
1272
1272
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1273
1273
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1339,7 +1339,7 @@ var deserializeAws_restJson1GetProposalCommandError = function (output, context)
1339
1339
  case 0:
1340
1340
  _a = [__assign({}, output)];
1341
1341
  _c = {};
1342
- return [4, parseBody(output.body, context)];
1342
+ return [4, parseErrorBody(output.body, context)];
1343
1343
  case 1:
1344
1344
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1345
1345
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1414,7 +1414,7 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
1414
1414
  case 0:
1415
1415
  _a = [__assign({}, output)];
1416
1416
  _c = {};
1417
- return [4, parseBody(output.body, context)];
1417
+ return [4, parseErrorBody(output.body, context)];
1418
1418
  case 1:
1419
1419
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1420
1420
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1493,7 +1493,7 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
1493
1493
  case 0:
1494
1494
  _a = [__assign({}, output)];
1495
1495
  _c = {};
1496
- return [4, parseBody(output.body, context)];
1496
+ return [4, parseErrorBody(output.body, context)];
1497
1497
  case 1:
1498
1498
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1499
1499
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1564,7 +1564,7 @@ var deserializeAws_restJson1ListNetworksCommandError = function (output, context
1564
1564
  case 0:
1565
1565
  _a = [__assign({}, output)];
1566
1566
  _c = {};
1567
- return [4, parseBody(output.body, context)];
1567
+ return [4, parseErrorBody(output.body, context)];
1568
1568
  case 1:
1569
1569
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1570
1570
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1635,7 +1635,7 @@ var deserializeAws_restJson1ListNodesCommandError = function (output, context) {
1635
1635
  case 0:
1636
1636
  _a = [__assign({}, output)];
1637
1637
  _c = {};
1638
- return [4, parseBody(output.body, context)];
1638
+ return [4, parseErrorBody(output.body, context)];
1639
1639
  case 1:
1640
1640
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1641
1641
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1706,7 +1706,7 @@ var deserializeAws_restJson1ListProposalsCommandError = function (output, contex
1706
1706
  case 0:
1707
1707
  _a = [__assign({}, output)];
1708
1708
  _c = {};
1709
- return [4, parseBody(output.body, context)];
1709
+ return [4, parseErrorBody(output.body, context)];
1710
1710
  case 1:
1711
1711
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1712
1712
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1781,7 +1781,7 @@ var deserializeAws_restJson1ListProposalVotesCommandError = function (output, co
1781
1781
  case 0:
1782
1782
  _a = [__assign({}, output)];
1783
1783
  _c = {};
1784
- return [4, parseBody(output.body, context)];
1784
+ return [4, parseErrorBody(output.body, context)];
1785
1785
  case 1:
1786
1786
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1787
1787
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1849,7 +1849,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
1849
1849
  case 0:
1850
1850
  _a = [__assign({}, output)];
1851
1851
  _c = {};
1852
- return [4, parseBody(output.body, context)];
1852
+ return [4, parseErrorBody(output.body, context)];
1853
1853
  case 1:
1854
1854
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1855
1855
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1912,7 +1912,7 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
1912
1912
  case 0:
1913
1913
  _a = [__assign({}, output)];
1914
1914
  _c = {};
1915
- return [4, parseBody(output.body, context)];
1915
+ return [4, parseErrorBody(output.body, context)];
1916
1916
  case 1:
1917
1917
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1918
1918
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1983,7 +1983,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
1983
1983
  case 0:
1984
1984
  _a = [__assign({}, output)];
1985
1985
  _c = {};
1986
- return [4, parseBody(output.body, context)];
1986
+ return [4, parseErrorBody(output.body, context)];
1987
1987
  case 1:
1988
1988
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1989
1989
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2050,7 +2050,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2050
2050
  case 0:
2051
2051
  _a = [__assign({}, output)];
2052
2052
  _c = {};
2053
- return [4, parseBody(output.body, context)];
2053
+ return [4, parseErrorBody(output.body, context)];
2054
2054
  case 1:
2055
2055
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2056
2056
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2113,7 +2113,7 @@ var deserializeAws_restJson1UpdateMemberCommandError = function (output, context
2113
2113
  case 0:
2114
2114
  _a = [__assign({}, output)];
2115
2115
  _c = {};
2116
- return [4, parseBody(output.body, context)];
2116
+ return [4, parseErrorBody(output.body, context)];
2117
2117
  case 1:
2118
2118
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2119
2119
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2180,7 +2180,7 @@ var deserializeAws_restJson1UpdateNodeCommandError = function (output, context)
2180
2180
  case 0:
2181
2181
  _a = [__assign({}, output)];
2182
2182
  _c = {};
2183
- return [4, parseBody(output.body, context)];
2183
+ return [4, parseErrorBody(output.body, context)];
2184
2184
  case 1:
2185
2185
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2186
2186
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2247,7 +2247,7 @@ var deserializeAws_restJson1VoteOnProposalCommandError = function (output, conte
2247
2247
  case 0:
2248
2248
  _a = [__assign({}, output)];
2249
2249
  _c = {};
2250
- return [4, parseBody(output.body, context)];
2250
+ return [4, parseErrorBody(output.body, context)];
2251
2251
  case 1:
2252
2252
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2253
2253
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2889,6 +2889,19 @@ var parseBody = function (streamBody, context) {
2889
2889
  return {};
2890
2890
  });
2891
2891
  };
2892
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
2893
+ var value;
2894
+ var _a;
2895
+ return __generator(this, function (_b) {
2896
+ switch (_b.label) {
2897
+ case 0: return [4, parseBody(errorBody, context)];
2898
+ case 1:
2899
+ value = _b.sent();
2900
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
2901
+ return [2, value];
2902
+ }
2903
+ });
2904
+ }); };
2892
2905
  var loadRestJsonErrorCode = function (output, data) {
2893
2906
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2894
2907
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain 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",