@aws-sdk/client-macie2 3.218.0 → 3.222.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/README.md +1 -1
- package/dist-cjs/Macie2.js +195 -0
- package/dist-cjs/commands/GetAutomatedDiscoveryConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetClassificationScopeCommand.js +46 -0
- package/dist-cjs/commands/GetResourceProfileCommand.js +46 -0
- package/dist-cjs/commands/GetSensitivityInspectionTemplateCommand.js +46 -0
- package/dist-cjs/commands/ListClassificationScopesCommand.js +46 -0
- package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
- package/dist-cjs/commands/ListManagedDataIdentifiersCommand.js +3 -3
- package/dist-cjs/commands/ListMembersCommand.js +3 -3
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-cjs/commands/ListResourceProfileArtifactsCommand.js +46 -0
- package/dist-cjs/commands/ListResourceProfileDetectionsCommand.js +46 -0
- package/dist-cjs/commands/ListSensitivityInspectionTemplatesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/PutClassificationExportConfigurationCommand.js +3 -3
- package/dist-cjs/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/SearchResourcesCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TestCustomDataIdentifierCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +1 -2
- package/dist-cjs/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +46 -0
- package/dist-cjs/commands/UpdateClassificationScopeCommand.js +46 -0
- package/dist-cjs/commands/UpdateResourceProfileCommand.js +46 -0
- package/dist-cjs/commands/UpdateResourceProfileDetectionsCommand.js +46 -0
- package/dist-cjs/commands/UpdateSensitivityInspectionTemplateCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +113 -109
- package/dist-cjs/models/models_1.js +177 -1
- package/dist-cjs/pagination/ListAllowListsPaginator.js +36 -0
- package/dist-cjs/pagination/ListClassificationScopesPaginator.js +35 -0
- package/dist-cjs/pagination/ListManagedDataIdentifiersPaginator.js +35 -0
- package/dist-cjs/pagination/ListResourceProfileArtifactsPaginator.js +35 -0
- package/dist-cjs/pagination/ListResourceProfileDetectionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSensitivityInspectionTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1211 -69
- package/dist-es/Macie2.js +195 -0
- package/dist-es/commands/GetAutomatedDiscoveryConfigurationCommand.js +42 -0
- package/dist-es/commands/GetClassificationScopeCommand.js +42 -0
- package/dist-es/commands/GetResourceProfileCommand.js +42 -0
- package/dist-es/commands/GetSensitivityInspectionTemplateCommand.js +42 -0
- package/dist-es/commands/ListClassificationScopesCommand.js +42 -0
- package/dist-es/commands/ListInvitationsCommand.js +1 -1
- package/dist-es/commands/ListManagedDataIdentifiersCommand.js +1 -1
- package/dist-es/commands/ListMembersCommand.js +1 -1
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +1 -1
- package/dist-es/commands/ListResourceProfileArtifactsCommand.js +42 -0
- package/dist-es/commands/ListResourceProfileDetectionsCommand.js +42 -0
- package/dist-es/commands/ListSensitivityInspectionTemplatesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
- package/dist-es/commands/PutClassificationExportConfigurationCommand.js +1 -1
- package/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +1 -1
- package/dist-es/commands/SearchResourcesCommand.js +1 -1
- package/dist-es/commands/TagResourceCommand.js +1 -1
- package/dist-es/commands/TestCustomDataIdentifierCommand.js +1 -1
- package/dist-es/commands/UntagResourceCommand.js +1 -2
- package/dist-es/commands/UpdateAutomatedDiscoveryConfigurationCommand.js +42 -0
- package/dist-es/commands/UpdateClassificationScopeCommand.js +42 -0
- package/dist-es/commands/UpdateResourceProfileCommand.js +42 -0
- package/dist-es/commands/UpdateResourceProfileDetectionsCommand.js +42 -0
- package/dist-es/commands/UpdateSensitivityInspectionTemplateCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +85 -79
- package/dist-es/models/models_1.js +133 -0
- package/dist-es/pagination/ListAllowListsPaginator.js +32 -0
- package/dist-es/pagination/ListClassificationScopesPaginator.js +31 -0
- package/dist-es/pagination/ListManagedDataIdentifiersPaginator.js +31 -0
- package/dist-es/pagination/ListResourceProfileArtifactsPaginator.js +31 -0
- package/dist-es/pagination/ListResourceProfileDetectionsPaginator.js +32 -0
- package/dist-es/pagination/ListSensitivityInspectionTemplatesPaginator.js +32 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1199 -84
- package/dist-types/Macie2.d.ts +95 -4
- package/dist-types/Macie2Client.d.ts +16 -3
- package/dist-types/commands/DescribeBucketsCommand.d.ts +1 -1
- package/dist-types/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/GetBucketStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/GetClassificationScopeCommand.d.ts +37 -0
- package/dist-types/commands/GetMacieSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceProfileCommand.d.ts +37 -0
- package/dist-types/commands/GetSensitivityInspectionTemplateCommand.d.ts +37 -0
- package/dist-types/commands/ListClassificationScopesCommand.d.ts +37 -0
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
- package/dist-types/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
- package/dist-types/commands/ListResourceProfileArtifactsCommand.d.ts +37 -0
- package/dist-types/commands/ListResourceProfileDetectionsCommand.d.ts +37 -0
- package/dist-types/commands/ListSensitivityInspectionTemplatesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/SearchResourcesCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
- package/dist-types/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateClassificationScopeCommand.d.ts +37 -0
- package/dist-types/commands/UpdateResourceProfileCommand.d.ts +37 -0
- package/dist-types/commands/UpdateResourceProfileDetectionsCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +501 -372
- package/dist-types/models/models_1.d.ts +559 -6
- package/dist-types/pagination/ListAllowListsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListClassificationScopesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListManagedDataIdentifiersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListResourceProfileArtifactsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListResourceProfileDetectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +39 -0
- package/dist-types/ts3.4/Macie2.d.ts +245 -0
- package/dist-types/ts3.4/Macie2Client.d.ts +80 -2
- package/dist-types/ts3.4/commands/GetAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetClassificationScopeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetResourceProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSensitivityInspectionTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListClassificationScopesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListResourceProfileArtifactsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListResourceProfileDetectionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSensitivityInspectionTemplatesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutClassificationExportConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutFindingsPublicationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TestCustomDataIdentifierCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateAutomatedDiscoveryConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateClassificationScopeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateResourceProfileCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateResourceProfileDetectionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSensitivityInspectionTemplateCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +194 -169
- package/dist-types/ts3.4/models/models_1.d.ts +297 -1
- package/dist-types/ts3.4/pagination/ListAllowListsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListClassificationScopesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListManagedDataIdentifiersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceProfileArtifactsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListResourceProfileDetectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSensitivityInspectionTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +30 -29
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.serializeAws_restJson1ListClassificationScopesCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1ListAllowListsCommand = exports.serializeAws_restJson1GetUsageTotalsCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetSensitivityInspectionTemplateCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.serializeAws_restJson1GetRevealConfigurationCommand = exports.serializeAws_restJson1GetResourceProfileCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetMacieSessionCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetFindingStatisticsCommand = exports.serializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1GetFindingsFilterCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetCustomDataIdentifierCommand = exports.serializeAws_restJson1GetClassificationScopeCommand = exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = exports.serializeAws_restJson1GetBucketStatisticsCommand = exports.serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = exports.serializeAws_restJson1GetAllowListCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableMacieCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableMacieCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeClassificationJobCommand = exports.serializeAws_restJson1DescribeBucketsCommand = exports.serializeAws_restJson1DeleteMemberCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteFindingsFilterCommand = exports.serializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.serializeAws_restJson1DeleteAllowListCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateInvitationsCommand = exports.serializeAws_restJson1CreateFindingsFilterCommand = exports.serializeAws_restJson1CreateCustomDataIdentifierCommand = exports.serializeAws_restJson1CreateClassificationJobCommand = exports.serializeAws_restJson1CreateAllowListCommand = exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableMacieCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeClassificationJobCommand = exports.deserializeAws_restJson1DescribeBucketsCommand = exports.deserializeAws_restJson1DeleteMemberCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteFindingsFilterCommand = exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.deserializeAws_restJson1DeleteAllowListCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateInvitationsCommand = exports.deserializeAws_restJson1CreateFindingsFilterCommand = exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = exports.deserializeAws_restJson1CreateClassificationJobCommand = exports.deserializeAws_restJson1CreateAllowListCommand = exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = exports.serializeAws_restJson1UpdateRevealConfigurationCommand = exports.serializeAws_restJson1UpdateResourceProfileDetectionsCommand = exports.serializeAws_restJson1UpdateResourceProfileCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationScopeCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = exports.serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = exports.serializeAws_restJson1UpdateAllowListCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestCustomDataIdentifierCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1PutClassificationExportConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = exports.serializeAws_restJson1ListResourceProfileDetectionsCommand = exports.serializeAws_restJson1ListResourceProfileArtifactsCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateClassificationScopeCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = exports.deserializeAws_restJson1UpdateAllowListCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = exports.deserializeAws_restJson1ListResourceProfileDetectionsCommand = exports.deserializeAws_restJson1ListResourceProfileArtifactsCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationScopesCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1ListAllowListsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.deserializeAws_restJson1GetRevealConfigurationCommand = exports.deserializeAws_restJson1GetResourceProfileCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMacieSessionCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetFindingStatisticsCommand = exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsFilterCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = exports.deserializeAws_restJson1GetClassificationScopeCommand = exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = exports.deserializeAws_restJson1GetAllowListCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableMacieCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = exports.deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = exports.deserializeAws_restJson1UpdateResourceProfileCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = void 0;
|
|
6
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
9
|
const uuid_1 = require("uuid");
|
|
@@ -603,6 +604,25 @@ const serializeAws_restJson1GetAllowListCommand = async (input, context) => {
|
|
|
603
604
|
});
|
|
604
605
|
};
|
|
605
606
|
exports.serializeAws_restJson1GetAllowListCommand = serializeAws_restJson1GetAllowListCommand;
|
|
607
|
+
const serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (input, context) => {
|
|
608
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
|
+
const headers = {
|
|
610
|
+
"content-type": "application/json",
|
|
611
|
+
};
|
|
612
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration";
|
|
613
|
+
let body;
|
|
614
|
+
body = "";
|
|
615
|
+
return new protocol_http_1.HttpRequest({
|
|
616
|
+
protocol,
|
|
617
|
+
hostname,
|
|
618
|
+
port,
|
|
619
|
+
method: "GET",
|
|
620
|
+
headers,
|
|
621
|
+
path: resolvedPath,
|
|
622
|
+
body,
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
exports.serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = serializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand;
|
|
606
626
|
const serializeAws_restJson1GetBucketStatisticsCommand = async (input, context) => {
|
|
607
627
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
608
628
|
const headers = {
|
|
@@ -643,6 +663,23 @@ const serializeAws_restJson1GetClassificationExportConfigurationCommand = async
|
|
|
643
663
|
});
|
|
644
664
|
};
|
|
645
665
|
exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = serializeAws_restJson1GetClassificationExportConfigurationCommand;
|
|
666
|
+
const serializeAws_restJson1GetClassificationScopeCommand = async (input, context) => {
|
|
667
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
668
|
+
const headers = {};
|
|
669
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}";
|
|
670
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
671
|
+
let body;
|
|
672
|
+
return new protocol_http_1.HttpRequest({
|
|
673
|
+
protocol,
|
|
674
|
+
hostname,
|
|
675
|
+
port,
|
|
676
|
+
method: "GET",
|
|
677
|
+
headers,
|
|
678
|
+
path: resolvedPath,
|
|
679
|
+
body,
|
|
680
|
+
});
|
|
681
|
+
};
|
|
682
|
+
exports.serializeAws_restJson1GetClassificationScopeCommand = serializeAws_restJson1GetClassificationScopeCommand;
|
|
646
683
|
const serializeAws_restJson1GetCustomDataIdentifierCommand = async (input, context) => {
|
|
647
684
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
648
685
|
const headers = {};
|
|
@@ -822,6 +859,26 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
822
859
|
});
|
|
823
860
|
};
|
|
824
861
|
exports.serializeAws_restJson1GetMemberCommand = serializeAws_restJson1GetMemberCommand;
|
|
862
|
+
const serializeAws_restJson1GetResourceProfileCommand = async (input, context) => {
|
|
863
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
864
|
+
const headers = {};
|
|
865
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles";
|
|
866
|
+
const query = map({
|
|
867
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
868
|
+
});
|
|
869
|
+
let body;
|
|
870
|
+
return new protocol_http_1.HttpRequest({
|
|
871
|
+
protocol,
|
|
872
|
+
hostname,
|
|
873
|
+
port,
|
|
874
|
+
method: "GET",
|
|
875
|
+
headers,
|
|
876
|
+
path: resolvedPath,
|
|
877
|
+
query,
|
|
878
|
+
body,
|
|
879
|
+
});
|
|
880
|
+
};
|
|
881
|
+
exports.serializeAws_restJson1GetResourceProfileCommand = serializeAws_restJson1GetResourceProfileCommand;
|
|
825
882
|
const serializeAws_restJson1GetRevealConfigurationCommand = async (input, context) => {
|
|
826
883
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
827
884
|
const headers = {
|
|
@@ -875,6 +932,23 @@ const serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = asy
|
|
|
875
932
|
});
|
|
876
933
|
};
|
|
877
934
|
exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand;
|
|
935
|
+
const serializeAws_restJson1GetSensitivityInspectionTemplateCommand = async (input, context) => {
|
|
936
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
937
|
+
const headers = {};
|
|
938
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}";
|
|
939
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
940
|
+
let body;
|
|
941
|
+
return new protocol_http_1.HttpRequest({
|
|
942
|
+
protocol,
|
|
943
|
+
hostname,
|
|
944
|
+
port,
|
|
945
|
+
method: "GET",
|
|
946
|
+
headers,
|
|
947
|
+
path: resolvedPath,
|
|
948
|
+
body,
|
|
949
|
+
});
|
|
950
|
+
};
|
|
951
|
+
exports.serializeAws_restJson1GetSensitivityInspectionTemplateCommand = serializeAws_restJson1GetSensitivityInspectionTemplateCommand;
|
|
878
952
|
const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) => {
|
|
879
953
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
880
954
|
const headers = {
|
|
@@ -971,6 +1045,27 @@ const serializeAws_restJson1ListClassificationJobsCommand = async (input, contex
|
|
|
971
1045
|
});
|
|
972
1046
|
};
|
|
973
1047
|
exports.serializeAws_restJson1ListClassificationJobsCommand = serializeAws_restJson1ListClassificationJobsCommand;
|
|
1048
|
+
const serializeAws_restJson1ListClassificationScopesCommand = async (input, context) => {
|
|
1049
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1050
|
+
const headers = {};
|
|
1051
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes";
|
|
1052
|
+
const query = map({
|
|
1053
|
+
name: [, input.name],
|
|
1054
|
+
nextToken: [, input.nextToken],
|
|
1055
|
+
});
|
|
1056
|
+
let body;
|
|
1057
|
+
return new protocol_http_1.HttpRequest({
|
|
1058
|
+
protocol,
|
|
1059
|
+
hostname,
|
|
1060
|
+
port,
|
|
1061
|
+
method: "GET",
|
|
1062
|
+
headers,
|
|
1063
|
+
path: resolvedPath,
|
|
1064
|
+
query,
|
|
1065
|
+
body,
|
|
1066
|
+
});
|
|
1067
|
+
};
|
|
1068
|
+
exports.serializeAws_restJson1ListClassificationScopesCommand = serializeAws_restJson1ListClassificationScopesCommand;
|
|
974
1069
|
const serializeAws_restJson1ListCustomDataIdentifiersCommand = async (input, context) => {
|
|
975
1070
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
976
1071
|
const headers = {
|
|
@@ -1127,6 +1222,70 @@ const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input,
|
|
|
1127
1222
|
});
|
|
1128
1223
|
};
|
|
1129
1224
|
exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = serializeAws_restJson1ListOrganizationAdminAccountsCommand;
|
|
1225
|
+
const serializeAws_restJson1ListResourceProfileArtifactsCommand = async (input, context) => {
|
|
1226
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1227
|
+
const headers = {};
|
|
1228
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/artifacts";
|
|
1229
|
+
const query = map({
|
|
1230
|
+
nextToken: [, input.nextToken],
|
|
1231
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
1232
|
+
});
|
|
1233
|
+
let body;
|
|
1234
|
+
return new protocol_http_1.HttpRequest({
|
|
1235
|
+
protocol,
|
|
1236
|
+
hostname,
|
|
1237
|
+
port,
|
|
1238
|
+
method: "GET",
|
|
1239
|
+
headers,
|
|
1240
|
+
path: resolvedPath,
|
|
1241
|
+
query,
|
|
1242
|
+
body,
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
exports.serializeAws_restJson1ListResourceProfileArtifactsCommand = serializeAws_restJson1ListResourceProfileArtifactsCommand;
|
|
1246
|
+
const serializeAws_restJson1ListResourceProfileDetectionsCommand = async (input, context) => {
|
|
1247
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1248
|
+
const headers = {};
|
|
1249
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections";
|
|
1250
|
+
const query = map({
|
|
1251
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1252
|
+
nextToken: [, input.nextToken],
|
|
1253
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
1254
|
+
});
|
|
1255
|
+
let body;
|
|
1256
|
+
return new protocol_http_1.HttpRequest({
|
|
1257
|
+
protocol,
|
|
1258
|
+
hostname,
|
|
1259
|
+
port,
|
|
1260
|
+
method: "GET",
|
|
1261
|
+
headers,
|
|
1262
|
+
path: resolvedPath,
|
|
1263
|
+
query,
|
|
1264
|
+
body,
|
|
1265
|
+
});
|
|
1266
|
+
};
|
|
1267
|
+
exports.serializeAws_restJson1ListResourceProfileDetectionsCommand = serializeAws_restJson1ListResourceProfileDetectionsCommand;
|
|
1268
|
+
const serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = async (input, context) => {
|
|
1269
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1270
|
+
const headers = {};
|
|
1271
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections";
|
|
1272
|
+
const query = map({
|
|
1273
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1274
|
+
nextToken: [, input.nextToken],
|
|
1275
|
+
});
|
|
1276
|
+
let body;
|
|
1277
|
+
return new protocol_http_1.HttpRequest({
|
|
1278
|
+
protocol,
|
|
1279
|
+
hostname,
|
|
1280
|
+
port,
|
|
1281
|
+
method: "GET",
|
|
1282
|
+
headers,
|
|
1283
|
+
path: resolvedPath,
|
|
1284
|
+
query,
|
|
1285
|
+
body,
|
|
1286
|
+
});
|
|
1287
|
+
};
|
|
1288
|
+
exports.serializeAws_restJson1ListSensitivityInspectionTemplatesCommand = serializeAws_restJson1ListSensitivityInspectionTemplatesCommand;
|
|
1130
1289
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1131
1290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1132
1291
|
const headers = {};
|
|
@@ -1316,6 +1475,27 @@ const serializeAws_restJson1UpdateAllowListCommand = async (input, context) => {
|
|
|
1316
1475
|
});
|
|
1317
1476
|
};
|
|
1318
1477
|
exports.serializeAws_restJson1UpdateAllowListCommand = serializeAws_restJson1UpdateAllowListCommand;
|
|
1478
|
+
const serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = async (input, context) => {
|
|
1479
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1480
|
+
const headers = {
|
|
1481
|
+
"content-type": "application/json",
|
|
1482
|
+
};
|
|
1483
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/automated-discovery/configuration";
|
|
1484
|
+
let body;
|
|
1485
|
+
body = JSON.stringify({
|
|
1486
|
+
...(input.status != null && { status: input.status }),
|
|
1487
|
+
});
|
|
1488
|
+
return new protocol_http_1.HttpRequest({
|
|
1489
|
+
protocol,
|
|
1490
|
+
hostname,
|
|
1491
|
+
port,
|
|
1492
|
+
method: "PUT",
|
|
1493
|
+
headers,
|
|
1494
|
+
path: resolvedPath,
|
|
1495
|
+
body,
|
|
1496
|
+
});
|
|
1497
|
+
};
|
|
1498
|
+
exports.serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = serializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand;
|
|
1319
1499
|
const serializeAws_restJson1UpdateClassificationJobCommand = async (input, context) => {
|
|
1320
1500
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1321
1501
|
const headers = {
|
|
@@ -1338,6 +1518,28 @@ const serializeAws_restJson1UpdateClassificationJobCommand = async (input, conte
|
|
|
1338
1518
|
});
|
|
1339
1519
|
};
|
|
1340
1520
|
exports.serializeAws_restJson1UpdateClassificationJobCommand = serializeAws_restJson1UpdateClassificationJobCommand;
|
|
1521
|
+
const serializeAws_restJson1UpdateClassificationScopeCommand = async (input, context) => {
|
|
1522
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1523
|
+
const headers = {
|
|
1524
|
+
"content-type": "application/json",
|
|
1525
|
+
};
|
|
1526
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/classification-scopes/{id}";
|
|
1527
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1528
|
+
let body;
|
|
1529
|
+
body = JSON.stringify({
|
|
1530
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3ClassificationScopeUpdate(input.s3, context) }),
|
|
1531
|
+
});
|
|
1532
|
+
return new protocol_http_1.HttpRequest({
|
|
1533
|
+
protocol,
|
|
1534
|
+
hostname,
|
|
1535
|
+
port,
|
|
1536
|
+
method: "PATCH",
|
|
1537
|
+
headers,
|
|
1538
|
+
path: resolvedPath,
|
|
1539
|
+
body,
|
|
1540
|
+
});
|
|
1541
|
+
};
|
|
1542
|
+
exports.serializeAws_restJson1UpdateClassificationScopeCommand = serializeAws_restJson1UpdateClassificationScopeCommand;
|
|
1341
1543
|
const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context) => {
|
|
1342
1544
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1343
1545
|
const headers = {
|
|
@@ -1432,6 +1634,58 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1432
1634
|
});
|
|
1433
1635
|
};
|
|
1434
1636
|
exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = serializeAws_restJson1UpdateOrganizationConfigurationCommand;
|
|
1637
|
+
const serializeAws_restJson1UpdateResourceProfileCommand = async (input, context) => {
|
|
1638
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1639
|
+
const headers = {
|
|
1640
|
+
"content-type": "application/json",
|
|
1641
|
+
};
|
|
1642
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles";
|
|
1643
|
+
const query = map({
|
|
1644
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
1645
|
+
});
|
|
1646
|
+
let body;
|
|
1647
|
+
body = JSON.stringify({
|
|
1648
|
+
...(input.sensitivityScoreOverride != null && { sensitivityScoreOverride: input.sensitivityScoreOverride }),
|
|
1649
|
+
});
|
|
1650
|
+
return new protocol_http_1.HttpRequest({
|
|
1651
|
+
protocol,
|
|
1652
|
+
hostname,
|
|
1653
|
+
port,
|
|
1654
|
+
method: "PATCH",
|
|
1655
|
+
headers,
|
|
1656
|
+
path: resolvedPath,
|
|
1657
|
+
query,
|
|
1658
|
+
body,
|
|
1659
|
+
});
|
|
1660
|
+
};
|
|
1661
|
+
exports.serializeAws_restJson1UpdateResourceProfileCommand = serializeAws_restJson1UpdateResourceProfileCommand;
|
|
1662
|
+
const serializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (input, context) => {
|
|
1663
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1664
|
+
const headers = {
|
|
1665
|
+
"content-type": "application/json",
|
|
1666
|
+
};
|
|
1667
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-profiles/detections";
|
|
1668
|
+
const query = map({
|
|
1669
|
+
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
1670
|
+
});
|
|
1671
|
+
let body;
|
|
1672
|
+
body = JSON.stringify({
|
|
1673
|
+
...(input.suppressDataIdentifiers != null && {
|
|
1674
|
+
suppressDataIdentifiers: serializeAws_restJson1__listOfSuppressDataIdentifier(input.suppressDataIdentifiers, context),
|
|
1675
|
+
}),
|
|
1676
|
+
});
|
|
1677
|
+
return new protocol_http_1.HttpRequest({
|
|
1678
|
+
protocol,
|
|
1679
|
+
hostname,
|
|
1680
|
+
port,
|
|
1681
|
+
method: "PATCH",
|
|
1682
|
+
headers,
|
|
1683
|
+
path: resolvedPath,
|
|
1684
|
+
query,
|
|
1685
|
+
body,
|
|
1686
|
+
});
|
|
1687
|
+
};
|
|
1688
|
+
exports.serializeAws_restJson1UpdateResourceProfileDetectionsCommand = serializeAws_restJson1UpdateResourceProfileDetectionsCommand;
|
|
1435
1689
|
const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, context) => {
|
|
1436
1690
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1437
1691
|
const headers = {
|
|
@@ -1455,6 +1709,34 @@ const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, con
|
|
|
1455
1709
|
});
|
|
1456
1710
|
};
|
|
1457
1711
|
exports.serializeAws_restJson1UpdateRevealConfigurationCommand = serializeAws_restJson1UpdateRevealConfigurationCommand;
|
|
1712
|
+
const serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = async (input, context) => {
|
|
1713
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1714
|
+
const headers = {
|
|
1715
|
+
"content-type": "application/json",
|
|
1716
|
+
};
|
|
1717
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/sensitivity-inspections/{id}";
|
|
1718
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1719
|
+
let body;
|
|
1720
|
+
body = JSON.stringify({
|
|
1721
|
+
...(input.description != null && { description: input.description }),
|
|
1722
|
+
...(input.excludes != null && {
|
|
1723
|
+
excludes: serializeAws_restJson1SensitivityInspectionTemplateExcludes(input.excludes, context),
|
|
1724
|
+
}),
|
|
1725
|
+
...(input.includes != null && {
|
|
1726
|
+
includes: serializeAws_restJson1SensitivityInspectionTemplateIncludes(input.includes, context),
|
|
1727
|
+
}),
|
|
1728
|
+
});
|
|
1729
|
+
return new protocol_http_1.HttpRequest({
|
|
1730
|
+
protocol,
|
|
1731
|
+
hostname,
|
|
1732
|
+
port,
|
|
1733
|
+
method: "PUT",
|
|
1734
|
+
headers,
|
|
1735
|
+
path: resolvedPath,
|
|
1736
|
+
body,
|
|
1737
|
+
});
|
|
1738
|
+
};
|
|
1739
|
+
exports.serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = serializeAws_restJson1UpdateSensitivityInspectionTemplateCommand;
|
|
1458
1740
|
const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
|
|
1459
1741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
1742
|
return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
|
|
@@ -2910,41 +3192,102 @@ const deserializeAws_restJson1GetAllowListCommandError = async (output, context)
|
|
|
2910
3192
|
});
|
|
2911
3193
|
}
|
|
2912
3194
|
};
|
|
2913
|
-
const
|
|
3195
|
+
const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
2914
3196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2915
|
-
return
|
|
3197
|
+
return deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError(output, context);
|
|
2916
3198
|
}
|
|
2917
3199
|
const contents = map({
|
|
2918
3200
|
$metadata: deserializeMetadata(output),
|
|
2919
3201
|
});
|
|
2920
3202
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2921
|
-
if (data.
|
|
2922
|
-
contents.
|
|
2923
|
-
}
|
|
2924
|
-
if (data.bucketCountByEffectivePermission != null) {
|
|
2925
|
-
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
2926
|
-
}
|
|
2927
|
-
if (data.bucketCountByEncryptionType != null) {
|
|
2928
|
-
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
3203
|
+
if (data.classificationScopeId != null) {
|
|
3204
|
+
contents.classificationScopeId = (0, smithy_client_1.expectString)(data.classificationScopeId);
|
|
2929
3205
|
}
|
|
2930
|
-
if (data.
|
|
2931
|
-
contents.
|
|
2932
|
-
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
2933
|
-
}
|
|
2934
|
-
if (data.bucketCountBySharedAccessType != null) {
|
|
2935
|
-
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3206
|
+
if (data.disabledAt != null) {
|
|
3207
|
+
contents.disabledAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.disabledAt));
|
|
2936
3208
|
}
|
|
2937
|
-
if (data.
|
|
2938
|
-
contents.
|
|
3209
|
+
if (data.firstEnabledAt != null) {
|
|
3210
|
+
contents.firstEnabledAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.firstEnabledAt));
|
|
2939
3211
|
}
|
|
2940
|
-
if (data.
|
|
2941
|
-
contents.
|
|
3212
|
+
if (data.lastUpdatedAt != null) {
|
|
3213
|
+
contents.lastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdatedAt));
|
|
2942
3214
|
}
|
|
2943
|
-
if (data.
|
|
2944
|
-
contents.
|
|
3215
|
+
if (data.sensitivityInspectionTemplateId != null) {
|
|
3216
|
+
contents.sensitivityInspectionTemplateId = (0, smithy_client_1.expectString)(data.sensitivityInspectionTemplateId);
|
|
2945
3217
|
}
|
|
2946
|
-
if (data.
|
|
2947
|
-
contents.
|
|
3218
|
+
if (data.status != null) {
|
|
3219
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
3220
|
+
}
|
|
3221
|
+
return contents;
|
|
3222
|
+
};
|
|
3223
|
+
exports.deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand = deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommand;
|
|
3224
|
+
const deserializeAws_restJson1GetAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
|
|
3225
|
+
const parsedOutput = {
|
|
3226
|
+
...output,
|
|
3227
|
+
body: await parseErrorBody(output.body, context),
|
|
3228
|
+
};
|
|
3229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3230
|
+
switch (errorCode) {
|
|
3231
|
+
case "AccessDeniedException":
|
|
3232
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3233
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3234
|
+
case "InternalServerException":
|
|
3235
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3236
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3237
|
+
case "ThrottlingException":
|
|
3238
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3239
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3240
|
+
case "ValidationException":
|
|
3241
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3242
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3243
|
+
default:
|
|
3244
|
+
const parsedBody = parsedOutput.body;
|
|
3245
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3246
|
+
output,
|
|
3247
|
+
parsedBody,
|
|
3248
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3249
|
+
errorCode,
|
|
3250
|
+
});
|
|
3251
|
+
}
|
|
3252
|
+
};
|
|
3253
|
+
const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, context) => {
|
|
3254
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3255
|
+
return deserializeAws_restJson1GetBucketStatisticsCommandError(output, context);
|
|
3256
|
+
}
|
|
3257
|
+
const contents = map({
|
|
3258
|
+
$metadata: deserializeMetadata(output),
|
|
3259
|
+
});
|
|
3260
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3261
|
+
if (data.bucketCount != null) {
|
|
3262
|
+
contents.bucketCount = (0, smithy_client_1.expectLong)(data.bucketCount);
|
|
3263
|
+
}
|
|
3264
|
+
if (data.bucketCountByEffectivePermission != null) {
|
|
3265
|
+
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
3266
|
+
}
|
|
3267
|
+
if (data.bucketCountByEncryptionType != null) {
|
|
3268
|
+
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
3269
|
+
}
|
|
3270
|
+
if (data.bucketCountByObjectEncryptionRequirement != null) {
|
|
3271
|
+
contents.bucketCountByObjectEncryptionRequirement =
|
|
3272
|
+
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
3273
|
+
}
|
|
3274
|
+
if (data.bucketCountBySharedAccessType != null) {
|
|
3275
|
+
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3276
|
+
}
|
|
3277
|
+
if (data.bucketStatisticsBySensitivity != null) {
|
|
3278
|
+
contents.bucketStatisticsBySensitivity = deserializeAws_restJson1BucketStatisticsBySensitivity(data.bucketStatisticsBySensitivity, context);
|
|
3279
|
+
}
|
|
3280
|
+
if (data.classifiableObjectCount != null) {
|
|
3281
|
+
contents.classifiableObjectCount = (0, smithy_client_1.expectLong)(data.classifiableObjectCount);
|
|
3282
|
+
}
|
|
3283
|
+
if (data.classifiableSizeInBytes != null) {
|
|
3284
|
+
contents.classifiableSizeInBytes = (0, smithy_client_1.expectLong)(data.classifiableSizeInBytes);
|
|
3285
|
+
}
|
|
3286
|
+
if (data.lastUpdated != null) {
|
|
3287
|
+
contents.lastUpdated = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdated));
|
|
3288
|
+
}
|
|
3289
|
+
if (data.objectCount != null) {
|
|
3290
|
+
contents.objectCount = (0, smithy_client_1.expectLong)(data.objectCount);
|
|
2948
3291
|
}
|
|
2949
3292
|
if (data.sizeInBytes != null) {
|
|
2950
3293
|
contents.sizeInBytes = (0, smithy_client_1.expectLong)(data.sizeInBytes);
|
|
@@ -3051,6 +3394,58 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
3051
3394
|
});
|
|
3052
3395
|
}
|
|
3053
3396
|
};
|
|
3397
|
+
const deserializeAws_restJson1GetClassificationScopeCommand = async (output, context) => {
|
|
3398
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3399
|
+
return deserializeAws_restJson1GetClassificationScopeCommandError(output, context);
|
|
3400
|
+
}
|
|
3401
|
+
const contents = map({
|
|
3402
|
+
$metadata: deserializeMetadata(output),
|
|
3403
|
+
});
|
|
3404
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3405
|
+
if (data.id != null) {
|
|
3406
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
3407
|
+
}
|
|
3408
|
+
if (data.name != null) {
|
|
3409
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3410
|
+
}
|
|
3411
|
+
if (data.s3 != null) {
|
|
3412
|
+
contents.s3 = deserializeAws_restJson1S3ClassificationScope(data.s3, context);
|
|
3413
|
+
}
|
|
3414
|
+
return contents;
|
|
3415
|
+
};
|
|
3416
|
+
exports.deserializeAws_restJson1GetClassificationScopeCommand = deserializeAws_restJson1GetClassificationScopeCommand;
|
|
3417
|
+
const deserializeAws_restJson1GetClassificationScopeCommandError = async (output, context) => {
|
|
3418
|
+
const parsedOutput = {
|
|
3419
|
+
...output,
|
|
3420
|
+
body: await parseErrorBody(output.body, context),
|
|
3421
|
+
};
|
|
3422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3423
|
+
switch (errorCode) {
|
|
3424
|
+
case "AccessDeniedException":
|
|
3425
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3426
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3427
|
+
case "InternalServerException":
|
|
3428
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3429
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3430
|
+
case "ResourceNotFoundException":
|
|
3431
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3432
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3433
|
+
case "ThrottlingException":
|
|
3434
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3435
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3436
|
+
case "ValidationException":
|
|
3437
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3438
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3439
|
+
default:
|
|
3440
|
+
const parsedBody = parsedOutput.body;
|
|
3441
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3442
|
+
output,
|
|
3443
|
+
parsedBody,
|
|
3444
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3445
|
+
errorCode,
|
|
3446
|
+
});
|
|
3447
|
+
}
|
|
3448
|
+
};
|
|
3054
3449
|
const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, context) => {
|
|
3055
3450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3056
3451
|
return deserializeAws_restJson1GetCustomDataIdentifierCommandError(output, context);
|
|
@@ -3609,6 +4004,64 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3609
4004
|
});
|
|
3610
4005
|
}
|
|
3611
4006
|
};
|
|
4007
|
+
const deserializeAws_restJson1GetResourceProfileCommand = async (output, context) => {
|
|
4008
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4009
|
+
return deserializeAws_restJson1GetResourceProfileCommandError(output, context);
|
|
4010
|
+
}
|
|
4011
|
+
const contents = map({
|
|
4012
|
+
$metadata: deserializeMetadata(output),
|
|
4013
|
+
});
|
|
4014
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4015
|
+
if (data.profileUpdatedAt != null) {
|
|
4016
|
+
contents.profileUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.profileUpdatedAt));
|
|
4017
|
+
}
|
|
4018
|
+
if (data.sensitivityScore != null) {
|
|
4019
|
+
contents.sensitivityScore = (0, smithy_client_1.expectInt32)(data.sensitivityScore);
|
|
4020
|
+
}
|
|
4021
|
+
if (data.sensitivityScoreOverridden != null) {
|
|
4022
|
+
contents.sensitivityScoreOverridden = (0, smithy_client_1.expectBoolean)(data.sensitivityScoreOverridden);
|
|
4023
|
+
}
|
|
4024
|
+
if (data.statistics != null) {
|
|
4025
|
+
contents.statistics = deserializeAws_restJson1ResourceStatistics(data.statistics, context);
|
|
4026
|
+
}
|
|
4027
|
+
return contents;
|
|
4028
|
+
};
|
|
4029
|
+
exports.deserializeAws_restJson1GetResourceProfileCommand = deserializeAws_restJson1GetResourceProfileCommand;
|
|
4030
|
+
const deserializeAws_restJson1GetResourceProfileCommandError = async (output, context) => {
|
|
4031
|
+
const parsedOutput = {
|
|
4032
|
+
...output,
|
|
4033
|
+
body: await parseErrorBody(output.body, context),
|
|
4034
|
+
};
|
|
4035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4036
|
+
switch (errorCode) {
|
|
4037
|
+
case "AccessDeniedException":
|
|
4038
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4039
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4040
|
+
case "InternalServerException":
|
|
4041
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4042
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4043
|
+
case "ResourceNotFoundException":
|
|
4044
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4045
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4046
|
+
case "ServiceQuotaExceededException":
|
|
4047
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4048
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4049
|
+
case "ThrottlingException":
|
|
4050
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4051
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4052
|
+
case "ValidationException":
|
|
4053
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4054
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4055
|
+
default:
|
|
4056
|
+
const parsedBody = parsedOutput.body;
|
|
4057
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4058
|
+
output,
|
|
4059
|
+
parsedBody,
|
|
4060
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4061
|
+
errorCode,
|
|
4062
|
+
});
|
|
4063
|
+
}
|
|
4064
|
+
};
|
|
3612
4065
|
const deserializeAws_restJson1GetRevealConfigurationCommand = async (output, context) => {
|
|
3613
4066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3614
4067
|
return deserializeAws_restJson1GetRevealConfigurationCommandError(output, context);
|
|
@@ -3753,6 +4206,64 @@ const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandErro
|
|
|
3753
4206
|
});
|
|
3754
4207
|
}
|
|
3755
4208
|
};
|
|
4209
|
+
const deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = async (output, context) => {
|
|
4210
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4211
|
+
return deserializeAws_restJson1GetSensitivityInspectionTemplateCommandError(output, context);
|
|
4212
|
+
}
|
|
4213
|
+
const contents = map({
|
|
4214
|
+
$metadata: deserializeMetadata(output),
|
|
4215
|
+
});
|
|
4216
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4217
|
+
if (data.description != null) {
|
|
4218
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
4219
|
+
}
|
|
4220
|
+
if (data.excludes != null) {
|
|
4221
|
+
contents.excludes = deserializeAws_restJson1SensitivityInspectionTemplateExcludes(data.excludes, context);
|
|
4222
|
+
}
|
|
4223
|
+
if (data.includes != null) {
|
|
4224
|
+
contents.includes = deserializeAws_restJson1SensitivityInspectionTemplateIncludes(data.includes, context);
|
|
4225
|
+
}
|
|
4226
|
+
if (data.name != null) {
|
|
4227
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
4228
|
+
}
|
|
4229
|
+
if (data.sensitivityInspectionTemplateId != null) {
|
|
4230
|
+
contents.sensitivityInspectionTemplateId = (0, smithy_client_1.expectString)(data.sensitivityInspectionTemplateId);
|
|
4231
|
+
}
|
|
4232
|
+
return contents;
|
|
4233
|
+
};
|
|
4234
|
+
exports.deserializeAws_restJson1GetSensitivityInspectionTemplateCommand = deserializeAws_restJson1GetSensitivityInspectionTemplateCommand;
|
|
4235
|
+
const deserializeAws_restJson1GetSensitivityInspectionTemplateCommandError = async (output, context) => {
|
|
4236
|
+
const parsedOutput = {
|
|
4237
|
+
...output,
|
|
4238
|
+
body: await parseErrorBody(output.body, context),
|
|
4239
|
+
};
|
|
4240
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4241
|
+
switch (errorCode) {
|
|
4242
|
+
case "AccessDeniedException":
|
|
4243
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4244
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4245
|
+
case "InternalServerException":
|
|
4246
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4247
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4248
|
+
case "ResourceNotFoundException":
|
|
4249
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4250
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4251
|
+
case "ThrottlingException":
|
|
4252
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4253
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4254
|
+
case "ValidationException":
|
|
4255
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4256
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4257
|
+
default:
|
|
4258
|
+
const parsedBody = parsedOutput.body;
|
|
4259
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4260
|
+
output,
|
|
4261
|
+
parsedBody,
|
|
4262
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4263
|
+
errorCode,
|
|
4264
|
+
});
|
|
4265
|
+
}
|
|
4266
|
+
};
|
|
3756
4267
|
const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context) => {
|
|
3757
4268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3758
4269
|
return deserializeAws_restJson1GetUsageStatisticsCommandError(output, context);
|
|
@@ -3967,6 +4478,52 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3967
4478
|
});
|
|
3968
4479
|
}
|
|
3969
4480
|
};
|
|
4481
|
+
const deserializeAws_restJson1ListClassificationScopesCommand = async (output, context) => {
|
|
4482
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4483
|
+
return deserializeAws_restJson1ListClassificationScopesCommandError(output, context);
|
|
4484
|
+
}
|
|
4485
|
+
const contents = map({
|
|
4486
|
+
$metadata: deserializeMetadata(output),
|
|
4487
|
+
});
|
|
4488
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4489
|
+
if (data.classificationScopes != null) {
|
|
4490
|
+
contents.classificationScopes = deserializeAws_restJson1__listOfClassificationScopeSummary(data.classificationScopes, context);
|
|
4491
|
+
}
|
|
4492
|
+
if (data.nextToken != null) {
|
|
4493
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4494
|
+
}
|
|
4495
|
+
return contents;
|
|
4496
|
+
};
|
|
4497
|
+
exports.deserializeAws_restJson1ListClassificationScopesCommand = deserializeAws_restJson1ListClassificationScopesCommand;
|
|
4498
|
+
const deserializeAws_restJson1ListClassificationScopesCommandError = async (output, context) => {
|
|
4499
|
+
const parsedOutput = {
|
|
4500
|
+
...output,
|
|
4501
|
+
body: await parseErrorBody(output.body, context),
|
|
4502
|
+
};
|
|
4503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4504
|
+
switch (errorCode) {
|
|
4505
|
+
case "AccessDeniedException":
|
|
4506
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4507
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4508
|
+
case "InternalServerException":
|
|
4509
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4510
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4511
|
+
case "ThrottlingException":
|
|
4512
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4513
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4514
|
+
case "ValidationException":
|
|
4515
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4516
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4517
|
+
default:
|
|
4518
|
+
const parsedBody = parsedOutput.body;
|
|
4519
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4520
|
+
output,
|
|
4521
|
+
parsedBody,
|
|
4522
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4523
|
+
errorCode,
|
|
4524
|
+
});
|
|
4525
|
+
}
|
|
4526
|
+
};
|
|
3970
4527
|
const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output, context) => {
|
|
3971
4528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3972
4529
|
return deserializeAws_restJson1ListCustomDataIdentifiersCommandError(output, context);
|
|
@@ -4328,20 +4885,170 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4328
4885
|
});
|
|
4329
4886
|
}
|
|
4330
4887
|
};
|
|
4331
|
-
const
|
|
4888
|
+
const deserializeAws_restJson1ListResourceProfileArtifactsCommand = async (output, context) => {
|
|
4332
4889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4333
|
-
return
|
|
4890
|
+
return deserializeAws_restJson1ListResourceProfileArtifactsCommandError(output, context);
|
|
4334
4891
|
}
|
|
4335
4892
|
const contents = map({
|
|
4336
4893
|
$metadata: deserializeMetadata(output),
|
|
4337
4894
|
});
|
|
4338
4895
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4339
|
-
if (data.
|
|
4340
|
-
contents.
|
|
4896
|
+
if (data.artifacts != null) {
|
|
4897
|
+
contents.artifacts = deserializeAws_restJson1__listOfResourceProfileArtifact(data.artifacts, context);
|
|
4898
|
+
}
|
|
4899
|
+
if (data.nextToken != null) {
|
|
4900
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4341
4901
|
}
|
|
4342
4902
|
return contents;
|
|
4343
4903
|
};
|
|
4344
|
-
exports.
|
|
4904
|
+
exports.deserializeAws_restJson1ListResourceProfileArtifactsCommand = deserializeAws_restJson1ListResourceProfileArtifactsCommand;
|
|
4905
|
+
const deserializeAws_restJson1ListResourceProfileArtifactsCommandError = async (output, context) => {
|
|
4906
|
+
const parsedOutput = {
|
|
4907
|
+
...output,
|
|
4908
|
+
body: await parseErrorBody(output.body, context),
|
|
4909
|
+
};
|
|
4910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4911
|
+
switch (errorCode) {
|
|
4912
|
+
case "AccessDeniedException":
|
|
4913
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4914
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4915
|
+
case "InternalServerException":
|
|
4916
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4917
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4918
|
+
case "ResourceNotFoundException":
|
|
4919
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4920
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4921
|
+
case "ThrottlingException":
|
|
4922
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4923
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4924
|
+
case "ValidationException":
|
|
4925
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4926
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4927
|
+
default:
|
|
4928
|
+
const parsedBody = parsedOutput.body;
|
|
4929
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4930
|
+
output,
|
|
4931
|
+
parsedBody,
|
|
4932
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4933
|
+
errorCode,
|
|
4934
|
+
});
|
|
4935
|
+
}
|
|
4936
|
+
};
|
|
4937
|
+
const deserializeAws_restJson1ListResourceProfileDetectionsCommand = async (output, context) => {
|
|
4938
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4939
|
+
return deserializeAws_restJson1ListResourceProfileDetectionsCommandError(output, context);
|
|
4940
|
+
}
|
|
4941
|
+
const contents = map({
|
|
4942
|
+
$metadata: deserializeMetadata(output),
|
|
4943
|
+
});
|
|
4944
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4945
|
+
if (data.detections != null) {
|
|
4946
|
+
contents.detections = deserializeAws_restJson1__listOfDetection(data.detections, context);
|
|
4947
|
+
}
|
|
4948
|
+
if (data.nextToken != null) {
|
|
4949
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4950
|
+
}
|
|
4951
|
+
return contents;
|
|
4952
|
+
};
|
|
4953
|
+
exports.deserializeAws_restJson1ListResourceProfileDetectionsCommand = deserializeAws_restJson1ListResourceProfileDetectionsCommand;
|
|
4954
|
+
const deserializeAws_restJson1ListResourceProfileDetectionsCommandError = async (output, context) => {
|
|
4955
|
+
const parsedOutput = {
|
|
4956
|
+
...output,
|
|
4957
|
+
body: await parseErrorBody(output.body, context),
|
|
4958
|
+
};
|
|
4959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4960
|
+
switch (errorCode) {
|
|
4961
|
+
case "AccessDeniedException":
|
|
4962
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4963
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4964
|
+
case "InternalServerException":
|
|
4965
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4966
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4967
|
+
case "ResourceNotFoundException":
|
|
4968
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4969
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4970
|
+
case "ServiceQuotaExceededException":
|
|
4971
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
4972
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4973
|
+
case "ThrottlingException":
|
|
4974
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4975
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4976
|
+
case "ValidationException":
|
|
4977
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4978
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4979
|
+
default:
|
|
4980
|
+
const parsedBody = parsedOutput.body;
|
|
4981
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4982
|
+
output,
|
|
4983
|
+
parsedBody,
|
|
4984
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4985
|
+
errorCode,
|
|
4986
|
+
});
|
|
4987
|
+
}
|
|
4988
|
+
};
|
|
4989
|
+
const deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = async (output, context) => {
|
|
4990
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4991
|
+
return deserializeAws_restJson1ListSensitivityInspectionTemplatesCommandError(output, context);
|
|
4992
|
+
}
|
|
4993
|
+
const contents = map({
|
|
4994
|
+
$metadata: deserializeMetadata(output),
|
|
4995
|
+
});
|
|
4996
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4997
|
+
if (data.nextToken != null) {
|
|
4998
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4999
|
+
}
|
|
5000
|
+
if (data.sensitivityInspectionTemplates != null) {
|
|
5001
|
+
contents.sensitivityInspectionTemplates = deserializeAws_restJson1__listOfSensitivityInspectionTemplatesEntry(data.sensitivityInspectionTemplates, context);
|
|
5002
|
+
}
|
|
5003
|
+
return contents;
|
|
5004
|
+
};
|
|
5005
|
+
exports.deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand = deserializeAws_restJson1ListSensitivityInspectionTemplatesCommand;
|
|
5006
|
+
const deserializeAws_restJson1ListSensitivityInspectionTemplatesCommandError = async (output, context) => {
|
|
5007
|
+
const parsedOutput = {
|
|
5008
|
+
...output,
|
|
5009
|
+
body: await parseErrorBody(output.body, context),
|
|
5010
|
+
};
|
|
5011
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5012
|
+
switch (errorCode) {
|
|
5013
|
+
case "AccessDeniedException":
|
|
5014
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5015
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5016
|
+
case "InternalServerException":
|
|
5017
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5018
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5019
|
+
case "ServiceQuotaExceededException":
|
|
5020
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
5021
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
5022
|
+
case "ThrottlingException":
|
|
5023
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5024
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5025
|
+
case "ValidationException":
|
|
5026
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5027
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5028
|
+
default:
|
|
5029
|
+
const parsedBody = parsedOutput.body;
|
|
5030
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5031
|
+
output,
|
|
5032
|
+
parsedBody,
|
|
5033
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
5034
|
+
errorCode,
|
|
5035
|
+
});
|
|
5036
|
+
}
|
|
5037
|
+
};
|
|
5038
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
5039
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5040
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
5041
|
+
}
|
|
5042
|
+
const contents = map({
|
|
5043
|
+
$metadata: deserializeMetadata(output),
|
|
5044
|
+
});
|
|
5045
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5046
|
+
if (data.tags != null) {
|
|
5047
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5048
|
+
}
|
|
5049
|
+
return contents;
|
|
5050
|
+
};
|
|
5051
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
4345
5052
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
4346
5053
|
const parsedOutput = {
|
|
4347
5054
|
...output,
|
|
@@ -4614,9 +5321,190 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4614
5321
|
errorCode,
|
|
4615
5322
|
});
|
|
4616
5323
|
};
|
|
4617
|
-
const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
|
|
5324
|
+
const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
|
|
5325
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5326
|
+
return deserializeAws_restJson1UpdateAllowListCommandError(output, context);
|
|
5327
|
+
}
|
|
5328
|
+
const contents = map({
|
|
5329
|
+
$metadata: deserializeMetadata(output),
|
|
5330
|
+
});
|
|
5331
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5332
|
+
if (data.arn != null) {
|
|
5333
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
5334
|
+
}
|
|
5335
|
+
if (data.id != null) {
|
|
5336
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
5337
|
+
}
|
|
5338
|
+
return contents;
|
|
5339
|
+
};
|
|
5340
|
+
exports.deserializeAws_restJson1UpdateAllowListCommand = deserializeAws_restJson1UpdateAllowListCommand;
|
|
5341
|
+
const deserializeAws_restJson1UpdateAllowListCommandError = async (output, context) => {
|
|
5342
|
+
const parsedOutput = {
|
|
5343
|
+
...output,
|
|
5344
|
+
body: await parseErrorBody(output.body, context),
|
|
5345
|
+
};
|
|
5346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5347
|
+
switch (errorCode) {
|
|
5348
|
+
case "AccessDeniedException":
|
|
5349
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5350
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5351
|
+
case "InternalServerException":
|
|
5352
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5353
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5354
|
+
case "ResourceNotFoundException":
|
|
5355
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5356
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5357
|
+
case "ThrottlingException":
|
|
5358
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5359
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5360
|
+
case "ValidationException":
|
|
5361
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5362
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5363
|
+
default:
|
|
5364
|
+
const parsedBody = parsedOutput.body;
|
|
5365
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5366
|
+
output,
|
|
5367
|
+
parsedBody,
|
|
5368
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
5369
|
+
errorCode,
|
|
5370
|
+
});
|
|
5371
|
+
}
|
|
5372
|
+
};
|
|
5373
|
+
const deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = async (output, context) => {
|
|
5374
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5375
|
+
return deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommandError(output, context);
|
|
5376
|
+
}
|
|
5377
|
+
const contents = map({
|
|
5378
|
+
$metadata: deserializeMetadata(output),
|
|
5379
|
+
});
|
|
5380
|
+
await collectBody(output.body, context);
|
|
5381
|
+
return contents;
|
|
5382
|
+
};
|
|
5383
|
+
exports.deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand = deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommand;
|
|
5384
|
+
const deserializeAws_restJson1UpdateAutomatedDiscoveryConfigurationCommandError = async (output, context) => {
|
|
5385
|
+
const parsedOutput = {
|
|
5386
|
+
...output,
|
|
5387
|
+
body: await parseErrorBody(output.body, context),
|
|
5388
|
+
};
|
|
5389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5390
|
+
switch (errorCode) {
|
|
5391
|
+
case "AccessDeniedException":
|
|
5392
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5393
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5394
|
+
case "InternalServerException":
|
|
5395
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5396
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5397
|
+
case "ThrottlingException":
|
|
5398
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5399
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5400
|
+
case "ValidationException":
|
|
5401
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5402
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5403
|
+
default:
|
|
5404
|
+
const parsedBody = parsedOutput.body;
|
|
5405
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5406
|
+
output,
|
|
5407
|
+
parsedBody,
|
|
5408
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
5409
|
+
errorCode,
|
|
5410
|
+
});
|
|
5411
|
+
}
|
|
5412
|
+
};
|
|
5413
|
+
const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, context) => {
|
|
5414
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5415
|
+
return deserializeAws_restJson1UpdateClassificationJobCommandError(output, context);
|
|
5416
|
+
}
|
|
5417
|
+
const contents = map({
|
|
5418
|
+
$metadata: deserializeMetadata(output),
|
|
5419
|
+
});
|
|
5420
|
+
await collectBody(output.body, context);
|
|
5421
|
+
return contents;
|
|
5422
|
+
};
|
|
5423
|
+
exports.deserializeAws_restJson1UpdateClassificationJobCommand = deserializeAws_restJson1UpdateClassificationJobCommand;
|
|
5424
|
+
const deserializeAws_restJson1UpdateClassificationJobCommandError = async (output, context) => {
|
|
5425
|
+
const parsedOutput = {
|
|
5426
|
+
...output,
|
|
5427
|
+
body: await parseErrorBody(output.body, context),
|
|
5428
|
+
};
|
|
5429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5430
|
+
switch (errorCode) {
|
|
5431
|
+
case "AccessDeniedException":
|
|
5432
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5433
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5434
|
+
case "ConflictException":
|
|
5435
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
5436
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
5437
|
+
case "InternalServerException":
|
|
5438
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5439
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5440
|
+
case "ResourceNotFoundException":
|
|
5441
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5442
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5443
|
+
case "ServiceQuotaExceededException":
|
|
5444
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
5445
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
5446
|
+
case "ThrottlingException":
|
|
5447
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5448
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5449
|
+
case "ValidationException":
|
|
5450
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5451
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5452
|
+
default:
|
|
5453
|
+
const parsedBody = parsedOutput.body;
|
|
5454
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5455
|
+
output,
|
|
5456
|
+
parsedBody,
|
|
5457
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
5458
|
+
errorCode,
|
|
5459
|
+
});
|
|
5460
|
+
}
|
|
5461
|
+
};
|
|
5462
|
+
const deserializeAws_restJson1UpdateClassificationScopeCommand = async (output, context) => {
|
|
5463
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5464
|
+
return deserializeAws_restJson1UpdateClassificationScopeCommandError(output, context);
|
|
5465
|
+
}
|
|
5466
|
+
const contents = map({
|
|
5467
|
+
$metadata: deserializeMetadata(output),
|
|
5468
|
+
});
|
|
5469
|
+
await collectBody(output.body, context);
|
|
5470
|
+
return contents;
|
|
5471
|
+
};
|
|
5472
|
+
exports.deserializeAws_restJson1UpdateClassificationScopeCommand = deserializeAws_restJson1UpdateClassificationScopeCommand;
|
|
5473
|
+
const deserializeAws_restJson1UpdateClassificationScopeCommandError = async (output, context) => {
|
|
5474
|
+
const parsedOutput = {
|
|
5475
|
+
...output,
|
|
5476
|
+
body: await parseErrorBody(output.body, context),
|
|
5477
|
+
};
|
|
5478
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5479
|
+
switch (errorCode) {
|
|
5480
|
+
case "AccessDeniedException":
|
|
5481
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5482
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5483
|
+
case "InternalServerException":
|
|
5484
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5485
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5486
|
+
case "ResourceNotFoundException":
|
|
5487
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5488
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5489
|
+
case "ThrottlingException":
|
|
5490
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5491
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5492
|
+
case "ValidationException":
|
|
5493
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5494
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5495
|
+
default:
|
|
5496
|
+
const parsedBody = parsedOutput.body;
|
|
5497
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5498
|
+
output,
|
|
5499
|
+
parsedBody,
|
|
5500
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
5501
|
+
errorCode,
|
|
5502
|
+
});
|
|
5503
|
+
}
|
|
5504
|
+
};
|
|
5505
|
+
const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, context) => {
|
|
4618
5506
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4619
|
-
return
|
|
5507
|
+
return deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context);
|
|
4620
5508
|
}
|
|
4621
5509
|
const contents = map({
|
|
4622
5510
|
$metadata: deserializeMetadata(output),
|
|
@@ -4630,8 +5518,8 @@ const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) =
|
|
|
4630
5518
|
}
|
|
4631
5519
|
return contents;
|
|
4632
5520
|
};
|
|
4633
|
-
exports.
|
|
4634
|
-
const
|
|
5521
|
+
exports.deserializeAws_restJson1UpdateFindingsFilterCommand = deserializeAws_restJson1UpdateFindingsFilterCommand;
|
|
5522
|
+
const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
|
|
4635
5523
|
const parsedOutput = {
|
|
4636
5524
|
...output,
|
|
4637
5525
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4641,12 +5529,18 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
|
|
|
4641
5529
|
case "AccessDeniedException":
|
|
4642
5530
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4643
5531
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5532
|
+
case "ConflictException":
|
|
5533
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
5534
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4644
5535
|
case "InternalServerException":
|
|
4645
5536
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4646
5537
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4647
5538
|
case "ResourceNotFoundException":
|
|
4648
5539
|
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4649
5540
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5541
|
+
case "ServiceQuotaExceededException":
|
|
5542
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
5543
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4650
5544
|
case "ThrottlingException":
|
|
4651
5545
|
case "com.amazonaws.macie2#ThrottlingException":
|
|
4652
5546
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
@@ -4663,9 +5557,9 @@ const deserializeAws_restJson1UpdateAllowListCommandError = async (output, conte
|
|
|
4663
5557
|
});
|
|
4664
5558
|
}
|
|
4665
5559
|
};
|
|
4666
|
-
const
|
|
5560
|
+
const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context) => {
|
|
4667
5561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4668
|
-
return
|
|
5562
|
+
return deserializeAws_restJson1UpdateMacieSessionCommandError(output, context);
|
|
4669
5563
|
}
|
|
4670
5564
|
const contents = map({
|
|
4671
5565
|
$metadata: deserializeMetadata(output),
|
|
@@ -4673,8 +5567,8 @@ const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, co
|
|
|
4673
5567
|
await collectBody(output.body, context);
|
|
4674
5568
|
return contents;
|
|
4675
5569
|
};
|
|
4676
|
-
exports.
|
|
4677
|
-
const
|
|
5570
|
+
exports.deserializeAws_restJson1UpdateMacieSessionCommand = deserializeAws_restJson1UpdateMacieSessionCommand;
|
|
5571
|
+
const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
|
|
4678
5572
|
const parsedOutput = {
|
|
4679
5573
|
...output,
|
|
4680
5574
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4712,24 +5606,18 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4712
5606
|
});
|
|
4713
5607
|
}
|
|
4714
5608
|
};
|
|
4715
|
-
const
|
|
5609
|
+
const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, context) => {
|
|
4716
5610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4717
|
-
return
|
|
5611
|
+
return deserializeAws_restJson1UpdateMemberSessionCommandError(output, context);
|
|
4718
5612
|
}
|
|
4719
5613
|
const contents = map({
|
|
4720
5614
|
$metadata: deserializeMetadata(output),
|
|
4721
5615
|
});
|
|
4722
|
-
|
|
4723
|
-
if (data.arn != null) {
|
|
4724
|
-
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
4725
|
-
}
|
|
4726
|
-
if (data.id != null) {
|
|
4727
|
-
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
4728
|
-
}
|
|
5616
|
+
await collectBody(output.body, context);
|
|
4729
5617
|
return contents;
|
|
4730
5618
|
};
|
|
4731
|
-
exports.
|
|
4732
|
-
const
|
|
5619
|
+
exports.deserializeAws_restJson1UpdateMemberSessionCommand = deserializeAws_restJson1UpdateMemberSessionCommand;
|
|
5620
|
+
const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
|
|
4733
5621
|
const parsedOutput = {
|
|
4734
5622
|
...output,
|
|
4735
5623
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4767,9 +5655,9 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4767
5655
|
});
|
|
4768
5656
|
}
|
|
4769
5657
|
};
|
|
4770
|
-
const
|
|
5658
|
+
const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
4771
5659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4772
|
-
return
|
|
5660
|
+
return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
|
|
4773
5661
|
}
|
|
4774
5662
|
const contents = map({
|
|
4775
5663
|
$metadata: deserializeMetadata(output),
|
|
@@ -4777,8 +5665,8 @@ const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context
|
|
|
4777
5665
|
await collectBody(output.body, context);
|
|
4778
5666
|
return contents;
|
|
4779
5667
|
};
|
|
4780
|
-
exports.
|
|
4781
|
-
const
|
|
5668
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deserializeAws_restJson1UpdateOrganizationConfigurationCommand;
|
|
5669
|
+
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
4782
5670
|
const parsedOutput = {
|
|
4783
5671
|
...output,
|
|
4784
5672
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4816,9 +5704,9 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4816
5704
|
});
|
|
4817
5705
|
}
|
|
4818
5706
|
};
|
|
4819
|
-
const
|
|
5707
|
+
const deserializeAws_restJson1UpdateResourceProfileCommand = async (output, context) => {
|
|
4820
5708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4821
|
-
return
|
|
5709
|
+
return deserializeAws_restJson1UpdateResourceProfileCommandError(output, context);
|
|
4822
5710
|
}
|
|
4823
5711
|
const contents = map({
|
|
4824
5712
|
$metadata: deserializeMetadata(output),
|
|
@@ -4826,8 +5714,8 @@ const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, contex
|
|
|
4826
5714
|
await collectBody(output.body, context);
|
|
4827
5715
|
return contents;
|
|
4828
5716
|
};
|
|
4829
|
-
exports.
|
|
4830
|
-
const
|
|
5717
|
+
exports.deserializeAws_restJson1UpdateResourceProfileCommand = deserializeAws_restJson1UpdateResourceProfileCommand;
|
|
5718
|
+
const deserializeAws_restJson1UpdateResourceProfileCommandError = async (output, context) => {
|
|
4831
5719
|
const parsedOutput = {
|
|
4832
5720
|
...output,
|
|
4833
5721
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4837,9 +5725,6 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4837
5725
|
case "AccessDeniedException":
|
|
4838
5726
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4839
5727
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4840
|
-
case "ConflictException":
|
|
4841
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4842
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4843
5728
|
case "InternalServerException":
|
|
4844
5729
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4845
5730
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -4865,9 +5750,9 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4865
5750
|
});
|
|
4866
5751
|
}
|
|
4867
5752
|
};
|
|
4868
|
-
const
|
|
5753
|
+
const deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = async (output, context) => {
|
|
4869
5754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4870
|
-
return
|
|
5755
|
+
return deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError(output, context);
|
|
4871
5756
|
}
|
|
4872
5757
|
const contents = map({
|
|
4873
5758
|
$metadata: deserializeMetadata(output),
|
|
@@ -4875,8 +5760,8 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (ou
|
|
|
4875
5760
|
await collectBody(output.body, context);
|
|
4876
5761
|
return contents;
|
|
4877
5762
|
};
|
|
4878
|
-
exports.
|
|
4879
|
-
const
|
|
5763
|
+
exports.deserializeAws_restJson1UpdateResourceProfileDetectionsCommand = deserializeAws_restJson1UpdateResourceProfileDetectionsCommand;
|
|
5764
|
+
const deserializeAws_restJson1UpdateResourceProfileDetectionsCommandError = async (output, context) => {
|
|
4880
5765
|
const parsedOutput = {
|
|
4881
5766
|
...output,
|
|
4882
5767
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4886,9 +5771,6 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4886
5771
|
case "AccessDeniedException":
|
|
4887
5772
|
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4888
5773
|
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4889
|
-
case "ConflictException":
|
|
4890
|
-
case "com.amazonaws.macie2#ConflictException":
|
|
4891
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4892
5774
|
case "InternalServerException":
|
|
4893
5775
|
case "com.amazonaws.macie2#InternalServerException":
|
|
4894
5776
|
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -4957,6 +5839,49 @@ const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (out
|
|
|
4957
5839
|
});
|
|
4958
5840
|
}
|
|
4959
5841
|
};
|
|
5842
|
+
const deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = async (output, context) => {
|
|
5843
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5844
|
+
return deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommandError(output, context);
|
|
5845
|
+
}
|
|
5846
|
+
const contents = map({
|
|
5847
|
+
$metadata: deserializeMetadata(output),
|
|
5848
|
+
});
|
|
5849
|
+
await collectBody(output.body, context);
|
|
5850
|
+
return contents;
|
|
5851
|
+
};
|
|
5852
|
+
exports.deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand = deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommand;
|
|
5853
|
+
const deserializeAws_restJson1UpdateSensitivityInspectionTemplateCommandError = async (output, context) => {
|
|
5854
|
+
const parsedOutput = {
|
|
5855
|
+
...output,
|
|
5856
|
+
body: await parseErrorBody(output.body, context),
|
|
5857
|
+
};
|
|
5858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5859
|
+
switch (errorCode) {
|
|
5860
|
+
case "AccessDeniedException":
|
|
5861
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5862
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5863
|
+
case "InternalServerException":
|
|
5864
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5865
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5866
|
+
case "ResourceNotFoundException":
|
|
5867
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
5868
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5869
|
+
case "ThrottlingException":
|
|
5870
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5871
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5872
|
+
case "ValidationException":
|
|
5873
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5874
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5875
|
+
default:
|
|
5876
|
+
const parsedBody = parsedOutput.body;
|
|
5877
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5878
|
+
output,
|
|
5879
|
+
parsedBody,
|
|
5880
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
5881
|
+
errorCode,
|
|
5882
|
+
});
|
|
5883
|
+
}
|
|
5884
|
+
};
|
|
4960
5885
|
const map = smithy_client_1.map;
|
|
4961
5886
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4962
5887
|
const contents = map({});
|
|
@@ -5096,6 +6021,13 @@ const serializeAws_restJson1__listOfS3BucketDefinitionForJob = (input, context)
|
|
|
5096
6021
|
return serializeAws_restJson1S3BucketDefinitionForJob(entry, context);
|
|
5097
6022
|
});
|
|
5098
6023
|
};
|
|
6024
|
+
const serializeAws_restJson1__listOfS3BucketName = (input, context) => {
|
|
6025
|
+
return input
|
|
6026
|
+
.filter((e) => e != null)
|
|
6027
|
+
.map((entry) => {
|
|
6028
|
+
return entry;
|
|
6029
|
+
});
|
|
6030
|
+
};
|
|
5099
6031
|
const serializeAws_restJson1__listOfSearchResourcesCriteria = (input, context) => {
|
|
5100
6032
|
return input
|
|
5101
6033
|
.filter((e) => e != null)
|
|
@@ -5110,6 +6042,13 @@ const serializeAws_restJson1__listOfSearchResourcesTagCriterionPair = (input, co
|
|
|
5110
6042
|
return serializeAws_restJson1SearchResourcesTagCriterionPair(entry, context);
|
|
5111
6043
|
});
|
|
5112
6044
|
};
|
|
6045
|
+
const serializeAws_restJson1__listOfSuppressDataIdentifier = (input, context) => {
|
|
6046
|
+
return input
|
|
6047
|
+
.filter((e) => e != null)
|
|
6048
|
+
.map((entry) => {
|
|
6049
|
+
return serializeAws_restJson1SuppressDataIdentifier(entry, context);
|
|
6050
|
+
});
|
|
6051
|
+
};
|
|
5113
6052
|
const serializeAws_restJson1__listOfTagCriterionPairForJob = (input, context) => {
|
|
5114
6053
|
return input
|
|
5115
6054
|
.filter((e) => e != null)
|
|
@@ -5301,6 +6240,21 @@ const serializeAws_restJson1S3BucketDefinitionForJob = (input, context) => {
|
|
|
5301
6240
|
...(input.buckets != null && { buckets: serializeAws_restJson1__listOf__string(input.buckets, context) }),
|
|
5302
6241
|
};
|
|
5303
6242
|
};
|
|
6243
|
+
const serializeAws_restJson1S3ClassificationScopeExclusionUpdate = (input, context) => {
|
|
6244
|
+
return {
|
|
6245
|
+
...(input.bucketNames != null && {
|
|
6246
|
+
bucketNames: serializeAws_restJson1__listOfS3BucketName(input.bucketNames, context),
|
|
6247
|
+
}),
|
|
6248
|
+
...(input.operation != null && { operation: input.operation }),
|
|
6249
|
+
};
|
|
6250
|
+
};
|
|
6251
|
+
const serializeAws_restJson1S3ClassificationScopeUpdate = (input, context) => {
|
|
6252
|
+
return {
|
|
6253
|
+
...(input.excludes != null && {
|
|
6254
|
+
excludes: serializeAws_restJson1S3ClassificationScopeExclusionUpdate(input.excludes, context),
|
|
6255
|
+
}),
|
|
6256
|
+
};
|
|
6257
|
+
};
|
|
5304
6258
|
const serializeAws_restJson1S3Destination = (input, context) => {
|
|
5305
6259
|
return {
|
|
5306
6260
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
@@ -5391,6 +6345,26 @@ const serializeAws_restJson1SecurityHubConfiguration = (input, context) => {
|
|
|
5391
6345
|
...(input.publishPolicyFindings != null && { publishPolicyFindings: input.publishPolicyFindings }),
|
|
5392
6346
|
};
|
|
5393
6347
|
};
|
|
6348
|
+
const serializeAws_restJson1SensitivityInspectionTemplateExcludes = (input, context) => {
|
|
6349
|
+
return {
|
|
6350
|
+
...(input.managedDataIdentifierIds != null && {
|
|
6351
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
6352
|
+
}),
|
|
6353
|
+
};
|
|
6354
|
+
};
|
|
6355
|
+
const serializeAws_restJson1SensitivityInspectionTemplateIncludes = (input, context) => {
|
|
6356
|
+
return {
|
|
6357
|
+
...(input.allowListIds != null && {
|
|
6358
|
+
allowListIds: serializeAws_restJson1__listOf__string(input.allowListIds, context),
|
|
6359
|
+
}),
|
|
6360
|
+
...(input.customDataIdentifierIds != null && {
|
|
6361
|
+
customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
|
|
6362
|
+
}),
|
|
6363
|
+
...(input.managedDataIdentifierIds != null && {
|
|
6364
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
6365
|
+
}),
|
|
6366
|
+
};
|
|
6367
|
+
};
|
|
5394
6368
|
const serializeAws_restJson1SeverityLevel = (input, context) => {
|
|
5395
6369
|
return {
|
|
5396
6370
|
...(input.occurrencesThreshold != null && { occurrencesThreshold: input.occurrencesThreshold }),
|
|
@@ -5424,6 +6398,12 @@ const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
|
5424
6398
|
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
5425
6399
|
};
|
|
5426
6400
|
};
|
|
6401
|
+
const serializeAws_restJson1SuppressDataIdentifier = (input, context) => {
|
|
6402
|
+
return {
|
|
6403
|
+
...(input.id != null && { id: input.id }),
|
|
6404
|
+
...(input.type != null && { type: input.type }),
|
|
6405
|
+
};
|
|
6406
|
+
};
|
|
5427
6407
|
const serializeAws_restJson1TagCriterionForJob = (input, context) => {
|
|
5428
6408
|
return {
|
|
5429
6409
|
...(input.comparator != null && { comparator: input.comparator }),
|
|
@@ -5534,6 +6514,17 @@ const deserializeAws_restJson1__listOfBucketMetadata = (output, context) => {
|
|
|
5534
6514
|
});
|
|
5535
6515
|
return retVal;
|
|
5536
6516
|
};
|
|
6517
|
+
const deserializeAws_restJson1__listOfClassificationScopeSummary = (output, context) => {
|
|
6518
|
+
const retVal = (output || [])
|
|
6519
|
+
.filter((e) => e != null)
|
|
6520
|
+
.map((entry) => {
|
|
6521
|
+
if (entry === null) {
|
|
6522
|
+
return null;
|
|
6523
|
+
}
|
|
6524
|
+
return deserializeAws_restJson1ClassificationScopeSummary(entry, context);
|
|
6525
|
+
});
|
|
6526
|
+
return retVal;
|
|
6527
|
+
};
|
|
5537
6528
|
const deserializeAws_restJson1__listOfCriteriaForJob = (output, context) => {
|
|
5538
6529
|
const retVal = (output || [])
|
|
5539
6530
|
.filter((e) => e != null)
|
|
@@ -5567,6 +6558,17 @@ const deserializeAws_restJson1__listOfDetectedDataDetails = (output, context) =>
|
|
|
5567
6558
|
});
|
|
5568
6559
|
return retVal;
|
|
5569
6560
|
};
|
|
6561
|
+
const deserializeAws_restJson1__listOfDetection = (output, context) => {
|
|
6562
|
+
const retVal = (output || [])
|
|
6563
|
+
.filter((e) => e != null)
|
|
6564
|
+
.map((entry) => {
|
|
6565
|
+
if (entry === null) {
|
|
6566
|
+
return null;
|
|
6567
|
+
}
|
|
6568
|
+
return deserializeAws_restJson1Detection(entry, context);
|
|
6569
|
+
});
|
|
6570
|
+
return retVal;
|
|
6571
|
+
};
|
|
5570
6572
|
const deserializeAws_restJson1__listOfFinding = (output, context) => {
|
|
5571
6573
|
const retVal = (output || [])
|
|
5572
6574
|
.filter((e) => e != null)
|
|
@@ -5677,6 +6679,17 @@ const deserializeAws_restJson1__listOfMember = (output, context) => {
|
|
|
5677
6679
|
});
|
|
5678
6680
|
return retVal;
|
|
5679
6681
|
};
|
|
6682
|
+
const deserializeAws_restJson1__listOfResourceProfileArtifact = (output, context) => {
|
|
6683
|
+
const retVal = (output || [])
|
|
6684
|
+
.filter((e) => e != null)
|
|
6685
|
+
.map((entry) => {
|
|
6686
|
+
if (entry === null) {
|
|
6687
|
+
return null;
|
|
6688
|
+
}
|
|
6689
|
+
return deserializeAws_restJson1ResourceProfileArtifact(entry, context);
|
|
6690
|
+
});
|
|
6691
|
+
return retVal;
|
|
6692
|
+
};
|
|
5680
6693
|
const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, context) => {
|
|
5681
6694
|
const retVal = (output || [])
|
|
5682
6695
|
.filter((e) => e != null)
|
|
@@ -5688,6 +6701,28 @@ const deserializeAws_restJson1__listOfS3BucketDefinitionForJob = (output, contex
|
|
|
5688
6701
|
});
|
|
5689
6702
|
return retVal;
|
|
5690
6703
|
};
|
|
6704
|
+
const deserializeAws_restJson1__listOfS3BucketName = (output, context) => {
|
|
6705
|
+
const retVal = (output || [])
|
|
6706
|
+
.filter((e) => e != null)
|
|
6707
|
+
.map((entry) => {
|
|
6708
|
+
if (entry === null) {
|
|
6709
|
+
return null;
|
|
6710
|
+
}
|
|
6711
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
6712
|
+
});
|
|
6713
|
+
return retVal;
|
|
6714
|
+
};
|
|
6715
|
+
const deserializeAws_restJson1__listOfSensitivityInspectionTemplatesEntry = (output, context) => {
|
|
6716
|
+
const retVal = (output || [])
|
|
6717
|
+
.filter((e) => e != null)
|
|
6718
|
+
.map((entry) => {
|
|
6719
|
+
if (entry === null) {
|
|
6720
|
+
return null;
|
|
6721
|
+
}
|
|
6722
|
+
return deserializeAws_restJson1SensitivityInspectionTemplatesEntry(entry, context);
|
|
6723
|
+
});
|
|
6724
|
+
return retVal;
|
|
6725
|
+
};
|
|
5691
6726
|
const deserializeAws_restJson1__listOfTagCriterionPairForJob = (output, context) => {
|
|
5692
6727
|
const retVal = (output || [])
|
|
5693
6728
|
.filter((e) => e != null)
|
|
@@ -5908,6 +6943,9 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5908
6943
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
5909
6944
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
5910
6945
|
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
6946
|
+
lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
|
|
6947
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastAutomatedDiscoveryTime))
|
|
6948
|
+
: undefined,
|
|
5911
6949
|
lastUpdated: output.lastUpdated != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastUpdated)) : undefined,
|
|
5912
6950
|
objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
|
|
5913
6951
|
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
@@ -5920,6 +6958,7 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
5920
6958
|
replicationDetails: output.replicationDetails != null
|
|
5921
6959
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
5922
6960
|
: undefined,
|
|
6961
|
+
sensitivityScore: (0, smithy_client_1.expectInt32)(output.sensitivityScore),
|
|
5923
6962
|
serverSideEncryption: output.serverSideEncryption != null
|
|
5924
6963
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
5925
6964
|
: undefined,
|
|
@@ -5966,6 +7005,20 @@ const deserializeAws_restJson1BucketServerSideEncryption = (output, context) =>
|
|
|
5966
7005
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5967
7006
|
};
|
|
5968
7007
|
};
|
|
7008
|
+
const deserializeAws_restJson1BucketStatisticsBySensitivity = (output, context) => {
|
|
7009
|
+
return {
|
|
7010
|
+
classificationError: output.classificationError != null
|
|
7011
|
+
? deserializeAws_restJson1SensitivityAggregations(output.classificationError, context)
|
|
7012
|
+
: undefined,
|
|
7013
|
+
notClassified: output.notClassified != null
|
|
7014
|
+
? deserializeAws_restJson1SensitivityAggregations(output.notClassified, context)
|
|
7015
|
+
: undefined,
|
|
7016
|
+
notSensitive: output.notSensitive != null
|
|
7017
|
+
? deserializeAws_restJson1SensitivityAggregations(output.notSensitive, context)
|
|
7018
|
+
: undefined,
|
|
7019
|
+
sensitive: output.sensitive != null ? deserializeAws_restJson1SensitivityAggregations(output.sensitive, context) : undefined,
|
|
7020
|
+
};
|
|
7021
|
+
};
|
|
5969
7022
|
const deserializeAws_restJson1Cell = (output, context) => {
|
|
5970
7023
|
return {
|
|
5971
7024
|
cellReference: (0, smithy_client_1.expectString)(output.cellReference),
|
|
@@ -6017,6 +7070,12 @@ const deserializeAws_restJson1ClassificationResultStatus = (output, context) =>
|
|
|
6017
7070
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
6018
7071
|
};
|
|
6019
7072
|
};
|
|
7073
|
+
const deserializeAws_restJson1ClassificationScopeSummary = (output, context) => {
|
|
7074
|
+
return {
|
|
7075
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7076
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7077
|
+
};
|
|
7078
|
+
};
|
|
6020
7079
|
const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
|
|
6021
7080
|
return {
|
|
6022
7081
|
and: output.and != null ? deserializeAws_restJson1__listOfCriteriaForJob(output.and, context) : undefined,
|
|
@@ -6112,6 +7171,16 @@ const deserializeAws_restJson1DetectedDataDetails = (output, context) => {
|
|
|
6112
7171
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
6113
7172
|
};
|
|
6114
7173
|
};
|
|
7174
|
+
const deserializeAws_restJson1Detection = (output, context) => {
|
|
7175
|
+
return {
|
|
7176
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
7177
|
+
count: (0, smithy_client_1.expectLong)(output.count),
|
|
7178
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7179
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7180
|
+
suppressed: (0, smithy_client_1.expectBoolean)(output.suppressed),
|
|
7181
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
7182
|
+
};
|
|
7183
|
+
};
|
|
6115
7184
|
const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
6116
7185
|
return {
|
|
6117
7186
|
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
@@ -6331,10 +7400,14 @@ const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
|
6331
7400
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
6332
7401
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
6333
7402
|
jobDetails: output.jobDetails != null ? deserializeAws_restJson1JobDetails(output.jobDetails, context) : undefined,
|
|
7403
|
+
lastAutomatedDiscoveryTime: output.lastAutomatedDiscoveryTime != null
|
|
7404
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.lastAutomatedDiscoveryTime))
|
|
7405
|
+
: undefined,
|
|
6334
7406
|
objectCount: (0, smithy_client_1.expectLong)(output.objectCount),
|
|
6335
7407
|
objectCountByEncryptionType: output.objectCountByEncryptionType != null
|
|
6336
7408
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
6337
7409
|
: undefined,
|
|
7410
|
+
sensitivityScore: (0, smithy_client_1.expectInt32)(output.sensitivityScore),
|
|
6338
7411
|
sizeInBytes: (0, smithy_client_1.expectLong)(output.sizeInBytes),
|
|
6339
7412
|
sizeInBytesCompressed: (0, smithy_client_1.expectLong)(output.sizeInBytesCompressed),
|
|
6340
7413
|
unclassifiableObjectCount: output.unclassifiableObjectCount != null
|
|
@@ -6463,12 +7536,32 @@ const deserializeAws_restJson1ReplicationDetails = (output, context) => {
|
|
|
6463
7536
|
: undefined,
|
|
6464
7537
|
};
|
|
6465
7538
|
};
|
|
7539
|
+
const deserializeAws_restJson1ResourceProfileArtifact = (output, context) => {
|
|
7540
|
+
return {
|
|
7541
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
7542
|
+
classificationResultStatus: (0, smithy_client_1.expectString)(output.classificationResultStatus),
|
|
7543
|
+
sensitive: (0, smithy_client_1.expectBoolean)(output.sensitive),
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
6466
7546
|
const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
6467
7547
|
return {
|
|
6468
7548
|
s3Bucket: output.s3Bucket != null ? deserializeAws_restJson1S3Bucket(output.s3Bucket, context) : undefined,
|
|
6469
7549
|
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6470
7550
|
};
|
|
6471
7551
|
};
|
|
7552
|
+
const deserializeAws_restJson1ResourceStatistics = (output, context) => {
|
|
7553
|
+
return {
|
|
7554
|
+
totalBytesClassified: (0, smithy_client_1.expectLong)(output.totalBytesClassified),
|
|
7555
|
+
totalDetections: (0, smithy_client_1.expectLong)(output.totalDetections),
|
|
7556
|
+
totalDetectionsSuppressed: (0, smithy_client_1.expectLong)(output.totalDetectionsSuppressed),
|
|
7557
|
+
totalItemsClassified: (0, smithy_client_1.expectLong)(output.totalItemsClassified),
|
|
7558
|
+
totalItemsSensitive: (0, smithy_client_1.expectLong)(output.totalItemsSensitive),
|
|
7559
|
+
totalItemsSkipped: (0, smithy_client_1.expectLong)(output.totalItemsSkipped),
|
|
7560
|
+
totalItemsSkippedInvalidEncryption: (0, smithy_client_1.expectLong)(output.totalItemsSkippedInvalidEncryption),
|
|
7561
|
+
totalItemsSkippedInvalidKms: (0, smithy_client_1.expectLong)(output.totalItemsSkippedInvalidKms),
|
|
7562
|
+
totalItemsSkippedPermissionDenied: (0, smithy_client_1.expectLong)(output.totalItemsSkippedPermissionDenied),
|
|
7563
|
+
};
|
|
7564
|
+
};
|
|
6472
7565
|
const deserializeAws_restJson1RevealConfiguration = (output, context) => {
|
|
6473
7566
|
return {
|
|
6474
7567
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
@@ -6509,6 +7602,20 @@ const deserializeAws_restJson1S3BucketOwner = (output, context) => {
|
|
|
6509
7602
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
6510
7603
|
};
|
|
6511
7604
|
};
|
|
7605
|
+
const deserializeAws_restJson1S3ClassificationScope = (output, context) => {
|
|
7606
|
+
return {
|
|
7607
|
+
excludes: output.excludes != null
|
|
7608
|
+
? deserializeAws_restJson1S3ClassificationScopeExclusion(output.excludes, context)
|
|
7609
|
+
: undefined,
|
|
7610
|
+
};
|
|
7611
|
+
};
|
|
7612
|
+
const deserializeAws_restJson1S3ClassificationScopeExclusion = (output, context) => {
|
|
7613
|
+
return {
|
|
7614
|
+
bucketNames: output.bucketNames != null
|
|
7615
|
+
? deserializeAws_restJson1__listOfS3BucketName(output.bucketNames, context)
|
|
7616
|
+
: undefined,
|
|
7617
|
+
};
|
|
7618
|
+
};
|
|
6512
7619
|
const deserializeAws_restJson1S3Destination = (output, context) => {
|
|
6513
7620
|
return {
|
|
6514
7621
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
@@ -6590,6 +7697,38 @@ const deserializeAws_restJson1SensitiveDataOccurrences = (output, context) => {
|
|
|
6590
7697
|
return acc;
|
|
6591
7698
|
}, {});
|
|
6592
7699
|
};
|
|
7700
|
+
const deserializeAws_restJson1SensitivityAggregations = (output, context) => {
|
|
7701
|
+
return {
|
|
7702
|
+
classifiableSizeInBytes: (0, smithy_client_1.expectLong)(output.classifiableSizeInBytes),
|
|
7703
|
+
publiclyAccessibleCount: (0, smithy_client_1.expectLong)(output.publiclyAccessibleCount),
|
|
7704
|
+
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
7705
|
+
totalSizeInBytes: (0, smithy_client_1.expectLong)(output.totalSizeInBytes),
|
|
7706
|
+
};
|
|
7707
|
+
};
|
|
7708
|
+
const deserializeAws_restJson1SensitivityInspectionTemplateExcludes = (output, context) => {
|
|
7709
|
+
return {
|
|
7710
|
+
managedDataIdentifierIds: output.managedDataIdentifierIds != null
|
|
7711
|
+
? deserializeAws_restJson1__listOf__string(output.managedDataIdentifierIds, context)
|
|
7712
|
+
: undefined,
|
|
7713
|
+
};
|
|
7714
|
+
};
|
|
7715
|
+
const deserializeAws_restJson1SensitivityInspectionTemplateIncludes = (output, context) => {
|
|
7716
|
+
return {
|
|
7717
|
+
allowListIds: output.allowListIds != null ? deserializeAws_restJson1__listOf__string(output.allowListIds, context) : undefined,
|
|
7718
|
+
customDataIdentifierIds: output.customDataIdentifierIds != null
|
|
7719
|
+
? deserializeAws_restJson1__listOf__string(output.customDataIdentifierIds, context)
|
|
7720
|
+
: undefined,
|
|
7721
|
+
managedDataIdentifierIds: output.managedDataIdentifierIds != null
|
|
7722
|
+
? deserializeAws_restJson1__listOf__string(output.managedDataIdentifierIds, context)
|
|
7723
|
+
: undefined,
|
|
7724
|
+
};
|
|
7725
|
+
};
|
|
7726
|
+
const deserializeAws_restJson1SensitivityInspectionTemplatesEntry = (output, context) => {
|
|
7727
|
+
return {
|
|
7728
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7729
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7730
|
+
};
|
|
7731
|
+
};
|
|
6593
7732
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
6594
7733
|
return {
|
|
6595
7734
|
encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|
|
@@ -6724,6 +7863,9 @@ const deserializeAws_restJson1UsageByAccount = (output, context) => {
|
|
|
6724
7863
|
const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
6725
7864
|
return {
|
|
6726
7865
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
7866
|
+
automatedDiscoveryFreeTrialStartDate: output.automatedDiscoveryFreeTrialStartDate != null
|
|
7867
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.automatedDiscoveryFreeTrialStartDate))
|
|
7868
|
+
: undefined,
|
|
6727
7869
|
freeTrialStartDate: output.freeTrialStartDate != null
|
|
6728
7870
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.freeTrialStartDate))
|
|
6729
7871
|
: undefined,
|