@aws-sdk/client-wellarchitected 3.115.0 → 3.121.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 +28 -0
- package/dist-cjs/WellArchitected.js +15 -0
- package/dist-cjs/commands/UpdateGlobalSettingsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/protocols/Aws_restJson1.js +269 -159
- package/dist-es/WellArchitected.js +15 -0
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +290 -158
- package/dist-types/WellArchitected.d.ts +7 -0
- package/dist-types/WellArchitectedClient.d.ts +3 -2
- package/dist-types/commands/UpdateGlobalSettingsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +35 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +5 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateGlobalSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpgradeLensReviewCommand = exports.deserializeAws_restJson1UpdateWorkloadShareCommand = exports.deserializeAws_restJson1UpdateWorkloadCommand = exports.deserializeAws_restJson1UpdateShareInvitationCommand = exports.deserializeAws_restJson1UpdateLensReviewCommand = exports.deserializeAws_restJson1UpdateAnswerCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkloadSharesCommand = exports.deserializeAws_restJson1ListWorkloadsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListShareInvitationsCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListMilestonesCommand = exports.deserializeAws_restJson1ListLensSharesCommand = exports.deserializeAws_restJson1ListLensReviewsCommand = exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = exports.deserializeAws_restJson1ListLensesCommand = exports.deserializeAws_restJson1ListAnswersCommand = exports.deserializeAws_restJson1ImportLensCommand = exports.deserializeAws_restJson1GetWorkloadCommand = exports.deserializeAws_restJson1GetMilestoneCommand = exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = exports.deserializeAws_restJson1GetLensReviewReportCommand = exports.deserializeAws_restJson1GetLensReviewCommand = exports.deserializeAws_restJson1GetLensCommand = exports.deserializeAws_restJson1GetAnswerCommand = exports.deserializeAws_restJson1ExportLensCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1DeleteWorkloadShareCommand = exports.deserializeAws_restJson1DeleteWorkloadCommand = exports.deserializeAws_restJson1DeleteLensShareCommand = exports.deserializeAws_restJson1DeleteLensCommand = exports.deserializeAws_restJson1CreateWorkloadShareCommand = exports.deserializeAws_restJson1CreateWorkloadCommand = exports.deserializeAws_restJson1CreateMilestoneCommand = exports.deserializeAws_restJson1CreateLensVersionCommand = exports.deserializeAws_restJson1CreateLensShareCommand = exports.deserializeAws_restJson1AssociateLensesCommand = exports.serializeAws_restJson1UpgradeLensReviewCommand = exports.serializeAws_restJson1UpdateWorkloadShareCommand = exports.serializeAws_restJson1UpdateWorkloadCommand = exports.serializeAws_restJson1UpdateShareInvitationCommand = exports.serializeAws_restJson1UpdateLensReviewCommand = exports.serializeAws_restJson1UpdateGlobalSettingsCommand = exports.serializeAws_restJson1UpdateAnswerCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkloadSharesCommand = exports.serializeAws_restJson1ListWorkloadsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListShareInvitationsCommand = exports.serializeAws_restJson1ListNotificationsCommand = exports.serializeAws_restJson1ListMilestonesCommand = exports.serializeAws_restJson1ListLensSharesCommand = exports.serializeAws_restJson1ListLensReviewsCommand = exports.serializeAws_restJson1ListLensReviewImprovementsCommand = exports.serializeAws_restJson1ListLensesCommand = exports.serializeAws_restJson1ListAnswersCommand = exports.serializeAws_restJson1ImportLensCommand = exports.serializeAws_restJson1GetWorkloadCommand = exports.serializeAws_restJson1GetMilestoneCommand = exports.serializeAws_restJson1GetLensVersionDifferenceCommand = exports.serializeAws_restJson1GetLensReviewReportCommand = exports.serializeAws_restJson1GetLensReviewCommand = exports.serializeAws_restJson1GetLensCommand = exports.serializeAws_restJson1GetAnswerCommand = exports.serializeAws_restJson1ExportLensCommand = exports.serializeAws_restJson1DisassociateLensesCommand = exports.serializeAws_restJson1DeleteWorkloadShareCommand = exports.serializeAws_restJson1DeleteWorkloadCommand = exports.serializeAws_restJson1DeleteLensShareCommand = exports.serializeAws_restJson1DeleteLensCommand = exports.serializeAws_restJson1CreateWorkloadShareCommand = exports.serializeAws_restJson1CreateWorkloadCommand = exports.serializeAws_restJson1CreateMilestoneCommand = exports.serializeAws_restJson1CreateLensVersionCommand = exports.serializeAws_restJson1CreateLensShareCommand = exports.serializeAws_restJson1AssociateLensesCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpgradeLensReviewCommand = exports.deserializeAws_restJson1UpdateWorkloadShareCommand = exports.deserializeAws_restJson1UpdateWorkloadCommand = exports.deserializeAws_restJson1UpdateShareInvitationCommand = exports.deserializeAws_restJson1UpdateLensReviewCommand = exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = exports.deserializeAws_restJson1UpdateAnswerCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkloadSharesCommand = exports.deserializeAws_restJson1ListWorkloadsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListShareInvitationsCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListMilestonesCommand = exports.deserializeAws_restJson1ListLensSharesCommand = exports.deserializeAws_restJson1ListLensReviewsCommand = exports.deserializeAws_restJson1ListLensReviewImprovementsCommand = exports.deserializeAws_restJson1ListLensesCommand = exports.deserializeAws_restJson1ListAnswersCommand = exports.deserializeAws_restJson1ImportLensCommand = exports.deserializeAws_restJson1GetWorkloadCommand = exports.deserializeAws_restJson1GetMilestoneCommand = exports.deserializeAws_restJson1GetLensVersionDifferenceCommand = exports.deserializeAws_restJson1GetLensReviewReportCommand = exports.deserializeAws_restJson1GetLensReviewCommand = exports.deserializeAws_restJson1GetLensCommand = exports.deserializeAws_restJson1GetAnswerCommand = exports.deserializeAws_restJson1ExportLensCommand = exports.deserializeAws_restJson1DisassociateLensesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -869,6 +869,7 @@ const serializeAws_restJson1ListLensSharesCommand = async (input, context) => {
|
|
|
869
869
|
...(input.SharedWithPrefix !== undefined && { SharedWithPrefix: input.SharedWithPrefix }),
|
|
870
870
|
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
871
871
|
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
872
|
+
...(input.Status !== undefined && { Status: input.Status }),
|
|
872
873
|
};
|
|
873
874
|
let body;
|
|
874
875
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1031,6 +1032,7 @@ const serializeAws_restJson1ListWorkloadSharesCommand = async (input, context) =
|
|
|
1031
1032
|
...(input.SharedWithPrefix !== undefined && { SharedWithPrefix: input.SharedWithPrefix }),
|
|
1032
1033
|
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
1033
1034
|
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
1035
|
+
...(input.Status !== undefined && { Status: input.Status }),
|
|
1034
1036
|
};
|
|
1035
1037
|
let body;
|
|
1036
1038
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1168,6 +1170,28 @@ const serializeAws_restJson1UpdateAnswerCommand = async (input, context) => {
|
|
|
1168
1170
|
});
|
|
1169
1171
|
};
|
|
1170
1172
|
exports.serializeAws_restJson1UpdateAnswerCommand = serializeAws_restJson1UpdateAnswerCommand;
|
|
1173
|
+
const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context) => {
|
|
1174
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1175
|
+
const headers = {
|
|
1176
|
+
"content-type": "application/json",
|
|
1177
|
+
};
|
|
1178
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
|
|
1179
|
+
let body;
|
|
1180
|
+
body = JSON.stringify({
|
|
1181
|
+
...(input.OrganizationSharingStatus !== undefined &&
|
|
1182
|
+
input.OrganizationSharingStatus !== null && { OrganizationSharingStatus: input.OrganizationSharingStatus }),
|
|
1183
|
+
});
|
|
1184
|
+
return new protocol_http_1.HttpRequest({
|
|
1185
|
+
protocol,
|
|
1186
|
+
hostname,
|
|
1187
|
+
port,
|
|
1188
|
+
method: "PATCH",
|
|
1189
|
+
headers,
|
|
1190
|
+
path: resolvedPath,
|
|
1191
|
+
body,
|
|
1192
|
+
});
|
|
1193
|
+
};
|
|
1194
|
+
exports.serializeAws_restJson1UpdateGlobalSettingsCommand = serializeAws_restJson1UpdateGlobalSettingsCommand;
|
|
1171
1195
|
const serializeAws_restJson1UpdateLensReviewCommand = async (input, context) => {
|
|
1172
1196
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1173
1197
|
const headers = {
|
|
@@ -1404,8 +1428,7 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1404
1428
|
body: await parseBody(output.body, context),
|
|
1405
1429
|
};
|
|
1406
1430
|
let response;
|
|
1407
|
-
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1432
|
switch (errorCode) {
|
|
1410
1433
|
case "AccessDeniedException":
|
|
1411
1434
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1427,10 +1450,12 @@ const deserializeAws_restJson1AssociateLensesCommandError = async (output, conte
|
|
|
1427
1450
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1428
1451
|
default:
|
|
1429
1452
|
const parsedBody = parsedOutput.body;
|
|
1453
|
+
const $metadata = deserializeMetadata(output);
|
|
1454
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1430
1455
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1456
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1432
1457
|
$fault: "client",
|
|
1433
|
-
$metadata
|
|
1458
|
+
$metadata,
|
|
1434
1459
|
});
|
|
1435
1460
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1436
1461
|
}
|
|
@@ -1456,8 +1481,7 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1456
1481
|
body: await parseBody(output.body, context),
|
|
1457
1482
|
};
|
|
1458
1483
|
let response;
|
|
1459
|
-
|
|
1460
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1461
1485
|
switch (errorCode) {
|
|
1462
1486
|
case "AccessDeniedException":
|
|
1463
1487
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1482,10 +1506,12 @@ const deserializeAws_restJson1CreateLensShareCommandError = async (output, conte
|
|
|
1482
1506
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1483
1507
|
default:
|
|
1484
1508
|
const parsedBody = parsedOutput.body;
|
|
1509
|
+
const $metadata = deserializeMetadata(output);
|
|
1510
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1485
1511
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1486
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1512
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1487
1513
|
$fault: "client",
|
|
1488
|
-
$metadata
|
|
1514
|
+
$metadata,
|
|
1489
1515
|
});
|
|
1490
1516
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1491
1517
|
}
|
|
@@ -1515,8 +1541,7 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1515
1541
|
body: await parseBody(output.body, context),
|
|
1516
1542
|
};
|
|
1517
1543
|
let response;
|
|
1518
|
-
|
|
1519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1545
|
switch (errorCode) {
|
|
1521
1546
|
case "AccessDeniedException":
|
|
1522
1547
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1541,10 +1566,12 @@ const deserializeAws_restJson1CreateLensVersionCommandError = async (output, con
|
|
|
1541
1566
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1542
1567
|
default:
|
|
1543
1568
|
const parsedBody = parsedOutput.body;
|
|
1569
|
+
const $metadata = deserializeMetadata(output);
|
|
1570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1544
1571
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1546
1573
|
$fault: "client",
|
|
1547
|
-
$metadata
|
|
1574
|
+
$metadata,
|
|
1548
1575
|
});
|
|
1549
1576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1550
1577
|
}
|
|
@@ -1574,8 +1601,7 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1574
1601
|
body: await parseBody(output.body, context),
|
|
1575
1602
|
};
|
|
1576
1603
|
let response;
|
|
1577
|
-
|
|
1578
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1605
|
switch (errorCode) {
|
|
1580
1606
|
case "AccessDeniedException":
|
|
1581
1607
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1600,10 +1626,12 @@ const deserializeAws_restJson1CreateMilestoneCommandError = async (output, conte
|
|
|
1600
1626
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1601
1627
|
default:
|
|
1602
1628
|
const parsedBody = parsedOutput.body;
|
|
1629
|
+
const $metadata = deserializeMetadata(output);
|
|
1630
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1603
1631
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1605
1633
|
$fault: "client",
|
|
1606
|
-
$metadata
|
|
1634
|
+
$metadata,
|
|
1607
1635
|
});
|
|
1608
1636
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1637
|
}
|
|
@@ -1633,8 +1661,7 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1633
1661
|
body: await parseBody(output.body, context),
|
|
1634
1662
|
};
|
|
1635
1663
|
let response;
|
|
1636
|
-
|
|
1637
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
1665
|
switch (errorCode) {
|
|
1639
1666
|
case "AccessDeniedException":
|
|
1640
1667
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1656,10 +1683,12 @@ const deserializeAws_restJson1CreateWorkloadCommandError = async (output, contex
|
|
|
1656
1683
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1657
1684
|
default:
|
|
1658
1685
|
const parsedBody = parsedOutput.body;
|
|
1686
|
+
const $metadata = deserializeMetadata(output);
|
|
1687
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1659
1688
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1661
1690
|
$fault: "client",
|
|
1662
|
-
$metadata
|
|
1691
|
+
$metadata,
|
|
1663
1692
|
});
|
|
1664
1693
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1665
1694
|
}
|
|
@@ -1689,8 +1718,7 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1689
1718
|
body: await parseBody(output.body, context),
|
|
1690
1719
|
};
|
|
1691
1720
|
let response;
|
|
1692
|
-
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1722
|
switch (errorCode) {
|
|
1695
1723
|
case "AccessDeniedException":
|
|
1696
1724
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1715,10 +1743,12 @@ const deserializeAws_restJson1CreateWorkloadShareCommandError = async (output, c
|
|
|
1715
1743
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1716
1744
|
default:
|
|
1717
1745
|
const parsedBody = parsedOutput.body;
|
|
1746
|
+
const $metadata = deserializeMetadata(output);
|
|
1747
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1718
1748
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1719
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1749
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1720
1750
|
$fault: "client",
|
|
1721
|
-
$metadata
|
|
1751
|
+
$metadata,
|
|
1722
1752
|
});
|
|
1723
1753
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1724
1754
|
}
|
|
@@ -1740,8 +1770,7 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1740
1770
|
body: await parseBody(output.body, context),
|
|
1741
1771
|
};
|
|
1742
1772
|
let response;
|
|
1743
|
-
|
|
1744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1774
|
switch (errorCode) {
|
|
1746
1775
|
case "AccessDeniedException":
|
|
1747
1776
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1763,10 +1792,12 @@ const deserializeAws_restJson1DeleteLensCommandError = async (output, context) =
|
|
|
1763
1792
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1764
1793
|
default:
|
|
1765
1794
|
const parsedBody = parsedOutput.body;
|
|
1795
|
+
const $metadata = deserializeMetadata(output);
|
|
1796
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1766
1797
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1767
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1798
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1768
1799
|
$fault: "client",
|
|
1769
|
-
$metadata
|
|
1800
|
+
$metadata,
|
|
1770
1801
|
});
|
|
1771
1802
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1772
1803
|
}
|
|
@@ -1788,8 +1819,7 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1788
1819
|
body: await parseBody(output.body, context),
|
|
1789
1820
|
};
|
|
1790
1821
|
let response;
|
|
1791
|
-
|
|
1792
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1823
|
switch (errorCode) {
|
|
1794
1824
|
case "AccessDeniedException":
|
|
1795
1825
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1811,10 +1841,12 @@ const deserializeAws_restJson1DeleteLensShareCommandError = async (output, conte
|
|
|
1811
1841
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1812
1842
|
default:
|
|
1813
1843
|
const parsedBody = parsedOutput.body;
|
|
1844
|
+
const $metadata = deserializeMetadata(output);
|
|
1845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1814
1846
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1815
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1816
1848
|
$fault: "client",
|
|
1817
|
-
$metadata
|
|
1849
|
+
$metadata,
|
|
1818
1850
|
});
|
|
1819
1851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1820
1852
|
}
|
|
@@ -1836,8 +1868,7 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1836
1868
|
body: await parseBody(output.body, context),
|
|
1837
1869
|
};
|
|
1838
1870
|
let response;
|
|
1839
|
-
|
|
1840
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1872
|
switch (errorCode) {
|
|
1842
1873
|
case "AccessDeniedException":
|
|
1843
1874
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1859,10 +1890,12 @@ const deserializeAws_restJson1DeleteWorkloadCommandError = async (output, contex
|
|
|
1859
1890
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1860
1891
|
default:
|
|
1861
1892
|
const parsedBody = parsedOutput.body;
|
|
1893
|
+
const $metadata = deserializeMetadata(output);
|
|
1894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1862
1895
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1863
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1864
1897
|
$fault: "client",
|
|
1865
|
-
$metadata
|
|
1898
|
+
$metadata,
|
|
1866
1899
|
});
|
|
1867
1900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1868
1901
|
}
|
|
@@ -1884,8 +1917,7 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1884
1917
|
body: await parseBody(output.body, context),
|
|
1885
1918
|
};
|
|
1886
1919
|
let response;
|
|
1887
|
-
|
|
1888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1921
|
switch (errorCode) {
|
|
1890
1922
|
case "AccessDeniedException":
|
|
1891
1923
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1907,10 +1939,12 @@ const deserializeAws_restJson1DeleteWorkloadShareCommandError = async (output, c
|
|
|
1907
1939
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1908
1940
|
default:
|
|
1909
1941
|
const parsedBody = parsedOutput.body;
|
|
1942
|
+
const $metadata = deserializeMetadata(output);
|
|
1943
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1910
1944
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1945
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1912
1946
|
$fault: "client",
|
|
1913
|
-
$metadata
|
|
1947
|
+
$metadata,
|
|
1914
1948
|
});
|
|
1915
1949
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1916
1950
|
}
|
|
@@ -1932,8 +1966,7 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1932
1966
|
body: await parseBody(output.body, context),
|
|
1933
1967
|
};
|
|
1934
1968
|
let response;
|
|
1935
|
-
|
|
1936
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1970
|
switch (errorCode) {
|
|
1938
1971
|
case "AccessDeniedException":
|
|
1939
1972
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -1955,10 +1988,12 @@ const deserializeAws_restJson1DisassociateLensesCommandError = async (output, co
|
|
|
1955
1988
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1956
1989
|
default:
|
|
1957
1990
|
const parsedBody = parsedOutput.body;
|
|
1991
|
+
const $metadata = deserializeMetadata(output);
|
|
1992
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1958
1993
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
1959
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1960
1995
|
$fault: "client",
|
|
1961
|
-
$metadata
|
|
1996
|
+
$metadata,
|
|
1962
1997
|
});
|
|
1963
1998
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1964
1999
|
}
|
|
@@ -1984,8 +2019,7 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
1984
2019
|
body: await parseBody(output.body, context),
|
|
1985
2020
|
};
|
|
1986
2021
|
let response;
|
|
1987
|
-
|
|
1988
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
2023
|
switch (errorCode) {
|
|
1990
2024
|
case "AccessDeniedException":
|
|
1991
2025
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2004,10 +2038,12 @@ const deserializeAws_restJson1ExportLensCommandError = async (output, context) =
|
|
|
2004
2038
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2005
2039
|
default:
|
|
2006
2040
|
const parsedBody = parsedOutput.body;
|
|
2041
|
+
const $metadata = deserializeMetadata(output);
|
|
2042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2007
2043
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2009
2045
|
$fault: "client",
|
|
2010
|
-
$metadata
|
|
2046
|
+
$metadata,
|
|
2011
2047
|
});
|
|
2012
2048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2013
2049
|
}
|
|
@@ -2049,8 +2085,7 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
2049
2085
|
body: await parseBody(output.body, context),
|
|
2050
2086
|
};
|
|
2051
2087
|
let response;
|
|
2052
|
-
|
|
2053
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
2089
|
switch (errorCode) {
|
|
2055
2090
|
case "AccessDeniedException":
|
|
2056
2091
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2069,10 +2104,12 @@ const deserializeAws_restJson1GetAnswerCommandError = async (output, context) =>
|
|
|
2069
2104
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2070
2105
|
default:
|
|
2071
2106
|
const parsedBody = parsedOutput.body;
|
|
2107
|
+
const $metadata = deserializeMetadata(output);
|
|
2108
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2072
2109
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2110
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2074
2111
|
$fault: "client",
|
|
2075
|
-
$metadata
|
|
2112
|
+
$metadata,
|
|
2076
2113
|
});
|
|
2077
2114
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2078
2115
|
}
|
|
@@ -2098,8 +2135,7 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
2098
2135
|
body: await parseBody(output.body, context),
|
|
2099
2136
|
};
|
|
2100
2137
|
let response;
|
|
2101
|
-
|
|
2102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
2139
|
switch (errorCode) {
|
|
2104
2140
|
case "AccessDeniedException":
|
|
2105
2141
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2118,10 +2154,12 @@ const deserializeAws_restJson1GetLensCommandError = async (output, context) => {
|
|
|
2118
2154
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2119
2155
|
default:
|
|
2120
2156
|
const parsedBody = parsedOutput.body;
|
|
2157
|
+
const $metadata = deserializeMetadata(output);
|
|
2158
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2121
2159
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2122
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2160
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2123
2161
|
$fault: "client",
|
|
2124
|
-
$metadata
|
|
2162
|
+
$metadata,
|
|
2125
2163
|
});
|
|
2126
2164
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2127
2165
|
}
|
|
@@ -2155,8 +2193,7 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
2155
2193
|
body: await parseBody(output.body, context),
|
|
2156
2194
|
};
|
|
2157
2195
|
let response;
|
|
2158
|
-
|
|
2159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2197
|
switch (errorCode) {
|
|
2161
2198
|
case "AccessDeniedException":
|
|
2162
2199
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2175,10 +2212,12 @@ const deserializeAws_restJson1GetLensReviewCommandError = async (output, context
|
|
|
2175
2212
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2176
2213
|
default:
|
|
2177
2214
|
const parsedBody = parsedOutput.body;
|
|
2215
|
+
const $metadata = deserializeMetadata(output);
|
|
2216
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2178
2217
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2179
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2180
2219
|
$fault: "client",
|
|
2181
|
-
$metadata
|
|
2220
|
+
$metadata,
|
|
2182
2221
|
});
|
|
2183
2222
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2184
2223
|
}
|
|
@@ -2212,8 +2251,7 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
2212
2251
|
body: await parseBody(output.body, context),
|
|
2213
2252
|
};
|
|
2214
2253
|
let response;
|
|
2215
|
-
|
|
2216
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
2255
|
switch (errorCode) {
|
|
2218
2256
|
case "AccessDeniedException":
|
|
2219
2257
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2232,10 +2270,12 @@ const deserializeAws_restJson1GetLensReviewReportCommandError = async (output, c
|
|
|
2232
2270
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2233
2271
|
default:
|
|
2234
2272
|
const parsedBody = parsedOutput.body;
|
|
2273
|
+
const $metadata = deserializeMetadata(output);
|
|
2274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2235
2275
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2237
2277
|
$fault: "client",
|
|
2238
|
-
$metadata
|
|
2278
|
+
$metadata,
|
|
2239
2279
|
});
|
|
2240
2280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2241
2281
|
}
|
|
@@ -2281,8 +2321,7 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
2281
2321
|
body: await parseBody(output.body, context),
|
|
2282
2322
|
};
|
|
2283
2323
|
let response;
|
|
2284
|
-
|
|
2285
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
2325
|
switch (errorCode) {
|
|
2287
2326
|
case "AccessDeniedException":
|
|
2288
2327
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2301,10 +2340,12 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommandError = async (outp
|
|
|
2301
2340
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2302
2341
|
default:
|
|
2303
2342
|
const parsedBody = parsedOutput.body;
|
|
2343
|
+
const $metadata = deserializeMetadata(output);
|
|
2344
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2304
2345
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2305
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2346
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2306
2347
|
$fault: "client",
|
|
2307
|
-
$metadata
|
|
2348
|
+
$metadata,
|
|
2308
2349
|
});
|
|
2309
2350
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2310
2351
|
}
|
|
@@ -2334,8 +2375,7 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
2334
2375
|
body: await parseBody(output.body, context),
|
|
2335
2376
|
};
|
|
2336
2377
|
let response;
|
|
2337
|
-
|
|
2338
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2339
2379
|
switch (errorCode) {
|
|
2340
2380
|
case "AccessDeniedException":
|
|
2341
2381
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2354,10 +2394,12 @@ const deserializeAws_restJson1GetMilestoneCommandError = async (output, context)
|
|
|
2354
2394
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2355
2395
|
default:
|
|
2356
2396
|
const parsedBody = parsedOutput.body;
|
|
2397
|
+
const $metadata = deserializeMetadata(output);
|
|
2398
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2357
2399
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2400
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2359
2401
|
$fault: "client",
|
|
2360
|
-
$metadata
|
|
2402
|
+
$metadata,
|
|
2361
2403
|
});
|
|
2362
2404
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2363
2405
|
}
|
|
@@ -2383,8 +2425,7 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2383
2425
|
body: await parseBody(output.body, context),
|
|
2384
2426
|
};
|
|
2385
2427
|
let response;
|
|
2386
|
-
|
|
2387
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
2429
|
switch (errorCode) {
|
|
2389
2430
|
case "AccessDeniedException":
|
|
2390
2431
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2403,10 +2444,12 @@ const deserializeAws_restJson1GetWorkloadCommandError = async (output, context)
|
|
|
2403
2444
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2404
2445
|
default:
|
|
2405
2446
|
const parsedBody = parsedOutput.body;
|
|
2447
|
+
const $metadata = deserializeMetadata(output);
|
|
2448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2406
2449
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2407
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2408
2451
|
$fault: "client",
|
|
2409
|
-
$metadata
|
|
2452
|
+
$metadata,
|
|
2410
2453
|
});
|
|
2411
2454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2412
2455
|
}
|
|
@@ -2436,8 +2479,7 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2436
2479
|
body: await parseBody(output.body, context),
|
|
2437
2480
|
};
|
|
2438
2481
|
let response;
|
|
2439
|
-
|
|
2440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2441
2483
|
switch (errorCode) {
|
|
2442
2484
|
case "AccessDeniedException":
|
|
2443
2485
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2462,10 +2504,12 @@ const deserializeAws_restJson1ImportLensCommandError = async (output, context) =
|
|
|
2462
2504
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2463
2505
|
default:
|
|
2464
2506
|
const parsedBody = parsedOutput.body;
|
|
2507
|
+
const $metadata = deserializeMetadata(output);
|
|
2508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2465
2509
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2467
2511
|
$fault: "client",
|
|
2468
|
-
$metadata
|
|
2512
|
+
$metadata,
|
|
2469
2513
|
});
|
|
2470
2514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2471
2515
|
}
|
|
@@ -2511,8 +2555,7 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2511
2555
|
body: await parseBody(output.body, context),
|
|
2512
2556
|
};
|
|
2513
2557
|
let response;
|
|
2514
|
-
|
|
2515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2559
|
switch (errorCode) {
|
|
2517
2560
|
case "AccessDeniedException":
|
|
2518
2561
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2531,10 +2574,12 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
|
|
|
2531
2574
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2532
2575
|
default:
|
|
2533
2576
|
const parsedBody = parsedOutput.body;
|
|
2577
|
+
const $metadata = deserializeMetadata(output);
|
|
2578
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2534
2579
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2535
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2580
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2536
2581
|
$fault: "client",
|
|
2537
|
-
$metadata
|
|
2582
|
+
$metadata,
|
|
2538
2583
|
});
|
|
2539
2584
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2540
2585
|
}
|
|
@@ -2564,8 +2609,7 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2564
2609
|
body: await parseBody(output.body, context),
|
|
2565
2610
|
};
|
|
2566
2611
|
let response;
|
|
2567
|
-
|
|
2568
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
2613
|
switch (errorCode) {
|
|
2570
2614
|
case "AccessDeniedException":
|
|
2571
2615
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2581,10 +2625,12 @@ const deserializeAws_restJson1ListLensesCommandError = async (output, context) =
|
|
|
2581
2625
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2582
2626
|
default:
|
|
2583
2627
|
const parsedBody = parsedOutput.body;
|
|
2628
|
+
const $metadata = deserializeMetadata(output);
|
|
2629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2584
2630
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2585
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2586
2632
|
$fault: "client",
|
|
2587
|
-
$metadata
|
|
2633
|
+
$metadata,
|
|
2588
2634
|
});
|
|
2589
2635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2590
2636
|
}
|
|
@@ -2630,8 +2676,7 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2630
2676
|
body: await parseBody(output.body, context),
|
|
2631
2677
|
};
|
|
2632
2678
|
let response;
|
|
2633
|
-
|
|
2634
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2635
2680
|
switch (errorCode) {
|
|
2636
2681
|
case "AccessDeniedException":
|
|
2637
2682
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2650,10 +2695,12 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommandError = async (ou
|
|
|
2650
2695
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2651
2696
|
default:
|
|
2652
2697
|
const parsedBody = parsedOutput.body;
|
|
2698
|
+
const $metadata = deserializeMetadata(output);
|
|
2699
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2653
2700
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2654
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2655
2702
|
$fault: "client",
|
|
2656
|
-
$metadata
|
|
2703
|
+
$metadata,
|
|
2657
2704
|
});
|
|
2658
2705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2659
2706
|
}
|
|
@@ -2691,8 +2738,7 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2691
2738
|
body: await parseBody(output.body, context),
|
|
2692
2739
|
};
|
|
2693
2740
|
let response;
|
|
2694
|
-
|
|
2695
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2741
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
2742
|
switch (errorCode) {
|
|
2697
2743
|
case "AccessDeniedException":
|
|
2698
2744
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2711,10 +2757,12 @@ const deserializeAws_restJson1ListLensReviewsCommandError = async (output, conte
|
|
|
2711
2757
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2712
2758
|
default:
|
|
2713
2759
|
const parsedBody = parsedOutput.body;
|
|
2760
|
+
const $metadata = deserializeMetadata(output);
|
|
2761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2714
2762
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2716
2764
|
$fault: "client",
|
|
2717
|
-
$metadata
|
|
2765
|
+
$metadata,
|
|
2718
2766
|
});
|
|
2719
2767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2720
2768
|
}
|
|
@@ -2744,8 +2792,7 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2744
2792
|
body: await parseBody(output.body, context),
|
|
2745
2793
|
};
|
|
2746
2794
|
let response;
|
|
2747
|
-
|
|
2748
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2795
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2749
2796
|
switch (errorCode) {
|
|
2750
2797
|
case "AccessDeniedException":
|
|
2751
2798
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2764,10 +2811,12 @@ const deserializeAws_restJson1ListLensSharesCommandError = async (output, contex
|
|
|
2764
2811
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2765
2812
|
default:
|
|
2766
2813
|
const parsedBody = parsedOutput.body;
|
|
2814
|
+
const $metadata = deserializeMetadata(output);
|
|
2815
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2767
2816
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2768
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2817
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2769
2818
|
$fault: "client",
|
|
2770
|
-
$metadata
|
|
2819
|
+
$metadata,
|
|
2771
2820
|
});
|
|
2772
2821
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2773
2822
|
}
|
|
@@ -2801,8 +2850,7 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2801
2850
|
body: await parseBody(output.body, context),
|
|
2802
2851
|
};
|
|
2803
2852
|
let response;
|
|
2804
|
-
|
|
2805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
2854
|
switch (errorCode) {
|
|
2807
2855
|
case "AccessDeniedException":
|
|
2808
2856
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2821,10 +2869,12 @@ const deserializeAws_restJson1ListMilestonesCommandError = async (output, contex
|
|
|
2821
2869
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2822
2870
|
default:
|
|
2823
2871
|
const parsedBody = parsedOutput.body;
|
|
2872
|
+
const $metadata = deserializeMetadata(output);
|
|
2873
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2824
2874
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2875
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2826
2876
|
$fault: "client",
|
|
2827
|
-
$metadata
|
|
2877
|
+
$metadata,
|
|
2828
2878
|
});
|
|
2829
2879
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2830
2880
|
}
|
|
@@ -2854,8 +2904,7 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2854
2904
|
body: await parseBody(output.body, context),
|
|
2855
2905
|
};
|
|
2856
2906
|
let response;
|
|
2857
|
-
|
|
2858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
2908
|
switch (errorCode) {
|
|
2860
2909
|
case "AccessDeniedException":
|
|
2861
2910
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2871,10 +2920,12 @@ const deserializeAws_restJson1ListNotificationsCommandError = async (output, con
|
|
|
2871
2920
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2872
2921
|
default:
|
|
2873
2922
|
const parsedBody = parsedOutput.body;
|
|
2923
|
+
const $metadata = deserializeMetadata(output);
|
|
2924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2874
2925
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2875
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2876
2927
|
$fault: "client",
|
|
2877
|
-
$metadata
|
|
2928
|
+
$metadata,
|
|
2878
2929
|
});
|
|
2879
2930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2880
2931
|
}
|
|
@@ -2904,8 +2955,7 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2904
2955
|
body: await parseBody(output.body, context),
|
|
2905
2956
|
};
|
|
2906
2957
|
let response;
|
|
2907
|
-
|
|
2908
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
2959
|
switch (errorCode) {
|
|
2910
2960
|
case "AccessDeniedException":
|
|
2911
2961
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -2921,10 +2971,12 @@ const deserializeAws_restJson1ListShareInvitationsCommandError = async (output,
|
|
|
2921
2971
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2922
2972
|
default:
|
|
2923
2973
|
const parsedBody = parsedOutput.body;
|
|
2974
|
+
const $metadata = deserializeMetadata(output);
|
|
2975
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2924
2976
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2925
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2977
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2926
2978
|
$fault: "client",
|
|
2927
|
-
$metadata
|
|
2979
|
+
$metadata,
|
|
2928
2980
|
});
|
|
2929
2981
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2930
2982
|
}
|
|
@@ -2950,8 +3002,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2950
3002
|
body: await parseBody(output.body, context),
|
|
2951
3003
|
};
|
|
2952
3004
|
let response;
|
|
2953
|
-
|
|
2954
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2955
3006
|
switch (errorCode) {
|
|
2956
3007
|
case "InternalServerException":
|
|
2957
3008
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
@@ -2961,10 +3012,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2961
3012
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2962
3013
|
default:
|
|
2963
3014
|
const parsedBody = parsedOutput.body;
|
|
3015
|
+
const $metadata = deserializeMetadata(output);
|
|
3016
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2964
3017
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
2965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3018
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2966
3019
|
$fault: "client",
|
|
2967
|
-
$metadata
|
|
3020
|
+
$metadata,
|
|
2968
3021
|
});
|
|
2969
3022
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2970
3023
|
}
|
|
@@ -2994,8 +3047,7 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
2994
3047
|
body: await parseBody(output.body, context),
|
|
2995
3048
|
};
|
|
2996
3049
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3050
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
3051
|
switch (errorCode) {
|
|
3000
3052
|
case "AccessDeniedException":
|
|
3001
3053
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3011,10 +3063,12 @@ const deserializeAws_restJson1ListWorkloadsCommandError = async (output, context
|
|
|
3011
3063
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3012
3064
|
default:
|
|
3013
3065
|
const parsedBody = parsedOutput.body;
|
|
3066
|
+
const $metadata = deserializeMetadata(output);
|
|
3067
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3014
3068
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3015
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3069
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3016
3070
|
$fault: "client",
|
|
3017
|
-
$metadata
|
|
3071
|
+
$metadata,
|
|
3018
3072
|
});
|
|
3019
3073
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3020
3074
|
}
|
|
@@ -3048,8 +3102,7 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
3048
3102
|
body: await parseBody(output.body, context),
|
|
3049
3103
|
};
|
|
3050
3104
|
let response;
|
|
3051
|
-
|
|
3052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
3106
|
switch (errorCode) {
|
|
3054
3107
|
case "AccessDeniedException":
|
|
3055
3108
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3068,10 +3121,12 @@ const deserializeAws_restJson1ListWorkloadSharesCommandError = async (output, co
|
|
|
3068
3121
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3069
3122
|
default:
|
|
3070
3123
|
const parsedBody = parsedOutput.body;
|
|
3124
|
+
const $metadata = deserializeMetadata(output);
|
|
3125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3071
3126
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3072
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3073
3128
|
$fault: "client",
|
|
3074
|
-
$metadata
|
|
3129
|
+
$metadata,
|
|
3075
3130
|
});
|
|
3076
3131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3077
3132
|
}
|
|
@@ -3093,8 +3148,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3093
3148
|
body: await parseBody(output.body, context),
|
|
3094
3149
|
};
|
|
3095
3150
|
let response;
|
|
3096
|
-
|
|
3097
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3098
3152
|
switch (errorCode) {
|
|
3099
3153
|
case "InternalServerException":
|
|
3100
3154
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
@@ -3104,10 +3158,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3104
3158
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3105
3159
|
default:
|
|
3106
3160
|
const parsedBody = parsedOutput.body;
|
|
3161
|
+
const $metadata = deserializeMetadata(output);
|
|
3162
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3107
3163
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3164
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3109
3165
|
$fault: "client",
|
|
3110
|
-
$metadata
|
|
3166
|
+
$metadata,
|
|
3111
3167
|
});
|
|
3112
3168
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3113
3169
|
}
|
|
@@ -3129,8 +3185,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3129
3185
|
body: await parseBody(output.body, context),
|
|
3130
3186
|
};
|
|
3131
3187
|
let response;
|
|
3132
|
-
|
|
3133
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
3189
|
switch (errorCode) {
|
|
3135
3190
|
case "InternalServerException":
|
|
3136
3191
|
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
@@ -3140,10 +3195,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3140
3195
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3141
3196
|
default:
|
|
3142
3197
|
const parsedBody = parsedOutput.body;
|
|
3198
|
+
const $metadata = deserializeMetadata(output);
|
|
3199
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3143
3200
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3144
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3201
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3145
3202
|
$fault: "client",
|
|
3146
|
-
$metadata
|
|
3203
|
+
$metadata,
|
|
3147
3204
|
});
|
|
3148
3205
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3149
3206
|
}
|
|
@@ -3181,8 +3238,7 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
3181
3238
|
body: await parseBody(output.body, context),
|
|
3182
3239
|
};
|
|
3183
3240
|
let response;
|
|
3184
|
-
|
|
3185
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
3242
|
switch (errorCode) {
|
|
3187
3243
|
case "AccessDeniedException":
|
|
3188
3244
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3204,10 +3260,58 @@ const deserializeAws_restJson1UpdateAnswerCommandError = async (output, context)
|
|
|
3204
3260
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3205
3261
|
default:
|
|
3206
3262
|
const parsedBody = parsedOutput.body;
|
|
3263
|
+
const $metadata = deserializeMetadata(output);
|
|
3264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3265
|
+
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3267
|
+
$fault: "client",
|
|
3268
|
+
$metadata,
|
|
3269
|
+
});
|
|
3270
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3271
|
+
}
|
|
3272
|
+
};
|
|
3273
|
+
const deserializeAws_restJson1UpdateGlobalSettingsCommand = async (output, context) => {
|
|
3274
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3275
|
+
return deserializeAws_restJson1UpdateGlobalSettingsCommandError(output, context);
|
|
3276
|
+
}
|
|
3277
|
+
const contents = {
|
|
3278
|
+
$metadata: deserializeMetadata(output),
|
|
3279
|
+
};
|
|
3280
|
+
await collectBody(output.body, context);
|
|
3281
|
+
return Promise.resolve(contents);
|
|
3282
|
+
};
|
|
3283
|
+
exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = deserializeAws_restJson1UpdateGlobalSettingsCommand;
|
|
3284
|
+
const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
3285
|
+
const parsedOutput = {
|
|
3286
|
+
...output,
|
|
3287
|
+
body: await parseBody(output.body, context),
|
|
3288
|
+
};
|
|
3289
|
+
let response;
|
|
3290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3291
|
+
switch (errorCode) {
|
|
3292
|
+
case "AccessDeniedException":
|
|
3293
|
+
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3294
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3295
|
+
case "ConflictException":
|
|
3296
|
+
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3297
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3298
|
+
case "InternalServerException":
|
|
3299
|
+
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3300
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3301
|
+
case "ThrottlingException":
|
|
3302
|
+
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3303
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3304
|
+
case "ValidationException":
|
|
3305
|
+
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3306
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3307
|
+
default:
|
|
3308
|
+
const parsedBody = parsedOutput.body;
|
|
3309
|
+
const $metadata = deserializeMetadata(output);
|
|
3310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3207
3311
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3209
3313
|
$fault: "client",
|
|
3210
|
-
$metadata
|
|
3314
|
+
$metadata,
|
|
3211
3315
|
});
|
|
3212
3316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3213
3317
|
}
|
|
@@ -3237,8 +3341,7 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
3237
3341
|
body: await parseBody(output.body, context),
|
|
3238
3342
|
};
|
|
3239
3343
|
let response;
|
|
3240
|
-
|
|
3241
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3242
3345
|
switch (errorCode) {
|
|
3243
3346
|
case "AccessDeniedException":
|
|
3244
3347
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3260,10 +3363,12 @@ const deserializeAws_restJson1UpdateLensReviewCommandError = async (output, cont
|
|
|
3260
3363
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3261
3364
|
default:
|
|
3262
3365
|
const parsedBody = parsedOutput.body;
|
|
3366
|
+
const $metadata = deserializeMetadata(output);
|
|
3367
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3263
3368
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3369
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3265
3370
|
$fault: "client",
|
|
3266
|
-
$metadata
|
|
3371
|
+
$metadata,
|
|
3267
3372
|
});
|
|
3268
3373
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3269
3374
|
}
|
|
@@ -3289,8 +3394,7 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
3289
3394
|
body: await parseBody(output.body, context),
|
|
3290
3395
|
};
|
|
3291
3396
|
let response;
|
|
3292
|
-
|
|
3293
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
3398
|
switch (errorCode) {
|
|
3295
3399
|
case "AccessDeniedException":
|
|
3296
3400
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3312,10 +3416,12 @@ const deserializeAws_restJson1UpdateShareInvitationCommandError = async (output,
|
|
|
3312
3416
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3313
3417
|
default:
|
|
3314
3418
|
const parsedBody = parsedOutput.body;
|
|
3419
|
+
const $metadata = deserializeMetadata(output);
|
|
3420
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3315
3421
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3422
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3317
3423
|
$fault: "client",
|
|
3318
|
-
$metadata
|
|
3424
|
+
$metadata,
|
|
3319
3425
|
});
|
|
3320
3426
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3321
3427
|
}
|
|
@@ -3341,8 +3447,7 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3341
3447
|
body: await parseBody(output.body, context),
|
|
3342
3448
|
};
|
|
3343
3449
|
let response;
|
|
3344
|
-
|
|
3345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
3451
|
switch (errorCode) {
|
|
3347
3452
|
case "AccessDeniedException":
|
|
3348
3453
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3364,10 +3469,12 @@ const deserializeAws_restJson1UpdateWorkloadCommandError = async (output, contex
|
|
|
3364
3469
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3365
3470
|
default:
|
|
3366
3471
|
const parsedBody = parsedOutput.body;
|
|
3472
|
+
const $metadata = deserializeMetadata(output);
|
|
3473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3367
3474
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3369
3476
|
$fault: "client",
|
|
3370
|
-
$metadata
|
|
3477
|
+
$metadata,
|
|
3371
3478
|
});
|
|
3372
3479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3373
3480
|
}
|
|
@@ -3397,8 +3504,7 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3397
3504
|
body: await parseBody(output.body, context),
|
|
3398
3505
|
};
|
|
3399
3506
|
let response;
|
|
3400
|
-
|
|
3401
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
3508
|
switch (errorCode) {
|
|
3403
3509
|
case "AccessDeniedException":
|
|
3404
3510
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3420,10 +3526,12 @@ const deserializeAws_restJson1UpdateWorkloadShareCommandError = async (output, c
|
|
|
3420
3526
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3421
3527
|
default:
|
|
3422
3528
|
const parsedBody = parsedOutput.body;
|
|
3529
|
+
const $metadata = deserializeMetadata(output);
|
|
3530
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3423
3531
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3425
3533
|
$fault: "client",
|
|
3426
|
-
$metadata
|
|
3534
|
+
$metadata,
|
|
3427
3535
|
});
|
|
3428
3536
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3429
3537
|
}
|
|
@@ -3445,8 +3553,7 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3445
3553
|
body: await parseBody(output.body, context),
|
|
3446
3554
|
};
|
|
3447
3555
|
let response;
|
|
3448
|
-
|
|
3449
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3556
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
3557
|
switch (errorCode) {
|
|
3451
3558
|
case "AccessDeniedException":
|
|
3452
3559
|
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
@@ -3468,10 +3575,12 @@ const deserializeAws_restJson1UpgradeLensReviewCommandError = async (output, con
|
|
|
3468
3575
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3469
3576
|
default:
|
|
3470
3577
|
const parsedBody = parsedOutput.body;
|
|
3578
|
+
const $metadata = deserializeMetadata(output);
|
|
3579
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3471
3580
|
response = new WellArchitectedServiceException_1.WellArchitectedServiceException({
|
|
3472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3581
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3473
3582
|
$fault: "client",
|
|
3474
|
-
$metadata
|
|
3583
|
+
$metadata,
|
|
3475
3584
|
});
|
|
3476
3585
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3477
3586
|
}
|
|
@@ -3972,6 +4081,7 @@ const deserializeAws_restJson1LensShareSummary = (output, context) => {
|
|
|
3972
4081
|
ShareId: (0, smithy_client_1.expectString)(output.ShareId),
|
|
3973
4082
|
SharedWith: (0, smithy_client_1.expectString)(output.SharedWith),
|
|
3974
4083
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4084
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
3975
4085
|
};
|
|
3976
4086
|
};
|
|
3977
4087
|
const deserializeAws_restJson1LensSummaries = (output, context) => {
|
|
@@ -4356,6 +4466,7 @@ const deserializeAws_restJson1WorkloadShareSummary = (output, context) => {
|
|
|
4356
4466
|
ShareId: (0, smithy_client_1.expectString)(output.ShareId),
|
|
4357
4467
|
SharedWith: (0, smithy_client_1.expectString)(output.SharedWith),
|
|
4358
4468
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
4469
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
4359
4470
|
};
|
|
4360
4471
|
};
|
|
4361
4472
|
const deserializeAws_restJson1WorkloadSummaries = (output, context) => {
|
|
@@ -4436,5 +4547,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4436
4547
|
if (data["__type"] !== undefined) {
|
|
4437
4548
|
return sanitizeErrorCode(data["__type"]);
|
|
4438
4549
|
}
|
|
4439
|
-
return "";
|
|
4440
4550
|
};
|