@aws-sdk/client-inspector2 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +38 -32
- package/dist-es/Inspector2.js +130 -137
- package/dist-es/Inspector2Client.js +22 -28
- package/dist-es/commands/AssociateMemberCommand.js +21 -28
- package/dist-es/commands/BatchGetAccountStatusCommand.js +21 -28
- package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +21 -28
- package/dist-es/commands/CancelFindingsReportCommand.js +21 -28
- package/dist-es/commands/CreateFilterCommand.js +21 -28
- package/dist-es/commands/CreateFindingsReportCommand.js +21 -28
- package/dist-es/commands/DeleteFilterCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/DisableCommand.js +21 -28
- package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateMemberCommand.js +21 -28
- package/dist-es/commands/EnableCommand.js +21 -28
- package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +21 -28
- package/dist-es/commands/GetConfigurationCommand.js +21 -28
- package/dist-es/commands/GetDelegatedAdminAccountCommand.js +21 -28
- package/dist-es/commands/GetFindingsReportStatusCommand.js +21 -28
- package/dist-es/commands/GetMemberCommand.js +21 -28
- package/dist-es/commands/ListAccountPermissionsCommand.js +21 -28
- package/dist-es/commands/ListCoverageCommand.js +21 -28
- package/dist-es/commands/ListCoverageStatisticsCommand.js +21 -28
- package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +21 -28
- package/dist-es/commands/ListFiltersCommand.js +21 -28
- package/dist-es/commands/ListFindingAggregationsCommand.js +21 -28
- package/dist-es/commands/ListFindingsCommand.js +21 -28
- package/dist-es/commands/ListMembersCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListUsageTotalsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateFilterCommand.js +21 -28
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/Inspector2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +523 -244
- package/dist-es/pagination/ListAccountPermissionsPaginator.js +25 -68
- package/dist-es/pagination/ListCoveragePaginator.js +25 -68
- package/dist-es/pagination/ListCoverageStatisticsPaginator.js +24 -67
- package/dist-es/pagination/ListDelegatedAdminAccountsPaginator.js +25 -68
- package/dist-es/pagination/ListFiltersPaginator.js +25 -68
- package/dist-es/pagination/ListFindingAggregationsPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListMembersPaginator.js +25 -68
- package/dist-es/pagination/ListUsageTotalsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2799 -3610
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-inspector2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-inspector2
|
|
@@ -754,7 +754,7 @@ exports.deserializeAws_restJson1AssociateMemberCommand = deserializeAws_restJson
|
|
|
754
754
|
const deserializeAws_restJson1AssociateMemberCommandError = async (output, context) => {
|
|
755
755
|
const parsedOutput = {
|
|
756
756
|
...output,
|
|
757
|
-
body: await
|
|
757
|
+
body: await parseErrorBody(output.body, context),
|
|
758
758
|
};
|
|
759
759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
760
|
switch (errorCode) {
|
|
@@ -800,7 +800,7 @@ exports.deserializeAws_restJson1BatchGetAccountStatusCommand = deserializeAws_re
|
|
|
800
800
|
const deserializeAws_restJson1BatchGetAccountStatusCommandError = async (output, context) => {
|
|
801
801
|
const parsedOutput = {
|
|
802
802
|
...output,
|
|
803
|
-
body: await
|
|
803
|
+
body: await parseErrorBody(output.body, context),
|
|
804
804
|
};
|
|
805
805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
806
|
switch (errorCode) {
|
|
@@ -849,7 +849,7 @@ exports.deserializeAws_restJson1BatchGetFreeTrialInfoCommand = deserializeAws_re
|
|
|
849
849
|
const deserializeAws_restJson1BatchGetFreeTrialInfoCommandError = 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) {
|
|
@@ -892,7 +892,7 @@ exports.deserializeAws_restJson1CancelFindingsReportCommand = deserializeAws_res
|
|
|
892
892
|
const deserializeAws_restJson1CancelFindingsReportCommandError = async (output, context) => {
|
|
893
893
|
const parsedOutput = {
|
|
894
894
|
...output,
|
|
895
|
-
body: await
|
|
895
|
+
body: await parseErrorBody(output.body, context),
|
|
896
896
|
};
|
|
897
897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
898
|
switch (errorCode) {
|
|
@@ -938,7 +938,7 @@ exports.deserializeAws_restJson1CreateFilterCommand = deserializeAws_restJson1Cr
|
|
|
938
938
|
const deserializeAws_restJson1CreateFilterCommandError = async (output, context) => {
|
|
939
939
|
const parsedOutput = {
|
|
940
940
|
...output,
|
|
941
|
-
body: await
|
|
941
|
+
body: await parseErrorBody(output.body, context),
|
|
942
942
|
};
|
|
943
943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
944
|
switch (errorCode) {
|
|
@@ -987,7 +987,7 @@ exports.deserializeAws_restJson1CreateFindingsReportCommand = deserializeAws_res
|
|
|
987
987
|
const deserializeAws_restJson1CreateFindingsReportCommandError = 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_restJson1DeleteFilterCommand = deserializeAws_restJson1De
|
|
|
1033
1033
|
const deserializeAws_restJson1DeleteFilterCommandError = 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) {
|
|
@@ -1082,7 +1082,7 @@ exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deser
|
|
|
1082
1082
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
1083
1083
|
const parsedOutput = {
|
|
1084
1084
|
...output,
|
|
1085
|
-
body: await
|
|
1085
|
+
body: await parseErrorBody(output.body, context),
|
|
1086
1086
|
};
|
|
1087
1087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
1088
|
switch (errorCode) {
|
|
@@ -1128,7 +1128,7 @@ exports.deserializeAws_restJson1DisableCommand = deserializeAws_restJson1Disable
|
|
|
1128
1128
|
const deserializeAws_restJson1DisableCommandError = async (output, context) => {
|
|
1129
1129
|
const parsedOutput = {
|
|
1130
1130
|
...output,
|
|
1131
|
-
body: await
|
|
1131
|
+
body: await parseErrorBody(output.body, context),
|
|
1132
1132
|
};
|
|
1133
1133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
1134
|
switch (errorCode) {
|
|
@@ -1174,7 +1174,7 @@ exports.deserializeAws_restJson1DisableDelegatedAdminAccountCommand = deserializ
|
|
|
1174
1174
|
const deserializeAws_restJson1DisableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1175
1175
|
const parsedOutput = {
|
|
1176
1176
|
...output,
|
|
1177
|
-
body: await
|
|
1177
|
+
body: await parseErrorBody(output.body, context),
|
|
1178
1178
|
};
|
|
1179
1179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
1180
|
switch (errorCode) {
|
|
@@ -1223,7 +1223,7 @@ exports.deserializeAws_restJson1DisassociateMemberCommand = deserializeAws_restJ
|
|
|
1223
1223
|
const deserializeAws_restJson1DisassociateMemberCommandError = async (output, context) => {
|
|
1224
1224
|
const parsedOutput = {
|
|
1225
1225
|
...output,
|
|
1226
|
-
body: await
|
|
1226
|
+
body: await parseErrorBody(output.body, context),
|
|
1227
1227
|
};
|
|
1228
1228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1229
|
switch (errorCode) {
|
|
@@ -1269,7 +1269,7 @@ exports.deserializeAws_restJson1EnableCommand = deserializeAws_restJson1EnableCo
|
|
|
1269
1269
|
const deserializeAws_restJson1EnableCommandError = async (output, context) => {
|
|
1270
1270
|
const parsedOutput = {
|
|
1271
1271
|
...output,
|
|
1272
|
-
body: await
|
|
1272
|
+
body: await parseErrorBody(output.body, context),
|
|
1273
1273
|
};
|
|
1274
1274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1275
|
switch (errorCode) {
|
|
@@ -1315,7 +1315,7 @@ exports.deserializeAws_restJson1EnableDelegatedAdminAccountCommand = deserialize
|
|
|
1315
1315
|
const deserializeAws_restJson1EnableDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1316
1316
|
const parsedOutput = {
|
|
1317
1317
|
...output,
|
|
1318
|
-
body: await
|
|
1318
|
+
body: await parseErrorBody(output.body, context),
|
|
1319
1319
|
};
|
|
1320
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1321
|
switch (errorCode) {
|
|
@@ -1364,7 +1364,7 @@ exports.deserializeAws_restJson1GetConfigurationCommand = deserializeAws_restJso
|
|
|
1364
1364
|
const deserializeAws_restJson1GetConfigurationCommandError = async (output, context) => {
|
|
1365
1365
|
const parsedOutput = {
|
|
1366
1366
|
...output,
|
|
1367
|
-
body: await
|
|
1367
|
+
body: await parseErrorBody(output.body, context),
|
|
1368
1368
|
};
|
|
1369
1369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
1370
|
switch (errorCode) {
|
|
@@ -1404,7 +1404,7 @@ exports.deserializeAws_restJson1GetDelegatedAdminAccountCommand = deserializeAws
|
|
|
1404
1404
|
const deserializeAws_restJson1GetDelegatedAdminAccountCommandError = async (output, context) => {
|
|
1405
1405
|
const parsedOutput = {
|
|
1406
1406
|
...output,
|
|
1407
|
-
body: await
|
|
1407
|
+
body: await parseErrorBody(output.body, context),
|
|
1408
1408
|
};
|
|
1409
1409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1410
|
switch (errorCode) {
|
|
@@ -1465,7 +1465,7 @@ exports.deserializeAws_restJson1GetFindingsReportStatusCommand = deserializeAws_
|
|
|
1465
1465
|
const deserializeAws_restJson1GetFindingsReportStatusCommandError = async (output, context) => {
|
|
1466
1466
|
const parsedOutput = {
|
|
1467
1467
|
...output,
|
|
1468
|
-
body: await
|
|
1468
|
+
body: await parseErrorBody(output.body, context),
|
|
1469
1469
|
};
|
|
1470
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1471
|
switch (errorCode) {
|
|
@@ -1511,7 +1511,7 @@ exports.deserializeAws_restJson1GetMemberCommand = deserializeAws_restJson1GetMe
|
|
|
1511
1511
|
const deserializeAws_restJson1GetMemberCommandError = async (output, context) => {
|
|
1512
1512
|
const parsedOutput = {
|
|
1513
1513
|
...output,
|
|
1514
|
-
body: await
|
|
1514
|
+
body: await parseErrorBody(output.body, context),
|
|
1515
1515
|
};
|
|
1516
1516
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
1517
|
switch (errorCode) {
|
|
@@ -1560,7 +1560,7 @@ exports.deserializeAws_restJson1ListAccountPermissionsCommand = deserializeAws_r
|
|
|
1560
1560
|
const deserializeAws_restJson1ListAccountPermissionsCommandError = async (output, context) => {
|
|
1561
1561
|
const parsedOutput = {
|
|
1562
1562
|
...output,
|
|
1563
|
-
body: await
|
|
1563
|
+
body: await parseErrorBody(output.body, context),
|
|
1564
1564
|
};
|
|
1565
1565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1566
|
switch (errorCode) {
|
|
@@ -1606,7 +1606,7 @@ exports.deserializeAws_restJson1ListCoverageCommand = deserializeAws_restJson1Li
|
|
|
1606
1606
|
const deserializeAws_restJson1ListCoverageCommandError = async (output, context) => {
|
|
1607
1607
|
const parsedOutput = {
|
|
1608
1608
|
...output,
|
|
1609
|
-
body: await
|
|
1609
|
+
body: await parseErrorBody(output.body, context),
|
|
1610
1610
|
};
|
|
1611
1611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
1612
|
switch (errorCode) {
|
|
@@ -1652,7 +1652,7 @@ exports.deserializeAws_restJson1ListCoverageStatisticsCommand = deserializeAws_r
|
|
|
1652
1652
|
const deserializeAws_restJson1ListCoverageStatisticsCommandError = async (output, context) => {
|
|
1653
1653
|
const parsedOutput = {
|
|
1654
1654
|
...output,
|
|
1655
|
-
body: await
|
|
1655
|
+
body: await parseErrorBody(output.body, context),
|
|
1656
1656
|
};
|
|
1657
1657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
1658
|
switch (errorCode) {
|
|
@@ -1695,7 +1695,7 @@ exports.deserializeAws_restJson1ListDelegatedAdminAccountsCommand = deserializeA
|
|
|
1695
1695
|
const deserializeAws_restJson1ListDelegatedAdminAccountsCommandError = async (output, context) => {
|
|
1696
1696
|
const parsedOutput = {
|
|
1697
1697
|
...output,
|
|
1698
|
-
body: await
|
|
1698
|
+
body: await parseErrorBody(output.body, context),
|
|
1699
1699
|
};
|
|
1700
1700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1701
|
switch (errorCode) {
|
|
@@ -1741,7 +1741,7 @@ exports.deserializeAws_restJson1ListFiltersCommand = deserializeAws_restJson1Lis
|
|
|
1741
1741
|
const deserializeAws_restJson1ListFiltersCommandError = async (output, context) => {
|
|
1742
1742
|
const parsedOutput = {
|
|
1743
1743
|
...output,
|
|
1744
|
-
body: await
|
|
1744
|
+
body: await parseErrorBody(output.body, context),
|
|
1745
1745
|
};
|
|
1746
1746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
1747
|
switch (errorCode) {
|
|
@@ -1790,7 +1790,7 @@ exports.deserializeAws_restJson1ListFindingAggregationsCommand = deserializeAws_
|
|
|
1790
1790
|
const deserializeAws_restJson1ListFindingAggregationsCommandError = async (output, context) => {
|
|
1791
1791
|
const parsedOutput = {
|
|
1792
1792
|
...output,
|
|
1793
|
-
body: await
|
|
1793
|
+
body: await parseErrorBody(output.body, context),
|
|
1794
1794
|
};
|
|
1795
1795
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
1796
|
switch (errorCode) {
|
|
@@ -1833,7 +1833,7 @@ exports.deserializeAws_restJson1ListFindingsCommand = deserializeAws_restJson1Li
|
|
|
1833
1833
|
const deserializeAws_restJson1ListFindingsCommandError = async (output, context) => {
|
|
1834
1834
|
const parsedOutput = {
|
|
1835
1835
|
...output,
|
|
1836
|
-
body: await
|
|
1836
|
+
body: await parseErrorBody(output.body, context),
|
|
1837
1837
|
};
|
|
1838
1838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1839
|
switch (errorCode) {
|
|
@@ -1876,7 +1876,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
|
|
|
1876
1876
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
|
-
body: await
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
1880
|
};
|
|
1881
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1882
|
switch (errorCode) {
|
|
@@ -1919,7 +1919,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1919
1919
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1920
1920
|
const parsedOutput = {
|
|
1921
1921
|
...output,
|
|
1922
|
-
body: await
|
|
1922
|
+
body: await parseErrorBody(output.body, context),
|
|
1923
1923
|
};
|
|
1924
1924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1925
|
switch (errorCode) {
|
|
@@ -1965,7 +1965,7 @@ exports.deserializeAws_restJson1ListUsageTotalsCommand = deserializeAws_restJson
|
|
|
1965
1965
|
const deserializeAws_restJson1ListUsageTotalsCommandError = async (output, context) => {
|
|
1966
1966
|
const parsedOutput = {
|
|
1967
1967
|
...output,
|
|
1968
|
-
body: await
|
|
1968
|
+
body: await parseErrorBody(output.body, context),
|
|
1969
1969
|
};
|
|
1970
1970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
1971
|
switch (errorCode) {
|
|
@@ -2005,7 +2005,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2005
2005
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2006
2006
|
const parsedOutput = {
|
|
2007
2007
|
...output,
|
|
2008
|
-
body: await
|
|
2008
|
+
body: await parseErrorBody(output.body, context),
|
|
2009
2009
|
};
|
|
2010
2010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
2011
|
switch (errorCode) {
|
|
@@ -2048,7 +2048,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2048
2048
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2049
2049
|
const parsedOutput = {
|
|
2050
2050
|
...output,
|
|
2051
|
-
body: await
|
|
2051
|
+
body: await parseErrorBody(output.body, context),
|
|
2052
2052
|
};
|
|
2053
2053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
2054
|
switch (errorCode) {
|
|
@@ -2088,7 +2088,7 @@ exports.deserializeAws_restJson1UpdateConfigurationCommand = deserializeAws_rest
|
|
|
2088
2088
|
const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, context) => {
|
|
2089
2089
|
const parsedOutput = {
|
|
2090
2090
|
...output,
|
|
2091
|
-
body: await
|
|
2091
|
+
body: await parseErrorBody(output.body, context),
|
|
2092
2092
|
};
|
|
2093
2093
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
2094
|
switch (errorCode) {
|
|
@@ -2131,7 +2131,7 @@ exports.deserializeAws_restJson1UpdateFilterCommand = deserializeAws_restJson1Up
|
|
|
2131
2131
|
const deserializeAws_restJson1UpdateFilterCommandError = async (output, context) => {
|
|
2132
2132
|
const parsedOutput = {
|
|
2133
2133
|
...output,
|
|
2134
|
-
body: await
|
|
2134
|
+
body: await parseErrorBody(output.body, context),
|
|
2135
2135
|
};
|
|
2136
2136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
2137
|
switch (errorCode) {
|
|
@@ -2177,7 +2177,7 @@ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deseria
|
|
|
2177
2177
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
2178
2178
|
const parsedOutput = {
|
|
2179
2179
|
...output,
|
|
2180
|
-
body: await
|
|
2180
|
+
body: await parseErrorBody(output.body, context),
|
|
2181
2181
|
};
|
|
2182
2182
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
2183
|
switch (errorCode) {
|
|
@@ -3834,6 +3834,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3834
3834
|
}
|
|
3835
3835
|
return {};
|
|
3836
3836
|
});
|
|
3837
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3838
|
+
var _a;
|
|
3839
|
+
const value = await parseBody(errorBody, context);
|
|
3840
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3841
|
+
return value;
|
|
3842
|
+
};
|
|
3837
3843
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3838
3844
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3839
3845
|
const sanitizeErrorCode = (rawValue) => {
|