@aws-sdk/client-eks 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-eks
@@ -855,7 +855,7 @@ exports.deserializeAws_restJson1AssociateEncryptionConfigCommand = deserializeAw
855
855
  const deserializeAws_restJson1AssociateEncryptionConfigCommandError = async (output, context) => {
856
856
  const parsedOutput = {
857
857
  ...output,
858
- body: await parseBody(output.body, context),
858
+ body: await parseErrorBody(output.body, context),
859
859
  };
860
860
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
861
861
  switch (errorCode) {
@@ -907,7 +907,7 @@ exports.deserializeAws_restJson1AssociateIdentityProviderConfigCommand = deseria
907
907
  const deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = async (output, context) => {
908
908
  const parsedOutput = {
909
909
  ...output,
910
- body: await parseBody(output.body, context),
910
+ body: await parseErrorBody(output.body, context),
911
911
  };
912
912
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
913
913
  switch (errorCode) {
@@ -956,7 +956,7 @@ exports.deserializeAws_restJson1CreateAddonCommand = deserializeAws_restJson1Cre
956
956
  const deserializeAws_restJson1CreateAddonCommandError = async (output, context) => {
957
957
  const parsedOutput = {
958
958
  ...output,
959
- body: await parseBody(output.body, context),
959
+ body: await parseErrorBody(output.body, context),
960
960
  };
961
961
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
962
962
  switch (errorCode) {
@@ -1005,7 +1005,7 @@ exports.deserializeAws_restJson1CreateClusterCommand = deserializeAws_restJson1C
1005
1005
  const deserializeAws_restJson1CreateClusterCommandError = async (output, context) => {
1006
1006
  const parsedOutput = {
1007
1007
  ...output,
1008
- body: await parseBody(output.body, context),
1008
+ body: await parseErrorBody(output.body, context),
1009
1009
  };
1010
1010
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1011
1011
  switch (errorCode) {
@@ -1057,7 +1057,7 @@ exports.deserializeAws_restJson1CreateFargateProfileCommand = deserializeAws_res
1057
1057
  const deserializeAws_restJson1CreateFargateProfileCommandError = async (output, context) => {
1058
1058
  const parsedOutput = {
1059
1059
  ...output,
1060
- body: await parseBody(output.body, context),
1060
+ body: await parseErrorBody(output.body, context),
1061
1061
  };
1062
1062
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1063
1063
  switch (errorCode) {
@@ -1106,7 +1106,7 @@ exports.deserializeAws_restJson1CreateNodegroupCommand = deserializeAws_restJson
1106
1106
  const deserializeAws_restJson1CreateNodegroupCommandError = async (output, context) => {
1107
1107
  const parsedOutput = {
1108
1108
  ...output,
1109
- body: await parseBody(output.body, context),
1109
+ body: await parseErrorBody(output.body, context),
1110
1110
  };
1111
1111
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1112
1112
  switch (errorCode) {
@@ -1158,7 +1158,7 @@ exports.deserializeAws_restJson1DeleteAddonCommand = deserializeAws_restJson1Del
1158
1158
  const deserializeAws_restJson1DeleteAddonCommandError = async (output, context) => {
1159
1159
  const parsedOutput = {
1160
1160
  ...output,
1161
- body: await parseBody(output.body, context),
1161
+ body: await parseErrorBody(output.body, context),
1162
1162
  };
1163
1163
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1164
1164
  switch (errorCode) {
@@ -1204,7 +1204,7 @@ exports.deserializeAws_restJson1DeleteClusterCommand = deserializeAws_restJson1D
1204
1204
  const deserializeAws_restJson1DeleteClusterCommandError = async (output, context) => {
1205
1205
  const parsedOutput = {
1206
1206
  ...output,
1207
- body: await parseBody(output.body, context),
1207
+ body: await parseErrorBody(output.body, context),
1208
1208
  };
1209
1209
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1210
1210
  switch (errorCode) {
@@ -1250,7 +1250,7 @@ exports.deserializeAws_restJson1DeleteFargateProfileCommand = deserializeAws_res
1250
1250
  const deserializeAws_restJson1DeleteFargateProfileCommandError = async (output, context) => {
1251
1251
  const parsedOutput = {
1252
1252
  ...output,
1253
- body: await parseBody(output.body, context),
1253
+ body: await parseErrorBody(output.body, context),
1254
1254
  };
1255
1255
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1256
1256
  switch (errorCode) {
@@ -1293,7 +1293,7 @@ exports.deserializeAws_restJson1DeleteNodegroupCommand = deserializeAws_restJson
1293
1293
  const deserializeAws_restJson1DeleteNodegroupCommandError = async (output, context) => {
1294
1294
  const parsedOutput = {
1295
1295
  ...output,
1296
- body: await parseBody(output.body, context),
1296
+ body: await parseErrorBody(output.body, context),
1297
1297
  };
1298
1298
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1299
1299
  switch (errorCode) {
@@ -1342,7 +1342,7 @@ exports.deserializeAws_restJson1DeregisterClusterCommand = deserializeAws_restJs
1342
1342
  const deserializeAws_restJson1DeregisterClusterCommandError = async (output, context) => {
1343
1343
  const parsedOutput = {
1344
1344
  ...output,
1345
- body: await parseBody(output.body, context),
1345
+ body: await parseErrorBody(output.body, context),
1346
1346
  };
1347
1347
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1348
1348
  switch (errorCode) {
@@ -1391,7 +1391,7 @@ exports.deserializeAws_restJson1DescribeAddonCommand = deserializeAws_restJson1D
1391
1391
  const deserializeAws_restJson1DescribeAddonCommandError = async (output, context) => {
1392
1392
  const parsedOutput = {
1393
1393
  ...output,
1394
- body: await parseBody(output.body, context),
1394
+ body: await parseErrorBody(output.body, context),
1395
1395
  };
1396
1396
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1397
1397
  switch (errorCode) {
@@ -1440,7 +1440,7 @@ exports.deserializeAws_restJson1DescribeAddonVersionsCommand = deserializeAws_re
1440
1440
  const deserializeAws_restJson1DescribeAddonVersionsCommandError = async (output, context) => {
1441
1441
  const parsedOutput = {
1442
1442
  ...output,
1443
- body: await parseBody(output.body, context),
1443
+ body: await parseErrorBody(output.body, context),
1444
1444
  };
1445
1445
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1446
1446
  switch (errorCode) {
@@ -1480,7 +1480,7 @@ exports.deserializeAws_restJson1DescribeClusterCommand = deserializeAws_restJson
1480
1480
  const deserializeAws_restJson1DescribeClusterCommandError = async (output, context) => {
1481
1481
  const parsedOutput = {
1482
1482
  ...output,
1483
- body: await parseBody(output.body, context),
1483
+ body: await parseErrorBody(output.body, context),
1484
1484
  };
1485
1485
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1486
1486
  switch (errorCode) {
@@ -1523,7 +1523,7 @@ exports.deserializeAws_restJson1DescribeFargateProfileCommand = deserializeAws_r
1523
1523
  const deserializeAws_restJson1DescribeFargateProfileCommandError = async (output, context) => {
1524
1524
  const parsedOutput = {
1525
1525
  ...output,
1526
- body: await parseBody(output.body, context),
1526
+ body: await parseErrorBody(output.body, context),
1527
1527
  };
1528
1528
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1529
1529
  switch (errorCode) {
@@ -1566,7 +1566,7 @@ exports.deserializeAws_restJson1DescribeIdentityProviderConfigCommand = deserial
1566
1566
  const deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = async (output, context) => {
1567
1567
  const parsedOutput = {
1568
1568
  ...output,
1569
- body: await parseBody(output.body, context),
1569
+ body: await parseErrorBody(output.body, context),
1570
1570
  };
1571
1571
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1572
1572
  switch (errorCode) {
@@ -1612,7 +1612,7 @@ exports.deserializeAws_restJson1DescribeNodegroupCommand = deserializeAws_restJs
1612
1612
  const deserializeAws_restJson1DescribeNodegroupCommandError = async (output, context) => {
1613
1613
  const parsedOutput = {
1614
1614
  ...output,
1615
- body: await parseBody(output.body, context),
1615
+ body: await parseErrorBody(output.body, context),
1616
1616
  };
1617
1617
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1618
1618
  switch (errorCode) {
@@ -1658,7 +1658,7 @@ exports.deserializeAws_restJson1DescribeUpdateCommand = deserializeAws_restJson1
1658
1658
  const deserializeAws_restJson1DescribeUpdateCommandError = async (output, context) => {
1659
1659
  const parsedOutput = {
1660
1660
  ...output,
1661
- body: await parseBody(output.body, context),
1661
+ body: await parseErrorBody(output.body, context),
1662
1662
  };
1663
1663
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
1664
  switch (errorCode) {
@@ -1701,7 +1701,7 @@ exports.deserializeAws_restJson1DisassociateIdentityProviderConfigCommand = dese
1701
1701
  const deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = async (output, context) => {
1702
1702
  const parsedOutput = {
1703
1703
  ...output,
1704
- body: await parseBody(output.body, context),
1704
+ body: await parseErrorBody(output.body, context),
1705
1705
  };
1706
1706
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1707
1707
  switch (errorCode) {
@@ -1753,7 +1753,7 @@ exports.deserializeAws_restJson1ListAddonsCommand = deserializeAws_restJson1List
1753
1753
  const deserializeAws_restJson1ListAddonsCommandError = async (output, context) => {
1754
1754
  const parsedOutput = {
1755
1755
  ...output,
1756
- body: await parseBody(output.body, context),
1756
+ body: await parseErrorBody(output.body, context),
1757
1757
  };
1758
1758
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1759
1759
  switch (errorCode) {
@@ -1802,7 +1802,7 @@ exports.deserializeAws_restJson1ListClustersCommand = deserializeAws_restJson1Li
1802
1802
  const deserializeAws_restJson1ListClustersCommandError = async (output, context) => {
1803
1803
  const parsedOutput = {
1804
1804
  ...output,
1805
- body: await parseBody(output.body, context),
1805
+ body: await parseErrorBody(output.body, context),
1806
1806
  };
1807
1807
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1808
1808
  switch (errorCode) {
@@ -1848,7 +1848,7 @@ exports.deserializeAws_restJson1ListFargateProfilesCommand = deserializeAws_rest
1848
1848
  const deserializeAws_restJson1ListFargateProfilesCommandError = async (output, context) => {
1849
1849
  const parsedOutput = {
1850
1850
  ...output,
1851
- body: await parseBody(output.body, context),
1851
+ body: await parseErrorBody(output.body, context),
1852
1852
  };
1853
1853
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1854
1854
  switch (errorCode) {
@@ -1894,7 +1894,7 @@ exports.deserializeAws_restJson1ListIdentityProviderConfigsCommand = deserialize
1894
1894
  const deserializeAws_restJson1ListIdentityProviderConfigsCommandError = async (output, context) => {
1895
1895
  const parsedOutput = {
1896
1896
  ...output,
1897
- body: await parseBody(output.body, context),
1897
+ body: await parseErrorBody(output.body, context),
1898
1898
  };
1899
1899
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1900
1900
  switch (errorCode) {
@@ -1943,7 +1943,7 @@ exports.deserializeAws_restJson1ListNodegroupsCommand = deserializeAws_restJson1
1943
1943
  const deserializeAws_restJson1ListNodegroupsCommandError = async (output, context) => {
1944
1944
  const parsedOutput = {
1945
1945
  ...output,
1946
- body: await parseBody(output.body, context),
1946
+ body: await parseErrorBody(output.body, context),
1947
1947
  };
1948
1948
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1949
1949
  switch (errorCode) {
@@ -1989,7 +1989,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
1989
1989
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1990
1990
  const parsedOutput = {
1991
1991
  ...output,
1992
- body: await parseBody(output.body, context),
1992
+ body: await parseErrorBody(output.body, context),
1993
1993
  };
1994
1994
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1995
1995
  switch (errorCode) {
@@ -2029,7 +2029,7 @@ exports.deserializeAws_restJson1ListUpdatesCommand = deserializeAws_restJson1Lis
2029
2029
  const deserializeAws_restJson1ListUpdatesCommandError = async (output, context) => {
2030
2030
  const parsedOutput = {
2031
2031
  ...output,
2032
- body: await parseBody(output.body, context),
2032
+ body: await parseErrorBody(output.body, context),
2033
2033
  };
2034
2034
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2035
2035
  switch (errorCode) {
@@ -2072,7 +2072,7 @@ exports.deserializeAws_restJson1RegisterClusterCommand = deserializeAws_restJson
2072
2072
  const deserializeAws_restJson1RegisterClusterCommandError = async (output, context) => {
2073
2073
  const parsedOutput = {
2074
2074
  ...output,
2075
- body: await parseBody(output.body, context),
2075
+ body: await parseErrorBody(output.body, context),
2076
2076
  };
2077
2077
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2078
2078
  switch (errorCode) {
@@ -2124,7 +2124,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
2124
2124
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
2125
2125
  const parsedOutput = {
2126
2126
  ...output,
2127
- body: await parseBody(output.body, context),
2127
+ body: await parseErrorBody(output.body, context),
2128
2128
  };
2129
2129
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2130
2130
  switch (errorCode) {
@@ -2158,7 +2158,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
2158
2158
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
2159
2159
  const parsedOutput = {
2160
2160
  ...output,
2161
- body: await parseBody(output.body, context),
2161
+ body: await parseErrorBody(output.body, context),
2162
2162
  };
2163
2163
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2164
2164
  switch (errorCode) {
@@ -2195,7 +2195,7 @@ exports.deserializeAws_restJson1UpdateAddonCommand = deserializeAws_restJson1Upd
2195
2195
  const deserializeAws_restJson1UpdateAddonCommandError = async (output, context) => {
2196
2196
  const parsedOutput = {
2197
2197
  ...output,
2198
- body: await parseBody(output.body, context),
2198
+ body: await parseErrorBody(output.body, context),
2199
2199
  };
2200
2200
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2201
2201
  switch (errorCode) {
@@ -2244,7 +2244,7 @@ exports.deserializeAws_restJson1UpdateClusterConfigCommand = deserializeAws_rest
2244
2244
  const deserializeAws_restJson1UpdateClusterConfigCommandError = async (output, context) => {
2245
2245
  const parsedOutput = {
2246
2246
  ...output,
2247
- body: await parseBody(output.body, context),
2247
+ body: await parseErrorBody(output.body, context),
2248
2248
  };
2249
2249
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2250
2250
  switch (errorCode) {
@@ -2293,7 +2293,7 @@ exports.deserializeAws_restJson1UpdateClusterVersionCommand = deserializeAws_res
2293
2293
  const deserializeAws_restJson1UpdateClusterVersionCommandError = async (output, context) => {
2294
2294
  const parsedOutput = {
2295
2295
  ...output,
2296
- body: await parseBody(output.body, context),
2296
+ body: await parseErrorBody(output.body, context),
2297
2297
  };
2298
2298
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2299
2299
  switch (errorCode) {
@@ -2342,7 +2342,7 @@ exports.deserializeAws_restJson1UpdateNodegroupConfigCommand = deserializeAws_re
2342
2342
  const deserializeAws_restJson1UpdateNodegroupConfigCommandError = async (output, context) => {
2343
2343
  const parsedOutput = {
2344
2344
  ...output,
2345
- body: await parseBody(output.body, context),
2345
+ body: await parseErrorBody(output.body, context),
2346
2346
  };
2347
2347
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2348
2348
  switch (errorCode) {
@@ -2391,7 +2391,7 @@ exports.deserializeAws_restJson1UpdateNodegroupVersionCommand = deserializeAws_r
2391
2391
  const deserializeAws_restJson1UpdateNodegroupVersionCommandError = async (output, context) => {
2392
2392
  const parsedOutput = {
2393
2393
  ...output,
2394
- body: await parseBody(output.body, context),
2394
+ body: await parseErrorBody(output.body, context),
2395
2395
  };
2396
2396
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2397
2397
  switch (errorCode) {
@@ -3472,6 +3472,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3472
3472
  }
3473
3473
  return {};
3474
3474
  });
3475
+ const parseErrorBody = async (errorBody, context) => {
3476
+ var _a;
3477
+ const value = await parseBody(errorBody, context);
3478
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
3479
+ return value;
3480
+ };
3475
3481
  const loadRestJsonErrorCode = (output, data) => {
3476
3482
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3477
3483
  const sanitizeErrorCode = (rawValue) => {
@@ -950,7 +950,7 @@ var deserializeAws_restJson1AssociateEncryptionConfigCommandError = function (ou
950
950
  case 0:
951
951
  _a = [__assign({}, output)];
952
952
  _c = {};
953
- return [4, parseBody(output.body, context)];
953
+ return [4, parseErrorBody(output.body, context)];
954
954
  case 1:
955
955
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
956
956
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1029,7 +1029,7 @@ var deserializeAws_restJson1AssociateIdentityProviderConfigCommandError = functi
1029
1029
  case 0:
1030
1030
  _a = [__assign({}, output)];
1031
1031
  _c = {};
1032
- return [4, parseBody(output.body, context)];
1032
+ return [4, parseErrorBody(output.body, context)];
1033
1033
  case 1:
1034
1034
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1035
1035
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1105,7 +1105,7 @@ var deserializeAws_restJson1CreateAddonCommandError = function (output, context)
1105
1105
  case 0:
1106
1106
  _a = [__assign({}, output)];
1107
1107
  _c = {};
1108
- return [4, parseBody(output.body, context)];
1108
+ return [4, parseErrorBody(output.body, context)];
1109
1109
  case 1:
1110
1110
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1111
1111
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1181,7 +1181,7 @@ var deserializeAws_restJson1CreateClusterCommandError = function (output, contex
1181
1181
  case 0:
1182
1182
  _a = [__assign({}, output)];
1183
1183
  _c = {};
1184
- return [4, parseBody(output.body, context)];
1184
+ return [4, parseErrorBody(output.body, context)];
1185
1185
  case 1:
1186
1186
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1187
1187
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1261,7 +1261,7 @@ var deserializeAws_restJson1CreateFargateProfileCommandError = function (output,
1261
1261
  case 0:
1262
1262
  _a = [__assign({}, output)];
1263
1263
  _c = {};
1264
- return [4, parseBody(output.body, context)];
1264
+ return [4, parseErrorBody(output.body, context)];
1265
1265
  case 1:
1266
1266
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1267
1267
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1337,7 +1337,7 @@ var deserializeAws_restJson1CreateNodegroupCommandError = function (output, cont
1337
1337
  case 0:
1338
1338
  _a = [__assign({}, output)];
1339
1339
  _c = {};
1340
- return [4, parseBody(output.body, context)];
1340
+ return [4, parseErrorBody(output.body, context)];
1341
1341
  case 1:
1342
1342
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1343
1343
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1417,7 +1417,7 @@ var deserializeAws_restJson1DeleteAddonCommandError = function (output, context)
1417
1417
  case 0:
1418
1418
  _a = [__assign({}, output)];
1419
1419
  _c = {};
1420
- return [4, parseBody(output.body, context)];
1420
+ return [4, parseErrorBody(output.body, context)];
1421
1421
  case 1:
1422
1422
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1423
1423
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1489,7 +1489,7 @@ var deserializeAws_restJson1DeleteClusterCommandError = function (output, contex
1489
1489
  case 0:
1490
1490
  _a = [__assign({}, output)];
1491
1491
  _c = {};
1492
- return [4, parseBody(output.body, context)];
1492
+ return [4, parseErrorBody(output.body, context)];
1493
1493
  case 1:
1494
1494
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1495
1495
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1561,7 +1561,7 @@ var deserializeAws_restJson1DeleteFargateProfileCommandError = function (output,
1561
1561
  case 0:
1562
1562
  _a = [__assign({}, output)];
1563
1563
  _c = {};
1564
- return [4, parseBody(output.body, context)];
1564
+ return [4, parseErrorBody(output.body, context)];
1565
1565
  case 1:
1566
1566
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1567
1567
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1629,7 +1629,7 @@ var deserializeAws_restJson1DeleteNodegroupCommandError = function (output, cont
1629
1629
  case 0:
1630
1630
  _a = [__assign({}, output)];
1631
1631
  _c = {};
1632
- return [4, parseBody(output.body, context)];
1632
+ return [4, parseErrorBody(output.body, context)];
1633
1633
  case 1:
1634
1634
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1635
1635
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1705,7 +1705,7 @@ var deserializeAws_restJson1DeregisterClusterCommandError = function (output, co
1705
1705
  case 0:
1706
1706
  _a = [__assign({}, output)];
1707
1707
  _c = {};
1708
- return [4, parseBody(output.body, context)];
1708
+ return [4, parseErrorBody(output.body, context)];
1709
1709
  case 1:
1710
1710
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1711
1711
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1781,7 +1781,7 @@ var deserializeAws_restJson1DescribeAddonCommandError = function (output, contex
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);
@@ -1856,7 +1856,7 @@ var deserializeAws_restJson1DescribeAddonVersionsCommandError = function (output
1856
1856
  case 0:
1857
1857
  _a = [__assign({}, output)];
1858
1858
  _c = {};
1859
- return [4, parseBody(output.body, context)];
1859
+ return [4, parseErrorBody(output.body, context)];
1860
1860
  case 1:
1861
1861
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1862
1862
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1920,7 +1920,7 @@ var deserializeAws_restJson1DescribeClusterCommandError = function (output, cont
1920
1920
  case 0:
1921
1921
  _a = [__assign({}, output)];
1922
1922
  _c = {};
1923
- return [4, parseBody(output.body, context)];
1923
+ return [4, parseErrorBody(output.body, context)];
1924
1924
  case 1:
1925
1925
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1926
1926
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -1988,7 +1988,7 @@ var deserializeAws_restJson1DescribeFargateProfileCommandError = function (outpu
1988
1988
  case 0:
1989
1989
  _a = [__assign({}, output)];
1990
1990
  _c = {};
1991
- return [4, parseBody(output.body, context)];
1991
+ return [4, parseErrorBody(output.body, context)];
1992
1992
  case 1:
1993
1993
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1994
1994
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2056,7 +2056,7 @@ var deserializeAws_restJson1DescribeIdentityProviderConfigCommandError = functio
2056
2056
  case 0:
2057
2057
  _a = [__assign({}, output)];
2058
2058
  _c = {};
2059
- return [4, parseBody(output.body, context)];
2059
+ return [4, parseErrorBody(output.body, context)];
2060
2060
  case 1:
2061
2061
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2062
2062
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2128,7 +2128,7 @@ var deserializeAws_restJson1DescribeNodegroupCommandError = function (output, co
2128
2128
  case 0:
2129
2129
  _a = [__assign({}, output)];
2130
2130
  _c = {};
2131
- return [4, parseBody(output.body, context)];
2131
+ return [4, parseErrorBody(output.body, context)];
2132
2132
  case 1:
2133
2133
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2134
2134
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2200,7 +2200,7 @@ var deserializeAws_restJson1DescribeUpdateCommandError = function (output, conte
2200
2200
  case 0:
2201
2201
  _a = [__assign({}, output)];
2202
2202
  _c = {};
2203
- return [4, parseBody(output.body, context)];
2203
+ return [4, parseErrorBody(output.body, context)];
2204
2204
  case 1:
2205
2205
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2206
2206
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2268,7 +2268,7 @@ var deserializeAws_restJson1DisassociateIdentityProviderConfigCommandError = fun
2268
2268
  case 0:
2269
2269
  _a = [__assign({}, output)];
2270
2270
  _c = {};
2271
- return [4, parseBody(output.body, context)];
2271
+ return [4, parseErrorBody(output.body, context)];
2272
2272
  case 1:
2273
2273
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2274
2274
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2347,7 +2347,7 @@ var deserializeAws_restJson1ListAddonsCommandError = function (output, context)
2347
2347
  case 0:
2348
2348
  _a = [__assign({}, output)];
2349
2349
  _c = {};
2350
- return [4, parseBody(output.body, context)];
2350
+ return [4, parseErrorBody(output.body, context)];
2351
2351
  case 1:
2352
2352
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2353
2353
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2422,7 +2422,7 @@ var deserializeAws_restJson1ListClustersCommandError = function (output, context
2422
2422
  case 0:
2423
2423
  _a = [__assign({}, output)];
2424
2424
  _c = {};
2425
- return [4, parseBody(output.body, context)];
2425
+ return [4, parseErrorBody(output.body, context)];
2426
2426
  case 1:
2427
2427
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2428
2428
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2493,7 +2493,7 @@ var deserializeAws_restJson1ListFargateProfilesCommandError = function (output,
2493
2493
  case 0:
2494
2494
  _a = [__assign({}, output)];
2495
2495
  _c = {};
2496
- return [4, parseBody(output.body, context)];
2496
+ return [4, parseErrorBody(output.body, context)];
2497
2497
  case 1:
2498
2498
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2499
2499
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2564,7 +2564,7 @@ var deserializeAws_restJson1ListIdentityProviderConfigsCommandError = function (
2564
2564
  case 0:
2565
2565
  _a = [__assign({}, output)];
2566
2566
  _c = {};
2567
- return [4, parseBody(output.body, context)];
2567
+ return [4, parseErrorBody(output.body, context)];
2568
2568
  case 1:
2569
2569
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2570
2570
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2639,7 +2639,7 @@ var deserializeAws_restJson1ListNodegroupsCommandError = function (output, conte
2639
2639
  case 0:
2640
2640
  _a = [__assign({}, output)];
2641
2641
  _c = {};
2642
- return [4, parseBody(output.body, context)];
2642
+ return [4, parseErrorBody(output.body, context)];
2643
2643
  case 1:
2644
2644
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2645
2645
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2711,7 +2711,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2711
2711
  case 0:
2712
2712
  _a = [__assign({}, output)];
2713
2713
  _c = {};
2714
- return [4, parseBody(output.body, context)];
2714
+ return [4, parseErrorBody(output.body, context)];
2715
2715
  case 1:
2716
2716
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2717
2717
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2774,7 +2774,7 @@ var deserializeAws_restJson1ListUpdatesCommandError = function (output, context)
2774
2774
  case 0:
2775
2775
  _a = [__assign({}, output)];
2776
2776
  _c = {};
2777
- return [4, parseBody(output.body, context)];
2777
+ return [4, parseErrorBody(output.body, context)];
2778
2778
  case 1:
2779
2779
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2780
2780
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2842,7 +2842,7 @@ var deserializeAws_restJson1RegisterClusterCommandError = function (output, cont
2842
2842
  case 0:
2843
2843
  _a = [__assign({}, output)];
2844
2844
  _c = {};
2845
- return [4, parseBody(output.body, context)];
2845
+ return [4, parseErrorBody(output.body, context)];
2846
2846
  case 1:
2847
2847
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2848
2848
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2921,7 +2921,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2921
2921
  case 0:
2922
2922
  _a = [__assign({}, output)];
2923
2923
  _c = {};
2924
- return [4, parseBody(output.body, context)];
2924
+ return [4, parseErrorBody(output.body, context)];
2925
2925
  case 1:
2926
2926
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2927
2927
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -2976,7 +2976,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2976
2976
  case 0:
2977
2977
  _a = [__assign({}, output)];
2978
2978
  _c = {};
2979
- return [4, parseBody(output.body, context)];
2979
+ return [4, parseErrorBody(output.body, context)];
2980
2980
  case 1:
2981
2981
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2982
2982
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3036,7 +3036,7 @@ var deserializeAws_restJson1UpdateAddonCommandError = function (output, context)
3036
3036
  case 0:
3037
3037
  _a = [__assign({}, output)];
3038
3038
  _c = {};
3039
- return [4, parseBody(output.body, context)];
3039
+ return [4, parseErrorBody(output.body, context)];
3040
3040
  case 1:
3041
3041
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3042
3042
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3112,7 +3112,7 @@ var deserializeAws_restJson1UpdateClusterConfigCommandError = function (output,
3112
3112
  case 0:
3113
3113
  _a = [__assign({}, output)];
3114
3114
  _c = {};
3115
- return [4, parseBody(output.body, context)];
3115
+ return [4, parseErrorBody(output.body, context)];
3116
3116
  case 1:
3117
3117
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3118
3118
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3188,7 +3188,7 @@ var deserializeAws_restJson1UpdateClusterVersionCommandError = function (output,
3188
3188
  case 0:
3189
3189
  _a = [__assign({}, output)];
3190
3190
  _c = {};
3191
- return [4, parseBody(output.body, context)];
3191
+ return [4, parseErrorBody(output.body, context)];
3192
3192
  case 1:
3193
3193
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3194
3194
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3264,7 +3264,7 @@ var deserializeAws_restJson1UpdateNodegroupConfigCommandError = function (output
3264
3264
  case 0:
3265
3265
  _a = [__assign({}, output)];
3266
3266
  _c = {};
3267
- return [4, parseBody(output.body, context)];
3267
+ return [4, parseErrorBody(output.body, context)];
3268
3268
  case 1:
3269
3269
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3270
3270
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -3340,7 +3340,7 @@ var deserializeAws_restJson1UpdateNodegroupVersionCommandError = function (outpu
3340
3340
  case 0:
3341
3341
  _a = [__assign({}, output)];
3342
3342
  _c = {};
3343
- return [4, parseBody(output.body, context)];
3343
+ return [4, parseErrorBody(output.body, context)];
3344
3344
  case 1:
3345
3345
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3346
3346
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
@@ -4369,6 +4369,19 @@ var parseBody = function (streamBody, context) {
4369
4369
  return {};
4370
4370
  });
4371
4371
  };
4372
+ var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
4373
+ var value;
4374
+ var _a;
4375
+ return __generator(this, function (_b) {
4376
+ switch (_b.label) {
4377
+ case 0: return [4, parseBody(errorBody, context)];
4378
+ case 1:
4379
+ value = _b.sent();
4380
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
4381
+ return [2, value];
4382
+ }
4383
+ });
4384
+ }); };
4372
4385
  var loadRestJsonErrorCode = function (output, data) {
4373
4386
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4374
4387
  var sanitizeErrorCode = function (rawValue) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-eks",
3
3
  "description": "AWS SDK for JavaScript Eks 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",