@aws-sdk/client-macie2 3.130.0 → 3.141.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +1 -1
- package/dist-cjs/Macie2.js +60 -0
- package/dist-cjs/commands/AcceptInvitationCommand.js +2 -2
- package/dist-cjs/commands/BatchGetCustomDataIdentifiersCommand.js +2 -2
- package/dist-cjs/commands/CreateClassificationJobCommand.js +2 -2
- package/dist-cjs/commands/CreateCustomDataIdentifierCommand.js +2 -2
- package/dist-cjs/commands/CreateFindingsFilterCommand.js +2 -2
- package/dist-cjs/commands/CreateInvitationsCommand.js +2 -2
- package/dist-cjs/commands/CreateMemberCommand.js +2 -2
- package/dist-cjs/commands/CreateSampleFindingsCommand.js +2 -2
- package/dist-cjs/commands/DeclineInvitationsCommand.js +2 -2
- package/dist-cjs/commands/DeleteCustomDataIdentifierCommand.js +2 -2
- package/dist-cjs/commands/DeleteFindingsFilterCommand.js +2 -2
- package/dist-cjs/commands/DeleteInvitationsCommand.js +2 -2
- package/dist-cjs/commands/DeleteMemberCommand.js +2 -2
- package/dist-cjs/commands/DescribeBucketsCommand.js +2 -2
- package/dist-cjs/commands/DescribeClassificationJobCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisableMacieCommand.js +2 -2
- package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/DisassociateFromAdministratorAccountCommand.js +2 -2
- package/dist-cjs/commands/DisassociateFromMasterAccountCommand.js +2 -2
- package/dist-cjs/commands/DisassociateMemberCommand.js +2 -2
- package/dist-cjs/commands/EnableMacieCommand.js +2 -2
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetAdministratorAccountCommand.js +2 -2
- package/dist-cjs/commands/GetBucketStatisticsCommand.js +2 -2
- package/dist-cjs/commands/GetClassificationExportConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetCustomDataIdentifierCommand.js +2 -2
- package/dist-cjs/commands/GetFindingStatisticsCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsFilterCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsPublicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetInvitationsCountCommand.js +2 -2
- package/dist-cjs/commands/GetMacieSessionCommand.js +2 -2
- package/dist-cjs/commands/GetMasterAccountCommand.js +2 -2
- package/dist-cjs/commands/GetMemberCommand.js +2 -2
- package/dist-cjs/commands/GetRevealConfigurationCommand.js +36 -0
- package/dist-cjs/commands/GetSensitiveDataOccurrencesAvailabilityCommand.js +36 -0
- package/dist-cjs/commands/GetSensitiveDataOccurrencesCommand.js +36 -0
- package/dist-cjs/commands/GetUsageStatisticsCommand.js +2 -2
- package/dist-cjs/commands/GetUsageTotalsCommand.js +2 -2
- package/dist-cjs/commands/ListClassificationJobsCommand.js +2 -2
- package/dist-cjs/commands/ListCustomDataIdentifiersCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsFiltersCommand.js +2 -2
- package/dist-cjs/commands/ListInvitationsCommand.js +2 -2
- package/dist-cjs/commands/ListManagedDataIdentifiersCommand.js +2 -2
- package/dist-cjs/commands/ListMembersCommand.js +2 -2
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutClassificationExportConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutFindingsPublicationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/SearchResourcesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TestCustomDataIdentifierCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateClassificationJobCommand.js +2 -2
- package/dist-cjs/commands/UpdateFindingsFilterCommand.js +2 -2
- package/dist-cjs/commands/UpdateMacieSessionCommand.js +2 -2
- package/dist-cjs/commands/UpdateMemberSessionCommand.js +2 -2
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateRevealConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +1007 -1392
- package/dist-cjs/protocols/Aws_restJson1.js +365 -3
- package/dist-cjs/waiters/index.js +4 -0
- package/dist-cjs/waiters/waitForFindingRevealed.js +45 -0
- package/dist-es/Macie2.js +60 -0
- package/dist-es/commands/AcceptInvitationCommand.js +3 -3
- package/dist-es/commands/BatchGetCustomDataIdentifiersCommand.js +3 -3
- package/dist-es/commands/CreateClassificationJobCommand.js +3 -3
- package/dist-es/commands/CreateCustomDataIdentifierCommand.js +3 -3
- package/dist-es/commands/CreateFindingsFilterCommand.js +3 -3
- package/dist-es/commands/CreateInvitationsCommand.js +3 -3
- package/dist-es/commands/CreateMemberCommand.js +3 -3
- package/dist-es/commands/CreateSampleFindingsCommand.js +3 -3
- package/dist-es/commands/DeclineInvitationsCommand.js +3 -3
- package/dist-es/commands/DeleteCustomDataIdentifierCommand.js +3 -3
- package/dist-es/commands/DeleteFindingsFilterCommand.js +3 -3
- package/dist-es/commands/DeleteInvitationsCommand.js +3 -3
- package/dist-es/commands/DeleteMemberCommand.js +3 -3
- package/dist-es/commands/DescribeBucketsCommand.js +3 -3
- package/dist-es/commands/DescribeClassificationJobCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DisableMacieCommand.js +3 -3
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -3
- package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +3 -3
- package/dist-es/commands/DisassociateFromMasterAccountCommand.js +3 -3
- package/dist-es/commands/DisassociateMemberCommand.js +3 -3
- package/dist-es/commands/EnableMacieCommand.js +3 -3
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetAdministratorAccountCommand.js +3 -3
- package/dist-es/commands/GetBucketStatisticsCommand.js +3 -3
- package/dist-es/commands/GetClassificationExportConfigurationCommand.js +3 -3
- package/dist-es/commands/GetCustomDataIdentifierCommand.js +3 -3
- package/dist-es/commands/GetFindingStatisticsCommand.js +3 -3
- package/dist-es/commands/GetFindingsCommand.js +3 -3
- package/dist-es/commands/GetFindingsFilterCommand.js +3 -3
- package/dist-es/commands/GetFindingsPublicationConfigurationCommand.js +3 -3
- package/dist-es/commands/GetInvitationsCountCommand.js +3 -3
- package/dist-es/commands/GetMacieSessionCommand.js +3 -3
- package/dist-es/commands/GetMasterAccountCommand.js +3 -3
- package/dist-es/commands/GetMemberCommand.js +3 -3
- package/dist-es/commands/GetRevealConfigurationCommand.js +39 -0
- package/dist-es/commands/GetSensitiveDataOccurrencesAvailabilityCommand.js +39 -0
- package/dist-es/commands/GetSensitiveDataOccurrencesCommand.js +39 -0
- package/dist-es/commands/GetUsageStatisticsCommand.js +3 -3
- package/dist-es/commands/GetUsageTotalsCommand.js +3 -3
- package/dist-es/commands/ListClassificationJobsCommand.js +3 -3
- package/dist-es/commands/ListCustomDataIdentifiersCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListFindingsFiltersCommand.js +3 -3
- package/dist-es/commands/ListInvitationsCommand.js +3 -3
- package/dist-es/commands/ListManagedDataIdentifiersCommand.js +3 -3
- package/dist-es/commands/ListMembersCommand.js +3 -3
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutClassificationExportConfigurationCommand.js +3 -3
- package/dist-es/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
- package/dist-es/commands/SearchResourcesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TestCustomDataIdentifierCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateClassificationJobCommand.js +3 -3
- package/dist-es/commands/UpdateFindingsFilterCommand.js +3 -3
- package/dist-es/commands/UpdateMacieSessionCommand.js +3 -3
- package/dist-es/commands/UpdateMemberSessionCommand.js +3 -3
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateRevealConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +277 -924
- package/dist-es/protocols/Aws_restJson1.js +467 -1
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForFindingRevealed.js +60 -0
- package/dist-types/Macie2.d.ts +28 -0
- package/dist-types/Macie2Client.d.ts +6 -2
- package/dist-types/commands/GetRevealConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +35 -0
- package/dist-types/commands/GetSensitiveDataOccurrencesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateRevealConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1074 -1387
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Macie2.d.ts +20 -0
- package/dist-types/ts3.4/Macie2Client.d.ts +6 -2
- package/dist-types/ts3.4/commands/GetRevealConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSensitiveDataOccurrencesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRevealConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +550 -917
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForFindingRevealed.d.ts +7 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForFindingRevealed.d.ts +14 -0
- package/package.json +8 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1PutClassificationExportConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1GetUsageTotalsCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.serializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.serializeAws_restJson1GetRevealConfigurationCommand = 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_restJson1GetClassificationExportConfigurationCommand = exports.serializeAws_restJson1GetBucketStatisticsCommand = 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_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateInvitationsCommand = exports.serializeAws_restJson1CreateFindingsFilterCommand = exports.serializeAws_restJson1CreateCustomDataIdentifierCommand = exports.serializeAws_restJson1CreateClassificationJobCommand = exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.deserializeAws_restJson1GetRevealConfigurationCommand = 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_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableMacieCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = 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_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateInvitationsCommand = exports.deserializeAws_restJson1CreateFindingsFilterCommand = exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = exports.deserializeAws_restJson1CreateClassificationJobCommand = exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateRevealConfigurationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestCustomDataIdentifierCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutFindingsPublicationConfigurationCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -833,6 +833,77 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
833
833
|
});
|
|
834
834
|
};
|
|
835
835
|
exports.serializeAws_restJson1GetMemberCommand = serializeAws_restJson1GetMemberCommand;
|
|
836
|
+
const serializeAws_restJson1GetRevealConfigurationCommand = async (input, context) => {
|
|
837
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
838
|
+
const headers = {
|
|
839
|
+
"content-type": "application/json",
|
|
840
|
+
};
|
|
841
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reveal-configuration";
|
|
842
|
+
let body;
|
|
843
|
+
body = "";
|
|
844
|
+
return new protocol_http_1.HttpRequest({
|
|
845
|
+
protocol,
|
|
846
|
+
hostname,
|
|
847
|
+
port,
|
|
848
|
+
method: "GET",
|
|
849
|
+
headers,
|
|
850
|
+
path: resolvedPath,
|
|
851
|
+
body,
|
|
852
|
+
});
|
|
853
|
+
};
|
|
854
|
+
exports.serializeAws_restJson1GetRevealConfigurationCommand = serializeAws_restJson1GetRevealConfigurationCommand;
|
|
855
|
+
const serializeAws_restJson1GetSensitiveDataOccurrencesCommand = async (input, context) => {
|
|
856
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
857
|
+
const headers = {};
|
|
858
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{findingId}/reveal";
|
|
859
|
+
if (input.findingId !== undefined) {
|
|
860
|
+
const labelValue = input.findingId;
|
|
861
|
+
if (labelValue.length <= 0) {
|
|
862
|
+
throw new Error("Empty value provided for input HTTP label: findingId.");
|
|
863
|
+
}
|
|
864
|
+
resolvedPath = resolvedPath.replace("{findingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
865
|
+
}
|
|
866
|
+
else {
|
|
867
|
+
throw new Error("No value provided for input HTTP label: findingId.");
|
|
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
|
+
body,
|
|
878
|
+
});
|
|
879
|
+
};
|
|
880
|
+
exports.serializeAws_restJson1GetSensitiveDataOccurrencesCommand = serializeAws_restJson1GetSensitiveDataOccurrencesCommand;
|
|
881
|
+
const serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = async (input, context) => {
|
|
882
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
883
|
+
const headers = {};
|
|
884
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{findingId}/reveal/availability";
|
|
885
|
+
if (input.findingId !== undefined) {
|
|
886
|
+
const labelValue = input.findingId;
|
|
887
|
+
if (labelValue.length <= 0) {
|
|
888
|
+
throw new Error("Empty value provided for input HTTP label: findingId.");
|
|
889
|
+
}
|
|
890
|
+
resolvedPath = resolvedPath.replace("{findingId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
891
|
+
}
|
|
892
|
+
else {
|
|
893
|
+
throw new Error("No value provided for input HTTP label: findingId.");
|
|
894
|
+
}
|
|
895
|
+
let body;
|
|
896
|
+
return new protocol_http_1.HttpRequest({
|
|
897
|
+
protocol,
|
|
898
|
+
hostname,
|
|
899
|
+
port,
|
|
900
|
+
method: "GET",
|
|
901
|
+
headers,
|
|
902
|
+
path: resolvedPath,
|
|
903
|
+
body,
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand;
|
|
836
907
|
const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) => {
|
|
837
908
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
838
909
|
const headers = {
|
|
@@ -1398,6 +1469,29 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1398
1469
|
});
|
|
1399
1470
|
};
|
|
1400
1471
|
exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = serializeAws_restJson1UpdateOrganizationConfigurationCommand;
|
|
1472
|
+
const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, context) => {
|
|
1473
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1474
|
+
const headers = {
|
|
1475
|
+
"content-type": "application/json",
|
|
1476
|
+
};
|
|
1477
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reveal-configuration";
|
|
1478
|
+
let body;
|
|
1479
|
+
body = JSON.stringify({
|
|
1480
|
+
...(input.configuration != null && {
|
|
1481
|
+
configuration: serializeAws_restJson1RevealConfiguration(input.configuration, context),
|
|
1482
|
+
}),
|
|
1483
|
+
});
|
|
1484
|
+
return new protocol_http_1.HttpRequest({
|
|
1485
|
+
protocol,
|
|
1486
|
+
hostname,
|
|
1487
|
+
port,
|
|
1488
|
+
method: "PUT",
|
|
1489
|
+
headers,
|
|
1490
|
+
path: resolvedPath,
|
|
1491
|
+
body,
|
|
1492
|
+
});
|
|
1493
|
+
};
|
|
1494
|
+
exports.serializeAws_restJson1UpdateRevealConfigurationCommand = serializeAws_restJson1UpdateRevealConfigurationCommand;
|
|
1401
1495
|
const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
|
|
1402
1496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
1497
|
return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
|
|
@@ -3576,6 +3670,165 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3576
3670
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3577
3671
|
}
|
|
3578
3672
|
};
|
|
3673
|
+
const deserializeAws_restJson1GetRevealConfigurationCommand = async (output, context) => {
|
|
3674
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3675
|
+
return deserializeAws_restJson1GetRevealConfigurationCommandError(output, context);
|
|
3676
|
+
}
|
|
3677
|
+
const contents = {
|
|
3678
|
+
$metadata: deserializeMetadata(output),
|
|
3679
|
+
configuration: undefined,
|
|
3680
|
+
};
|
|
3681
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3682
|
+
if (data.configuration !== undefined && data.configuration !== null) {
|
|
3683
|
+
contents.configuration = deserializeAws_restJson1RevealConfiguration(data.configuration, context);
|
|
3684
|
+
}
|
|
3685
|
+
return Promise.resolve(contents);
|
|
3686
|
+
};
|
|
3687
|
+
exports.deserializeAws_restJson1GetRevealConfigurationCommand = deserializeAws_restJson1GetRevealConfigurationCommand;
|
|
3688
|
+
const deserializeAws_restJson1GetRevealConfigurationCommandError = async (output, context) => {
|
|
3689
|
+
const parsedOutput = {
|
|
3690
|
+
...output,
|
|
3691
|
+
body: await parseBody(output.body, context),
|
|
3692
|
+
};
|
|
3693
|
+
let response;
|
|
3694
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3695
|
+
switch (errorCode) {
|
|
3696
|
+
case "AccessDeniedException":
|
|
3697
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3698
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3699
|
+
case "InternalServerException":
|
|
3700
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3701
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3702
|
+
case "ThrottlingException":
|
|
3703
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3704
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3705
|
+
case "ValidationException":
|
|
3706
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3707
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3708
|
+
default:
|
|
3709
|
+
const parsedBody = parsedOutput.body;
|
|
3710
|
+
const $metadata = deserializeMetadata(output);
|
|
3711
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3712
|
+
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3713
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3714
|
+
$fault: "client",
|
|
3715
|
+
$metadata,
|
|
3716
|
+
});
|
|
3717
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3718
|
+
}
|
|
3719
|
+
};
|
|
3720
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = async (output, context) => {
|
|
3721
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3722
|
+
return deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError(output, context);
|
|
3723
|
+
}
|
|
3724
|
+
const contents = {
|
|
3725
|
+
$metadata: deserializeMetadata(output),
|
|
3726
|
+
error: undefined,
|
|
3727
|
+
sensitiveDataOccurrences: undefined,
|
|
3728
|
+
status: undefined,
|
|
3729
|
+
};
|
|
3730
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3731
|
+
if (data.error !== undefined && data.error !== null) {
|
|
3732
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
3733
|
+
}
|
|
3734
|
+
if (data.sensitiveDataOccurrences !== undefined && data.sensitiveDataOccurrences !== null) {
|
|
3735
|
+
contents.sensitiveDataOccurrences = deserializeAws_restJson1SensitiveDataOccurrences(data.sensitiveDataOccurrences, context);
|
|
3736
|
+
}
|
|
3737
|
+
if (data.status !== undefined && data.status !== null) {
|
|
3738
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
3739
|
+
}
|
|
3740
|
+
return Promise.resolve(contents);
|
|
3741
|
+
};
|
|
3742
|
+
exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = deserializeAws_restJson1GetSensitiveDataOccurrencesCommand;
|
|
3743
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError = async (output, context) => {
|
|
3744
|
+
const parsedOutput = {
|
|
3745
|
+
...output,
|
|
3746
|
+
body: await parseBody(output.body, context),
|
|
3747
|
+
};
|
|
3748
|
+
let response;
|
|
3749
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3750
|
+
switch (errorCode) {
|
|
3751
|
+
case "AccessDeniedException":
|
|
3752
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3753
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3754
|
+
case "InternalServerException":
|
|
3755
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3756
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3757
|
+
case "ResourceNotFoundException":
|
|
3758
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3759
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3760
|
+
case "ServiceQuotaExceededException":
|
|
3761
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3762
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3763
|
+
case "ThrottlingException":
|
|
3764
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3765
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3766
|
+
case "UnprocessableEntityException":
|
|
3767
|
+
case "com.amazonaws.macie2#UnprocessableEntityException":
|
|
3768
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
3769
|
+
default:
|
|
3770
|
+
const parsedBody = parsedOutput.body;
|
|
3771
|
+
const $metadata = deserializeMetadata(output);
|
|
3772
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3773
|
+
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3775
|
+
$fault: "client",
|
|
3776
|
+
$metadata,
|
|
3777
|
+
});
|
|
3778
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3779
|
+
}
|
|
3780
|
+
};
|
|
3781
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = async (output, context) => {
|
|
3782
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3783
|
+
return deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError(output, context);
|
|
3784
|
+
}
|
|
3785
|
+
const contents = {
|
|
3786
|
+
$metadata: deserializeMetadata(output),
|
|
3787
|
+
code: undefined,
|
|
3788
|
+
reasons: undefined,
|
|
3789
|
+
};
|
|
3790
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3791
|
+
if (data.code !== undefined && data.code !== null) {
|
|
3792
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
3793
|
+
}
|
|
3794
|
+
if (data.reasons !== undefined && data.reasons !== null) {
|
|
3795
|
+
contents.reasons = deserializeAws_restJson1__listOfUnavailabilityReasonCode(data.reasons, context);
|
|
3796
|
+
}
|
|
3797
|
+
return Promise.resolve(contents);
|
|
3798
|
+
};
|
|
3799
|
+
exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand;
|
|
3800
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError = async (output, context) => {
|
|
3801
|
+
const parsedOutput = {
|
|
3802
|
+
...output,
|
|
3803
|
+
body: await parseBody(output.body, context),
|
|
3804
|
+
};
|
|
3805
|
+
let response;
|
|
3806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3807
|
+
switch (errorCode) {
|
|
3808
|
+
case "AccessDeniedException":
|
|
3809
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3810
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3811
|
+
case "InternalServerException":
|
|
3812
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3813
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3814
|
+
case "ResourceNotFoundException":
|
|
3815
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3816
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3817
|
+
case "ThrottlingException":
|
|
3818
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3819
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3820
|
+
default:
|
|
3821
|
+
const parsedBody = parsedOutput.body;
|
|
3822
|
+
const $metadata = deserializeMetadata(output);
|
|
3823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3824
|
+
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
3825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3826
|
+
$fault: "client",
|
|
3827
|
+
$metadata,
|
|
3828
|
+
});
|
|
3829
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3830
|
+
}
|
|
3831
|
+
};
|
|
3579
3832
|
const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context) => {
|
|
3580
3833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3581
3834
|
return deserializeAws_restJson1GetUsageStatisticsCommandError(output, context);
|
|
@@ -4748,6 +5001,53 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4748
5001
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4749
5002
|
}
|
|
4750
5003
|
};
|
|
5004
|
+
const deserializeAws_restJson1UpdateRevealConfigurationCommand = async (output, context) => {
|
|
5005
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5006
|
+
return deserializeAws_restJson1UpdateRevealConfigurationCommandError(output, context);
|
|
5007
|
+
}
|
|
5008
|
+
const contents = {
|
|
5009
|
+
$metadata: deserializeMetadata(output),
|
|
5010
|
+
configuration: undefined,
|
|
5011
|
+
};
|
|
5012
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5013
|
+
if (data.configuration !== undefined && data.configuration !== null) {
|
|
5014
|
+
contents.configuration = deserializeAws_restJson1RevealConfiguration(data.configuration, context);
|
|
5015
|
+
}
|
|
5016
|
+
return Promise.resolve(contents);
|
|
5017
|
+
};
|
|
5018
|
+
exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = deserializeAws_restJson1UpdateRevealConfigurationCommand;
|
|
5019
|
+
const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (output, context) => {
|
|
5020
|
+
const parsedOutput = {
|
|
5021
|
+
...output,
|
|
5022
|
+
body: await parseBody(output.body, context),
|
|
5023
|
+
};
|
|
5024
|
+
let response;
|
|
5025
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5026
|
+
switch (errorCode) {
|
|
5027
|
+
case "AccessDeniedException":
|
|
5028
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
5029
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5030
|
+
case "InternalServerException":
|
|
5031
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
5032
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5033
|
+
case "ThrottlingException":
|
|
5034
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
5035
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5036
|
+
case "ValidationException":
|
|
5037
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
5038
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5039
|
+
default:
|
|
5040
|
+
const parsedBody = parsedOutput.body;
|
|
5041
|
+
const $metadata = deserializeMetadata(output);
|
|
5042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5043
|
+
response = new Macie2ServiceException_1.Macie2ServiceException({
|
|
5044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5045
|
+
$fault: "client",
|
|
5046
|
+
$metadata,
|
|
5047
|
+
});
|
|
5048
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5049
|
+
}
|
|
5050
|
+
};
|
|
4751
5051
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4752
5052
|
const contents = {};
|
|
4753
5053
|
const data = parsedOutput.body;
|
|
@@ -4820,6 +5120,18 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4820
5120
|
});
|
|
4821
5121
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4822
5122
|
};
|
|
5123
|
+
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
5124
|
+
const contents = {};
|
|
5125
|
+
const data = parsedOutput.body;
|
|
5126
|
+
if (data.message !== undefined && data.message !== null) {
|
|
5127
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
5128
|
+
}
|
|
5129
|
+
const exception = new models_0_1.UnprocessableEntityException({
|
|
5130
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5131
|
+
...contents,
|
|
5132
|
+
});
|
|
5133
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5134
|
+
};
|
|
4823
5135
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
4824
5136
|
const contents = {};
|
|
4825
5137
|
const data = parsedOutput.body;
|
|
@@ -5092,6 +5404,12 @@ const serializeAws_restJson1MonthlySchedule = (input, context) => {
|
|
|
5092
5404
|
...(input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }),
|
|
5093
5405
|
};
|
|
5094
5406
|
};
|
|
5407
|
+
const serializeAws_restJson1RevealConfiguration = (input, context) => {
|
|
5408
|
+
return {
|
|
5409
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
5410
|
+
...(input.status != null && { status: input.status }),
|
|
5411
|
+
};
|
|
5412
|
+
};
|
|
5095
5413
|
const serializeAws_restJson1S3BucketCriteriaForJob = (input, context) => {
|
|
5096
5414
|
return {
|
|
5097
5415
|
...(input.excludes != null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) }),
|
|
@@ -5347,6 +5665,17 @@ const deserializeAws_restJson1__listOfCustomDataIdentifierSummary = (output, con
|
|
|
5347
5665
|
});
|
|
5348
5666
|
return retVal;
|
|
5349
5667
|
};
|
|
5668
|
+
const deserializeAws_restJson1__listOfDetectedDataDetails = (output, context) => {
|
|
5669
|
+
const retVal = (output || [])
|
|
5670
|
+
.filter((e) => e != null)
|
|
5671
|
+
.map((entry) => {
|
|
5672
|
+
if (entry === null) {
|
|
5673
|
+
return null;
|
|
5674
|
+
}
|
|
5675
|
+
return deserializeAws_restJson1DetectedDataDetails(entry, context);
|
|
5676
|
+
});
|
|
5677
|
+
return retVal;
|
|
5678
|
+
};
|
|
5350
5679
|
const deserializeAws_restJson1__listOfFinding = (output, context) => {
|
|
5351
5680
|
const retVal = (output || [])
|
|
5352
5681
|
.filter((e) => e != null)
|
|
@@ -5490,6 +5819,17 @@ const deserializeAws_restJson1__listOfTagValuePair = (output, context) => {
|
|
|
5490
5819
|
});
|
|
5491
5820
|
return retVal;
|
|
5492
5821
|
};
|
|
5822
|
+
const deserializeAws_restJson1__listOfUnavailabilityReasonCode = (output, context) => {
|
|
5823
|
+
const retVal = (output || [])
|
|
5824
|
+
.filter((e) => e != null)
|
|
5825
|
+
.map((entry) => {
|
|
5826
|
+
if (entry === null) {
|
|
5827
|
+
return null;
|
|
5828
|
+
}
|
|
5829
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5830
|
+
});
|
|
5831
|
+
return retVal;
|
|
5832
|
+
};
|
|
5493
5833
|
const deserializeAws_restJson1__listOfUnprocessedAccount = (output, context) => {
|
|
5494
5834
|
const retVal = (output || [])
|
|
5495
5835
|
.filter((e) => e != null)
|
|
@@ -5856,6 +6196,11 @@ const deserializeAws_restJson1DefaultDetections = (output, context) => {
|
|
|
5856
6196
|
});
|
|
5857
6197
|
return retVal;
|
|
5858
6198
|
};
|
|
6199
|
+
const deserializeAws_restJson1DetectedDataDetails = (output, context) => {
|
|
6200
|
+
return {
|
|
6201
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
6202
|
+
};
|
|
6203
|
+
};
|
|
5859
6204
|
const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
5860
6205
|
return {
|
|
5861
6206
|
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
@@ -6213,6 +6558,12 @@ const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
|
6213
6558
|
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6214
6559
|
};
|
|
6215
6560
|
};
|
|
6561
|
+
const deserializeAws_restJson1RevealConfiguration = (output, context) => {
|
|
6562
|
+
return {
|
|
6563
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
6564
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
6565
|
+
};
|
|
6566
|
+
};
|
|
6216
6567
|
const deserializeAws_restJson1S3Bucket = (output, context) => {
|
|
6217
6568
|
return {
|
|
6218
6569
|
allowsUnencryptedObjectUploads: (0, smithy_client_1.expectString)(output.allowsUnencryptedObjectUploads),
|
|
@@ -6313,6 +6664,17 @@ const deserializeAws_restJson1SensitiveDataItem = (output, context) => {
|
|
|
6313
6664
|
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
6314
6665
|
};
|
|
6315
6666
|
};
|
|
6667
|
+
const deserializeAws_restJson1SensitiveDataOccurrences = (output, context) => {
|
|
6668
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6669
|
+
if (value === null) {
|
|
6670
|
+
return acc;
|
|
6671
|
+
}
|
|
6672
|
+
return {
|
|
6673
|
+
...acc,
|
|
6674
|
+
[key]: deserializeAws_restJson1__listOfDetectedDataDetails(value, context),
|
|
6675
|
+
};
|
|
6676
|
+
}, {});
|
|
6677
|
+
};
|
|
6316
6678
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
6317
6679
|
return {
|
|
6318
6680
|
encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilFindingRevealed = exports.waitForFindingRevealed = void 0;
|
|
4
|
+
const util_waiter_1 = require("@aws-sdk/util-waiter");
|
|
5
|
+
const GetSensitiveDataOccurrencesCommand_1 = require("../commands/GetSensitiveDataOccurrencesCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new GetSensitiveDataOccurrencesCommand_1.GetSensitiveDataOccurrencesCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.status;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "SUCCESS") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.status;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "ERROR") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
}
|
|
30
|
+
catch (exception) {
|
|
31
|
+
reason = exception;
|
|
32
|
+
}
|
|
33
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
const waitForFindingRevealed = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
37
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
exports.waitForFindingRevealed = waitForFindingRevealed;
|
|
40
|
+
const waitUntilFindingRevealed = async (params, input) => {
|
|
41
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
42
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
43
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
44
|
+
};
|
|
45
|
+
exports.waitUntilFindingRevealed = waitUntilFindingRevealed;
|
package/dist-es/Macie2.js
CHANGED
|
@@ -34,6 +34,9 @@ import { GetInvitationsCountCommand, } from "./commands/GetInvitationsCountComma
|
|
|
34
34
|
import { GetMacieSessionCommand, } from "./commands/GetMacieSessionCommand";
|
|
35
35
|
import { GetMasterAccountCommand, } from "./commands/GetMasterAccountCommand";
|
|
36
36
|
import { GetMemberCommand } from "./commands/GetMemberCommand";
|
|
37
|
+
import { GetRevealConfigurationCommand, } from "./commands/GetRevealConfigurationCommand";
|
|
38
|
+
import { GetSensitiveDataOccurrencesAvailabilityCommand, } from "./commands/GetSensitiveDataOccurrencesAvailabilityCommand";
|
|
39
|
+
import { GetSensitiveDataOccurrencesCommand, } from "./commands/GetSensitiveDataOccurrencesCommand";
|
|
37
40
|
import { GetUsageStatisticsCommand, } from "./commands/GetUsageStatisticsCommand";
|
|
38
41
|
import { GetUsageTotalsCommand, } from "./commands/GetUsageTotalsCommand";
|
|
39
42
|
import { ListClassificationJobsCommand, } from "./commands/ListClassificationJobsCommand";
|
|
@@ -56,6 +59,7 @@ import { UpdateFindingsFilterCommand, } from "./commands/UpdateFindingsFilterCom
|
|
|
56
59
|
import { UpdateMacieSessionCommand, } from "./commands/UpdateMacieSessionCommand";
|
|
57
60
|
import { UpdateMemberSessionCommand, } from "./commands/UpdateMemberSessionCommand";
|
|
58
61
|
import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
62
|
+
import { UpdateRevealConfigurationCommand, } from "./commands/UpdateRevealConfigurationCommand";
|
|
59
63
|
import { Macie2Client } from "./Macie2Client";
|
|
60
64
|
var Macie2 = (function (_super) {
|
|
61
65
|
__extends(Macie2, _super);
|
|
@@ -552,6 +556,48 @@ var Macie2 = (function (_super) {
|
|
|
552
556
|
return this.send(command, optionsOrCb);
|
|
553
557
|
}
|
|
554
558
|
};
|
|
559
|
+
Macie2.prototype.getRevealConfiguration = function (args, optionsOrCb, cb) {
|
|
560
|
+
var command = new GetRevealConfigurationCommand(args);
|
|
561
|
+
if (typeof optionsOrCb === "function") {
|
|
562
|
+
this.send(command, optionsOrCb);
|
|
563
|
+
}
|
|
564
|
+
else if (typeof cb === "function") {
|
|
565
|
+
if (typeof optionsOrCb !== "object")
|
|
566
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
567
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
return this.send(command, optionsOrCb);
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
Macie2.prototype.getSensitiveDataOccurrences = function (args, optionsOrCb, cb) {
|
|
574
|
+
var command = new GetSensitiveDataOccurrencesCommand(args);
|
|
575
|
+
if (typeof optionsOrCb === "function") {
|
|
576
|
+
this.send(command, optionsOrCb);
|
|
577
|
+
}
|
|
578
|
+
else if (typeof cb === "function") {
|
|
579
|
+
if (typeof optionsOrCb !== "object")
|
|
580
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
581
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
return this.send(command, optionsOrCb);
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
Macie2.prototype.getSensitiveDataOccurrencesAvailability = function (args, optionsOrCb, cb) {
|
|
588
|
+
var command = new GetSensitiveDataOccurrencesAvailabilityCommand(args);
|
|
589
|
+
if (typeof optionsOrCb === "function") {
|
|
590
|
+
this.send(command, optionsOrCb);
|
|
591
|
+
}
|
|
592
|
+
else if (typeof cb === "function") {
|
|
593
|
+
if (typeof optionsOrCb !== "object")
|
|
594
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
595
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
return this.send(command, optionsOrCb);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
555
601
|
Macie2.prototype.getUsageStatistics = function (args, optionsOrCb, cb) {
|
|
556
602
|
var command = new GetUsageStatisticsCommand(args);
|
|
557
603
|
if (typeof optionsOrCb === "function") {
|
|
@@ -860,6 +906,20 @@ var Macie2 = (function (_super) {
|
|
|
860
906
|
return this.send(command, optionsOrCb);
|
|
861
907
|
}
|
|
862
908
|
};
|
|
909
|
+
Macie2.prototype.updateRevealConfiguration = function (args, optionsOrCb, cb) {
|
|
910
|
+
var command = new UpdateRevealConfigurationCommand(args);
|
|
911
|
+
if (typeof optionsOrCb === "function") {
|
|
912
|
+
this.send(command, optionsOrCb);
|
|
913
|
+
}
|
|
914
|
+
else if (typeof cb === "function") {
|
|
915
|
+
if (typeof optionsOrCb !== "object")
|
|
916
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
917
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
return this.send(command, optionsOrCb);
|
|
921
|
+
}
|
|
922
|
+
};
|
|
863
923
|
return Macie2;
|
|
864
924
|
}(Macie2Client));
|
|
865
925
|
export { Macie2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AcceptInvitationRequestFilterSensitiveLog, AcceptInvitationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1AcceptInvitationCommand, serializeAws_restJson1AcceptInvitationCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var AcceptInvitationCommand = (function (_super) {
|
|
7
7
|
__extends(AcceptInvitationCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AcceptInvitationCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AcceptInvitationRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AcceptInvitationResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { BatchGetCustomDataIdentifiersRequestFilterSensitiveLog, BatchGetCustomDataIdentifiersResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand, serializeAws_restJson1BatchGetCustomDataIdentifiersCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var BatchGetCustomDataIdentifiersCommand = (function (_super) {
|
|
7
7
|
__extends(BatchGetCustomDataIdentifiersCommand, _super);
|
|
@@ -20,8 +20,8 @@ var BatchGetCustomDataIdentifiersCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: BatchGetCustomDataIdentifiersRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchGetCustomDataIdentifiersResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|