@aws-sdk/client-accessanalyzer 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 +23 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +34 -28
- package/dist-es/AccessAnalyzer.js +114 -121
- package/dist-es/AccessAnalyzerClient.js +22 -28
- package/dist-es/commands/ApplyArchiveRuleCommand.js +22 -29
- package/dist-es/commands/CancelPolicyGenerationCommand.js +21 -28
- package/dist-es/commands/CreateAccessPreviewCommand.js +21 -28
- package/dist-es/commands/CreateAnalyzerCommand.js +21 -28
- package/dist-es/commands/CreateArchiveRuleCommand.js +22 -29
- package/dist-es/commands/DeleteAnalyzerCommand.js +22 -29
- package/dist-es/commands/DeleteArchiveRuleCommand.js +22 -29
- package/dist-es/commands/GetAccessPreviewCommand.js +21 -28
- package/dist-es/commands/GetAnalyzedResourceCommand.js +21 -28
- package/dist-es/commands/GetAnalyzerCommand.js +21 -28
- package/dist-es/commands/GetArchiveRuleCommand.js +21 -28
- package/dist-es/commands/GetFindingCommand.js +21 -28
- package/dist-es/commands/GetGeneratedPolicyCommand.js +21 -28
- package/dist-es/commands/ListAccessPreviewFindingsCommand.js +21 -28
- package/dist-es/commands/ListAccessPreviewsCommand.js +21 -28
- package/dist-es/commands/ListAnalyzedResourcesCommand.js +21 -28
- package/dist-es/commands/ListAnalyzersCommand.js +21 -28
- package/dist-es/commands/ListArchiveRulesCommand.js +21 -28
- package/dist-es/commands/ListFindingsCommand.js +21 -28
- package/dist-es/commands/ListPolicyGenerationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartPolicyGenerationCommand.js +21 -28
- package/dist-es/commands/StartResourceScanCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateArchiveRuleCommand.js +22 -29
- package/dist-es/commands/UpdateFindingsCommand.js +22 -29
- package/dist-es/commands/ValidatePolicyCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AccessAnalyzerServiceException.js +5 -10
- package/dist-es/models/models_0.js +410 -220
- package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListAccessPreviewsPaginator.js +25 -68
- package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +25 -68
- package/dist-es/pagination/ListAnalyzersPaginator.js +25 -68
- package/dist-es/pagination/ListArchiveRulesPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +25 -68
- package/dist-es/pagination/ValidatePolicyPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2350 -3139
- 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/dist-types/models/models_0.d.ts +3 -2
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-accessanalyzer:** AWS IAM Access Analyzer policy validation introduces new checks for role trust policies. As customers author a policy, IAM Access Analyzer policy validation evaluates the policy for any issues to make it easier for customers to author secure policies. ([b7db053](https://github.com/aws/aws-sdk-js-v3/commit/b7db05377b506e9692582e3b64a2376133b23d11))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
* **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))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @aws-sdk/client-accessanalyzer
|
|
@@ -229,6 +229,7 @@ var PolicyType;
|
|
|
229
229
|
})(PolicyType = exports.PolicyType || (exports.PolicyType = {}));
|
|
230
230
|
var ValidatePolicyResourceType;
|
|
231
231
|
(function (ValidatePolicyResourceType) {
|
|
232
|
+
ValidatePolicyResourceType["ROLE_TRUST"] = "AWS::IAM::AssumeRolePolicyDocument";
|
|
232
233
|
ValidatePolicyResourceType["S3_ACCESS_POINT"] = "AWS::S3::AccessPoint";
|
|
233
234
|
ValidatePolicyResourceType["S3_BUCKET"] = "AWS::S3::Bucket";
|
|
234
235
|
ValidatePolicyResourceType["S3_MULTI_REGION_ACCESS_POINT"] = "AWS::S3::MultiRegionAccessPoint";
|
|
@@ -665,7 +665,7 @@ exports.deserializeAws_restJson1ApplyArchiveRuleCommand = deserializeAws_restJso
|
|
|
665
665
|
const deserializeAws_restJson1ApplyArchiveRuleCommandError = async (output, context) => {
|
|
666
666
|
const parsedOutput = {
|
|
667
667
|
...output,
|
|
668
|
-
body: await
|
|
668
|
+
body: await parseErrorBody(output.body, context),
|
|
669
669
|
};
|
|
670
670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
671
|
switch (errorCode) {
|
|
@@ -708,7 +708,7 @@ exports.deserializeAws_restJson1CancelPolicyGenerationCommand = deserializeAws_r
|
|
|
708
708
|
const deserializeAws_restJson1CancelPolicyGenerationCommandError = async (output, context) => {
|
|
709
709
|
const parsedOutput = {
|
|
710
710
|
...output,
|
|
711
|
-
body: await
|
|
711
|
+
body: await parseErrorBody(output.body, context),
|
|
712
712
|
};
|
|
713
713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
714
|
switch (errorCode) {
|
|
@@ -751,7 +751,7 @@ exports.deserializeAws_restJson1CreateAccessPreviewCommand = deserializeAws_rest
|
|
|
751
751
|
const deserializeAws_restJson1CreateAccessPreviewCommandError = async (output, context) => {
|
|
752
752
|
const parsedOutput = {
|
|
753
753
|
...output,
|
|
754
|
-
body: await
|
|
754
|
+
body: await parseErrorBody(output.body, context),
|
|
755
755
|
};
|
|
756
756
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
757
|
switch (errorCode) {
|
|
@@ -803,7 +803,7 @@ exports.deserializeAws_restJson1CreateAnalyzerCommand = deserializeAws_restJson1
|
|
|
803
803
|
const deserializeAws_restJson1CreateAnalyzerCommandError = async (output, context) => {
|
|
804
804
|
const parsedOutput = {
|
|
805
805
|
...output,
|
|
806
|
-
body: await
|
|
806
|
+
body: await parseErrorBody(output.body, context),
|
|
807
807
|
};
|
|
808
808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
809
|
switch (errorCode) {
|
|
@@ -849,7 +849,7 @@ exports.deserializeAws_restJson1CreateArchiveRuleCommand = deserializeAws_restJs
|
|
|
849
849
|
const deserializeAws_restJson1CreateArchiveRuleCommandError = async (output, context) => {
|
|
850
850
|
const parsedOutput = {
|
|
851
851
|
...output,
|
|
852
|
-
body: await
|
|
852
|
+
body: await parseErrorBody(output.body, context),
|
|
853
853
|
};
|
|
854
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
855
|
switch (errorCode) {
|
|
@@ -898,7 +898,7 @@ exports.deserializeAws_restJson1DeleteAnalyzerCommand = deserializeAws_restJson1
|
|
|
898
898
|
const deserializeAws_restJson1DeleteAnalyzerCommandError = async (output, context) => {
|
|
899
899
|
const parsedOutput = {
|
|
900
900
|
...output,
|
|
901
|
-
body: await
|
|
901
|
+
body: await parseErrorBody(output.body, context),
|
|
902
902
|
};
|
|
903
903
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
904
|
switch (errorCode) {
|
|
@@ -941,7 +941,7 @@ exports.deserializeAws_restJson1DeleteArchiveRuleCommand = deserializeAws_restJs
|
|
|
941
941
|
const deserializeAws_restJson1DeleteArchiveRuleCommandError = async (output, context) => {
|
|
942
942
|
const parsedOutput = {
|
|
943
943
|
...output,
|
|
944
|
-
body: await
|
|
944
|
+
body: await parseErrorBody(output.body, context),
|
|
945
945
|
};
|
|
946
946
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
947
|
switch (errorCode) {
|
|
@@ -987,7 +987,7 @@ exports.deserializeAws_restJson1GetAccessPreviewCommand = deserializeAws_restJso
|
|
|
987
987
|
const deserializeAws_restJson1GetAccessPreviewCommandError = async (output, context) => {
|
|
988
988
|
const parsedOutput = {
|
|
989
989
|
...output,
|
|
990
|
-
body: await
|
|
990
|
+
body: await parseErrorBody(output.body, context),
|
|
991
991
|
};
|
|
992
992
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
993
|
switch (errorCode) {
|
|
@@ -1033,7 +1033,7 @@ exports.deserializeAws_restJson1GetAnalyzedResourceCommand = deserializeAws_rest
|
|
|
1033
1033
|
const deserializeAws_restJson1GetAnalyzedResourceCommandError = async (output, context) => {
|
|
1034
1034
|
const parsedOutput = {
|
|
1035
1035
|
...output,
|
|
1036
|
-
body: await
|
|
1036
|
+
body: await parseErrorBody(output.body, context),
|
|
1037
1037
|
};
|
|
1038
1038
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
1039
|
switch (errorCode) {
|
|
@@ -1079,7 +1079,7 @@ exports.deserializeAws_restJson1GetAnalyzerCommand = deserializeAws_restJson1Get
|
|
|
1079
1079
|
const deserializeAws_restJson1GetAnalyzerCommandError = async (output, context) => {
|
|
1080
1080
|
const parsedOutput = {
|
|
1081
1081
|
...output,
|
|
1082
|
-
body: await
|
|
1082
|
+
body: await parseErrorBody(output.body, context),
|
|
1083
1083
|
};
|
|
1084
1084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1085
|
switch (errorCode) {
|
|
@@ -1125,7 +1125,7 @@ exports.deserializeAws_restJson1GetArchiveRuleCommand = deserializeAws_restJson1
|
|
|
1125
1125
|
const deserializeAws_restJson1GetArchiveRuleCommandError = async (output, context) => {
|
|
1126
1126
|
const parsedOutput = {
|
|
1127
1127
|
...output,
|
|
1128
|
-
body: await
|
|
1128
|
+
body: await parseErrorBody(output.body, context),
|
|
1129
1129
|
};
|
|
1130
1130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
1131
|
switch (errorCode) {
|
|
@@ -1171,7 +1171,7 @@ exports.deserializeAws_restJson1GetFindingCommand = deserializeAws_restJson1GetF
|
|
|
1171
1171
|
const deserializeAws_restJson1GetFindingCommandError = async (output, context) => {
|
|
1172
1172
|
const parsedOutput = {
|
|
1173
1173
|
...output,
|
|
1174
|
-
body: await
|
|
1174
|
+
body: await parseErrorBody(output.body, context),
|
|
1175
1175
|
};
|
|
1176
1176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1177
|
switch (errorCode) {
|
|
@@ -1220,7 +1220,7 @@ exports.deserializeAws_restJson1GetGeneratedPolicyCommand = deserializeAws_restJ
|
|
|
1220
1220
|
const deserializeAws_restJson1GetGeneratedPolicyCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
|
-
body: await
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
1224
|
};
|
|
1225
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1226
|
switch (errorCode) {
|
|
@@ -1266,7 +1266,7 @@ exports.deserializeAws_restJson1ListAccessPreviewFindingsCommand = deserializeAw
|
|
|
1266
1266
|
const deserializeAws_restJson1ListAccessPreviewFindingsCommandError = async (output, context) => {
|
|
1267
1267
|
const parsedOutput = {
|
|
1268
1268
|
...output,
|
|
1269
|
-
body: await
|
|
1269
|
+
body: await parseErrorBody(output.body, context),
|
|
1270
1270
|
};
|
|
1271
1271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
1272
|
switch (errorCode) {
|
|
@@ -1318,7 +1318,7 @@ exports.deserializeAws_restJson1ListAccessPreviewsCommand = deserializeAws_restJ
|
|
|
1318
1318
|
const deserializeAws_restJson1ListAccessPreviewsCommandError = async (output, context) => {
|
|
1319
1319
|
const parsedOutput = {
|
|
1320
1320
|
...output,
|
|
1321
|
-
body: await
|
|
1321
|
+
body: await parseErrorBody(output.body, context),
|
|
1322
1322
|
};
|
|
1323
1323
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
1324
|
switch (errorCode) {
|
|
@@ -1367,7 +1367,7 @@ exports.deserializeAws_restJson1ListAnalyzedResourcesCommand = deserializeAws_re
|
|
|
1367
1367
|
const deserializeAws_restJson1ListAnalyzedResourcesCommandError = async (output, context) => {
|
|
1368
1368
|
const parsedOutput = {
|
|
1369
1369
|
...output,
|
|
1370
|
-
body: await
|
|
1370
|
+
body: await parseErrorBody(output.body, context),
|
|
1371
1371
|
};
|
|
1372
1372
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
1373
|
switch (errorCode) {
|
|
@@ -1416,7 +1416,7 @@ exports.deserializeAws_restJson1ListAnalyzersCommand = deserializeAws_restJson1L
|
|
|
1416
1416
|
const deserializeAws_restJson1ListAnalyzersCommandError = async (output, context) => {
|
|
1417
1417
|
const parsedOutput = {
|
|
1418
1418
|
...output,
|
|
1419
|
-
body: await
|
|
1419
|
+
body: await parseErrorBody(output.body, context),
|
|
1420
1420
|
};
|
|
1421
1421
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
1422
|
switch (errorCode) {
|
|
@@ -1462,7 +1462,7 @@ exports.deserializeAws_restJson1ListArchiveRulesCommand = deserializeAws_restJso
|
|
|
1462
1462
|
const deserializeAws_restJson1ListArchiveRulesCommandError = async (output, context) => {
|
|
1463
1463
|
const parsedOutput = {
|
|
1464
1464
|
...output,
|
|
1465
|
-
body: await
|
|
1465
|
+
body: await parseErrorBody(output.body, context),
|
|
1466
1466
|
};
|
|
1467
1467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
1468
|
switch (errorCode) {
|
|
@@ -1508,7 +1508,7 @@ exports.deserializeAws_restJson1ListFindingsCommand = deserializeAws_restJson1Li
|
|
|
1508
1508
|
const deserializeAws_restJson1ListFindingsCommandError = async (output, context) => {
|
|
1509
1509
|
const parsedOutput = {
|
|
1510
1510
|
...output,
|
|
1511
|
-
body: await
|
|
1511
|
+
body: await parseErrorBody(output.body, context),
|
|
1512
1512
|
};
|
|
1513
1513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1514
|
switch (errorCode) {
|
|
@@ -1557,7 +1557,7 @@ exports.deserializeAws_restJson1ListPolicyGenerationsCommand = deserializeAws_re
|
|
|
1557
1557
|
const deserializeAws_restJson1ListPolicyGenerationsCommandError = async (output, context) => {
|
|
1558
1558
|
const parsedOutput = {
|
|
1559
1559
|
...output,
|
|
1560
|
-
body: await
|
|
1560
|
+
body: await parseErrorBody(output.body, context),
|
|
1561
1561
|
};
|
|
1562
1562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1563
|
switch (errorCode) {
|
|
@@ -1600,7 +1600,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1600
1600
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1601
1601
|
const parsedOutput = {
|
|
1602
1602
|
...output,
|
|
1603
|
-
body: await
|
|
1603
|
+
body: await parseErrorBody(output.body, context),
|
|
1604
1604
|
};
|
|
1605
1605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1606
|
switch (errorCode) {
|
|
@@ -1646,7 +1646,7 @@ exports.deserializeAws_restJson1StartPolicyGenerationCommand = deserializeAws_re
|
|
|
1646
1646
|
const deserializeAws_restJson1StartPolicyGenerationCommandError = async (output, context) => {
|
|
1647
1647
|
const parsedOutput = {
|
|
1648
1648
|
...output,
|
|
1649
|
-
body: await
|
|
1649
|
+
body: await parseErrorBody(output.body, context),
|
|
1650
1650
|
};
|
|
1651
1651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
1652
|
switch (errorCode) {
|
|
@@ -1692,7 +1692,7 @@ exports.deserializeAws_restJson1StartResourceScanCommand = deserializeAws_restJs
|
|
|
1692
1692
|
const deserializeAws_restJson1StartResourceScanCommandError = async (output, context) => {
|
|
1693
1693
|
const parsedOutput = {
|
|
1694
1694
|
...output,
|
|
1695
|
-
body: await
|
|
1695
|
+
body: await parseErrorBody(output.body, context),
|
|
1696
1696
|
};
|
|
1697
1697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
1698
|
switch (errorCode) {
|
|
@@ -1735,7 +1735,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1735
1735
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1736
1736
|
const parsedOutput = {
|
|
1737
1737
|
...output,
|
|
1738
|
-
body: await
|
|
1738
|
+
body: await parseErrorBody(output.body, context),
|
|
1739
1739
|
};
|
|
1740
1740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
1741
|
switch (errorCode) {
|
|
@@ -1778,7 +1778,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1778
1778
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1779
1779
|
const parsedOutput = {
|
|
1780
1780
|
...output,
|
|
1781
|
-
body: await
|
|
1781
|
+
body: await parseErrorBody(output.body, context),
|
|
1782
1782
|
};
|
|
1783
1783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
1784
|
switch (errorCode) {
|
|
@@ -1821,7 +1821,7 @@ exports.deserializeAws_restJson1UpdateArchiveRuleCommand = deserializeAws_restJs
|
|
|
1821
1821
|
const deserializeAws_restJson1UpdateArchiveRuleCommandError = async (output, context) => {
|
|
1822
1822
|
const parsedOutput = {
|
|
1823
1823
|
...output,
|
|
1824
|
-
body: await
|
|
1824
|
+
body: await parseErrorBody(output.body, context),
|
|
1825
1825
|
};
|
|
1826
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
1827
|
switch (errorCode) {
|
|
@@ -1864,7 +1864,7 @@ exports.deserializeAws_restJson1UpdateFindingsCommand = deserializeAws_restJson1
|
|
|
1864
1864
|
const deserializeAws_restJson1UpdateFindingsCommandError = async (output, context) => {
|
|
1865
1865
|
const parsedOutput = {
|
|
1866
1866
|
...output,
|
|
1867
|
-
body: await
|
|
1867
|
+
body: await parseErrorBody(output.body, context),
|
|
1868
1868
|
};
|
|
1869
1869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1870
|
switch (errorCode) {
|
|
@@ -1913,7 +1913,7 @@ exports.deserializeAws_restJson1ValidatePolicyCommand = deserializeAws_restJson1
|
|
|
1913
1913
|
const deserializeAws_restJson1ValidatePolicyCommandError = async (output, context) => {
|
|
1914
1914
|
const parsedOutput = {
|
|
1915
1915
|
...output,
|
|
1916
|
-
body: await
|
|
1916
|
+
body: await parseErrorBody(output.body, context),
|
|
1917
1917
|
};
|
|
1918
1918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1919
|
switch (errorCode) {
|
|
@@ -3099,6 +3099,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3099
3099
|
}
|
|
3100
3100
|
return {};
|
|
3101
3101
|
});
|
|
3102
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3103
|
+
var _a;
|
|
3104
|
+
const value = await parseBody(errorBody, context);
|
|
3105
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3106
|
+
return value;
|
|
3107
|
+
};
|
|
3102
3108
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3103
3109
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3104
3110
|
const sanitizeErrorCode = (rawValue) => {
|