@aws-sdk/client-eks 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +40 -34
- package/dist-es/EKS.js +138 -145
- package/dist-es/EKSClient.js +22 -28
- package/dist-es/commands/AssociateEncryptionConfigCommand.js +21 -28
- package/dist-es/commands/AssociateIdentityProviderConfigCommand.js +21 -28
- package/dist-es/commands/CreateAddonCommand.js +21 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateFargateProfileCommand.js +21 -28
- package/dist-es/commands/CreateNodegroupCommand.js +21 -28
- package/dist-es/commands/DeleteAddonCommand.js +21 -28
- package/dist-es/commands/DeleteClusterCommand.js +21 -28
- package/dist-es/commands/DeleteFargateProfileCommand.js +21 -28
- package/dist-es/commands/DeleteNodegroupCommand.js +21 -28
- package/dist-es/commands/DeregisterClusterCommand.js +21 -28
- package/dist-es/commands/DescribeAddonCommand.js +21 -28
- package/dist-es/commands/DescribeAddonVersionsCommand.js +21 -28
- package/dist-es/commands/DescribeClusterCommand.js +21 -28
- package/dist-es/commands/DescribeFargateProfileCommand.js +21 -28
- package/dist-es/commands/DescribeIdentityProviderConfigCommand.js +21 -28
- package/dist-es/commands/DescribeNodegroupCommand.js +21 -28
- package/dist-es/commands/DescribeUpdateCommand.js +21 -28
- package/dist-es/commands/DisassociateIdentityProviderConfigCommand.js +21 -28
- package/dist-es/commands/ListAddonsCommand.js +21 -28
- package/dist-es/commands/ListClustersCommand.js +21 -28
- package/dist-es/commands/ListFargateProfilesCommand.js +21 -28
- package/dist-es/commands/ListIdentityProviderConfigsCommand.js +21 -28
- package/dist-es/commands/ListNodegroupsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListUpdatesCommand.js +21 -28
- package/dist-es/commands/RegisterClusterCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAddonCommand.js +21 -28
- package/dist-es/commands/UpdateClusterConfigCommand.js +21 -28
- package/dist-es/commands/UpdateClusterVersionCommand.js +21 -28
- package/dist-es/commands/UpdateNodegroupConfigCommand.js +21 -28
- package/dist-es/commands/UpdateNodegroupVersionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EKSServiceException.js +5 -10
- package/dist-es/models/models_0.js +507 -282
- package/dist-es/pagination/DescribeAddonVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListAddonsPaginator.js +25 -68
- package/dist-es/pagination/ListClustersPaginator.js +25 -68
- package/dist-es/pagination/ListFargateProfilesPaginator.js +25 -68
- package/dist-es/pagination/ListIdentityProviderConfigsPaginator.js +25 -68
- package/dist-es/pagination/ListNodegroupsPaginator.js +25 -68
- package/dist-es/pagination/ListUpdatesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2836 -3816
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForAddonActive.js +45 -65
- package/dist-es/waiters/waitForAddonDeleted.js +30 -50
- package/dist-es/waiters/waitForClusterActive.js +45 -65
- package/dist-es/waiters/waitForClusterDeleted.js +48 -68
- package/dist-es/waiters/waitForFargateProfileActive.js +36 -56
- package/dist-es/waiters/waitForFargateProfileDeleted.js +30 -50
- package/dist-es/waiters/waitForNodegroupActive.js +36 -56
- package/dist-es/waiters/waitForNodegroupDeleted.js +30 -50
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-eks
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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) => {
|