@aws-sdk/client-app-mesh 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 +44 -38
- package/dist-es/AppMesh.js +154 -161
- package/dist-es/AppMeshClient.js +22 -28
- package/dist-es/commands/CreateGatewayRouteCommand.js +21 -28
- package/dist-es/commands/CreateMeshCommand.js +21 -28
- package/dist-es/commands/CreateRouteCommand.js +21 -28
- package/dist-es/commands/CreateVirtualGatewayCommand.js +21 -28
- package/dist-es/commands/CreateVirtualNodeCommand.js +21 -28
- package/dist-es/commands/CreateVirtualRouterCommand.js +21 -28
- package/dist-es/commands/CreateVirtualServiceCommand.js +21 -28
- package/dist-es/commands/DeleteGatewayRouteCommand.js +21 -28
- package/dist-es/commands/DeleteMeshCommand.js +21 -28
- package/dist-es/commands/DeleteRouteCommand.js +21 -28
- package/dist-es/commands/DeleteVirtualGatewayCommand.js +21 -28
- package/dist-es/commands/DeleteVirtualNodeCommand.js +21 -28
- package/dist-es/commands/DeleteVirtualRouterCommand.js +21 -28
- package/dist-es/commands/DeleteVirtualServiceCommand.js +21 -28
- package/dist-es/commands/DescribeGatewayRouteCommand.js +21 -28
- package/dist-es/commands/DescribeMeshCommand.js +21 -28
- package/dist-es/commands/DescribeRouteCommand.js +21 -28
- package/dist-es/commands/DescribeVirtualGatewayCommand.js +21 -28
- package/dist-es/commands/DescribeVirtualNodeCommand.js +21 -28
- package/dist-es/commands/DescribeVirtualRouterCommand.js +21 -28
- package/dist-es/commands/DescribeVirtualServiceCommand.js +21 -28
- package/dist-es/commands/ListGatewayRoutesCommand.js +21 -28
- package/dist-es/commands/ListMeshesCommand.js +21 -28
- package/dist-es/commands/ListRoutesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListVirtualGatewaysCommand.js +21 -28
- package/dist-es/commands/ListVirtualNodesCommand.js +21 -28
- package/dist-es/commands/ListVirtualRoutersCommand.js +21 -28
- package/dist-es/commands/ListVirtualServicesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateGatewayRouteCommand.js +21 -28
- package/dist-es/commands/UpdateMeshCommand.js +21 -28
- package/dist-es/commands/UpdateRouteCommand.js +21 -28
- package/dist-es/commands/UpdateVirtualGatewayCommand.js +21 -28
- package/dist-es/commands/UpdateVirtualNodeCommand.js +21 -28
- package/dist-es/commands/UpdateVirtualRouterCommand.js +21 -28
- package/dist-es/commands/UpdateVirtualServiceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AppMeshServiceException.js +5 -10
- package/dist-es/models/models_0.js +832 -393
- package/dist-es/pagination/ListGatewayRoutesPaginator.js +25 -68
- package/dist-es/pagination/ListMeshesPaginator.js +25 -68
- package/dist-es/pagination/ListRoutesPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/ListVirtualGatewaysPaginator.js +25 -68
- package/dist-es/pagination/ListVirtualNodesPaginator.js +25 -68
- package/dist-es/pagination/ListVirtualRoutersPaginator.js +25 -68
- package/dist-es/pagination/ListVirtualServicesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3964 -4893
- 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-app-mesh
|
|
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
|
|
|
@@ -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) => {
|