@aws-sdk/client-wellarchitected 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 +46 -40
- package/dist-es/WellArchitected.js +162 -169
- package/dist-es/WellArchitectedClient.js +22 -28
- package/dist-es/commands/AssociateLensesCommand.js +22 -29
- package/dist-es/commands/CreateLensShareCommand.js +21 -28
- package/dist-es/commands/CreateLensVersionCommand.js +21 -28
- package/dist-es/commands/CreateMilestoneCommand.js +21 -28
- package/dist-es/commands/CreateWorkloadCommand.js +21 -28
- package/dist-es/commands/CreateWorkloadShareCommand.js +21 -28
- package/dist-es/commands/DeleteLensCommand.js +22 -29
- package/dist-es/commands/DeleteLensShareCommand.js +22 -29
- package/dist-es/commands/DeleteWorkloadCommand.js +22 -29
- package/dist-es/commands/DeleteWorkloadShareCommand.js +22 -29
- package/dist-es/commands/DisassociateLensesCommand.js +22 -29
- package/dist-es/commands/ExportLensCommand.js +21 -28
- package/dist-es/commands/GetAnswerCommand.js +21 -28
- package/dist-es/commands/GetLensCommand.js +21 -28
- package/dist-es/commands/GetLensReviewCommand.js +21 -28
- package/dist-es/commands/GetLensReviewReportCommand.js +21 -28
- package/dist-es/commands/GetLensVersionDifferenceCommand.js +21 -28
- package/dist-es/commands/GetMilestoneCommand.js +21 -28
- package/dist-es/commands/GetWorkloadCommand.js +21 -28
- package/dist-es/commands/ImportLensCommand.js +21 -28
- package/dist-es/commands/ListAnswersCommand.js +21 -28
- package/dist-es/commands/ListLensReviewImprovementsCommand.js +21 -28
- package/dist-es/commands/ListLensReviewsCommand.js +21 -28
- package/dist-es/commands/ListLensSharesCommand.js +21 -28
- package/dist-es/commands/ListLensesCommand.js +21 -28
- package/dist-es/commands/ListMilestonesCommand.js +21 -28
- package/dist-es/commands/ListNotificationsCommand.js +21 -28
- package/dist-es/commands/ListShareInvitationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWorkloadSharesCommand.js +21 -28
- package/dist-es/commands/ListWorkloadsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAnswerCommand.js +21 -28
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +22 -29
- package/dist-es/commands/UpdateLensReviewCommand.js +21 -28
- package/dist-es/commands/UpdateShareInvitationCommand.js +21 -28
- package/dist-es/commands/UpdateWorkloadCommand.js +21 -28
- package/dist-es/commands/UpdateWorkloadShareCommand.js +21 -28
- package/dist-es/commands/UpgradeLensReviewCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WellArchitectedServiceException.js +5 -10
- package/dist-es/models/models_0.js +405 -200
- package/dist-es/pagination/ListAnswersPaginator.js +25 -68
- package/dist-es/pagination/ListLensReviewImprovementsPaginator.js +25 -68
- package/dist-es/pagination/ListLensReviewsPaginator.js +25 -68
- package/dist-es/pagination/ListLensSharesPaginator.js +25 -68
- package/dist-es/pagination/ListLensesPaginator.js +25 -68
- package/dist-es/pagination/ListMilestonesPaginator.js +25 -68
- package/dist-es/pagination/ListNotificationsPaginator.js +25 -68
- package/dist-es/pagination/ListShareInvitationsPaginator.js +25 -68
- package/dist-es/pagination/ListWorkloadSharesPaginator.js +25 -68
- package/dist-es/pagination/ListWorkloadsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3150 -4378
- 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-wellarchitected
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-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) => {
|