@aws-sdk/client-app-mesh 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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +44 -38
- package/dist-es/protocols/Aws_restJson1.js +51 -38
- package/package.json +3 -3
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
|
|
|
@@ -996,7 +996,7 @@ exports.deserializeAws_restJson1CreateGatewayRouteCommand = deserializeAws_restJ
|
|
|
996
996
|
const deserializeAws_restJson1CreateGatewayRouteCommandError = async (output, context) => {
|
|
997
997
|
const parsedOutput = {
|
|
998
998
|
...output,
|
|
999
|
-
body: await
|
|
999
|
+
body: await parseErrorBody(output.body, context),
|
|
1000
1000
|
};
|
|
1001
1001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
1002
|
switch (errorCode) {
|
|
@@ -1049,7 +1049,7 @@ exports.deserializeAws_restJson1CreateMeshCommand = deserializeAws_restJson1Crea
|
|
|
1049
1049
|
const deserializeAws_restJson1CreateMeshCommandError = async (output, context) => {
|
|
1050
1050
|
const parsedOutput = {
|
|
1051
1051
|
...output,
|
|
1052
|
-
body: await
|
|
1052
|
+
body: await parseErrorBody(output.body, context),
|
|
1053
1053
|
};
|
|
1054
1054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1055
|
switch (errorCode) {
|
|
@@ -1102,7 +1102,7 @@ exports.deserializeAws_restJson1CreateRouteCommand = deserializeAws_restJson1Cre
|
|
|
1102
1102
|
const deserializeAws_restJson1CreateRouteCommandError = async (output, context) => {
|
|
1103
1103
|
const parsedOutput = {
|
|
1104
1104
|
...output,
|
|
1105
|
-
body: await
|
|
1105
|
+
body: await parseErrorBody(output.body, context),
|
|
1106
1106
|
};
|
|
1107
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
1108
|
switch (errorCode) {
|
|
@@ -1155,7 +1155,7 @@ exports.deserializeAws_restJson1CreateVirtualGatewayCommand = deserializeAws_res
|
|
|
1155
1155
|
const deserializeAws_restJson1CreateVirtualGatewayCommandError = async (output, context) => {
|
|
1156
1156
|
const parsedOutput = {
|
|
1157
1157
|
...output,
|
|
1158
|
-
body: await
|
|
1158
|
+
body: await parseErrorBody(output.body, context),
|
|
1159
1159
|
};
|
|
1160
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
switch (errorCode) {
|
|
@@ -1208,7 +1208,7 @@ exports.deserializeAws_restJson1CreateVirtualNodeCommand = deserializeAws_restJs
|
|
|
1208
1208
|
const deserializeAws_restJson1CreateVirtualNodeCommandError = async (output, context) => {
|
|
1209
1209
|
const parsedOutput = {
|
|
1210
1210
|
...output,
|
|
1211
|
-
body: await
|
|
1211
|
+
body: await parseErrorBody(output.body, context),
|
|
1212
1212
|
};
|
|
1213
1213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1214
|
switch (errorCode) {
|
|
@@ -1261,7 +1261,7 @@ exports.deserializeAws_restJson1CreateVirtualRouterCommand = deserializeAws_rest
|
|
|
1261
1261
|
const deserializeAws_restJson1CreateVirtualRouterCommandError = async (output, context) => {
|
|
1262
1262
|
const parsedOutput = {
|
|
1263
1263
|
...output,
|
|
1264
|
-
body: await
|
|
1264
|
+
body: await parseErrorBody(output.body, context),
|
|
1265
1265
|
};
|
|
1266
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1267
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_restJson1CreateVirtualServiceCommand = deserializeAws_res
|
|
|
1314
1314
|
const deserializeAws_restJson1CreateVirtualServiceCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1367,7 +1367,7 @@ exports.deserializeAws_restJson1DeleteGatewayRouteCommand = deserializeAws_restJ
|
|
|
1367
1367
|
const deserializeAws_restJson1DeleteGatewayRouteCommandError = async (output, context) => {
|
|
1368
1368
|
const parsedOutput = {
|
|
1369
1369
|
...output,
|
|
1370
|
-
body: await
|
|
1370
|
+
body: await parseErrorBody(output.body, context),
|
|
1371
1371
|
};
|
|
1372
1372
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
1373
|
switch (errorCode) {
|
|
@@ -1417,7 +1417,7 @@ exports.deserializeAws_restJson1DeleteMeshCommand = deserializeAws_restJson1Dele
|
|
|
1417
1417
|
const deserializeAws_restJson1DeleteMeshCommandError = async (output, context) => {
|
|
1418
1418
|
const parsedOutput = {
|
|
1419
1419
|
...output,
|
|
1420
|
-
body: await
|
|
1420
|
+
body: await parseErrorBody(output.body, context),
|
|
1421
1421
|
};
|
|
1422
1422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1423
|
switch (errorCode) {
|
|
@@ -1467,7 +1467,7 @@ exports.deserializeAws_restJson1DeleteRouteCommand = deserializeAws_restJson1Del
|
|
|
1467
1467
|
const deserializeAws_restJson1DeleteRouteCommandError = async (output, context) => {
|
|
1468
1468
|
const parsedOutput = {
|
|
1469
1469
|
...output,
|
|
1470
|
-
body: await
|
|
1470
|
+
body: await parseErrorBody(output.body, context),
|
|
1471
1471
|
};
|
|
1472
1472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
1473
|
switch (errorCode) {
|
|
@@ -1517,7 +1517,7 @@ exports.deserializeAws_restJson1DeleteVirtualGatewayCommand = deserializeAws_res
|
|
|
1517
1517
|
const deserializeAws_restJson1DeleteVirtualGatewayCommandError = async (output, context) => {
|
|
1518
1518
|
const parsedOutput = {
|
|
1519
1519
|
...output,
|
|
1520
|
-
body: await
|
|
1520
|
+
body: await parseErrorBody(output.body, context),
|
|
1521
1521
|
};
|
|
1522
1522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1523
|
switch (errorCode) {
|
|
@@ -1567,7 +1567,7 @@ exports.deserializeAws_restJson1DeleteVirtualNodeCommand = deserializeAws_restJs
|
|
|
1567
1567
|
const deserializeAws_restJson1DeleteVirtualNodeCommandError = async (output, context) => {
|
|
1568
1568
|
const parsedOutput = {
|
|
1569
1569
|
...output,
|
|
1570
|
-
body: await
|
|
1570
|
+
body: await parseErrorBody(output.body, context),
|
|
1571
1571
|
};
|
|
1572
1572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
1573
|
switch (errorCode) {
|
|
@@ -1617,7 +1617,7 @@ exports.deserializeAws_restJson1DeleteVirtualRouterCommand = deserializeAws_rest
|
|
|
1617
1617
|
const deserializeAws_restJson1DeleteVirtualRouterCommandError = async (output, context) => {
|
|
1618
1618
|
const parsedOutput = {
|
|
1619
1619
|
...output,
|
|
1620
|
-
body: await
|
|
1620
|
+
body: await parseErrorBody(output.body, context),
|
|
1621
1621
|
};
|
|
1622
1622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
1623
|
switch (errorCode) {
|
|
@@ -1667,7 +1667,7 @@ exports.deserializeAws_restJson1DeleteVirtualServiceCommand = deserializeAws_res
|
|
|
1667
1667
|
const deserializeAws_restJson1DeleteVirtualServiceCommandError = async (output, context) => {
|
|
1668
1668
|
const parsedOutput = {
|
|
1669
1669
|
...output,
|
|
1670
|
-
body: await
|
|
1670
|
+
body: await parseErrorBody(output.body, context),
|
|
1671
1671
|
};
|
|
1672
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1673
|
switch (errorCode) {
|
|
@@ -1717,7 +1717,7 @@ exports.deserializeAws_restJson1DescribeGatewayRouteCommand = deserializeAws_res
|
|
|
1717
1717
|
const deserializeAws_restJson1DescribeGatewayRouteCommandError = 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) {
|
|
@@ -1764,7 +1764,7 @@ exports.deserializeAws_restJson1DescribeMeshCommand = deserializeAws_restJson1De
|
|
|
1764
1764
|
const deserializeAws_restJson1DescribeMeshCommandError = async (output, context) => {
|
|
1765
1765
|
const parsedOutput = {
|
|
1766
1766
|
...output,
|
|
1767
|
-
body: await
|
|
1767
|
+
body: await parseErrorBody(output.body, context),
|
|
1768
1768
|
};
|
|
1769
1769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1770
|
switch (errorCode) {
|
|
@@ -1811,7 +1811,7 @@ exports.deserializeAws_restJson1DescribeRouteCommand = deserializeAws_restJson1D
|
|
|
1811
1811
|
const deserializeAws_restJson1DescribeRouteCommandError = async (output, context) => {
|
|
1812
1812
|
const parsedOutput = {
|
|
1813
1813
|
...output,
|
|
1814
|
-
body: await
|
|
1814
|
+
body: await parseErrorBody(output.body, context),
|
|
1815
1815
|
};
|
|
1816
1816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1817
|
switch (errorCode) {
|
|
@@ -1858,7 +1858,7 @@ exports.deserializeAws_restJson1DescribeVirtualGatewayCommand = deserializeAws_r
|
|
|
1858
1858
|
const deserializeAws_restJson1DescribeVirtualGatewayCommandError = async (output, context) => {
|
|
1859
1859
|
const parsedOutput = {
|
|
1860
1860
|
...output,
|
|
1861
|
-
body: await
|
|
1861
|
+
body: await parseErrorBody(output.body, context),
|
|
1862
1862
|
};
|
|
1863
1863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
1864
|
switch (errorCode) {
|
|
@@ -1905,7 +1905,7 @@ exports.deserializeAws_restJson1DescribeVirtualNodeCommand = deserializeAws_rest
|
|
|
1905
1905
|
const deserializeAws_restJson1DescribeVirtualNodeCommandError = async (output, context) => {
|
|
1906
1906
|
const parsedOutput = {
|
|
1907
1907
|
...output,
|
|
1908
|
-
body: await
|
|
1908
|
+
body: await parseErrorBody(output.body, context),
|
|
1909
1909
|
};
|
|
1910
1910
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
1911
|
switch (errorCode) {
|
|
@@ -1952,7 +1952,7 @@ exports.deserializeAws_restJson1DescribeVirtualRouterCommand = deserializeAws_re
|
|
|
1952
1952
|
const deserializeAws_restJson1DescribeVirtualRouterCommandError = async (output, context) => {
|
|
1953
1953
|
const parsedOutput = {
|
|
1954
1954
|
...output,
|
|
1955
|
-
body: await
|
|
1955
|
+
body: await parseErrorBody(output.body, context),
|
|
1956
1956
|
};
|
|
1957
1957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1958
|
switch (errorCode) {
|
|
@@ -1999,7 +1999,7 @@ exports.deserializeAws_restJson1DescribeVirtualServiceCommand = deserializeAws_r
|
|
|
1999
1999
|
const deserializeAws_restJson1DescribeVirtualServiceCommandError = async (output, context) => {
|
|
2000
2000
|
const parsedOutput = {
|
|
2001
2001
|
...output,
|
|
2002
|
-
body: await
|
|
2002
|
+
body: await parseErrorBody(output.body, context),
|
|
2003
2003
|
};
|
|
2004
2004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
2005
|
switch (errorCode) {
|
|
@@ -2051,7 +2051,7 @@ exports.deserializeAws_restJson1ListGatewayRoutesCommand = deserializeAws_restJs
|
|
|
2051
2051
|
const deserializeAws_restJson1ListGatewayRoutesCommandError = async (output, context) => {
|
|
2052
2052
|
const parsedOutput = {
|
|
2053
2053
|
...output,
|
|
2054
|
-
body: await
|
|
2054
|
+
body: await parseErrorBody(output.body, context),
|
|
2055
2055
|
};
|
|
2056
2056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
2057
|
switch (errorCode) {
|
|
@@ -2103,7 +2103,7 @@ exports.deserializeAws_restJson1ListMeshesCommand = deserializeAws_restJson1List
|
|
|
2103
2103
|
const deserializeAws_restJson1ListMeshesCommandError = async (output, context) => {
|
|
2104
2104
|
const parsedOutput = {
|
|
2105
2105
|
...output,
|
|
2106
|
-
body: await
|
|
2106
|
+
body: await parseErrorBody(output.body, context),
|
|
2107
2107
|
};
|
|
2108
2108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
2109
|
switch (errorCode) {
|
|
@@ -2155,7 +2155,7 @@ exports.deserializeAws_restJson1ListRoutesCommand = deserializeAws_restJson1List
|
|
|
2155
2155
|
const deserializeAws_restJson1ListRoutesCommandError = async (output, context) => {
|
|
2156
2156
|
const parsedOutput = {
|
|
2157
2157
|
...output,
|
|
2158
|
-
body: await
|
|
2158
|
+
body: await parseErrorBody(output.body, context),
|
|
2159
2159
|
};
|
|
2160
2160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
2161
|
switch (errorCode) {
|
|
@@ -2207,7 +2207,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2207
2207
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2208
2208
|
const parsedOutput = {
|
|
2209
2209
|
...output,
|
|
2210
|
-
body: await
|
|
2210
|
+
body: await parseErrorBody(output.body, context),
|
|
2211
2211
|
};
|
|
2212
2212
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2213
2213
|
switch (errorCode) {
|
|
@@ -2259,7 +2259,7 @@ exports.deserializeAws_restJson1ListVirtualGatewaysCommand = deserializeAws_rest
|
|
|
2259
2259
|
const deserializeAws_restJson1ListVirtualGatewaysCommandError = async (output, context) => {
|
|
2260
2260
|
const parsedOutput = {
|
|
2261
2261
|
...output,
|
|
2262
|
-
body: await
|
|
2262
|
+
body: await parseErrorBody(output.body, context),
|
|
2263
2263
|
};
|
|
2264
2264
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
2265
|
switch (errorCode) {
|
|
@@ -2311,7 +2311,7 @@ exports.deserializeAws_restJson1ListVirtualNodesCommand = deserializeAws_restJso
|
|
|
2311
2311
|
const deserializeAws_restJson1ListVirtualNodesCommandError = async (output, context) => {
|
|
2312
2312
|
const parsedOutput = {
|
|
2313
2313
|
...output,
|
|
2314
|
-
body: await
|
|
2314
|
+
body: await parseErrorBody(output.body, context),
|
|
2315
2315
|
};
|
|
2316
2316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
2317
|
switch (errorCode) {
|
|
@@ -2363,7 +2363,7 @@ exports.deserializeAws_restJson1ListVirtualRoutersCommand = deserializeAws_restJ
|
|
|
2363
2363
|
const deserializeAws_restJson1ListVirtualRoutersCommandError = async (output, context) => {
|
|
2364
2364
|
const parsedOutput = {
|
|
2365
2365
|
...output,
|
|
2366
|
-
body: await
|
|
2366
|
+
body: await parseErrorBody(output.body, context),
|
|
2367
2367
|
};
|
|
2368
2368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2369
|
switch (errorCode) {
|
|
@@ -2415,7 +2415,7 @@ exports.deserializeAws_restJson1ListVirtualServicesCommand = deserializeAws_rest
|
|
|
2415
2415
|
const deserializeAws_restJson1ListVirtualServicesCommandError = async (output, context) => {
|
|
2416
2416
|
const parsedOutput = {
|
|
2417
2417
|
...output,
|
|
2418
|
-
body: await
|
|
2418
|
+
body: await parseErrorBody(output.body, context),
|
|
2419
2419
|
};
|
|
2420
2420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2421
2421
|
switch (errorCode) {
|
|
@@ -2461,7 +2461,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2461
2461
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2462
2462
|
const parsedOutput = {
|
|
2463
2463
|
...output,
|
|
2464
|
-
body: await
|
|
2464
|
+
body: await parseErrorBody(output.body, context),
|
|
2465
2465
|
};
|
|
2466
2466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2467
|
switch (errorCode) {
|
|
@@ -2510,7 +2510,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2510
2510
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2511
2511
|
const parsedOutput = {
|
|
2512
2512
|
...output,
|
|
2513
|
-
body: await
|
|
2513
|
+
body: await parseErrorBody(output.body, context),
|
|
2514
2514
|
};
|
|
2515
2515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2516
|
switch (errorCode) {
|
|
@@ -2557,7 +2557,7 @@ exports.deserializeAws_restJson1UpdateGatewayRouteCommand = deserializeAws_restJ
|
|
|
2557
2557
|
const deserializeAws_restJson1UpdateGatewayRouteCommandError = async (output, context) => {
|
|
2558
2558
|
const parsedOutput = {
|
|
2559
2559
|
...output,
|
|
2560
|
-
body: await
|
|
2560
|
+
body: await parseErrorBody(output.body, context),
|
|
2561
2561
|
};
|
|
2562
2562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
2563
|
switch (errorCode) {
|
|
@@ -2610,7 +2610,7 @@ exports.deserializeAws_restJson1UpdateMeshCommand = deserializeAws_restJson1Upda
|
|
|
2610
2610
|
const deserializeAws_restJson1UpdateMeshCommandError = async (output, context) => {
|
|
2611
2611
|
const parsedOutput = {
|
|
2612
2612
|
...output,
|
|
2613
|
-
body: await
|
|
2613
|
+
body: await parseErrorBody(output.body, context),
|
|
2614
2614
|
};
|
|
2615
2615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2616
|
switch (errorCode) {
|
|
@@ -2660,7 +2660,7 @@ exports.deserializeAws_restJson1UpdateRouteCommand = deserializeAws_restJson1Upd
|
|
|
2660
2660
|
const deserializeAws_restJson1UpdateRouteCommandError = async (output, context) => {
|
|
2661
2661
|
const parsedOutput = {
|
|
2662
2662
|
...output,
|
|
2663
|
-
body: await
|
|
2663
|
+
body: await parseErrorBody(output.body, context),
|
|
2664
2664
|
};
|
|
2665
2665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2666
|
switch (errorCode) {
|
|
@@ -2713,7 +2713,7 @@ exports.deserializeAws_restJson1UpdateVirtualGatewayCommand = deserializeAws_res
|
|
|
2713
2713
|
const deserializeAws_restJson1UpdateVirtualGatewayCommandError = async (output, context) => {
|
|
2714
2714
|
const parsedOutput = {
|
|
2715
2715
|
...output,
|
|
2716
|
-
body: await
|
|
2716
|
+
body: await parseErrorBody(output.body, context),
|
|
2717
2717
|
};
|
|
2718
2718
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
2719
|
switch (errorCode) {
|
|
@@ -2766,7 +2766,7 @@ exports.deserializeAws_restJson1UpdateVirtualNodeCommand = deserializeAws_restJs
|
|
|
2766
2766
|
const deserializeAws_restJson1UpdateVirtualNodeCommandError = async (output, context) => {
|
|
2767
2767
|
const parsedOutput = {
|
|
2768
2768
|
...output,
|
|
2769
|
-
body: await
|
|
2769
|
+
body: await parseErrorBody(output.body, context),
|
|
2770
2770
|
};
|
|
2771
2771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
2772
|
switch (errorCode) {
|
|
@@ -2819,7 +2819,7 @@ exports.deserializeAws_restJson1UpdateVirtualRouterCommand = deserializeAws_rest
|
|
|
2819
2819
|
const deserializeAws_restJson1UpdateVirtualRouterCommandError = async (output, context) => {
|
|
2820
2820
|
const parsedOutput = {
|
|
2821
2821
|
...output,
|
|
2822
|
-
body: await
|
|
2822
|
+
body: await parseErrorBody(output.body, context),
|
|
2823
2823
|
};
|
|
2824
2824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2825
2825
|
switch (errorCode) {
|
|
@@ -2872,7 +2872,7 @@ exports.deserializeAws_restJson1UpdateVirtualServiceCommand = deserializeAws_res
|
|
|
2872
2872
|
const deserializeAws_restJson1UpdateVirtualServiceCommandError = async (output, context) => {
|
|
2873
2873
|
const parsedOutput = {
|
|
2874
2874
|
...output,
|
|
2875
|
-
body: await
|
|
2875
|
+
body: await parseErrorBody(output.body, context),
|
|
2876
2876
|
};
|
|
2877
2877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
2878
|
switch (errorCode) {
|
|
@@ -5643,6 +5643,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5643
5643
|
}
|
|
5644
5644
|
return {};
|
|
5645
5645
|
});
|
|
5646
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5647
|
+
var _a;
|
|
5648
|
+
const value = await parseBody(errorBody, context);
|
|
5649
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5650
|
+
return value;
|
|
5651
|
+
};
|
|
5646
5652
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5647
5653
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5648
5654
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1136,7 +1136,7 @@ var deserializeAws_restJson1CreateGatewayRouteCommandError = function (output, c
|
|
|
1136
1136
|
case 0:
|
|
1137
1137
|
_a = [__assign({}, output)];
|
|
1138
1138
|
_c = {};
|
|
1139
|
-
return [4,
|
|
1139
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1140
1140
|
case 1:
|
|
1141
1141
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1142
1142
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1217,7 +1217,7 @@ var deserializeAws_restJson1CreateMeshCommandError = function (output, context)
|
|
|
1217
1217
|
case 0:
|
|
1218
1218
|
_a = [__assign({}, output)];
|
|
1219
1219
|
_c = {};
|
|
1220
|
-
return [4,
|
|
1220
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1221
1221
|
case 1:
|
|
1222
1222
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1223
1223
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1298,7 +1298,7 @@ var deserializeAws_restJson1CreateRouteCommandError = function (output, context)
|
|
|
1298
1298
|
case 0:
|
|
1299
1299
|
_a = [__assign({}, output)];
|
|
1300
1300
|
_c = {};
|
|
1301
|
-
return [4,
|
|
1301
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1302
1302
|
case 1:
|
|
1303
1303
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1304
1304
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1379,7 +1379,7 @@ var deserializeAws_restJson1CreateVirtualGatewayCommandError = function (output,
|
|
|
1379
1379
|
case 0:
|
|
1380
1380
|
_a = [__assign({}, output)];
|
|
1381
1381
|
_c = {};
|
|
1382
|
-
return [4,
|
|
1382
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1383
1383
|
case 1:
|
|
1384
1384
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1385
1385
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1460,7 +1460,7 @@ var deserializeAws_restJson1CreateVirtualNodeCommandError = function (output, co
|
|
|
1460
1460
|
case 0:
|
|
1461
1461
|
_a = [__assign({}, output)];
|
|
1462
1462
|
_c = {};
|
|
1463
|
-
return [4,
|
|
1463
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1464
1464
|
case 1:
|
|
1465
1465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1466
1466
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1541,7 +1541,7 @@ var deserializeAws_restJson1CreateVirtualRouterCommandError = function (output,
|
|
|
1541
1541
|
case 0:
|
|
1542
1542
|
_a = [__assign({}, output)];
|
|
1543
1543
|
_c = {};
|
|
1544
|
-
return [4,
|
|
1544
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1545
1545
|
case 1:
|
|
1546
1546
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1547
1547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1622,7 +1622,7 @@ var deserializeAws_restJson1CreateVirtualServiceCommandError = function (output,
|
|
|
1622
1622
|
case 0:
|
|
1623
1623
|
_a = [__assign({}, output)];
|
|
1624
1624
|
_c = {};
|
|
1625
|
-
return [4,
|
|
1625
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1626
1626
|
case 1:
|
|
1627
1627
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1628
1628
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1703,7 +1703,7 @@ var deserializeAws_restJson1DeleteGatewayRouteCommandError = function (output, c
|
|
|
1703
1703
|
case 0:
|
|
1704
1704
|
_a = [__assign({}, output)];
|
|
1705
1705
|
_c = {};
|
|
1706
|
-
return [4,
|
|
1706
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1707
1707
|
case 1:
|
|
1708
1708
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1709
1709
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1780,7 +1780,7 @@ var deserializeAws_restJson1DeleteMeshCommandError = function (output, context)
|
|
|
1780
1780
|
case 0:
|
|
1781
1781
|
_a = [__assign({}, output)];
|
|
1782
1782
|
_c = {};
|
|
1783
|
-
return [4,
|
|
1783
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1784
1784
|
case 1:
|
|
1785
1785
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1786
1786
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1857,7 +1857,7 @@ var deserializeAws_restJson1DeleteRouteCommandError = function (output, context)
|
|
|
1857
1857
|
case 0:
|
|
1858
1858
|
_a = [__assign({}, output)];
|
|
1859
1859
|
_c = {};
|
|
1860
|
-
return [4,
|
|
1860
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1861
1861
|
case 1:
|
|
1862
1862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1863
1863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1934,7 +1934,7 @@ var deserializeAws_restJson1DeleteVirtualGatewayCommandError = function (output,
|
|
|
1934
1934
|
case 0:
|
|
1935
1935
|
_a = [__assign({}, output)];
|
|
1936
1936
|
_c = {};
|
|
1937
|
-
return [4,
|
|
1937
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1938
1938
|
case 1:
|
|
1939
1939
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1940
1940
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2011,7 +2011,7 @@ var deserializeAws_restJson1DeleteVirtualNodeCommandError = function (output, co
|
|
|
2011
2011
|
case 0:
|
|
2012
2012
|
_a = [__assign({}, output)];
|
|
2013
2013
|
_c = {};
|
|
2014
|
-
return [4,
|
|
2014
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2015
2015
|
case 1:
|
|
2016
2016
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2017
2017
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2088,7 +2088,7 @@ var deserializeAws_restJson1DeleteVirtualRouterCommandError = function (output,
|
|
|
2088
2088
|
case 0:
|
|
2089
2089
|
_a = [__assign({}, output)];
|
|
2090
2090
|
_c = {};
|
|
2091
|
-
return [4,
|
|
2091
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2092
2092
|
case 1:
|
|
2093
2093
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2094
2094
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2165,7 +2165,7 @@ var deserializeAws_restJson1DeleteVirtualServiceCommandError = function (output,
|
|
|
2165
2165
|
case 0:
|
|
2166
2166
|
_a = [__assign({}, output)];
|
|
2167
2167
|
_c = {};
|
|
2168
|
-
return [4,
|
|
2168
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2169
2169
|
case 1:
|
|
2170
2170
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2171
2171
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2242,7 +2242,7 @@ var deserializeAws_restJson1DescribeGatewayRouteCommandError = function (output,
|
|
|
2242
2242
|
case 0:
|
|
2243
2243
|
_a = [__assign({}, output)];
|
|
2244
2244
|
_c = {};
|
|
2245
|
-
return [4,
|
|
2245
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2246
2246
|
case 1:
|
|
2247
2247
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2248
2248
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2315,7 +2315,7 @@ var deserializeAws_restJson1DescribeMeshCommandError = function (output, context
|
|
|
2315
2315
|
case 0:
|
|
2316
2316
|
_a = [__assign({}, output)];
|
|
2317
2317
|
_c = {};
|
|
2318
|
-
return [4,
|
|
2318
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2319
2319
|
case 1:
|
|
2320
2320
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2321
2321
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2388,7 +2388,7 @@ var deserializeAws_restJson1DescribeRouteCommandError = function (output, contex
|
|
|
2388
2388
|
case 0:
|
|
2389
2389
|
_a = [__assign({}, output)];
|
|
2390
2390
|
_c = {};
|
|
2391
|
-
return [4,
|
|
2391
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2392
2392
|
case 1:
|
|
2393
2393
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2394
2394
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2461,7 +2461,7 @@ var deserializeAws_restJson1DescribeVirtualGatewayCommandError = function (outpu
|
|
|
2461
2461
|
case 0:
|
|
2462
2462
|
_a = [__assign({}, output)];
|
|
2463
2463
|
_c = {};
|
|
2464
|
-
return [4,
|
|
2464
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2465
2465
|
case 1:
|
|
2466
2466
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2467
2467
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2534,7 +2534,7 @@ var deserializeAws_restJson1DescribeVirtualNodeCommandError = function (output,
|
|
|
2534
2534
|
case 0:
|
|
2535
2535
|
_a = [__assign({}, output)];
|
|
2536
2536
|
_c = {};
|
|
2537
|
-
return [4,
|
|
2537
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2538
2538
|
case 1:
|
|
2539
2539
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2540
2540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2607,7 +2607,7 @@ var deserializeAws_restJson1DescribeVirtualRouterCommandError = function (output
|
|
|
2607
2607
|
case 0:
|
|
2608
2608
|
_a = [__assign({}, output)];
|
|
2609
2609
|
_c = {};
|
|
2610
|
-
return [4,
|
|
2610
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2611
2611
|
case 1:
|
|
2612
2612
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2613
2613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2680,7 +2680,7 @@ var deserializeAws_restJson1DescribeVirtualServiceCommandError = function (outpu
|
|
|
2680
2680
|
case 0:
|
|
2681
2681
|
_a = [__assign({}, output)];
|
|
2682
2682
|
_c = {};
|
|
2683
|
-
return [4,
|
|
2683
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2684
2684
|
case 1:
|
|
2685
2685
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2686
2686
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2759,7 +2759,7 @@ var deserializeAws_restJson1ListGatewayRoutesCommandError = function (output, co
|
|
|
2759
2759
|
case 0:
|
|
2760
2760
|
_a = [__assign({}, output)];
|
|
2761
2761
|
_c = {};
|
|
2762
|
-
return [4,
|
|
2762
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2763
2763
|
case 1:
|
|
2764
2764
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2765
2765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2838,7 +2838,7 @@ var deserializeAws_restJson1ListMeshesCommandError = function (output, context)
|
|
|
2838
2838
|
case 0:
|
|
2839
2839
|
_a = [__assign({}, output)];
|
|
2840
2840
|
_c = {};
|
|
2841
|
-
return [4,
|
|
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);
|
|
@@ -2917,7 +2917,7 @@ var deserializeAws_restJson1ListRoutesCommandError = function (output, context)
|
|
|
2917
2917
|
case 0:
|
|
2918
2918
|
_a = [__assign({}, output)];
|
|
2919
2919
|
_c = {};
|
|
2920
|
-
return [4,
|
|
2920
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2921
2921
|
case 1:
|
|
2922
2922
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2923
2923
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2996,7 +2996,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2996
2996
|
case 0:
|
|
2997
2997
|
_a = [__assign({}, output)];
|
|
2998
2998
|
_c = {};
|
|
2999
|
-
return [4,
|
|
2999
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3000
3000
|
case 1:
|
|
3001
3001
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3002
3002
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3075,7 +3075,7 @@ var deserializeAws_restJson1ListVirtualGatewaysCommandError = function (output,
|
|
|
3075
3075
|
case 0:
|
|
3076
3076
|
_a = [__assign({}, output)];
|
|
3077
3077
|
_c = {};
|
|
3078
|
-
return [4,
|
|
3078
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3079
3079
|
case 1:
|
|
3080
3080
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3081
3081
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3154,7 +3154,7 @@ var deserializeAws_restJson1ListVirtualNodesCommandError = function (output, con
|
|
|
3154
3154
|
case 0:
|
|
3155
3155
|
_a = [__assign({}, output)];
|
|
3156
3156
|
_c = {};
|
|
3157
|
-
return [4,
|
|
3157
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3158
3158
|
case 1:
|
|
3159
3159
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3160
3160
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3233,7 +3233,7 @@ var deserializeAws_restJson1ListVirtualRoutersCommandError = function (output, c
|
|
|
3233
3233
|
case 0:
|
|
3234
3234
|
_a = [__assign({}, output)];
|
|
3235
3235
|
_c = {};
|
|
3236
|
-
return [4,
|
|
3236
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3237
3237
|
case 1:
|
|
3238
3238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3239
3239
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3312,7 +3312,7 @@ var deserializeAws_restJson1ListVirtualServicesCommandError = function (output,
|
|
|
3312
3312
|
case 0:
|
|
3313
3313
|
_a = [__assign({}, output)];
|
|
3314
3314
|
_c = {};
|
|
3315
|
-
return [4,
|
|
3315
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3316
3316
|
case 1:
|
|
3317
3317
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3318
3318
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3383,7 +3383,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3383
3383
|
case 0:
|
|
3384
3384
|
_a = [__assign({}, output)];
|
|
3385
3385
|
_c = {};
|
|
3386
|
-
return [4,
|
|
3386
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3387
3387
|
case 1:
|
|
3388
3388
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3389
3389
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3458,7 +3458,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3458
3458
|
case 0:
|
|
3459
3459
|
_a = [__assign({}, output)];
|
|
3460
3460
|
_c = {};
|
|
3461
|
-
return [4,
|
|
3461
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3462
3462
|
case 1:
|
|
3463
3463
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3464
3464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3531,7 +3531,7 @@ var deserializeAws_restJson1UpdateGatewayRouteCommandError = function (output, c
|
|
|
3531
3531
|
case 0:
|
|
3532
3532
|
_a = [__assign({}, output)];
|
|
3533
3533
|
_c = {};
|
|
3534
|
-
return [4,
|
|
3534
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3535
3535
|
case 1:
|
|
3536
3536
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3537
3537
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3612,7 +3612,7 @@ var deserializeAws_restJson1UpdateMeshCommandError = function (output, context)
|
|
|
3612
3612
|
case 0:
|
|
3613
3613
|
_a = [__assign({}, output)];
|
|
3614
3614
|
_c = {};
|
|
3615
|
-
return [4,
|
|
3615
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3616
3616
|
case 1:
|
|
3617
3617
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3618
3618
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3689,7 +3689,7 @@ var deserializeAws_restJson1UpdateRouteCommandError = function (output, context)
|
|
|
3689
3689
|
case 0:
|
|
3690
3690
|
_a = [__assign({}, output)];
|
|
3691
3691
|
_c = {};
|
|
3692
|
-
return [4,
|
|
3692
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3693
3693
|
case 1:
|
|
3694
3694
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3695
3695
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3770,7 +3770,7 @@ var deserializeAws_restJson1UpdateVirtualGatewayCommandError = function (output,
|
|
|
3770
3770
|
case 0:
|
|
3771
3771
|
_a = [__assign({}, output)];
|
|
3772
3772
|
_c = {};
|
|
3773
|
-
return [4,
|
|
3773
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3774
3774
|
case 1:
|
|
3775
3775
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3776
3776
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3851,7 +3851,7 @@ var deserializeAws_restJson1UpdateVirtualNodeCommandError = function (output, co
|
|
|
3851
3851
|
case 0:
|
|
3852
3852
|
_a = [__assign({}, output)];
|
|
3853
3853
|
_c = {};
|
|
3854
|
-
return [4,
|
|
3854
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3855
3855
|
case 1:
|
|
3856
3856
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3857
3857
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3932,7 +3932,7 @@ var deserializeAws_restJson1UpdateVirtualRouterCommandError = function (output,
|
|
|
3932
3932
|
case 0:
|
|
3933
3933
|
_a = [__assign({}, output)];
|
|
3934
3934
|
_c = {};
|
|
3935
|
-
return [4,
|
|
3935
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3936
3936
|
case 1:
|
|
3937
3937
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3938
3938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4013,7 +4013,7 @@ var deserializeAws_restJson1UpdateVirtualServiceCommandError = function (output,
|
|
|
4013
4013
|
case 0:
|
|
4014
4014
|
_a = [__assign({}, output)];
|
|
4015
4015
|
_c = {};
|
|
4016
|
-
return [4,
|
|
4016
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4017
4017
|
case 1:
|
|
4018
4018
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4019
4019
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6480,6 +6480,19 @@ var parseBody = function (streamBody, context) {
|
|
|
6480
6480
|
return {};
|
|
6481
6481
|
});
|
|
6482
6482
|
};
|
|
6483
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6484
|
+
var value;
|
|
6485
|
+
var _a;
|
|
6486
|
+
return __generator(this, function (_b) {
|
|
6487
|
+
switch (_b.label) {
|
|
6488
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
6489
|
+
case 1:
|
|
6490
|
+
value = _b.sent();
|
|
6491
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6492
|
+
return [2, value];
|
|
6493
|
+
}
|
|
6494
|
+
});
|
|
6495
|
+
}); };
|
|
6483
6496
|
var loadRestJsonErrorCode = function (output, data) {
|
|
6484
6497
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
6485
6498
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-app-mesh",
|
|
3
3
|
"description": "AWS SDK for JavaScript App Mesh Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|