@aws-sdk/client-devops-guru 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-devops-guru
@@ -741,7 +741,7 @@ exports.deserializeAws_restJson1AddNotificationChannelCommand = deserializeAws_r
741
741
  const deserializeAws_restJson1AddNotificationChannelCommandError = async (output, context) => {
742
742
  const parsedOutput = {
743
743
  ...output,
744
- body: await parseBody(output.body, context),
744
+ body: await parseErrorBody(output.body, context),
745
745
  };
746
746
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
747
747
  switch (errorCode) {
@@ -790,7 +790,7 @@ exports.deserializeAws_restJson1DeleteInsightCommand = deserializeAws_restJson1D
790
790
  const deserializeAws_restJson1DeleteInsightCommandError = async (output, context) => {
791
791
  const parsedOutput = {
792
792
  ...output,
793
- body: await parseBody(output.body, context),
793
+ body: await parseErrorBody(output.body, context),
794
794
  };
795
795
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
796
796
  switch (errorCode) {
@@ -848,7 +848,7 @@ exports.deserializeAws_restJson1DescribeAccountHealthCommand = deserializeAws_re
848
848
  const deserializeAws_restJson1DescribeAccountHealthCommandError = async (output, context) => {
849
849
  const parsedOutput = {
850
850
  ...output,
851
- body: await parseBody(output.body, context),
851
+ body: await parseErrorBody(output.body, context),
852
852
  };
853
853
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
854
854
  switch (errorCode) {
@@ -897,7 +897,7 @@ exports.deserializeAws_restJson1DescribeAccountOverviewCommand = deserializeAws_
897
897
  const deserializeAws_restJson1DescribeAccountOverviewCommandError = async (output, context) => {
898
898
  const parsedOutput = {
899
899
  ...output,
900
- body: await parseBody(output.body, context),
900
+ body: await parseErrorBody(output.body, context),
901
901
  };
902
902
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
903
903
  switch (errorCode) {
@@ -943,7 +943,7 @@ exports.deserializeAws_restJson1DescribeAnomalyCommand = deserializeAws_restJson
943
943
  const deserializeAws_restJson1DescribeAnomalyCommandError = async (output, context) => {
944
944
  const parsedOutput = {
945
945
  ...output,
946
- body: await parseBody(output.body, context),
946
+ body: await parseErrorBody(output.body, context),
947
947
  };
948
948
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
949
949
  switch (errorCode) {
@@ -989,7 +989,7 @@ exports.deserializeAws_restJson1DescribeEventSourcesConfigCommand = deserializeA
989
989
  const deserializeAws_restJson1DescribeEventSourcesConfigCommandError = async (output, context) => {
990
990
  const parsedOutput = {
991
991
  ...output,
992
- body: await parseBody(output.body, context),
992
+ body: await parseErrorBody(output.body, context),
993
993
  };
994
994
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
995
995
  switch (errorCode) {
@@ -1032,7 +1032,7 @@ exports.deserializeAws_restJson1DescribeFeedbackCommand = deserializeAws_restJso
1032
1032
  const deserializeAws_restJson1DescribeFeedbackCommandError = async (output, context) => {
1033
1033
  const parsedOutput = {
1034
1034
  ...output,
1035
- body: await parseBody(output.body, context),
1035
+ body: await parseErrorBody(output.body, context),
1036
1036
  };
1037
1037
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1038
1038
  switch (errorCode) {
@@ -1081,7 +1081,7 @@ exports.deserializeAws_restJson1DescribeInsightCommand = deserializeAws_restJson
1081
1081
  const deserializeAws_restJson1DescribeInsightCommandError = async (output, context) => {
1082
1082
  const parsedOutput = {
1083
1083
  ...output,
1084
- body: await parseBody(output.body, context),
1084
+ body: await parseErrorBody(output.body, context),
1085
1085
  };
1086
1086
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1087
1087
  switch (errorCode) {
@@ -1136,7 +1136,7 @@ exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = deserializeA
1136
1136
  const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (output, context) => {
1137
1137
  const parsedOutput = {
1138
1138
  ...output,
1139
- body: await parseBody(output.body, context),
1139
+ body: await parseErrorBody(output.body, context),
1140
1140
  };
1141
1141
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1142
1142
  switch (errorCode) {
@@ -1182,7 +1182,7 @@ exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = deserializ
1182
1182
  const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (output, context) => {
1183
1183
  const parsedOutput = {
1184
1184
  ...output,
1185
- body: await parseBody(output.body, context),
1185
+ body: await parseErrorBody(output.body, context),
1186
1186
  };
1187
1187
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
1188
  switch (errorCode) {
@@ -1237,7 +1237,7 @@ exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthComm
1237
1237
  const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = async (output, context) => {
1238
1238
  const parsedOutput = {
1239
1239
  ...output,
1240
- body: await parseBody(output.body, context),
1240
+ body: await parseErrorBody(output.body, context),
1241
1241
  };
1242
1242
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
1243
  switch (errorCode) {
@@ -1289,7 +1289,7 @@ exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = deseri
1289
1289
  const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = async (output, context) => {
1290
1290
  const parsedOutput = {
1291
1291
  ...output,
1292
- body: await parseBody(output.body, context),
1292
+ body: await parseErrorBody(output.body, context),
1293
1293
  };
1294
1294
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1295
1295
  switch (errorCode) {
@@ -1332,7 +1332,7 @@ exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = deserializeA
1332
1332
  const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (output, context) => {
1333
1333
  const parsedOutput = {
1334
1334
  ...output,
1335
- body: await parseBody(output.body, context),
1335
+ body: await parseErrorBody(output.body, context),
1336
1336
  };
1337
1337
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1338
1338
  switch (errorCode) {
@@ -1393,7 +1393,7 @@ exports.deserializeAws_restJson1GetCostEstimationCommand = deserializeAws_restJs
1393
1393
  const deserializeAws_restJson1GetCostEstimationCommandError = async (output, context) => {
1394
1394
  const parsedOutput = {
1395
1395
  ...output,
1396
- body: await parseBody(output.body, context),
1396
+ body: await parseErrorBody(output.body, context),
1397
1397
  };
1398
1398
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1399
1399
  switch (errorCode) {
@@ -1442,7 +1442,7 @@ exports.deserializeAws_restJson1GetResourceCollectionCommand = deserializeAws_re
1442
1442
  const deserializeAws_restJson1GetResourceCollectionCommandError = async (output, context) => {
1443
1443
  const parsedOutput = {
1444
1444
  ...output,
1445
- body: await parseBody(output.body, context),
1445
+ body: await parseErrorBody(output.body, context),
1446
1446
  };
1447
1447
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1448
1448
  switch (errorCode) {
@@ -1494,7 +1494,7 @@ exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = deserializeAws_
1494
1494
  const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (output, context) => {
1495
1495
  const parsedOutput = {
1496
1496
  ...output,
1497
- body: await parseBody(output.body, context),
1497
+ body: await parseErrorBody(output.body, context),
1498
1498
  };
1499
1499
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1500
1500
  switch (errorCode) {
@@ -1546,7 +1546,7 @@ exports.deserializeAws_restJson1ListAnomalousLogGroupsCommand = deserializeAws_r
1546
1546
  const deserializeAws_restJson1ListAnomalousLogGroupsCommandError = 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) {
@@ -1595,7 +1595,7 @@ exports.deserializeAws_restJson1ListEventsCommand = deserializeAws_restJson1List
1595
1595
  const deserializeAws_restJson1ListEventsCommandError = async (output, context) => {
1596
1596
  const parsedOutput = {
1597
1597
  ...output,
1598
- body: await parseBody(output.body, context),
1598
+ body: await parseErrorBody(output.body, context),
1599
1599
  };
1600
1600
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1601
1601
  switch (errorCode) {
@@ -1647,7 +1647,7 @@ exports.deserializeAws_restJson1ListInsightsCommand = deserializeAws_restJson1Li
1647
1647
  const deserializeAws_restJson1ListInsightsCommandError = async (output, context) => {
1648
1648
  const parsedOutput = {
1649
1649
  ...output,
1650
- body: await parseBody(output.body, context),
1650
+ body: await parseErrorBody(output.body, context),
1651
1651
  };
1652
1652
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1653
1653
  switch (errorCode) {
@@ -1693,7 +1693,7 @@ exports.deserializeAws_restJson1ListMonitoredResourcesCommand = deserializeAws_r
1693
1693
  const deserializeAws_restJson1ListMonitoredResourcesCommandError = async (output, context) => {
1694
1694
  const parsedOutput = {
1695
1695
  ...output,
1696
- body: await parseBody(output.body, context),
1696
+ body: await parseErrorBody(output.body, context),
1697
1697
  };
1698
1698
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
1699
  switch (errorCode) {
@@ -1739,7 +1739,7 @@ exports.deserializeAws_restJson1ListNotificationChannelsCommand = deserializeAws
1739
1739
  const deserializeAws_restJson1ListNotificationChannelsCommandError = async (output, context) => {
1740
1740
  const parsedOutput = {
1741
1741
  ...output,
1742
- body: await parseBody(output.body, context),
1742
+ body: await parseErrorBody(output.body, context),
1743
1743
  };
1744
1744
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1745
1745
  switch (errorCode) {
@@ -1788,7 +1788,7 @@ exports.deserializeAws_restJson1ListOrganizationInsightsCommand = deserializeAws
1788
1788
  const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (output, context) => {
1789
1789
  const parsedOutput = {
1790
1790
  ...output,
1791
- body: await parseBody(output.body, context),
1791
+ body: await parseErrorBody(output.body, context),
1792
1792
  };
1793
1793
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1794
1794
  switch (errorCode) {
@@ -1834,7 +1834,7 @@ exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_rest
1834
1834
  const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
1835
1835
  const parsedOutput = {
1836
1836
  ...output,
1837
- body: await parseBody(output.body, context),
1837
+ body: await parseErrorBody(output.body, context),
1838
1838
  };
1839
1839
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1840
1840
  switch (errorCode) {
@@ -1877,7 +1877,7 @@ exports.deserializeAws_restJson1PutFeedbackCommand = deserializeAws_restJson1Put
1877
1877
  const deserializeAws_restJson1PutFeedbackCommandError = async (output, context) => {
1878
1878
  const parsedOutput = {
1879
1879
  ...output,
1880
- body: await parseBody(output.body, context),
1880
+ body: await parseErrorBody(output.body, context),
1881
1881
  };
1882
1882
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1883
1883
  switch (errorCode) {
@@ -1923,7 +1923,7 @@ exports.deserializeAws_restJson1RemoveNotificationChannelCommand = deserializeAw
1923
1923
  const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (output, context) => {
1924
1924
  const parsedOutput = {
1925
1925
  ...output,
1926
- body: await parseBody(output.body, context),
1926
+ body: await parseErrorBody(output.body, context),
1927
1927
  };
1928
1928
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1929
1929
  switch (errorCode) {
@@ -1978,7 +1978,7 @@ exports.deserializeAws_restJson1SearchInsightsCommand = deserializeAws_restJson1
1978
1978
  const deserializeAws_restJson1SearchInsightsCommandError = async (output, context) => {
1979
1979
  const parsedOutput = {
1980
1980
  ...output,
1981
- body: await parseBody(output.body, context),
1981
+ body: await parseErrorBody(output.body, context),
1982
1982
  };
1983
1983
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1984
1984
  switch (errorCode) {
@@ -2027,7 +2027,7 @@ exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = deserializeA
2027
2027
  const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (output, context) => {
2028
2028
  const parsedOutput = {
2029
2029
  ...output,
2030
- body: await parseBody(output.body, context),
2030
+ body: await parseErrorBody(output.body, context),
2031
2031
  };
2032
2032
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2033
2033
  switch (errorCode) {
@@ -2067,7 +2067,7 @@ exports.deserializeAws_restJson1StartCostEstimationCommand = deserializeAws_rest
2067
2067
  const deserializeAws_restJson1StartCostEstimationCommandError = async (output, context) => {
2068
2068
  const parsedOutput = {
2069
2069
  ...output,
2070
- body: await parseBody(output.body, context),
2070
+ body: await parseErrorBody(output.body, context),
2071
2071
  };
2072
2072
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2073
2073
  switch (errorCode) {
@@ -2113,7 +2113,7 @@ exports.deserializeAws_restJson1UpdateEventSourcesConfigCommand = deserializeAws
2113
2113
  const deserializeAws_restJson1UpdateEventSourcesConfigCommandError = async (output, context) => {
2114
2114
  const parsedOutput = {
2115
2115
  ...output,
2116
- body: await parseBody(output.body, context),
2116
+ body: await parseErrorBody(output.body, context),
2117
2117
  };
2118
2118
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2119
2119
  switch (errorCode) {
@@ -2153,7 +2153,7 @@ exports.deserializeAws_restJson1UpdateResourceCollectionCommand = deserializeAws
2153
2153
  const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (output, context) => {
2154
2154
  const parsedOutput = {
2155
2155
  ...output,
2156
- body: await parseBody(output.body, context),
2156
+ body: await parseErrorBody(output.body, context),
2157
2157
  };
2158
2158
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2159
2159
  switch (errorCode) {
@@ -2196,7 +2196,7 @@ exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = deserializeAws
2196
2196
  const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (output, context) => {
2197
2197
  const parsedOutput = {
2198
2198
  ...output,
2199
- body: await parseBody(output.body, context),
2199
+ body: await parseErrorBody(output.body, context),
2200
2200
  };
2201
2201
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2202
2202
  switch (errorCode) {
@@ -3891,6 +3891,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3891
3891
  }
3892
3892
  return {};
3893
3893
  });
3894
+ const parseErrorBody = async (errorBody, context) => {
3895
+ var _a;
3896
+ const value = await parseBody(errorBody, context);
3897
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
3898
+ return value;
3899
+ };
3894
3900
  const loadRestJsonErrorCode = (output, data) => {
3895
3901
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3896
3902
  const sanitizeErrorCode = (rawValue) => {
@@ -826,7 +826,7 @@ var deserializeAws_restJson1AddNotificationChannelCommandError = function (outpu
826
826
  case 0:
827
827
  _a = [__assign({}, output)];
828
828
  _c = {};
829
- return [4, parseBody(output.body, context)];
829
+ return [4, parseErrorBody(output.body, context)];
830
830
  case 1:
831
831
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
832
832
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -901,7 +901,7 @@ var deserializeAws_restJson1DeleteInsightCommandError = function (output, contex
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);
@@ -986,7 +986,7 @@ var deserializeAws_restJson1DescribeAccountHealthCommandError = function (output
986
986
  case 0:
987
987
  _a = [__assign({}, output)];
988
988
  _c = {};
989
- return [4, parseBody(output.body, context)];
989
+ return [4, parseErrorBody(output.body, context)];
990
990
  case 1:
991
991
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
992
992
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1060,7 +1060,7 @@ var deserializeAws_restJson1DescribeAccountOverviewCommandError = function (outp
1060
1060
  case 0:
1061
1061
  _a = [__assign({}, output)];
1062
1062
  _c = {};
1063
- return [4, parseBody(output.body, context)];
1063
+ return [4, parseErrorBody(output.body, context)];
1064
1064
  case 1:
1065
1065
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1066
1066
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1131,7 +1131,7 @@ var deserializeAws_restJson1DescribeAnomalyCommandError = function (output, cont
1131
1131
  case 0:
1132
1132
  _a = [__assign({}, output)];
1133
1133
  _c = {};
1134
- return [4, parseBody(output.body, context)];
1134
+ return [4, parseErrorBody(output.body, context)];
1135
1135
  case 1:
1136
1136
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1137
1137
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1203,7 +1203,7 @@ var deserializeAws_restJson1DescribeEventSourcesConfigCommandError = function (o
1203
1203
  case 0:
1204
1204
  _a = [__assign({}, output)];
1205
1205
  _c = {};
1206
- return [4, parseBody(output.body, context)];
1206
+ return [4, parseErrorBody(output.body, context)];
1207
1207
  case 1:
1208
1208
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1209
1209
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1271,7 +1271,7 @@ var deserializeAws_restJson1DescribeFeedbackCommandError = function (output, con
1271
1271
  case 0:
1272
1272
  _a = [__assign({}, output)];
1273
1273
  _c = {};
1274
- return [4, parseBody(output.body, context)];
1274
+ return [4, parseErrorBody(output.body, context)];
1275
1275
  case 1:
1276
1276
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1277
1277
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1346,7 +1346,7 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
1346
1346
  case 0:
1347
1347
  _a = [__assign({}, output)];
1348
1348
  _c = {};
1349
- return [4, parseBody(output.body, context)];
1349
+ return [4, parseErrorBody(output.body, context)];
1350
1350
  case 1:
1351
1351
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1352
1352
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1427,7 +1427,7 @@ var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (o
1427
1427
  case 0:
1428
1428
  _a = [__assign({}, output)];
1429
1429
  _c = {};
1430
- return [4, parseBody(output.body, context)];
1430
+ return [4, parseErrorBody(output.body, context)];
1431
1431
  case 1:
1432
1432
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1433
1433
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1498,7 +1498,7 @@ var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function
1498
1498
  case 0:
1499
1499
  _a = [__assign({}, output)];
1500
1500
  _c = {};
1501
- return [4, parseBody(output.body, context)];
1501
+ return [4, parseErrorBody(output.body, context)];
1502
1502
  case 1:
1503
1503
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1504
1504
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1578,7 +1578,7 @@ var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandE
1578
1578
  case 0:
1579
1579
  _a = [__assign({}, output)];
1580
1580
  _c = {};
1581
- return [4, parseBody(output.body, context)];
1581
+ return [4, parseErrorBody(output.body, context)];
1582
1582
  case 1:
1583
1583
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1584
1584
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1655,7 +1655,7 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
1655
1655
  case 0:
1656
1656
  _a = [__assign({}, output)];
1657
1657
  _c = {};
1658
- return [4, parseBody(output.body, context)];
1658
+ return [4, parseErrorBody(output.body, context)];
1659
1659
  case 1:
1660
1660
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1661
1661
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1723,7 +1723,7 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
1723
1723
  case 0:
1724
1724
  _a = [__assign({}, output)];
1725
1725
  _c = {};
1726
- return [4, parseBody(output.body, context)];
1726
+ return [4, parseErrorBody(output.body, context)];
1727
1727
  case 1:
1728
1728
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1729
1729
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1810,7 +1810,7 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
1810
1810
  case 0:
1811
1811
  _a = [__assign({}, output)];
1812
1812
  _c = {};
1813
- return [4, parseBody(output.body, context)];
1813
+ return [4, parseErrorBody(output.body, context)];
1814
1814
  case 1:
1815
1815
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1816
1816
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1885,7 +1885,7 @@ var deserializeAws_restJson1GetResourceCollectionCommandError = function (output
1885
1885
  case 0:
1886
1886
  _a = [__assign({}, output)];
1887
1887
  _c = {};
1888
- return [4, parseBody(output.body, context)];
1888
+ return [4, parseErrorBody(output.body, context)];
1889
1889
  case 1:
1890
1890
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1891
1891
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1963,7 +1963,7 @@ var deserializeAws_restJson1ListAnomaliesForInsightCommandError = function (outp
1963
1963
  case 0:
1964
1964
  _a = [__assign({}, output)];
1965
1965
  _c = {};
1966
- return [4, parseBody(output.body, context)];
1966
+ return [4, parseErrorBody(output.body, context)];
1967
1967
  case 1:
1968
1968
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1969
1969
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2041,7 +2041,7 @@ var deserializeAws_restJson1ListAnomalousLogGroupsCommandError = function (outpu
2041
2041
  case 0:
2042
2042
  _a = [__assign({}, output)];
2043
2043
  _c = {};
2044
- return [4, parseBody(output.body, context)];
2044
+ return [4, parseErrorBody(output.body, context)];
2045
2045
  case 1:
2046
2046
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2047
2047
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2116,7 +2116,7 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
2116
2116
  case 0:
2117
2117
  _a = [__assign({}, output)];
2118
2118
  _c = {};
2119
- return [4, parseBody(output.body, context)];
2119
+ return [4, parseErrorBody(output.body, context)];
2120
2120
  case 1:
2121
2121
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2122
2122
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2194,7 +2194,7 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
2194
2194
  case 0:
2195
2195
  _a = [__assign({}, output)];
2196
2196
  _c = {};
2197
- return [4, parseBody(output.body, context)];
2197
+ return [4, parseErrorBody(output.body, context)];
2198
2198
  case 1:
2199
2199
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2200
2200
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2265,7 +2265,7 @@ var deserializeAws_restJson1ListMonitoredResourcesCommandError = function (outpu
2265
2265
  case 0:
2266
2266
  _a = [__assign({}, output)];
2267
2267
  _c = {};
2268
- return [4, parseBody(output.body, context)];
2268
+ return [4, parseErrorBody(output.body, context)];
2269
2269
  case 1:
2270
2270
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2271
2271
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2336,7 +2336,7 @@ var deserializeAws_restJson1ListNotificationChannelsCommandError = function (out
2336
2336
  case 0:
2337
2337
  _a = [__assign({}, output)];
2338
2338
  _c = {};
2339
- return [4, parseBody(output.body, context)];
2339
+ return [4, parseErrorBody(output.body, context)];
2340
2340
  case 1:
2341
2341
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2342
2342
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2410,7 +2410,7 @@ var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (out
2410
2410
  case 0:
2411
2411
  _a = [__assign({}, output)];
2412
2412
  _c = {};
2413
- return [4, parseBody(output.body, context)];
2413
+ return [4, parseErrorBody(output.body, context)];
2414
2414
  case 1:
2415
2415
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2416
2416
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2481,7 +2481,7 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
2481
2481
  case 0:
2482
2482
  _a = [__assign({}, output)];
2483
2483
  _c = {};
2484
- return [4, parseBody(output.body, context)];
2484
+ return [4, parseErrorBody(output.body, context)];
2485
2485
  case 1:
2486
2486
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2487
2487
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2548,7 +2548,7 @@ var deserializeAws_restJson1PutFeedbackCommandError = function (output, context)
2548
2548
  case 0:
2549
2549
  _a = [__assign({}, output)];
2550
2550
  _c = {};
2551
- return [4, parseBody(output.body, context)];
2551
+ return [4, parseErrorBody(output.body, context)];
2552
2552
  case 1:
2553
2553
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2554
2554
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2619,7 +2619,7 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
2619
2619
  case 0:
2620
2620
  _a = [__assign({}, output)];
2621
2621
  _c = {};
2622
- return [4, parseBody(output.body, context)];
2622
+ return [4, parseErrorBody(output.body, context)];
2623
2623
  case 1:
2624
2624
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2625
2625
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2701,7 +2701,7 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
2701
2701
  case 0:
2702
2702
  _a = [__assign({}, output)];
2703
2703
  _c = {};
2704
- return [4, parseBody(output.body, context)];
2704
+ return [4, parseErrorBody(output.body, context)];
2705
2705
  case 1:
2706
2706
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2707
2707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2775,7 +2775,7 @@ var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (o
2775
2775
  case 0:
2776
2776
  _a = [__assign({}, output)];
2777
2777
  _c = {};
2778
- return [4, parseBody(output.body, context)];
2778
+ return [4, parseErrorBody(output.body, context)];
2779
2779
  case 1:
2780
2780
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2781
2781
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2838,7 +2838,7 @@ var deserializeAws_restJson1StartCostEstimationCommandError = function (output,
2838
2838
  case 0:
2839
2839
  _a = [__assign({}, output)];
2840
2840
  _c = {};
2841
- return [4, parseBody(output.body, context)];
2841
+ return [4, parseErrorBody(output.body, context)];
2842
2842
  case 1:
2843
2843
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2844
2844
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2909,7 +2909,7 @@ var deserializeAws_restJson1UpdateEventSourcesConfigCommandError = function (out
2909
2909
  case 0:
2910
2910
  _a = [__assign({}, output)];
2911
2911
  _c = {};
2912
- return [4, parseBody(output.body, context)];
2912
+ return [4, parseErrorBody(output.body, context)];
2913
2913
  case 1:
2914
2914
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2915
2915
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2972,7 +2972,7 @@ var deserializeAws_restJson1UpdateResourceCollectionCommandError = function (out
2972
2972
  case 0:
2973
2973
  _a = [__assign({}, output)];
2974
2974
  _c = {};
2975
- return [4, parseBody(output.body, context)];
2975
+ return [4, parseErrorBody(output.body, context)];
2976
2976
  case 1:
2977
2977
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2978
2978
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3039,7 +3039,7 @@ var deserializeAws_restJson1UpdateServiceIntegrationCommandError = function (out
3039
3039
  case 0:
3040
3040
  _a = [__assign({}, output)];
3041
3041
  _c = {};
3042
- return [4, parseBody(output.body, context)];
3042
+ return [4, parseErrorBody(output.body, context)];
3043
3043
  case 1:
3044
3044
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3045
3045
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4667,6 +4667,19 @@ var parseBody = function (streamBody, context) {
4667
4667
  return {};
4668
4668
  });
4669
4669
  };
4670
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
4671
+ var value;
4672
+ var _a;
4673
+ return __generator(this, function (_b) {
4674
+ switch (_b.label) {
4675
+ case 0: return [4, parseBody(errorBody, context)];
4676
+ case 1:
4677
+ value = _b.sent();
4678
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4679
+ return [2, value];
4680
+ }
4681
+ });
4682
+ }); };
4670
4683
  var loadRestJsonErrorCode = function (output, data) {
4671
4684
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4672
4685
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-devops-guru",
3
3
  "description": "AWS SDK for JavaScript Devops Guru 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",