@aws-sdk/client-wellarchitected 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 +46 -40
- package/dist-es/protocols/Aws_restJson1.js +53 -40
- 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
|
**Note:** Version bump only for package @aws-sdk/client-wellarchitected
|
|
@@ -985,7 +985,7 @@ exports.deserializeAws_restJson1AssociateLensesCommand = deserializeAws_restJson
|
|
|
985
985
|
const deserializeAws_restJson1AssociateLensesCommandError = async (output, context) => {
|
|
986
986
|
const parsedOutput = {
|
|
987
987
|
...output,
|
|
988
|
-
body: await
|
|
988
|
+
body: await parseErrorBody(output.body, context),
|
|
989
989
|
};
|
|
990
990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
991
991
|
switch (errorCode) {
|
|
@@ -1034,7 +1034,7 @@ exports.deserializeAws_restJson1CreateLensShareCommand = deserializeAws_restJson
|
|
|
1034
1034
|
const deserializeAws_restJson1CreateLensShareCommandError = async (output, context) => {
|
|
1035
1035
|
const parsedOutput = {
|
|
1036
1036
|
...output,
|
|
1037
|
-
body: await
|
|
1037
|
+
body: await parseErrorBody(output.body, context),
|
|
1038
1038
|
};
|
|
1039
1039
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
1040
|
switch (errorCode) {
|
|
@@ -1089,7 +1089,7 @@ exports.deserializeAws_restJson1CreateLensVersionCommand = deserializeAws_restJs
|
|
|
1089
1089
|
const deserializeAws_restJson1CreateLensVersionCommandError = async (output, context) => {
|
|
1090
1090
|
const parsedOutput = {
|
|
1091
1091
|
...output,
|
|
1092
|
-
body: await
|
|
1092
|
+
body: await parseErrorBody(output.body, context),
|
|
1093
1093
|
};
|
|
1094
1094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
1095
|
switch (errorCode) {
|
|
@@ -1144,7 +1144,7 @@ exports.deserializeAws_restJson1CreateMilestoneCommand = deserializeAws_restJson
|
|
|
1144
1144
|
const deserializeAws_restJson1CreateMilestoneCommandError = async (output, context) => {
|
|
1145
1145
|
const parsedOutput = {
|
|
1146
1146
|
...output,
|
|
1147
|
-
body: await
|
|
1147
|
+
body: await parseErrorBody(output.body, context),
|
|
1148
1148
|
};
|
|
1149
1149
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
1150
|
switch (errorCode) {
|
|
@@ -1199,7 +1199,7 @@ exports.deserializeAws_restJson1CreateWorkloadCommand = deserializeAws_restJson1
|
|
|
1199
1199
|
const deserializeAws_restJson1CreateWorkloadCommandError = async (output, context) => {
|
|
1200
1200
|
const parsedOutput = {
|
|
1201
1201
|
...output,
|
|
1202
|
-
body: await
|
|
1202
|
+
body: await parseErrorBody(output.body, context),
|
|
1203
1203
|
};
|
|
1204
1204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
1205
|
switch (errorCode) {
|
|
@@ -1251,7 +1251,7 @@ exports.deserializeAws_restJson1CreateWorkloadShareCommand = deserializeAws_rest
|
|
|
1251
1251
|
const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, context) => {
|
|
1252
1252
|
const parsedOutput = {
|
|
1253
1253
|
...output,
|
|
1254
|
-
body: await
|
|
1254
|
+
body: await parseErrorBody(output.body, context),
|
|
1255
1255
|
};
|
|
1256
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
1257
|
switch (errorCode) {
|
|
@@ -1300,7 +1300,7 @@ exports.deserializeAws_restJson1DeleteLensCommand = deserializeAws_restJson1Dele
|
|
|
1300
1300
|
const deserializeAws_restJson1DeleteLensCommandError = async (output, context) => {
|
|
1301
1301
|
const parsedOutput = {
|
|
1302
1302
|
...output,
|
|
1303
|
-
body: await
|
|
1303
|
+
body: await parseErrorBody(output.body, context),
|
|
1304
1304
|
};
|
|
1305
1305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
1306
|
switch (errorCode) {
|
|
@@ -1346,7 +1346,7 @@ exports.deserializeAws_restJson1DeleteLensShareCommand = deserializeAws_restJson
|
|
|
1346
1346
|
const deserializeAws_restJson1DeleteLensShareCommandError = async (output, context) => {
|
|
1347
1347
|
const parsedOutput = {
|
|
1348
1348
|
...output,
|
|
1349
|
-
body: await
|
|
1349
|
+
body: await parseErrorBody(output.body, context),
|
|
1350
1350
|
};
|
|
1351
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1352
|
switch (errorCode) {
|
|
@@ -1392,7 +1392,7 @@ exports.deserializeAws_restJson1DeleteWorkloadCommand = deserializeAws_restJson1
|
|
|
1392
1392
|
const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, context) => {
|
|
1393
1393
|
const parsedOutput = {
|
|
1394
1394
|
...output,
|
|
1395
|
-
body: await
|
|
1395
|
+
body: await parseErrorBody(output.body, context),
|
|
1396
1396
|
};
|
|
1397
1397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
1398
|
switch (errorCode) {
|
|
@@ -1438,7 +1438,7 @@ exports.deserializeAws_restJson1DeleteWorkloadShareCommand = deserializeAws_rest
|
|
|
1438
1438
|
const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, context) => {
|
|
1439
1439
|
const parsedOutput = {
|
|
1440
1440
|
...output,
|
|
1441
|
-
body: await
|
|
1441
|
+
body: await parseErrorBody(output.body, context),
|
|
1442
1442
|
};
|
|
1443
1443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
1444
|
switch (errorCode) {
|
|
@@ -1484,7 +1484,7 @@ exports.deserializeAws_restJson1DisassociateLensesCommand = deserializeAws_restJ
|
|
|
1484
1484
|
const deserializeAws_restJson1DisassociateLensesCommandError = async (output, context) => {
|
|
1485
1485
|
const parsedOutput = {
|
|
1486
1486
|
...output,
|
|
1487
|
-
body: await
|
|
1487
|
+
body: await parseErrorBody(output.body, context),
|
|
1488
1488
|
};
|
|
1489
1489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
1490
|
switch (errorCode) {
|
|
@@ -1533,7 +1533,7 @@ exports.deserializeAws_restJson1ExportLensCommand = deserializeAws_restJson1Expo
|
|
|
1533
1533
|
const deserializeAws_restJson1ExportLensCommandError = async (output, context) => {
|
|
1534
1534
|
const parsedOutput = {
|
|
1535
1535
|
...output,
|
|
1536
|
-
body: await
|
|
1536
|
+
body: await parseErrorBody(output.body, context),
|
|
1537
1537
|
};
|
|
1538
1538
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1539
|
switch (errorCode) {
|
|
@@ -1591,7 +1591,7 @@ exports.deserializeAws_restJson1GetAnswerCommand = deserializeAws_restJson1GetAn
|
|
|
1591
1591
|
const deserializeAws_restJson1GetAnswerCommandError = async (output, context) => {
|
|
1592
1592
|
const parsedOutput = {
|
|
1593
1593
|
...output,
|
|
1594
|
-
body: await
|
|
1594
|
+
body: await parseErrorBody(output.body, context),
|
|
1595
1595
|
};
|
|
1596
1596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
1597
|
switch (errorCode) {
|
|
@@ -1637,7 +1637,7 @@ exports.deserializeAws_restJson1GetLensCommand = deserializeAws_restJson1GetLens
|
|
|
1637
1637
|
const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
1638
1638
|
const parsedOutput = {
|
|
1639
1639
|
...output,
|
|
1640
|
-
body: await
|
|
1640
|
+
body: await parseErrorBody(output.body, context),
|
|
1641
1641
|
};
|
|
1642
1642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1643
|
switch (errorCode) {
|
|
@@ -1689,7 +1689,7 @@ exports.deserializeAws_restJson1GetLensReviewCommand = deserializeAws_restJson1G
|
|
|
1689
1689
|
const deserializeAws_restJson1GetLensReviewCommandError = async (output, context) => {
|
|
1690
1690
|
const parsedOutput = {
|
|
1691
1691
|
...output,
|
|
1692
|
-
body: await
|
|
1692
|
+
body: await parseErrorBody(output.body, context),
|
|
1693
1693
|
};
|
|
1694
1694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
1695
|
switch (errorCode) {
|
|
@@ -1741,7 +1741,7 @@ exports.deserializeAws_restJson1GetLensReviewReportCommand = deserializeAws_rest
|
|
|
1741
1741
|
const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, context) => {
|
|
1742
1742
|
const parsedOutput = {
|
|
1743
1743
|
...output,
|
|
1744
|
-
body: await
|
|
1744
|
+
body: await parseErrorBody(output.body, context),
|
|
1745
1745
|
};
|
|
1746
1746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
1747
|
switch (errorCode) {
|
|
@@ -1802,7 +1802,7 @@ exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = deserializeAws
|
|
|
1802
1802
|
const deserializeAws_restJson1GetLensVersionDifferenceCommandError = 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) {
|
|
@@ -1851,7 +1851,7 @@ exports.deserializeAws_restJson1GetMilestoneCommand = deserializeAws_restJson1Ge
|
|
|
1851
1851
|
const deserializeAws_restJson1GetMilestoneCommandError = async (output, context) => {
|
|
1852
1852
|
const parsedOutput = {
|
|
1853
1853
|
...output,
|
|
1854
|
-
body: await
|
|
1854
|
+
body: await parseErrorBody(output.body, context),
|
|
1855
1855
|
};
|
|
1856
1856
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
1857
|
switch (errorCode) {
|
|
@@ -1897,7 +1897,7 @@ exports.deserializeAws_restJson1GetWorkloadCommand = deserializeAws_restJson1Get
|
|
|
1897
1897
|
const deserializeAws_restJson1GetWorkloadCommandError = async (output, context) => {
|
|
1898
1898
|
const parsedOutput = {
|
|
1899
1899
|
...output,
|
|
1900
|
-
body: await
|
|
1900
|
+
body: await parseErrorBody(output.body, context),
|
|
1901
1901
|
};
|
|
1902
1902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1903
|
switch (errorCode) {
|
|
@@ -1946,7 +1946,7 @@ exports.deserializeAws_restJson1ImportLensCommand = deserializeAws_restJson1Impo
|
|
|
1946
1946
|
const deserializeAws_restJson1ImportLensCommandError = async (output, context) => {
|
|
1947
1947
|
const parsedOutput = {
|
|
1948
1948
|
...output,
|
|
1949
|
-
body: await
|
|
1949
|
+
body: await parseErrorBody(output.body, context),
|
|
1950
1950
|
};
|
|
1951
1951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
1952
|
switch (errorCode) {
|
|
@@ -2013,7 +2013,7 @@ exports.deserializeAws_restJson1ListAnswersCommand = deserializeAws_restJson1Lis
|
|
|
2013
2013
|
const deserializeAws_restJson1ListAnswersCommandError = async (output, context) => {
|
|
2014
2014
|
const parsedOutput = {
|
|
2015
2015
|
...output,
|
|
2016
|
-
body: await
|
|
2016
|
+
body: await parseErrorBody(output.body, context),
|
|
2017
2017
|
};
|
|
2018
2018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
2019
|
switch (errorCode) {
|
|
@@ -2062,7 +2062,7 @@ exports.deserializeAws_restJson1ListLensesCommand = deserializeAws_restJson1List
|
|
|
2062
2062
|
const deserializeAws_restJson1ListLensesCommandError = async (output, context) => {
|
|
2063
2063
|
const parsedOutput = {
|
|
2064
2064
|
...output,
|
|
2065
|
-
body: await
|
|
2065
|
+
body: await parseErrorBody(output.body, context),
|
|
2066
2066
|
};
|
|
2067
2067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
2068
|
switch (errorCode) {
|
|
@@ -2120,7 +2120,7 @@ exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = deserializeA
|
|
|
2120
2120
|
const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (output, context) => {
|
|
2121
2121
|
const parsedOutput = {
|
|
2122
2122
|
...output,
|
|
2123
|
-
body: await
|
|
2123
|
+
body: await parseErrorBody(output.body, context),
|
|
2124
2124
|
};
|
|
2125
2125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2126
|
switch (errorCode) {
|
|
@@ -2175,7 +2175,7 @@ exports.deserializeAws_restJson1ListLensReviewsCommand = deserializeAws_restJson
|
|
|
2175
2175
|
const deserializeAws_restJson1ListLensReviewsCommandError = async (output, context) => {
|
|
2176
2176
|
const parsedOutput = {
|
|
2177
2177
|
...output,
|
|
2178
|
-
body: await
|
|
2178
|
+
body: await parseErrorBody(output.body, context),
|
|
2179
2179
|
};
|
|
2180
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2181
|
switch (errorCode) {
|
|
@@ -2224,7 +2224,7 @@ exports.deserializeAws_restJson1ListLensSharesCommand = deserializeAws_restJson1
|
|
|
2224
2224
|
const deserializeAws_restJson1ListLensSharesCommandError = async (output, context) => {
|
|
2225
2225
|
const parsedOutput = {
|
|
2226
2226
|
...output,
|
|
2227
|
-
body: await
|
|
2227
|
+
body: await parseErrorBody(output.body, context),
|
|
2228
2228
|
};
|
|
2229
2229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
2230
|
switch (errorCode) {
|
|
@@ -2276,7 +2276,7 @@ exports.deserializeAws_restJson1ListMilestonesCommand = deserializeAws_restJson1
|
|
|
2276
2276
|
const deserializeAws_restJson1ListMilestonesCommandError = async (output, context) => {
|
|
2277
2277
|
const parsedOutput = {
|
|
2278
2278
|
...output,
|
|
2279
|
-
body: await
|
|
2279
|
+
body: await parseErrorBody(output.body, context),
|
|
2280
2280
|
};
|
|
2281
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2282
|
switch (errorCode) {
|
|
@@ -2325,7 +2325,7 @@ exports.deserializeAws_restJson1ListNotificationsCommand = deserializeAws_restJs
|
|
|
2325
2325
|
const deserializeAws_restJson1ListNotificationsCommandError = async (output, context) => {
|
|
2326
2326
|
const parsedOutput = {
|
|
2327
2327
|
...output,
|
|
2328
|
-
body: await
|
|
2328
|
+
body: await parseErrorBody(output.body, context),
|
|
2329
2329
|
};
|
|
2330
2330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2331
2331
|
switch (errorCode) {
|
|
@@ -2371,7 +2371,7 @@ exports.deserializeAws_restJson1ListShareInvitationsCommand = deserializeAws_res
|
|
|
2371
2371
|
const deserializeAws_restJson1ListShareInvitationsCommandError = async (output, context) => {
|
|
2372
2372
|
const parsedOutput = {
|
|
2373
2373
|
...output,
|
|
2374
|
-
body: await
|
|
2374
|
+
body: await parseErrorBody(output.body, context),
|
|
2375
2375
|
};
|
|
2376
2376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2377
2377
|
switch (errorCode) {
|
|
@@ -2414,7 +2414,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2414
2414
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2415
2415
|
const parsedOutput = {
|
|
2416
2416
|
...output,
|
|
2417
|
-
body: await
|
|
2417
|
+
body: await parseErrorBody(output.body, context),
|
|
2418
2418
|
};
|
|
2419
2419
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2420
2420
|
switch (errorCode) {
|
|
@@ -2454,7 +2454,7 @@ exports.deserializeAws_restJson1ListWorkloadsCommand = deserializeAws_restJson1L
|
|
|
2454
2454
|
const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context) => {
|
|
2455
2455
|
const parsedOutput = {
|
|
2456
2456
|
...output,
|
|
2457
|
-
body: await
|
|
2457
|
+
body: await parseErrorBody(output.body, context),
|
|
2458
2458
|
};
|
|
2459
2459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
2460
|
switch (errorCode) {
|
|
@@ -2503,7 +2503,7 @@ exports.deserializeAws_restJson1ListWorkloadSharesCommand = deserializeAws_restJ
|
|
|
2503
2503
|
const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, context) => {
|
|
2504
2504
|
const parsedOutput = {
|
|
2505
2505
|
...output,
|
|
2506
|
-
body: await
|
|
2506
|
+
body: await parseErrorBody(output.body, context),
|
|
2507
2507
|
};
|
|
2508
2508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2509
2509
|
switch (errorCode) {
|
|
@@ -2546,7 +2546,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2546
2546
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2547
2547
|
const parsedOutput = {
|
|
2548
2548
|
...output,
|
|
2549
|
-
body: await
|
|
2549
|
+
body: await parseErrorBody(output.body, context),
|
|
2550
2550
|
};
|
|
2551
2551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
2552
|
switch (errorCode) {
|
|
@@ -2580,7 +2580,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2580
2580
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2581
2581
|
const parsedOutput = {
|
|
2582
2582
|
...output,
|
|
2583
|
-
body: await
|
|
2583
|
+
body: await parseErrorBody(output.body, context),
|
|
2584
2584
|
};
|
|
2585
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
2586
|
switch (errorCode) {
|
|
@@ -2626,7 +2626,7 @@ exports.deserializeAws_restJson1UpdateAnswerCommand = deserializeAws_restJson1Up
|
|
|
2626
2626
|
const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context) => {
|
|
2627
2627
|
const parsedOutput = {
|
|
2628
2628
|
...output,
|
|
2629
|
-
body: await
|
|
2629
|
+
body: await parseErrorBody(output.body, context),
|
|
2630
2630
|
};
|
|
2631
2631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
2632
|
switch (errorCode) {
|
|
@@ -2672,7 +2672,7 @@ exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = deserializeAws_res
|
|
|
2672
2672
|
const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
2673
2673
|
const parsedOutput = {
|
|
2674
2674
|
...output,
|
|
2675
|
-
body: await
|
|
2675
|
+
body: await parseErrorBody(output.body, context),
|
|
2676
2676
|
};
|
|
2677
2677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2678
2678
|
switch (errorCode) {
|
|
@@ -2721,7 +2721,7 @@ exports.deserializeAws_restJson1UpdateLensReviewCommand = deserializeAws_restJso
|
|
|
2721
2721
|
const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, context) => {
|
|
2722
2722
|
const parsedOutput = {
|
|
2723
2723
|
...output,
|
|
2724
|
-
body: await
|
|
2724
|
+
body: await parseErrorBody(output.body, context),
|
|
2725
2725
|
};
|
|
2726
2726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2727
2727
|
switch (errorCode) {
|
|
@@ -2770,7 +2770,7 @@ exports.deserializeAws_restJson1UpdateShareInvitationCommand = deserializeAws_re
|
|
|
2770
2770
|
const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output, context) => {
|
|
2771
2771
|
const parsedOutput = {
|
|
2772
2772
|
...output,
|
|
2773
|
-
body: await
|
|
2773
|
+
body: await parseErrorBody(output.body, context),
|
|
2774
2774
|
};
|
|
2775
2775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
2776
|
switch (errorCode) {
|
|
@@ -2819,7 +2819,7 @@ exports.deserializeAws_restJson1UpdateWorkloadCommand = deserializeAws_restJson1
|
|
|
2819
2819
|
const deserializeAws_restJson1UpdateWorkloadCommandError = 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) {
|
|
@@ -2871,7 +2871,7 @@ exports.deserializeAws_restJson1UpdateWorkloadShareCommand = deserializeAws_rest
|
|
|
2871
2871
|
const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, context) => {
|
|
2872
2872
|
const parsedOutput = {
|
|
2873
2873
|
...output,
|
|
2874
|
-
body: await
|
|
2874
|
+
body: await parseErrorBody(output.body, context),
|
|
2875
2875
|
};
|
|
2876
2876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
2877
|
switch (errorCode) {
|
|
@@ -2917,7 +2917,7 @@ exports.deserializeAws_restJson1UpgradeLensReviewCommand = deserializeAws_restJs
|
|
|
2917
2917
|
const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, context) => {
|
|
2918
2918
|
const parsedOutput = {
|
|
2919
2919
|
...output,
|
|
2920
|
-
body: await
|
|
2920
|
+
body: await parseErrorBody(output.body, context),
|
|
2921
2921
|
};
|
|
2922
2922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
2923
|
switch (errorCode) {
|
|
@@ -3821,6 +3821,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3821
3821
|
}
|
|
3822
3822
|
return {};
|
|
3823
3823
|
});
|
|
3824
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3825
|
+
var _a;
|
|
3826
|
+
const value = await parseBody(errorBody, context);
|
|
3827
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3828
|
+
return value;
|
|
3829
|
+
};
|
|
3824
3830
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3825
3831
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3826
3832
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1109,7 +1109,7 @@ var deserializeAws_restJson1AssociateLensesCommandError = function (output, cont
|
|
|
1109
1109
|
case 0:
|
|
1110
1110
|
_a = [__assign({}, output)];
|
|
1111
1111
|
_c = {};
|
|
1112
|
-
return [4,
|
|
1112
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1113
1113
|
case 1:
|
|
1114
1114
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1115
1115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1185,7 +1185,7 @@ var deserializeAws_restJson1CreateLensShareCommandError = function (output, cont
|
|
|
1185
1185
|
case 0:
|
|
1186
1186
|
_a = [__assign({}, output)];
|
|
1187
1187
|
_c = {};
|
|
1188
|
-
return [4,
|
|
1188
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1189
1189
|
case 1:
|
|
1190
1190
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1191
1191
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1268,7 +1268,7 @@ var deserializeAws_restJson1CreateLensVersionCommandError = function (output, co
|
|
|
1268
1268
|
case 0:
|
|
1269
1269
|
_a = [__assign({}, output)];
|
|
1270
1270
|
_c = {};
|
|
1271
|
-
return [4,
|
|
1271
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1272
1272
|
case 1:
|
|
1273
1273
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1274
1274
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1351,7 +1351,7 @@ var deserializeAws_restJson1CreateMilestoneCommandError = function (output, cont
|
|
|
1351
1351
|
case 0:
|
|
1352
1352
|
_a = [__assign({}, output)];
|
|
1353
1353
|
_c = {};
|
|
1354
|
-
return [4,
|
|
1354
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1355
1355
|
case 1:
|
|
1356
1356
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1357
1357
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1434,7 +1434,7 @@ var deserializeAws_restJson1CreateWorkloadCommandError = function (output, conte
|
|
|
1434
1434
|
case 0:
|
|
1435
1435
|
_a = [__assign({}, output)];
|
|
1436
1436
|
_c = {};
|
|
1437
|
-
return [4,
|
|
1437
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1438
1438
|
case 1:
|
|
1439
1439
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1440
1440
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1513,7 +1513,7 @@ var deserializeAws_restJson1CreateWorkloadShareCommandError = function (output,
|
|
|
1513
1513
|
case 0:
|
|
1514
1514
|
_a = [__assign({}, output)];
|
|
1515
1515
|
_c = {};
|
|
1516
|
-
return [4,
|
|
1516
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1517
1517
|
case 1:
|
|
1518
1518
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1519
1519
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1588,7 +1588,7 @@ var deserializeAws_restJson1DeleteLensCommandError = function (output, context)
|
|
|
1588
1588
|
case 0:
|
|
1589
1589
|
_a = [__assign({}, output)];
|
|
1590
1590
|
_c = {};
|
|
1591
|
-
return [4,
|
|
1591
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1592
1592
|
case 1:
|
|
1593
1593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1594
1594
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1659,7 +1659,7 @@ var deserializeAws_restJson1DeleteLensShareCommandError = function (output, cont
|
|
|
1659
1659
|
case 0:
|
|
1660
1660
|
_a = [__assign({}, output)];
|
|
1661
1661
|
_c = {};
|
|
1662
|
-
return [4,
|
|
1662
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1663
1663
|
case 1:
|
|
1664
1664
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1665
1665
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1730,7 +1730,7 @@ var deserializeAws_restJson1DeleteWorkloadCommandError = function (output, conte
|
|
|
1730
1730
|
case 0:
|
|
1731
1731
|
_a = [__assign({}, output)];
|
|
1732
1732
|
_c = {};
|
|
1733
|
-
return [4,
|
|
1733
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1734
1734
|
case 1:
|
|
1735
1735
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1736
1736
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1801,7 +1801,7 @@ var deserializeAws_restJson1DeleteWorkloadShareCommandError = function (output,
|
|
|
1801
1801
|
case 0:
|
|
1802
1802
|
_a = [__assign({}, output)];
|
|
1803
1803
|
_c = {};
|
|
1804
|
-
return [4,
|
|
1804
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1805
1805
|
case 1:
|
|
1806
1806
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1807
1807
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1872,7 +1872,7 @@ var deserializeAws_restJson1DisassociateLensesCommandError = function (output, c
|
|
|
1872
1872
|
case 0:
|
|
1873
1873
|
_a = [__assign({}, output)];
|
|
1874
1874
|
_c = {};
|
|
1875
|
-
return [4,
|
|
1875
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1876
1876
|
case 1:
|
|
1877
1877
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1878
1878
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1948,7 +1948,7 @@ var deserializeAws_restJson1ExportLensCommandError = function (output, context)
|
|
|
1948
1948
|
case 0:
|
|
1949
1949
|
_a = [__assign({}, output)];
|
|
1950
1950
|
_c = {};
|
|
1951
|
-
return [4,
|
|
1951
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1952
1952
|
case 1:
|
|
1953
1953
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1954
1954
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2032,7 +2032,7 @@ var deserializeAws_restJson1GetAnswerCommandError = function (output, context) {
|
|
|
2032
2032
|
case 0:
|
|
2033
2033
|
_a = [__assign({}, output)];
|
|
2034
2034
|
_c = {};
|
|
2035
|
-
return [4,
|
|
2035
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2036
2036
|
case 1:
|
|
2037
2037
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2038
2038
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2104,7 +2104,7 @@ var deserializeAws_restJson1GetLensCommandError = function (output, context) { r
|
|
|
2104
2104
|
case 0:
|
|
2105
2105
|
_a = [__assign({}, output)];
|
|
2106
2106
|
_c = {};
|
|
2107
|
-
return [4,
|
|
2107
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2108
2108
|
case 1:
|
|
2109
2109
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2110
2110
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2182,7 +2182,7 @@ var deserializeAws_restJson1GetLensReviewCommandError = function (output, contex
|
|
|
2182
2182
|
case 0:
|
|
2183
2183
|
_a = [__assign({}, output)];
|
|
2184
2184
|
_c = {};
|
|
2185
|
-
return [4,
|
|
2185
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2186
2186
|
case 1:
|
|
2187
2187
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2188
2188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2260,7 +2260,7 @@ var deserializeAws_restJson1GetLensReviewReportCommandError = function (output,
|
|
|
2260
2260
|
case 0:
|
|
2261
2261
|
_a = [__assign({}, output)];
|
|
2262
2262
|
_c = {};
|
|
2263
|
-
return [4,
|
|
2263
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2264
2264
|
case 1:
|
|
2265
2265
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2266
2266
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2347,7 +2347,7 @@ var deserializeAws_restJson1GetLensVersionDifferenceCommandError = function (out
|
|
|
2347
2347
|
case 0:
|
|
2348
2348
|
_a = [__assign({}, output)];
|
|
2349
2349
|
_c = {};
|
|
2350
|
-
return [4,
|
|
2350
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2351
2351
|
case 1:
|
|
2352
2352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2353
2353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2422,7 +2422,7 @@ var deserializeAws_restJson1GetMilestoneCommandError = function (output, context
|
|
|
2422
2422
|
case 0:
|
|
2423
2423
|
_a = [__assign({}, output)];
|
|
2424
2424
|
_c = {};
|
|
2425
|
-
return [4,
|
|
2425
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2426
2426
|
case 1:
|
|
2427
2427
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2428
2428
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2494,7 +2494,7 @@ var deserializeAws_restJson1GetWorkloadCommandError = function (output, context)
|
|
|
2494
2494
|
case 0:
|
|
2495
2495
|
_a = [__assign({}, output)];
|
|
2496
2496
|
_c = {};
|
|
2497
|
-
return [4,
|
|
2497
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2498
2498
|
case 1:
|
|
2499
2499
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2500
2500
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2569,7 +2569,7 @@ var deserializeAws_restJson1ImportLensCommandError = function (output, context)
|
|
|
2569
2569
|
case 0:
|
|
2570
2570
|
_a = [__assign({}, output)];
|
|
2571
2571
|
_c = {};
|
|
2572
|
-
return [4,
|
|
2572
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2573
2573
|
case 1:
|
|
2574
2574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2575
2575
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2664,7 +2664,7 @@ var deserializeAws_restJson1ListAnswersCommandError = function (output, context)
|
|
|
2664
2664
|
case 0:
|
|
2665
2665
|
_a = [__assign({}, output)];
|
|
2666
2666
|
_c = {};
|
|
2667
|
-
return [4,
|
|
2667
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2668
2668
|
case 1:
|
|
2669
2669
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2670
2670
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2739,7 +2739,7 @@ var deserializeAws_restJson1ListLensesCommandError = function (output, context)
|
|
|
2739
2739
|
case 0:
|
|
2740
2740
|
_a = [__assign({}, output)];
|
|
2741
2741
|
_c = {};
|
|
2742
|
-
return [4,
|
|
2742
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2743
2743
|
case 1:
|
|
2744
2744
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2745
2745
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2822,7 +2822,7 @@ var deserializeAws_restJson1ListLensReviewImprovementsCommandError = function (o
|
|
|
2822
2822
|
case 0:
|
|
2823
2823
|
_a = [__assign({}, output)];
|
|
2824
2824
|
_c = {};
|
|
2825
|
-
return [4,
|
|
2825
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2826
2826
|
case 1:
|
|
2827
2827
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2828
2828
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2903,7 +2903,7 @@ var deserializeAws_restJson1ListLensReviewsCommandError = function (output, cont
|
|
|
2903
2903
|
case 0:
|
|
2904
2904
|
_a = [__assign({}, output)];
|
|
2905
2905
|
_c = {};
|
|
2906
|
-
return [4,
|
|
2906
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2907
2907
|
case 1:
|
|
2908
2908
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2909
2909
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2978,7 +2978,7 @@ var deserializeAws_restJson1ListLensSharesCommandError = function (output, conte
|
|
|
2978
2978
|
case 0:
|
|
2979
2979
|
_a = [__assign({}, output)];
|
|
2980
2980
|
_c = {};
|
|
2981
|
-
return [4,
|
|
2981
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2982
2982
|
case 1:
|
|
2983
2983
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2984
2984
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3056,7 +3056,7 @@ var deserializeAws_restJson1ListMilestonesCommandError = function (output, conte
|
|
|
3056
3056
|
case 0:
|
|
3057
3057
|
_a = [__assign({}, output)];
|
|
3058
3058
|
_c = {};
|
|
3059
|
-
return [4,
|
|
3059
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3060
3060
|
case 1:
|
|
3061
3061
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3062
3062
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3131,7 +3131,7 @@ var deserializeAws_restJson1ListNotificationsCommandError = function (output, co
|
|
|
3131
3131
|
case 0:
|
|
3132
3132
|
_a = [__assign({}, output)];
|
|
3133
3133
|
_c = {};
|
|
3134
|
-
return [4,
|
|
3134
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3135
3135
|
case 1:
|
|
3136
3136
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3137
3137
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3202,7 +3202,7 @@ var deserializeAws_restJson1ListShareInvitationsCommandError = function (output,
|
|
|
3202
3202
|
case 0:
|
|
3203
3203
|
_a = [__assign({}, output)];
|
|
3204
3204
|
_c = {};
|
|
3205
|
-
return [4,
|
|
3205
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3206
3206
|
case 1:
|
|
3207
3207
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3208
3208
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3270,7 +3270,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3270
3270
|
case 0:
|
|
3271
3271
|
_a = [__assign({}, output)];
|
|
3272
3272
|
_c = {};
|
|
3273
|
-
return [4,
|
|
3273
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3274
3274
|
case 1:
|
|
3275
3275
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3276
3276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3333,7 +3333,7 @@ var deserializeAws_restJson1ListWorkloadsCommandError = function (output, contex
|
|
|
3333
3333
|
case 0:
|
|
3334
3334
|
_a = [__assign({}, output)];
|
|
3335
3335
|
_c = {};
|
|
3336
|
-
return [4,
|
|
3336
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3337
3337
|
case 1:
|
|
3338
3338
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3339
3339
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3407,7 +3407,7 @@ var deserializeAws_restJson1ListWorkloadSharesCommandError = function (output, c
|
|
|
3407
3407
|
case 0:
|
|
3408
3408
|
_a = [__assign({}, output)];
|
|
3409
3409
|
_c = {};
|
|
3410
|
-
return [4,
|
|
3410
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3411
3411
|
case 1:
|
|
3412
3412
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3413
3413
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3474,7 +3474,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3474
3474
|
case 0:
|
|
3475
3475
|
_a = [__assign({}, output)];
|
|
3476
3476
|
_c = {};
|
|
3477
|
-
return [4,
|
|
3477
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3478
3478
|
case 1:
|
|
3479
3479
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3480
3480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3529,7 +3529,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3529
3529
|
case 0:
|
|
3530
3530
|
_a = [__assign({}, output)];
|
|
3531
3531
|
_c = {};
|
|
3532
|
-
return [4,
|
|
3532
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3533
3533
|
case 1:
|
|
3534
3534
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3535
3535
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3598,7 +3598,7 @@ var deserializeAws_restJson1UpdateAnswerCommandError = function (output, context
|
|
|
3598
3598
|
case 0:
|
|
3599
3599
|
_a = [__assign({}, output)];
|
|
3600
3600
|
_c = {};
|
|
3601
|
-
return [4,
|
|
3601
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3602
3602
|
case 1:
|
|
3603
3603
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3604
3604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3669,7 +3669,7 @@ var deserializeAws_restJson1UpdateGlobalSettingsCommandError = function (output,
|
|
|
3669
3669
|
case 0:
|
|
3670
3670
|
_a = [__assign({}, output)];
|
|
3671
3671
|
_c = {};
|
|
3672
|
-
return [4,
|
|
3672
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3673
3673
|
case 1:
|
|
3674
3674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3675
3675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3744,7 +3744,7 @@ var deserializeAws_restJson1UpdateLensReviewCommandError = function (output, con
|
|
|
3744
3744
|
case 0:
|
|
3745
3745
|
_a = [__assign({}, output)];
|
|
3746
3746
|
_c = {};
|
|
3747
|
-
return [4,
|
|
3747
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3748
3748
|
case 1:
|
|
3749
3749
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3750
3750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3820,7 +3820,7 @@ var deserializeAws_restJson1UpdateShareInvitationCommandError = function (output
|
|
|
3820
3820
|
case 0:
|
|
3821
3821
|
_a = [__assign({}, output)];
|
|
3822
3822
|
_c = {};
|
|
3823
|
-
return [4,
|
|
3823
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3824
3824
|
case 1:
|
|
3825
3825
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3826
3826
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3896,7 +3896,7 @@ var deserializeAws_restJson1UpdateWorkloadCommandError = function (output, conte
|
|
|
3896
3896
|
case 0:
|
|
3897
3897
|
_a = [__assign({}, output)];
|
|
3898
3898
|
_c = {};
|
|
3899
|
-
return [4,
|
|
3899
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3900
3900
|
case 1:
|
|
3901
3901
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3902
3902
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3975,7 +3975,7 @@ var deserializeAws_restJson1UpdateWorkloadShareCommandError = function (output,
|
|
|
3975
3975
|
case 0:
|
|
3976
3976
|
_a = [__assign({}, output)];
|
|
3977
3977
|
_c = {};
|
|
3978
|
-
return [4,
|
|
3978
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3979
3979
|
case 1:
|
|
3980
3980
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3981
3981
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4046,7 +4046,7 @@ var deserializeAws_restJson1UpgradeLensReviewCommandError = function (output, co
|
|
|
4046
4046
|
case 0:
|
|
4047
4047
|
_a = [__assign({}, output)];
|
|
4048
4048
|
_c = {};
|
|
4049
|
-
return [4,
|
|
4049
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4050
4050
|
case 1:
|
|
4051
4051
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4052
4052
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4961,6 +4961,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4961
4961
|
return {};
|
|
4962
4962
|
});
|
|
4963
4963
|
};
|
|
4964
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4965
|
+
var value;
|
|
4966
|
+
var _a;
|
|
4967
|
+
return __generator(this, function (_b) {
|
|
4968
|
+
switch (_b.label) {
|
|
4969
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4970
|
+
case 1:
|
|
4971
|
+
value = _b.sent();
|
|
4972
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4973
|
+
return [2, value];
|
|
4974
|
+
}
|
|
4975
|
+
});
|
|
4976
|
+
}); };
|
|
4964
4977
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4965
4978
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4966
4979
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wellarchitected",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wellarchitected 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",
|