@aws-sdk/client-kafka 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 +41 -35
- package/dist-es/Kafka.js +142 -149
- package/dist-es/KafkaClient.js +22 -28
- package/dist-es/commands/BatchAssociateScramSecretCommand.js +21 -28
- package/dist-es/commands/BatchDisassociateScramSecretCommand.js +21 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateClusterV2Command.js +21 -28
- package/dist-es/commands/CreateConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteClusterCommand.js +21 -28
- package/dist-es/commands/DeleteConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeClusterCommand.js +21 -28
- package/dist-es/commands/DescribeClusterOperationCommand.js +21 -28
- package/dist-es/commands/DescribeClusterV2Command.js +21 -28
- package/dist-es/commands/DescribeConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeConfigurationRevisionCommand.js +21 -28
- package/dist-es/commands/GetBootstrapBrokersCommand.js +21 -28
- package/dist-es/commands/GetCompatibleKafkaVersionsCommand.js +21 -28
- package/dist-es/commands/ListClusterOperationsCommand.js +21 -28
- package/dist-es/commands/ListClustersCommand.js +21 -28
- package/dist-es/commands/ListClustersV2Command.js +21 -28
- package/dist-es/commands/ListConfigurationRevisionsCommand.js +21 -28
- package/dist-es/commands/ListConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListKafkaVersionsCommand.js +21 -28
- package/dist-es/commands/ListNodesCommand.js +21 -28
- package/dist-es/commands/ListScramSecretsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RebootBrokerCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateBrokerCountCommand.js +21 -28
- package/dist-es/commands/UpdateBrokerStorageCommand.js +21 -28
- package/dist-es/commands/UpdateBrokerTypeCommand.js +21 -28
- package/dist-es/commands/UpdateClusterConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateClusterKafkaVersionCommand.js +21 -28
- package/dist-es/commands/UpdateConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateConnectivityCommand.js +21 -28
- package/dist-es/commands/UpdateMonitoringCommand.js +21 -28
- package/dist-es/commands/UpdateSecurityCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/KafkaServiceException.js +5 -10
- package/dist-es/models/models_0.js +470 -227
- package/dist-es/pagination/ListClusterOperationsPaginator.js +25 -68
- package/dist-es/pagination/ListClustersPaginator.js +25 -68
- package/dist-es/pagination/ListClustersV2Paginator.js +25 -68
- package/dist-es/pagination/ListConfigurationRevisionsPaginator.js +25 -68
- package/dist-es/pagination/ListConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListKafkaVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListNodesPaginator.js +25 -68
- package/dist-es/pagination/ListScramSecretsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2968 -3982
- 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/package.json +33 -33
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-kafka
|
|
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-kafka
|
|
@@ -812,7 +812,7 @@ exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = deserializeAw
|
|
|
812
812
|
const deserializeAws_restJson1BatchAssociateScramSecretCommandError = async (output, context) => {
|
|
813
813
|
const parsedOutput = {
|
|
814
814
|
...output,
|
|
815
|
-
body: await
|
|
815
|
+
body: await parseErrorBody(output.body, context),
|
|
816
816
|
};
|
|
817
817
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
818
|
switch (errorCode) {
|
|
@@ -867,7 +867,7 @@ exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = deserializ
|
|
|
867
867
|
const deserializeAws_restJson1BatchDisassociateScramSecretCommandError = async (output, context) => {
|
|
868
868
|
const parsedOutput = {
|
|
869
869
|
...output,
|
|
870
|
-
body: await
|
|
870
|
+
body: await parseErrorBody(output.body, context),
|
|
871
871
|
};
|
|
872
872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
873
|
switch (errorCode) {
|
|
@@ -925,7 +925,7 @@ exports.deserializeAws_restJson1CreateClusterCommand = deserializeAws_restJson1C
|
|
|
925
925
|
const deserializeAws_restJson1CreateClusterCommandError = async (output, context) => {
|
|
926
926
|
const parsedOutput = {
|
|
927
927
|
...output,
|
|
928
|
-
body: await
|
|
928
|
+
body: await parseErrorBody(output.body, context),
|
|
929
929
|
};
|
|
930
930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
931
|
switch (errorCode) {
|
|
@@ -986,7 +986,7 @@ exports.deserializeAws_restJson1CreateClusterV2Command = deserializeAws_restJson
|
|
|
986
986
|
const deserializeAws_restJson1CreateClusterV2CommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
|
-
body: await
|
|
989
|
+
body: await parseErrorBody(output.body, context),
|
|
990
990
|
};
|
|
991
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
992
|
switch (errorCode) {
|
|
@@ -1050,7 +1050,7 @@ exports.deserializeAws_restJson1CreateConfigurationCommand = deserializeAws_rest
|
|
|
1050
1050
|
const deserializeAws_restJson1CreateConfigurationCommandError = async (output, context) => {
|
|
1051
1051
|
const parsedOutput = {
|
|
1052
1052
|
...output,
|
|
1053
|
-
body: await
|
|
1053
|
+
body: await parseErrorBody(output.body, context),
|
|
1054
1054
|
};
|
|
1055
1055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
1056
|
switch (errorCode) {
|
|
@@ -1105,7 +1105,7 @@ exports.deserializeAws_restJson1DeleteClusterCommand = deserializeAws_restJson1D
|
|
|
1105
1105
|
const deserializeAws_restJson1DeleteClusterCommandError = async (output, context) => {
|
|
1106
1106
|
const parsedOutput = {
|
|
1107
1107
|
...output,
|
|
1108
|
-
body: await
|
|
1108
|
+
body: await parseErrorBody(output.body, context),
|
|
1109
1109
|
};
|
|
1110
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1111
|
switch (errorCode) {
|
|
@@ -1151,7 +1151,7 @@ exports.deserializeAws_restJson1DeleteConfigurationCommand = deserializeAws_rest
|
|
|
1151
1151
|
const deserializeAws_restJson1DeleteConfigurationCommandError = async (output, context) => {
|
|
1152
1152
|
const parsedOutput = {
|
|
1153
1153
|
...output,
|
|
1154
|
-
body: await
|
|
1154
|
+
body: await parseErrorBody(output.body, context),
|
|
1155
1155
|
};
|
|
1156
1156
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1157
|
switch (errorCode) {
|
|
@@ -1194,7 +1194,7 @@ exports.deserializeAws_restJson1DescribeClusterCommand = deserializeAws_restJson
|
|
|
1194
1194
|
const deserializeAws_restJson1DescribeClusterCommandError = async (output, context) => {
|
|
1195
1195
|
const parsedOutput = {
|
|
1196
1196
|
...output,
|
|
1197
|
-
body: await
|
|
1197
|
+
body: await parseErrorBody(output.body, context),
|
|
1198
1198
|
};
|
|
1199
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
switch (errorCode) {
|
|
@@ -1240,7 +1240,7 @@ exports.deserializeAws_restJson1DescribeClusterOperationCommand = deserializeAws
|
|
|
1240
1240
|
const deserializeAws_restJson1DescribeClusterOperationCommandError = async (output, context) => {
|
|
1241
1241
|
const parsedOutput = {
|
|
1242
1242
|
...output,
|
|
1243
|
-
body: await
|
|
1243
|
+
body: await parseErrorBody(output.body, context),
|
|
1244
1244
|
};
|
|
1245
1245
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1246
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_restJson1DescribeClusterV2Command = deserializeAws_restJs
|
|
|
1286
1286
|
const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1350,7 +1350,7 @@ exports.deserializeAws_restJson1DescribeConfigurationCommand = deserializeAws_re
|
|
|
1350
1350
|
const deserializeAws_restJson1DescribeConfigurationCommandError = async (output, context) => {
|
|
1351
1351
|
const parsedOutput = {
|
|
1352
1352
|
...output,
|
|
1353
|
-
body: await
|
|
1353
|
+
body: await parseErrorBody(output.body, context),
|
|
1354
1354
|
};
|
|
1355
1355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1356
|
switch (errorCode) {
|
|
@@ -1411,7 +1411,7 @@ exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = deseriali
|
|
|
1411
1411
|
const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
1412
1412
|
const parsedOutput = {
|
|
1413
1413
|
...output,
|
|
1414
|
-
body: await
|
|
1414
|
+
body: await parseErrorBody(output.body, context),
|
|
1415
1415
|
};
|
|
1416
1416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
1417
|
switch (errorCode) {
|
|
@@ -1478,7 +1478,7 @@ exports.deserializeAws_restJson1GetBootstrapBrokersCommand = deserializeAws_rest
|
|
|
1478
1478
|
const deserializeAws_restJson1GetBootstrapBrokersCommandError = async (output, context) => {
|
|
1479
1479
|
const parsedOutput = {
|
|
1480
1480
|
...output,
|
|
1481
|
-
body: await
|
|
1481
|
+
body: await parseErrorBody(output.body, context),
|
|
1482
1482
|
};
|
|
1483
1483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
1484
|
switch (errorCode) {
|
|
@@ -1524,7 +1524,7 @@ exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = deserializeA
|
|
|
1524
1524
|
const deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = async (output, context) => {
|
|
1525
1525
|
const parsedOutput = {
|
|
1526
1526
|
...output,
|
|
1527
|
-
body: await
|
|
1527
|
+
body: await parseErrorBody(output.body, context),
|
|
1528
1528
|
};
|
|
1529
1529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
1530
|
switch (errorCode) {
|
|
@@ -1579,7 +1579,7 @@ exports.deserializeAws_restJson1ListClusterOperationsCommand = deserializeAws_re
|
|
|
1579
1579
|
const deserializeAws_restJson1ListClusterOperationsCommandError = async (output, context) => {
|
|
1580
1580
|
const parsedOutput = {
|
|
1581
1581
|
...output,
|
|
1582
|
-
body: await
|
|
1582
|
+
body: await parseErrorBody(output.body, context),
|
|
1583
1583
|
};
|
|
1584
1584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
1585
|
switch (errorCode) {
|
|
@@ -1625,7 +1625,7 @@ exports.deserializeAws_restJson1ListClustersCommand = deserializeAws_restJson1Li
|
|
|
1625
1625
|
const deserializeAws_restJson1ListClustersCommandError = async (output, context) => {
|
|
1626
1626
|
const parsedOutput = {
|
|
1627
1627
|
...output,
|
|
1628
|
-
body: await
|
|
1628
|
+
body: await parseErrorBody(output.body, context),
|
|
1629
1629
|
};
|
|
1630
1630
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1631
|
switch (errorCode) {
|
|
@@ -1671,7 +1671,7 @@ exports.deserializeAws_restJson1ListClustersV2Command = deserializeAws_restJson1
|
|
|
1671
1671
|
const deserializeAws_restJson1ListClustersV2CommandError = async (output, context) => {
|
|
1672
1672
|
const parsedOutput = {
|
|
1673
1673
|
...output,
|
|
1674
|
-
body: await
|
|
1674
|
+
body: await parseErrorBody(output.body, context),
|
|
1675
1675
|
};
|
|
1676
1676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
1677
|
switch (errorCode) {
|
|
@@ -1717,7 +1717,7 @@ exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = deserializeA
|
|
|
1717
1717
|
const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
1718
1718
|
const parsedOutput = {
|
|
1719
1719
|
...output,
|
|
1720
|
-
body: await
|
|
1720
|
+
body: await parseErrorBody(output.body, context),
|
|
1721
1721
|
};
|
|
1722
1722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1723
|
switch (errorCode) {
|
|
@@ -1769,7 +1769,7 @@ exports.deserializeAws_restJson1ListConfigurationsCommand = deserializeAws_restJ
|
|
|
1769
1769
|
const deserializeAws_restJson1ListConfigurationsCommandError = async (output, context) => {
|
|
1770
1770
|
const parsedOutput = {
|
|
1771
1771
|
...output,
|
|
1772
|
-
body: await
|
|
1772
|
+
body: await parseErrorBody(output.body, context),
|
|
1773
1773
|
};
|
|
1774
1774
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
1775
|
switch (errorCode) {
|
|
@@ -1818,7 +1818,7 @@ exports.deserializeAws_restJson1ListKafkaVersionsCommand = deserializeAws_restJs
|
|
|
1818
1818
|
const deserializeAws_restJson1ListKafkaVersionsCommandError = async (output, context) => {
|
|
1819
1819
|
const parsedOutput = {
|
|
1820
1820
|
...output,
|
|
1821
|
-
body: await
|
|
1821
|
+
body: await parseErrorBody(output.body, context),
|
|
1822
1822
|
};
|
|
1823
1823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
1824
|
switch (errorCode) {
|
|
@@ -1864,7 +1864,7 @@ exports.deserializeAws_restJson1ListNodesCommand = deserializeAws_restJson1ListN
|
|
|
1864
1864
|
const deserializeAws_restJson1ListNodesCommandError = async (output, context) => {
|
|
1865
1865
|
const parsedOutput = {
|
|
1866
1866
|
...output,
|
|
1867
|
-
body: await
|
|
1867
|
+
body: await parseErrorBody(output.body, context),
|
|
1868
1868
|
};
|
|
1869
1869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1870
|
switch (errorCode) {
|
|
@@ -1910,7 +1910,7 @@ exports.deserializeAws_restJson1ListScramSecretsCommand = deserializeAws_restJso
|
|
|
1910
1910
|
const deserializeAws_restJson1ListScramSecretsCommandError = async (output, context) => {
|
|
1911
1911
|
const parsedOutput = {
|
|
1912
1912
|
...output,
|
|
1913
|
-
body: await
|
|
1913
|
+
body: await parseErrorBody(output.body, context),
|
|
1914
1914
|
};
|
|
1915
1915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
1916
|
switch (errorCode) {
|
|
@@ -1962,7 +1962,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1962
1962
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1963
1963
|
const parsedOutput = {
|
|
1964
1964
|
...output,
|
|
1965
|
-
body: await
|
|
1965
|
+
body: await parseErrorBody(output.body, context),
|
|
1966
1966
|
};
|
|
1967
1967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1968
|
switch (errorCode) {
|
|
@@ -2005,7 +2005,7 @@ exports.deserializeAws_restJson1RebootBrokerCommand = deserializeAws_restJson1Re
|
|
|
2005
2005
|
const deserializeAws_restJson1RebootBrokerCommandError = async (output, context) => {
|
|
2006
2006
|
const parsedOutput = {
|
|
2007
2007
|
...output,
|
|
2008
|
-
body: await
|
|
2008
|
+
body: await parseErrorBody(output.body, context),
|
|
2009
2009
|
};
|
|
2010
2010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
2011
|
switch (errorCode) {
|
|
@@ -2054,7 +2054,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2054
2054
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2055
2055
|
const parsedOutput = {
|
|
2056
2056
|
...output,
|
|
2057
|
-
body: await
|
|
2057
|
+
body: await parseErrorBody(output.body, context),
|
|
2058
2058
|
};
|
|
2059
2059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
2060
|
switch (errorCode) {
|
|
@@ -2091,7 +2091,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2091
2091
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2092
2092
|
const parsedOutput = {
|
|
2093
2093
|
...output,
|
|
2094
|
-
body: await
|
|
2094
|
+
body: await parseErrorBody(output.body, context),
|
|
2095
2095
|
};
|
|
2096
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
2097
|
switch (errorCode) {
|
|
@@ -2134,7 +2134,7 @@ exports.deserializeAws_restJson1UpdateBrokerCountCommand = deserializeAws_restJs
|
|
|
2134
2134
|
const deserializeAws_restJson1UpdateBrokerCountCommandError = async (output, context) => {
|
|
2135
2135
|
const parsedOutput = {
|
|
2136
2136
|
...output,
|
|
2137
|
-
body: await
|
|
2137
|
+
body: await parseErrorBody(output.body, context),
|
|
2138
2138
|
};
|
|
2139
2139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
2140
|
switch (errorCode) {
|
|
@@ -2183,7 +2183,7 @@ exports.deserializeAws_restJson1UpdateBrokerStorageCommand = deserializeAws_rest
|
|
|
2183
2183
|
const deserializeAws_restJson1UpdateBrokerStorageCommandError = async (output, context) => {
|
|
2184
2184
|
const parsedOutput = {
|
|
2185
2185
|
...output,
|
|
2186
|
-
body: await
|
|
2186
|
+
body: await parseErrorBody(output.body, context),
|
|
2187
2187
|
};
|
|
2188
2188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
2189
|
switch (errorCode) {
|
|
@@ -2232,7 +2232,7 @@ exports.deserializeAws_restJson1UpdateBrokerTypeCommand = deserializeAws_restJso
|
|
|
2232
2232
|
const deserializeAws_restJson1UpdateBrokerTypeCommandError = async (output, context) => {
|
|
2233
2233
|
const parsedOutput = {
|
|
2234
2234
|
...output,
|
|
2235
|
-
body: await
|
|
2235
|
+
body: await parseErrorBody(output.body, context),
|
|
2236
2236
|
};
|
|
2237
2237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2238
|
switch (errorCode) {
|
|
@@ -2287,7 +2287,7 @@ exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = deserializeA
|
|
|
2287
2287
|
const deserializeAws_restJson1UpdateClusterConfigurationCommandError = async (output, context) => {
|
|
2288
2288
|
const parsedOutput = {
|
|
2289
2289
|
...output,
|
|
2290
|
-
body: await
|
|
2290
|
+
body: await parseErrorBody(output.body, context),
|
|
2291
2291
|
};
|
|
2292
2292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2293
2293
|
switch (errorCode) {
|
|
@@ -2339,7 +2339,7 @@ exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = deserializeAw
|
|
|
2339
2339
|
const deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = async (output, context) => {
|
|
2340
2340
|
const parsedOutput = {
|
|
2341
2341
|
...output,
|
|
2342
|
-
body: await
|
|
2342
|
+
body: await parseErrorBody(output.body, context),
|
|
2343
2343
|
};
|
|
2344
2344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
2345
|
switch (errorCode) {
|
|
@@ -2394,7 +2394,7 @@ exports.deserializeAws_restJson1UpdateConfigurationCommand = deserializeAws_rest
|
|
|
2394
2394
|
const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, context) => {
|
|
2395
2395
|
const parsedOutput = {
|
|
2396
2396
|
...output,
|
|
2397
|
-
body: await
|
|
2397
|
+
body: await parseErrorBody(output.body, context),
|
|
2398
2398
|
};
|
|
2399
2399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2400
|
switch (errorCode) {
|
|
@@ -2446,7 +2446,7 @@ exports.deserializeAws_restJson1UpdateConnectivityCommand = deserializeAws_restJ
|
|
|
2446
2446
|
const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, context) => {
|
|
2447
2447
|
const parsedOutput = {
|
|
2448
2448
|
...output,
|
|
2449
|
-
body: await
|
|
2449
|
+
body: await parseErrorBody(output.body, context),
|
|
2450
2450
|
};
|
|
2451
2451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
2452
|
switch (errorCode) {
|
|
@@ -2498,7 +2498,7 @@ exports.deserializeAws_restJson1UpdateMonitoringCommand = deserializeAws_restJso
|
|
|
2498
2498
|
const deserializeAws_restJson1UpdateMonitoringCommandError = async (output, context) => {
|
|
2499
2499
|
const parsedOutput = {
|
|
2500
2500
|
...output,
|
|
2501
|
-
body: await
|
|
2501
|
+
body: await parseErrorBody(output.body, context),
|
|
2502
2502
|
};
|
|
2503
2503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
2504
|
switch (errorCode) {
|
|
@@ -2547,7 +2547,7 @@ exports.deserializeAws_restJson1UpdateSecurityCommand = deserializeAws_restJson1
|
|
|
2547
2547
|
const deserializeAws_restJson1UpdateSecurityCommandError = async (output, context) => {
|
|
2548
2548
|
const parsedOutput = {
|
|
2549
2549
|
...output,
|
|
2550
|
-
body: await
|
|
2550
|
+
body: await parseErrorBody(output.body, context),
|
|
2551
2551
|
};
|
|
2552
2552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2553
|
switch (errorCode) {
|
|
@@ -3595,6 +3595,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3595
3595
|
}
|
|
3596
3596
|
return {};
|
|
3597
3597
|
});
|
|
3598
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3599
|
+
var _a;
|
|
3600
|
+
const value = await parseBody(errorBody, context);
|
|
3601
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3602
|
+
return value;
|
|
3603
|
+
};
|
|
3598
3604
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3599
3605
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3600
3606
|
const sanitizeErrorCode = (rawValue) => {
|