@aws-sdk/client-macie2 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 +72 -66
- package/dist-es/Macie2.js +266 -273
- package/dist-es/Macie2Client.js +22 -28
- package/dist-es/commands/AcceptInvitationCommand.js +21 -28
- package/dist-es/commands/BatchGetCustomDataIdentifiersCommand.js +21 -28
- package/dist-es/commands/CreateAllowListCommand.js +21 -28
- package/dist-es/commands/CreateClassificationJobCommand.js +21 -28
- package/dist-es/commands/CreateCustomDataIdentifierCommand.js +21 -28
- package/dist-es/commands/CreateFindingsFilterCommand.js +21 -28
- package/dist-es/commands/CreateInvitationsCommand.js +21 -28
- package/dist-es/commands/CreateMemberCommand.js +21 -28
- package/dist-es/commands/CreateSampleFindingsCommand.js +21 -28
- package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteAllowListCommand.js +21 -28
- package/dist-es/commands/DeleteCustomDataIdentifierCommand.js +21 -28
- package/dist-es/commands/DeleteFindingsFilterCommand.js +21 -28
- package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
- package/dist-es/commands/DeleteMemberCommand.js +21 -28
- package/dist-es/commands/DescribeBucketsCommand.js +21 -28
- package/dist-es/commands/DescribeClassificationJobCommand.js +21 -28
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/DisableMacieCommand.js +21 -28
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
- package/dist-es/commands/DisassociateMemberCommand.js +21 -28
- package/dist-es/commands/EnableMacieCommand.js +21 -28
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
- package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
- package/dist-es/commands/GetAllowListCommand.js +21 -28
- package/dist-es/commands/GetBucketStatisticsCommand.js +21 -28
- package/dist-es/commands/GetClassificationExportConfigurationCommand.js +21 -28
- package/dist-es/commands/GetCustomDataIdentifierCommand.js +21 -28
- package/dist-es/commands/GetFindingStatisticsCommand.js +21 -28
- package/dist-es/commands/GetFindingsCommand.js +21 -28
- package/dist-es/commands/GetFindingsFilterCommand.js +21 -28
- package/dist-es/commands/GetFindingsPublicationConfigurationCommand.js +21 -28
- package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
- package/dist-es/commands/GetMacieSessionCommand.js +21 -28
- package/dist-es/commands/GetMasterAccountCommand.js +21 -28
- package/dist-es/commands/GetMemberCommand.js +21 -28
- package/dist-es/commands/GetRevealConfigurationCommand.js +21 -28
- package/dist-es/commands/GetSensitiveDataOccurrencesAvailabilityCommand.js +21 -28
- package/dist-es/commands/GetSensitiveDataOccurrencesCommand.js +21 -28
- package/dist-es/commands/GetUsageStatisticsCommand.js +21 -28
- package/dist-es/commands/GetUsageTotalsCommand.js +21 -28
- package/dist-es/commands/ListAllowListsCommand.js +21 -28
- package/dist-es/commands/ListClassificationJobsCommand.js +21 -28
- package/dist-es/commands/ListCustomDataIdentifiersCommand.js +21 -28
- package/dist-es/commands/ListFindingsCommand.js +21 -28
- package/dist-es/commands/ListFindingsFiltersCommand.js +21 -28
- package/dist-es/commands/ListInvitationsCommand.js +21 -28
- package/dist-es/commands/ListManagedDataIdentifiersCommand.js +21 -28
- package/dist-es/commands/ListMembersCommand.js +21 -28
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutClassificationExportConfigurationCommand.js +21 -28
- package/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +21 -28
- package/dist-es/commands/SearchResourcesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/TestCustomDataIdentifierCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAllowListCommand.js +21 -28
- package/dist-es/commands/UpdateClassificationJobCommand.js +21 -28
- package/dist-es/commands/UpdateFindingsFilterCommand.js +21 -28
- package/dist-es/commands/UpdateMacieSessionCommand.js +21 -28
- package/dist-es/commands/UpdateMemberSessionCommand.js +21 -28
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateRevealConfigurationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/Macie2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +808 -329
- package/dist-es/models/models_1.js +45 -16
- package/dist-es/pagination/DescribeBucketsPaginator.js +25 -68
- package/dist-es/pagination/GetUsageStatisticsPaginator.js +25 -68
- package/dist-es/pagination/ListClassificationJobsPaginator.js +25 -68
- package/dist-es/pagination/ListCustomDataIdentifiersPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsFiltersPaginator.js +25 -68
- package/dist-es/pagination/ListFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
- package/dist-es/pagination/ListMembersPaginator.js +25 -68
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
- package/dist-es/pagination/SearchResourcesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +5456 -7393
- 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-es/waiters/waitForFindingRevealed.js +36 -56
- package/package.json +34 -34
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-macie2
|
|
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-macie2
|
|
@@ -1474,7 +1474,7 @@ exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJso
|
|
|
1474
1474
|
const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
|
|
1475
1475
|
const parsedOutput = {
|
|
1476
1476
|
...output,
|
|
1477
|
-
body: await
|
|
1477
|
+
body: await parseErrorBody(output.body, context),
|
|
1478
1478
|
};
|
|
1479
1479
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
1480
|
switch (errorCode) {
|
|
@@ -1529,7 +1529,7 @@ exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = deseriali
|
|
|
1529
1529
|
const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async (output, context) => {
|
|
1530
1530
|
const parsedOutput = {
|
|
1531
1531
|
...output,
|
|
1532
|
-
body: await
|
|
1532
|
+
body: await parseErrorBody(output.body, context),
|
|
1533
1533
|
};
|
|
1534
1534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1535
1535
|
switch (errorCode) {
|
|
@@ -1584,7 +1584,7 @@ exports.deserializeAws_restJson1CreateAllowListCommand = deserializeAws_restJson
|
|
|
1584
1584
|
const deserializeAws_restJson1CreateAllowListCommandError = async (output, context) => {
|
|
1585
1585
|
const parsedOutput = {
|
|
1586
1586
|
...output,
|
|
1587
|
-
body: await
|
|
1587
|
+
body: await parseErrorBody(output.body, context),
|
|
1588
1588
|
};
|
|
1589
1589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1590
|
switch (errorCode) {
|
|
@@ -1639,7 +1639,7 @@ exports.deserializeAws_restJson1CreateClassificationJobCommand = deserializeAws_
|
|
|
1639
1639
|
const deserializeAws_restJson1CreateClassificationJobCommandError = async (output, context) => {
|
|
1640
1640
|
const parsedOutput = {
|
|
1641
1641
|
...output,
|
|
1642
|
-
body: await
|
|
1642
|
+
body: await parseErrorBody(output.body, context),
|
|
1643
1643
|
};
|
|
1644
1644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1645
1645
|
switch (errorCode) {
|
|
@@ -1691,7 +1691,7 @@ exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = deserializeA
|
|
|
1691
1691
|
const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (output, context) => {
|
|
1692
1692
|
const parsedOutput = {
|
|
1693
1693
|
...output,
|
|
1694
|
-
body: await
|
|
1694
|
+
body: await parseErrorBody(output.body, context),
|
|
1695
1695
|
};
|
|
1696
1696
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1697
1697
|
switch (errorCode) {
|
|
@@ -1746,7 +1746,7 @@ exports.deserializeAws_restJson1CreateFindingsFilterCommand = deserializeAws_res
|
|
|
1746
1746
|
const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output, context) => {
|
|
1747
1747
|
const parsedOutput = {
|
|
1748
1748
|
...output,
|
|
1749
|
-
body: await
|
|
1749
|
+
body: await parseErrorBody(output.body, context),
|
|
1750
1750
|
};
|
|
1751
1751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
1752
|
switch (errorCode) {
|
|
@@ -1798,7 +1798,7 @@ exports.deserializeAws_restJson1CreateInvitationsCommand = deserializeAws_restJs
|
|
|
1798
1798
|
const deserializeAws_restJson1CreateInvitationsCommandError = async (output, context) => {
|
|
1799
1799
|
const parsedOutput = {
|
|
1800
1800
|
...output,
|
|
1801
|
-
body: await
|
|
1801
|
+
body: await parseErrorBody(output.body, context),
|
|
1802
1802
|
};
|
|
1803
1803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
1804
|
switch (errorCode) {
|
|
@@ -1850,7 +1850,7 @@ exports.deserializeAws_restJson1CreateMemberCommand = deserializeAws_restJson1Cr
|
|
|
1850
1850
|
const deserializeAws_restJson1CreateMemberCommandError = async (output, context) => {
|
|
1851
1851
|
const parsedOutput = {
|
|
1852
1852
|
...output,
|
|
1853
|
-
body: await
|
|
1853
|
+
body: await parseErrorBody(output.body, context),
|
|
1854
1854
|
};
|
|
1855
1855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
1856
|
switch (errorCode) {
|
|
@@ -1899,7 +1899,7 @@ exports.deserializeAws_restJson1CreateSampleFindingsCommand = deserializeAws_res
|
|
|
1899
1899
|
const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output, context) => {
|
|
1900
1900
|
const parsedOutput = {
|
|
1901
1901
|
...output,
|
|
1902
|
-
body: await
|
|
1902
|
+
body: await parseErrorBody(output.body, context),
|
|
1903
1903
|
};
|
|
1904
1904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
1905
|
switch (errorCode) {
|
|
@@ -1951,7 +1951,7 @@ exports.deserializeAws_restJson1DeclineInvitationsCommand = deserializeAws_restJ
|
|
|
1951
1951
|
const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, context) => {
|
|
1952
1952
|
const parsedOutput = {
|
|
1953
1953
|
...output,
|
|
1954
|
-
body: await
|
|
1954
|
+
body: await parseErrorBody(output.body, context),
|
|
1955
1955
|
};
|
|
1956
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1957
|
switch (errorCode) {
|
|
@@ -2000,7 +2000,7 @@ exports.deserializeAws_restJson1DeleteAllowListCommand = deserializeAws_restJson
|
|
|
2000
2000
|
const deserializeAws_restJson1DeleteAllowListCommandError = async (output, context) => {
|
|
2001
2001
|
const parsedOutput = {
|
|
2002
2002
|
...output,
|
|
2003
|
-
body: await
|
|
2003
|
+
body: await parseErrorBody(output.body, context),
|
|
2004
2004
|
};
|
|
2005
2005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
2006
|
switch (errorCode) {
|
|
@@ -2043,7 +2043,7 @@ exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = deserializeA
|
|
|
2043
2043
|
const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (output, context) => {
|
|
2044
2044
|
const parsedOutput = {
|
|
2045
2045
|
...output,
|
|
2046
|
-
body: await
|
|
2046
|
+
body: await parseErrorBody(output.body, context),
|
|
2047
2047
|
};
|
|
2048
2048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
2049
|
switch (errorCode) {
|
|
@@ -2092,7 +2092,7 @@ exports.deserializeAws_restJson1DeleteFindingsFilterCommand = deserializeAws_res
|
|
|
2092
2092
|
const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output, context) => {
|
|
2093
2093
|
const parsedOutput = {
|
|
2094
2094
|
...output,
|
|
2095
|
-
body: await
|
|
2095
|
+
body: await parseErrorBody(output.body, context),
|
|
2096
2096
|
};
|
|
2097
2097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
2098
|
switch (errorCode) {
|
|
@@ -2144,7 +2144,7 @@ exports.deserializeAws_restJson1DeleteInvitationsCommand = deserializeAws_restJs
|
|
|
2144
2144
|
const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, context) => {
|
|
2145
2145
|
const parsedOutput = {
|
|
2146
2146
|
...output,
|
|
2147
|
-
body: await
|
|
2147
|
+
body: await parseErrorBody(output.body, context),
|
|
2148
2148
|
};
|
|
2149
2149
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
2150
|
switch (errorCode) {
|
|
@@ -2193,7 +2193,7 @@ exports.deserializeAws_restJson1DeleteMemberCommand = deserializeAws_restJson1De
|
|
|
2193
2193
|
const deserializeAws_restJson1DeleteMemberCommandError = async (output, context) => {
|
|
2194
2194
|
const parsedOutput = {
|
|
2195
2195
|
...output,
|
|
2196
|
-
body: await
|
|
2196
|
+
body: await parseErrorBody(output.body, context),
|
|
2197
2197
|
};
|
|
2198
2198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
2199
|
switch (errorCode) {
|
|
@@ -2248,7 +2248,7 @@ exports.deserializeAws_restJson1DescribeBucketsCommand = deserializeAws_restJson
|
|
|
2248
2248
|
const deserializeAws_restJson1DescribeBucketsCommandError = async (output, context) => {
|
|
2249
2249
|
const parsedOutput = {
|
|
2250
2250
|
...output,
|
|
2251
|
-
body: await
|
|
2251
|
+
body: await parseErrorBody(output.body, context),
|
|
2252
2252
|
};
|
|
2253
2253
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
2254
|
switch (errorCode) {
|
|
@@ -2360,7 +2360,7 @@ exports.deserializeAws_restJson1DescribeClassificationJobCommand = deserializeAw
|
|
|
2360
2360
|
const deserializeAws_restJson1DescribeClassificationJobCommandError = async (output, context) => {
|
|
2361
2361
|
const parsedOutput = {
|
|
2362
2362
|
...output,
|
|
2363
|
-
body: await
|
|
2363
|
+
body: await parseErrorBody(output.body, context),
|
|
2364
2364
|
};
|
|
2365
2365
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
2366
|
switch (errorCode) {
|
|
@@ -2415,7 +2415,7 @@ exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deser
|
|
|
2415
2415
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
2416
2416
|
const parsedOutput = {
|
|
2417
2417
|
...output,
|
|
2418
|
-
body: await
|
|
2418
|
+
body: await parseErrorBody(output.body, context),
|
|
2419
2419
|
};
|
|
2420
2420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2421
2421
|
switch (errorCode) {
|
|
@@ -2464,7 +2464,7 @@ exports.deserializeAws_restJson1DisableMacieCommand = deserializeAws_restJson1Di
|
|
|
2464
2464
|
const deserializeAws_restJson1DisableMacieCommandError = async (output, context) => {
|
|
2465
2465
|
const parsedOutput = {
|
|
2466
2466
|
...output,
|
|
2467
|
-
body: await
|
|
2467
|
+
body: await parseErrorBody(output.body, context),
|
|
2468
2468
|
};
|
|
2469
2469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2470
|
switch (errorCode) {
|
|
@@ -2513,7 +2513,7 @@ exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deseria
|
|
|
2513
2513
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2514
2514
|
const parsedOutput = {
|
|
2515
2515
|
...output,
|
|
2516
|
-
body: await
|
|
2516
|
+
body: await parseErrorBody(output.body, context),
|
|
2517
2517
|
};
|
|
2518
2518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
2519
|
switch (errorCode) {
|
|
@@ -2562,7 +2562,7 @@ exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = de
|
|
|
2562
2562
|
const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = async (output, context) => {
|
|
2563
2563
|
const parsedOutput = {
|
|
2564
2564
|
...output,
|
|
2565
|
-
body: await
|
|
2565
|
+
body: await parseErrorBody(output.body, context),
|
|
2566
2566
|
};
|
|
2567
2567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
2568
|
switch (errorCode) {
|
|
@@ -2611,7 +2611,7 @@ exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = deseriali
|
|
|
2611
2611
|
const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async (output, context) => {
|
|
2612
2612
|
const parsedOutput = {
|
|
2613
2613
|
...output,
|
|
2614
|
-
body: await
|
|
2614
|
+
body: await parseErrorBody(output.body, context),
|
|
2615
2615
|
};
|
|
2616
2616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2617
2617
|
switch (errorCode) {
|
|
@@ -2660,7 +2660,7 @@ exports.deserializeAws_restJson1DisassociateMemberCommand = deserializeAws_restJ
|
|
|
2660
2660
|
const deserializeAws_restJson1DisassociateMemberCommandError = async (output, context) => {
|
|
2661
2661
|
const parsedOutput = {
|
|
2662
2662
|
...output,
|
|
2663
|
-
body: await
|
|
2663
|
+
body: await parseErrorBody(output.body, context),
|
|
2664
2664
|
};
|
|
2665
2665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2666
|
switch (errorCode) {
|
|
@@ -2709,7 +2709,7 @@ exports.deserializeAws_restJson1EnableMacieCommand = deserializeAws_restJson1Ena
|
|
|
2709
2709
|
const deserializeAws_restJson1EnableMacieCommandError = async (output, context) => {
|
|
2710
2710
|
const parsedOutput = {
|
|
2711
2711
|
...output,
|
|
2712
|
-
body: await
|
|
2712
|
+
body: await parseErrorBody(output.body, context),
|
|
2713
2713
|
};
|
|
2714
2714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
2715
|
switch (errorCode) {
|
|
@@ -2758,7 +2758,7 @@ exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserial
|
|
|
2758
2758
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2759
2759
|
const parsedOutput = {
|
|
2760
2760
|
...output,
|
|
2761
|
-
body: await
|
|
2761
|
+
body: await parseErrorBody(output.body, context),
|
|
2762
2762
|
};
|
|
2763
2763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
2764
|
switch (errorCode) {
|
|
@@ -2810,7 +2810,7 @@ exports.deserializeAws_restJson1GetAdministratorAccountCommand = deserializeAws_
|
|
|
2810
2810
|
const deserializeAws_restJson1GetAdministratorAccountCommandError = async (output, context) => {
|
|
2811
2811
|
const parsedOutput = {
|
|
2812
2812
|
...output,
|
|
2813
|
-
body: await
|
|
2813
|
+
body: await parseErrorBody(output.body, context),
|
|
2814
2814
|
};
|
|
2815
2815
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2816
2816
|
switch (errorCode) {
|
|
@@ -2886,7 +2886,7 @@ exports.deserializeAws_restJson1GetAllowListCommand = deserializeAws_restJson1Ge
|
|
|
2886
2886
|
const deserializeAws_restJson1GetAllowListCommandError = async (output, context) => {
|
|
2887
2887
|
const parsedOutput = {
|
|
2888
2888
|
...output,
|
|
2889
|
-
body: await
|
|
2889
|
+
body: await parseErrorBody(output.body, context),
|
|
2890
2890
|
};
|
|
2891
2891
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2892
2892
|
switch (errorCode) {
|
|
@@ -2969,7 +2969,7 @@ exports.deserializeAws_restJson1GetBucketStatisticsCommand = deserializeAws_rest
|
|
|
2969
2969
|
const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, context) => {
|
|
2970
2970
|
const parsedOutput = {
|
|
2971
2971
|
...output,
|
|
2972
|
-
body: await
|
|
2972
|
+
body: await parseErrorBody(output.body, context),
|
|
2973
2973
|
};
|
|
2974
2974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
2975
|
switch (errorCode) {
|
|
@@ -3021,7 +3021,7 @@ exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = de
|
|
|
3021
3021
|
const deserializeAws_restJson1GetClassificationExportConfigurationCommandError = async (output, context) => {
|
|
3022
3022
|
const parsedOutput = {
|
|
3023
3023
|
...output,
|
|
3024
|
-
body: await
|
|
3024
|
+
body: await parseErrorBody(output.body, context),
|
|
3025
3025
|
};
|
|
3026
3026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3027
3027
|
switch (errorCode) {
|
|
@@ -3106,7 +3106,7 @@ exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = deserializeAws_
|
|
|
3106
3106
|
const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (output, context) => {
|
|
3107
3107
|
const parsedOutput = {
|
|
3108
3108
|
...output,
|
|
3109
|
-
body: await
|
|
3109
|
+
body: await parseErrorBody(output.body, context),
|
|
3110
3110
|
};
|
|
3111
3111
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3112
3112
|
switch (errorCode) {
|
|
@@ -3158,7 +3158,7 @@ exports.deserializeAws_restJson1GetFindingsCommand = deserializeAws_restJson1Get
|
|
|
3158
3158
|
const deserializeAws_restJson1GetFindingsCommandError = async (output, context) => {
|
|
3159
3159
|
const parsedOutput = {
|
|
3160
3160
|
...output,
|
|
3161
|
-
body: await
|
|
3161
|
+
body: await parseErrorBody(output.body, context),
|
|
3162
3162
|
};
|
|
3163
3163
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3164
3164
|
switch (errorCode) {
|
|
@@ -3231,7 +3231,7 @@ exports.deserializeAws_restJson1GetFindingsFilterCommand = deserializeAws_restJs
|
|
|
3231
3231
|
const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, context) => {
|
|
3232
3232
|
const parsedOutput = {
|
|
3233
3233
|
...output,
|
|
3234
|
-
body: await
|
|
3234
|
+
body: await parseErrorBody(output.body, context),
|
|
3235
3235
|
};
|
|
3236
3236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3237
3237
|
switch (errorCode) {
|
|
@@ -3283,7 +3283,7 @@ exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = des
|
|
|
3283
3283
|
const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = async (output, context) => {
|
|
3284
3284
|
const parsedOutput = {
|
|
3285
3285
|
...output,
|
|
3286
|
-
body: await
|
|
3286
|
+
body: await parseErrorBody(output.body, context),
|
|
3287
3287
|
};
|
|
3288
3288
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3289
3289
|
switch (errorCode) {
|
|
@@ -3335,7 +3335,7 @@ exports.deserializeAws_restJson1GetFindingStatisticsCommand = deserializeAws_res
|
|
|
3335
3335
|
const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output, context) => {
|
|
3336
3336
|
const parsedOutput = {
|
|
3337
3337
|
...output,
|
|
3338
|
-
body: await
|
|
3338
|
+
body: await parseErrorBody(output.body, context),
|
|
3339
3339
|
};
|
|
3340
3340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
3341
|
switch (errorCode) {
|
|
@@ -3387,7 +3387,7 @@ exports.deserializeAws_restJson1GetInvitationsCountCommand = deserializeAws_rest
|
|
|
3387
3387
|
const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, context) => {
|
|
3388
3388
|
const parsedOutput = {
|
|
3389
3389
|
...output,
|
|
3390
|
-
body: await
|
|
3390
|
+
body: await parseErrorBody(output.body, context),
|
|
3391
3391
|
};
|
|
3392
3392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3393
3393
|
switch (errorCode) {
|
|
@@ -3451,7 +3451,7 @@ exports.deserializeAws_restJson1GetMacieSessionCommand = deserializeAws_restJson
|
|
|
3451
3451
|
const deserializeAws_restJson1GetMacieSessionCommandError = async (output, context) => {
|
|
3452
3452
|
const parsedOutput = {
|
|
3453
3453
|
...output,
|
|
3454
|
-
body: await
|
|
3454
|
+
body: await parseErrorBody(output.body, context),
|
|
3455
3455
|
};
|
|
3456
3456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3457
3457
|
switch (errorCode) {
|
|
@@ -3503,7 +3503,7 @@ exports.deserializeAws_restJson1GetMasterAccountCommand = deserializeAws_restJso
|
|
|
3503
3503
|
const deserializeAws_restJson1GetMasterAccountCommandError = async (output, context) => {
|
|
3504
3504
|
const parsedOutput = {
|
|
3505
3505
|
...output,
|
|
3506
|
-
body: await
|
|
3506
|
+
body: await parseErrorBody(output.body, context),
|
|
3507
3507
|
};
|
|
3508
3508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3509
3509
|
switch (errorCode) {
|
|
@@ -3579,7 +3579,7 @@ exports.deserializeAws_restJson1GetMemberCommand = deserializeAws_restJson1GetMe
|
|
|
3579
3579
|
const deserializeAws_restJson1GetMemberCommandError = async (output, context) => {
|
|
3580
3580
|
const parsedOutput = {
|
|
3581
3581
|
...output,
|
|
3582
|
-
body: await
|
|
3582
|
+
body: await parseErrorBody(output.body, context),
|
|
3583
3583
|
};
|
|
3584
3584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3585
3585
|
switch (errorCode) {
|
|
@@ -3631,7 +3631,7 @@ exports.deserializeAws_restJson1GetRevealConfigurationCommand = deserializeAws_r
|
|
|
3631
3631
|
const deserializeAws_restJson1GetRevealConfigurationCommandError = async (output, context) => {
|
|
3632
3632
|
const parsedOutput = {
|
|
3633
3633
|
...output,
|
|
3634
|
-
body: await
|
|
3634
|
+
body: await parseErrorBody(output.body, context),
|
|
3635
3635
|
};
|
|
3636
3636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3637
3637
|
switch (errorCode) {
|
|
@@ -3680,7 +3680,7 @@ exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = deserialize
|
|
|
3680
3680
|
const deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError = async (output, context) => {
|
|
3681
3681
|
const parsedOutput = {
|
|
3682
3682
|
...output,
|
|
3683
|
-
body: await
|
|
3683
|
+
body: await parseErrorBody(output.body, context),
|
|
3684
3684
|
};
|
|
3685
3685
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3686
3686
|
switch (errorCode) {
|
|
@@ -3732,7 +3732,7 @@ exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand =
|
|
|
3732
3732
|
const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError = async (output, context) => {
|
|
3733
3733
|
const parsedOutput = {
|
|
3734
3734
|
...output,
|
|
3735
|
-
body: await
|
|
3735
|
+
body: await parseErrorBody(output.body, context),
|
|
3736
3736
|
};
|
|
3737
3737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3738
3738
|
switch (errorCode) {
|
|
@@ -3781,7 +3781,7 @@ exports.deserializeAws_restJson1GetUsageStatisticsCommand = deserializeAws_restJ
|
|
|
3781
3781
|
const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, context) => {
|
|
3782
3782
|
const parsedOutput = {
|
|
3783
3783
|
...output,
|
|
3784
|
-
body: await
|
|
3784
|
+
body: await parseErrorBody(output.body, context),
|
|
3785
3785
|
};
|
|
3786
3786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3787
3787
|
switch (errorCode) {
|
|
@@ -3836,7 +3836,7 @@ exports.deserializeAws_restJson1GetUsageTotalsCommand = deserializeAws_restJson1
|
|
|
3836
3836
|
const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, context) => {
|
|
3837
3837
|
const parsedOutput = {
|
|
3838
3838
|
...output,
|
|
3839
|
-
body: await
|
|
3839
|
+
body: await parseErrorBody(output.body, context),
|
|
3840
3840
|
};
|
|
3841
3841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3842
3842
|
switch (errorCode) {
|
|
@@ -3891,7 +3891,7 @@ exports.deserializeAws_restJson1ListAllowListsCommand = deserializeAws_restJson1
|
|
|
3891
3891
|
const deserializeAws_restJson1ListAllowListsCommandError = async (output, context) => {
|
|
3892
3892
|
const parsedOutput = {
|
|
3893
3893
|
...output,
|
|
3894
|
-
body: await
|
|
3894
|
+
body: await parseErrorBody(output.body, context),
|
|
3895
3895
|
};
|
|
3896
3896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
3897
|
switch (errorCode) {
|
|
@@ -3937,7 +3937,7 @@ exports.deserializeAws_restJson1ListClassificationJobsCommand = deserializeAws_r
|
|
|
3937
3937
|
const deserializeAws_restJson1ListClassificationJobsCommandError = async (output, context) => {
|
|
3938
3938
|
const parsedOutput = {
|
|
3939
3939
|
...output,
|
|
3940
|
-
body: await
|
|
3940
|
+
body: await parseErrorBody(output.body, context),
|
|
3941
3941
|
};
|
|
3942
3942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3943
3943
|
switch (errorCode) {
|
|
@@ -3992,7 +3992,7 @@ exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = deserializeAw
|
|
|
3992
3992
|
const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (output, context) => {
|
|
3993
3993
|
const parsedOutput = {
|
|
3994
3994
|
...output,
|
|
3995
|
-
body: await
|
|
3995
|
+
body: await parseErrorBody(output.body, context),
|
|
3996
3996
|
};
|
|
3997
3997
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3998
3998
|
switch (errorCode) {
|
|
@@ -4047,7 +4047,7 @@ exports.deserializeAws_restJson1ListFindingsCommand = deserializeAws_restJson1Li
|
|
|
4047
4047
|
const deserializeAws_restJson1ListFindingsCommandError = async (output, context) => {
|
|
4048
4048
|
const parsedOutput = {
|
|
4049
4049
|
...output,
|
|
4050
|
-
body: await
|
|
4050
|
+
body: await parseErrorBody(output.body, context),
|
|
4051
4051
|
};
|
|
4052
4052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4053
4053
|
switch (errorCode) {
|
|
@@ -4102,7 +4102,7 @@ exports.deserializeAws_restJson1ListFindingsFiltersCommand = deserializeAws_rest
|
|
|
4102
4102
|
const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, context) => {
|
|
4103
4103
|
const parsedOutput = {
|
|
4104
4104
|
...output,
|
|
4105
|
-
body: await
|
|
4105
|
+
body: await parseErrorBody(output.body, context),
|
|
4106
4106
|
};
|
|
4107
4107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4108
4108
|
switch (errorCode) {
|
|
@@ -4157,7 +4157,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
|
|
|
4157
4157
|
const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
|
|
4158
4158
|
const parsedOutput = {
|
|
4159
4159
|
...output,
|
|
4160
|
-
body: await
|
|
4160
|
+
body: await parseErrorBody(output.body, context),
|
|
4161
4161
|
};
|
|
4162
4162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4163
4163
|
switch (errorCode) {
|
|
@@ -4212,7 +4212,7 @@ exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = deserializeA
|
|
|
4212
4212
|
const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (output, context) => {
|
|
4213
4213
|
const parsedOutput = {
|
|
4214
4214
|
...output,
|
|
4215
|
-
body: await
|
|
4215
|
+
body: await parseErrorBody(output.body, context),
|
|
4216
4216
|
};
|
|
4217
4217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4218
4218
|
const parsedBody = parsedOutput.body;
|
|
@@ -4243,7 +4243,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
|
|
|
4243
4243
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
4244
4244
|
const parsedOutput = {
|
|
4245
4245
|
...output,
|
|
4246
|
-
body: await
|
|
4246
|
+
body: await parseErrorBody(output.body, context),
|
|
4247
4247
|
};
|
|
4248
4248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4249
4249
|
switch (errorCode) {
|
|
@@ -4298,7 +4298,7 @@ exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deseriali
|
|
|
4298
4298
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
4299
4299
|
const parsedOutput = {
|
|
4300
4300
|
...output,
|
|
4301
|
-
body: await
|
|
4301
|
+
body: await parseErrorBody(output.body, context),
|
|
4302
4302
|
};
|
|
4303
4303
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4304
4304
|
switch (errorCode) {
|
|
@@ -4350,7 +4350,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
4350
4350
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
4351
4351
|
const parsedOutput = {
|
|
4352
4352
|
...output,
|
|
4353
|
-
body: await
|
|
4353
|
+
body: await parseErrorBody(output.body, context),
|
|
4354
4354
|
};
|
|
4355
4355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4356
4356
|
const parsedBody = parsedOutput.body;
|
|
@@ -4378,7 +4378,7 @@ exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = de
|
|
|
4378
4378
|
const deserializeAws_restJson1PutClassificationExportConfigurationCommandError = async (output, context) => {
|
|
4379
4379
|
const parsedOutput = {
|
|
4380
4380
|
...output,
|
|
4381
|
-
body: await
|
|
4381
|
+
body: await parseErrorBody(output.body, context),
|
|
4382
4382
|
};
|
|
4383
4383
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
4384
|
switch (errorCode) {
|
|
@@ -4427,7 +4427,7 @@ exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = des
|
|
|
4427
4427
|
const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = async (output, context) => {
|
|
4428
4428
|
const parsedOutput = {
|
|
4429
4429
|
...output,
|
|
4430
|
-
body: await
|
|
4430
|
+
body: await parseErrorBody(output.body, context),
|
|
4431
4431
|
};
|
|
4432
4432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4433
4433
|
switch (errorCode) {
|
|
@@ -4482,7 +4482,7 @@ exports.deserializeAws_restJson1SearchResourcesCommand = deserializeAws_restJson
|
|
|
4482
4482
|
const deserializeAws_restJson1SearchResourcesCommandError = async (output, context) => {
|
|
4483
4483
|
const parsedOutput = {
|
|
4484
4484
|
...output,
|
|
4485
|
-
body: await
|
|
4485
|
+
body: await parseErrorBody(output.body, context),
|
|
4486
4486
|
};
|
|
4487
4487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4488
4488
|
switch (errorCode) {
|
|
@@ -4531,7 +4531,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
4531
4531
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
4532
4532
|
const parsedOutput = {
|
|
4533
4533
|
...output,
|
|
4534
|
-
body: await
|
|
4534
|
+
body: await parseErrorBody(output.body, context),
|
|
4535
4535
|
};
|
|
4536
4536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4537
4537
|
const parsedBody = parsedOutput.body;
|
|
@@ -4559,7 +4559,7 @@ exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = deserializeAws
|
|
|
4559
4559
|
const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (output, context) => {
|
|
4560
4560
|
const parsedOutput = {
|
|
4561
4561
|
...output,
|
|
4562
|
-
body: await
|
|
4562
|
+
body: await parseErrorBody(output.body, context),
|
|
4563
4563
|
};
|
|
4564
4564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4565
4565
|
switch (errorCode) {
|
|
@@ -4608,7 +4608,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
4608
4608
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
4609
4609
|
const parsedOutput = {
|
|
4610
4610
|
...output,
|
|
4611
|
-
body: await
|
|
4611
|
+
body: await parseErrorBody(output.body, context),
|
|
4612
4612
|
};
|
|
4613
4613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4614
4614
|
const parsedBody = parsedOutput.body;
|
|
@@ -4639,7 +4639,7 @@ exports.deserializeAws_restJson1UpdateAllowListCommand = deserializeAws_restJson
|
|
|
4639
4639
|
const deserializeAws_restJson1UpdateAllowListCommandError = async (output, context) => {
|
|
4640
4640
|
const parsedOutput = {
|
|
4641
4641
|
...output,
|
|
4642
|
-
body: await
|
|
4642
|
+
body: await parseErrorBody(output.body, context),
|
|
4643
4643
|
};
|
|
4644
4644
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4645
4645
|
switch (errorCode) {
|
|
@@ -4682,7 +4682,7 @@ exports.deserializeAws_restJson1UpdateClassificationJobCommand = deserializeAws_
|
|
|
4682
4682
|
const deserializeAws_restJson1UpdateClassificationJobCommandError = async (output, context) => {
|
|
4683
4683
|
const parsedOutput = {
|
|
4684
4684
|
...output,
|
|
4685
|
-
body: await
|
|
4685
|
+
body: await parseErrorBody(output.body, context),
|
|
4686
4686
|
};
|
|
4687
4687
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4688
4688
|
switch (errorCode) {
|
|
@@ -4737,7 +4737,7 @@ exports.deserializeAws_restJson1UpdateFindingsFilterCommand = deserializeAws_res
|
|
|
4737
4737
|
const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
|
|
4738
4738
|
const parsedOutput = {
|
|
4739
4739
|
...output,
|
|
4740
|
-
body: await
|
|
4740
|
+
body: await parseErrorBody(output.body, context),
|
|
4741
4741
|
};
|
|
4742
4742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4743
4743
|
switch (errorCode) {
|
|
@@ -4786,7 +4786,7 @@ exports.deserializeAws_restJson1UpdateMacieSessionCommand = deserializeAws_restJ
|
|
|
4786
4786
|
const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
|
|
4787
4787
|
const parsedOutput = {
|
|
4788
4788
|
...output,
|
|
4789
|
-
body: await
|
|
4789
|
+
body: await parseErrorBody(output.body, context),
|
|
4790
4790
|
};
|
|
4791
4791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4792
4792
|
switch (errorCode) {
|
|
@@ -4835,7 +4835,7 @@ exports.deserializeAws_restJson1UpdateMemberSessionCommand = deserializeAws_rest
|
|
|
4835
4835
|
const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
|
|
4836
4836
|
const parsedOutput = {
|
|
4837
4837
|
...output,
|
|
4838
|
-
body: await
|
|
4838
|
+
body: await parseErrorBody(output.body, context),
|
|
4839
4839
|
};
|
|
4840
4840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4841
4841
|
switch (errorCode) {
|
|
@@ -4884,7 +4884,7 @@ exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deseria
|
|
|
4884
4884
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
4885
4885
|
const parsedOutput = {
|
|
4886
4886
|
...output,
|
|
4887
|
-
body: await
|
|
4887
|
+
body: await parseErrorBody(output.body, context),
|
|
4888
4888
|
};
|
|
4889
4889
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4890
4890
|
switch (errorCode) {
|
|
@@ -4936,7 +4936,7 @@ exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = deserializeAw
|
|
|
4936
4936
|
const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (output, context) => {
|
|
4937
4937
|
const parsedOutput = {
|
|
4938
4938
|
...output,
|
|
4939
|
-
body: await
|
|
4939
|
+
body: await parseErrorBody(output.body, context),
|
|
4940
4940
|
};
|
|
4941
4941
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4942
4942
|
switch (errorCode) {
|
|
@@ -6811,6 +6811,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6811
6811
|
}
|
|
6812
6812
|
return {};
|
|
6813
6813
|
});
|
|
6814
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6815
|
+
var _a;
|
|
6816
|
+
const value = await parseBody(errorBody, context);
|
|
6817
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6818
|
+
return value;
|
|
6819
|
+
};
|
|
6814
6820
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6815
6821
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6816
6822
|
const sanitizeErrorCode = (rawValue) => {
|