@aws-sdk/client-macie2 3.160.0 → 3.163.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 +27 -0
- package/dist-cjs/Macie2.js +75 -0
- package/dist-cjs/commands/CreateAllowListCommand.js +36 -0
- package/dist-cjs/commands/DeleteAllowListCommand.js +36 -0
- package/dist-cjs/commands/GetAllowListCommand.js +36 -0
- package/dist-cjs/commands/ListAllowListsCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +2 -1
- package/dist-cjs/commands/UpdateAllowListCommand.js +36 -0
- package/dist-cjs/commands/UpdateClassificationJobCommand.js +3 -3
- package/dist-cjs/commands/UpdateFindingsFilterCommand.js +3 -3
- package/dist-cjs/commands/UpdateMacieSessionCommand.js +3 -3
- package/dist-cjs/commands/UpdateMemberSessionCommand.js +3 -3
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateRevealConfigurationCommand.js +3 -3
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +65 -58
- package/dist-cjs/models/models_1.js +63 -0
- package/dist-cjs/protocols/Aws_restJson1.js +432 -3
- package/dist-es/Macie2.js +75 -0
- package/dist-es/commands/CreateAllowListCommand.js +39 -0
- package/dist-es/commands/DeleteAllowListCommand.js +39 -0
- package/dist-es/commands/GetAllowListCommand.js +39 -0
- package/dist-es/commands/ListAllowListsCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +2 -1
- package/dist-es/commands/UpdateAllowListCommand.js +39 -0
- package/dist-es/commands/UpdateClassificationJobCommand.js +1 -1
- package/dist-es/commands/UpdateFindingsFilterCommand.js +1 -1
- package/dist-es/commands/UpdateMacieSessionCommand.js +1 -1
- package/dist-es/commands/UpdateMemberSessionCommand.js +1 -1
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateRevealConfigurationCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +23 -13
- package/dist-es/models/models_1.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +567 -1
- package/dist-types/Macie2.d.ts +42 -7
- package/dist-types/Macie2Client.d.ts +7 -2
- package/dist-types/commands/CreateAllowListCommand.d.ts +35 -0
- package/dist-types/commands/DeleteAllowListCommand.d.ts +35 -0
- package/dist-types/commands/GetAllowListCommand.d.ts +35 -0
- package/dist-types/commands/GetRevealConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +1 -1
- package/dist-types/commands/GetSensitiveDataOccurrencesCommand.d.ts +1 -1
- package/dist-types/commands/ListAllowListsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -2
- package/dist-types/commands/UpdateAllowListCommand.d.ts +35 -0
- package/dist-types/commands/UpdateClassificationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFindingsFilterCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMacieSessionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMemberSessionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRevealConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +268 -176
- package/dist-types/models/models_1.d.ts +187 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Macie2.d.ts +25 -0
- package/dist-types/ts3.4/Macie2Client.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAllowListsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateClassificationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFindingsFilterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMacieSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMemberSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRevealConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +136 -88
- package/dist-types/ts3.4/models/models_1.d.ts +109 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +27 -27
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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;
|
|
3
|
+
exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1ListAllowListsCommand = 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_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_restJson1GetFindingStatisticsCommand = exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsFilterCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAllowListCommand = 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_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_restJson1UpdateRevealConfigurationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = 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_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = 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_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1ListAllowListsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = exports.deserializeAws_restJson1GetRevealConfigurationCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMacieSessionCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = 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");
|
|
@@ -52,6 +52,32 @@ const serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = async (input,
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = serializeAws_restJson1BatchGetCustomDataIdentifiersCommand;
|
|
55
|
+
const serializeAws_restJson1CreateAllowListCommand = async (input, context) => {
|
|
56
|
+
var _a;
|
|
57
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
58
|
+
const headers = {
|
|
59
|
+
"content-type": "application/json",
|
|
60
|
+
};
|
|
61
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists";
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify({
|
|
64
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
65
|
+
...(input.criteria != null && { criteria: serializeAws_restJson1AllowListCriteria(input.criteria, context) }),
|
|
66
|
+
...(input.description != null && { description: input.description }),
|
|
67
|
+
...(input.name != null && { name: input.name }),
|
|
68
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
69
|
+
});
|
|
70
|
+
return new protocol_http_1.HttpRequest({
|
|
71
|
+
protocol,
|
|
72
|
+
hostname,
|
|
73
|
+
port,
|
|
74
|
+
method: "POST",
|
|
75
|
+
headers,
|
|
76
|
+
path: resolvedPath,
|
|
77
|
+
body,
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
exports.serializeAws_restJson1CreateAllowListCommand = serializeAws_restJson1CreateAllowListCommand;
|
|
55
81
|
const serializeAws_restJson1CreateClassificationJobCommand = async (input, context) => {
|
|
56
82
|
var _a;
|
|
57
83
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -61,6 +87,9 @@ const serializeAws_restJson1CreateClassificationJobCommand = async (input, conte
|
|
|
61
87
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
62
88
|
let body;
|
|
63
89
|
body = JSON.stringify({
|
|
90
|
+
...(input.allowListIds != null && {
|
|
91
|
+
allowListIds: serializeAws_restJson1__listOf__string(input.allowListIds, context),
|
|
92
|
+
}),
|
|
64
93
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
65
94
|
...(input.customDataIdentifierIds != null && {
|
|
66
95
|
customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
|
|
@@ -248,6 +277,27 @@ const serializeAws_restJson1DeclineInvitationsCommand = async (input, context) =
|
|
|
248
277
|
});
|
|
249
278
|
};
|
|
250
279
|
exports.serializeAws_restJson1DeclineInvitationsCommand = serializeAws_restJson1DeclineInvitationsCommand;
|
|
280
|
+
const serializeAws_restJson1DeleteAllowListCommand = async (input, context) => {
|
|
281
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
|
+
const headers = {};
|
|
283
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists/{id}";
|
|
284
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
285
|
+
const query = map({
|
|
286
|
+
ignoreJobChecks: [, input.ignoreJobChecks],
|
|
287
|
+
});
|
|
288
|
+
let body;
|
|
289
|
+
return new protocol_http_1.HttpRequest({
|
|
290
|
+
protocol,
|
|
291
|
+
hostname,
|
|
292
|
+
port,
|
|
293
|
+
method: "DELETE",
|
|
294
|
+
headers,
|
|
295
|
+
path: resolvedPath,
|
|
296
|
+
query,
|
|
297
|
+
body,
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
exports.serializeAws_restJson1DeleteAllowListCommand = serializeAws_restJson1DeleteAllowListCommand;
|
|
251
301
|
const serializeAws_restJson1DeleteCustomDataIdentifierCommand = async (input, context) => {
|
|
252
302
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
303
|
const headers = {};
|
|
@@ -542,6 +592,23 @@ const serializeAws_restJson1GetAdministratorAccountCommand = async (input, conte
|
|
|
542
592
|
});
|
|
543
593
|
};
|
|
544
594
|
exports.serializeAws_restJson1GetAdministratorAccountCommand = serializeAws_restJson1GetAdministratorAccountCommand;
|
|
595
|
+
const serializeAws_restJson1GetAllowListCommand = async (input, context) => {
|
|
596
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
597
|
+
const headers = {};
|
|
598
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists/{id}";
|
|
599
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
600
|
+
let body;
|
|
601
|
+
return new protocol_http_1.HttpRequest({
|
|
602
|
+
protocol,
|
|
603
|
+
hostname,
|
|
604
|
+
port,
|
|
605
|
+
method: "GET",
|
|
606
|
+
headers,
|
|
607
|
+
path: resolvedPath,
|
|
608
|
+
body,
|
|
609
|
+
});
|
|
610
|
+
};
|
|
611
|
+
exports.serializeAws_restJson1GetAllowListCommand = serializeAws_restJson1GetAllowListCommand;
|
|
545
612
|
const serializeAws_restJson1GetBucketStatisticsCommand = async (input, context) => {
|
|
546
613
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
547
614
|
const headers = {
|
|
@@ -861,6 +928,27 @@ const serializeAws_restJson1GetUsageTotalsCommand = async (input, context) => {
|
|
|
861
928
|
});
|
|
862
929
|
};
|
|
863
930
|
exports.serializeAws_restJson1GetUsageTotalsCommand = serializeAws_restJson1GetUsageTotalsCommand;
|
|
931
|
+
const serializeAws_restJson1ListAllowListsCommand = async (input, context) => {
|
|
932
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
933
|
+
const headers = {};
|
|
934
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists";
|
|
935
|
+
const query = map({
|
|
936
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
937
|
+
nextToken: [, input.nextToken],
|
|
938
|
+
});
|
|
939
|
+
let body;
|
|
940
|
+
return new protocol_http_1.HttpRequest({
|
|
941
|
+
protocol,
|
|
942
|
+
hostname,
|
|
943
|
+
port,
|
|
944
|
+
method: "GET",
|
|
945
|
+
headers,
|
|
946
|
+
path: resolvedPath,
|
|
947
|
+
query,
|
|
948
|
+
body,
|
|
949
|
+
});
|
|
950
|
+
};
|
|
951
|
+
exports.serializeAws_restJson1ListAllowListsCommand = serializeAws_restJson1ListAllowListsCommand;
|
|
864
952
|
const serializeAws_restJson1ListClassificationJobsCommand = async (input, context) => {
|
|
865
953
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
866
954
|
const headers = {
|
|
@@ -1208,6 +1296,30 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1208
1296
|
});
|
|
1209
1297
|
};
|
|
1210
1298
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
1299
|
+
const serializeAws_restJson1UpdateAllowListCommand = async (input, context) => {
|
|
1300
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1301
|
+
const headers = {
|
|
1302
|
+
"content-type": "application/json",
|
|
1303
|
+
};
|
|
1304
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/allow-lists/{id}";
|
|
1305
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1306
|
+
let body;
|
|
1307
|
+
body = JSON.stringify({
|
|
1308
|
+
...(input.criteria != null && { criteria: serializeAws_restJson1AllowListCriteria(input.criteria, context) }),
|
|
1309
|
+
...(input.description != null && { description: input.description }),
|
|
1310
|
+
...(input.name != null && { name: input.name }),
|
|
1311
|
+
});
|
|
1312
|
+
return new protocol_http_1.HttpRequest({
|
|
1313
|
+
protocol,
|
|
1314
|
+
hostname,
|
|
1315
|
+
port,
|
|
1316
|
+
method: "PUT",
|
|
1317
|
+
headers,
|
|
1318
|
+
path: resolvedPath,
|
|
1319
|
+
body,
|
|
1320
|
+
});
|
|
1321
|
+
};
|
|
1322
|
+
exports.serializeAws_restJson1UpdateAllowListCommand = serializeAws_restJson1UpdateAllowListCommand;
|
|
1211
1323
|
const serializeAws_restJson1UpdateClassificationJobCommand = async (input, context) => {
|
|
1212
1324
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1213
1325
|
const headers = {
|
|
@@ -1452,6 +1564,61 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1452
1564
|
});
|
|
1453
1565
|
}
|
|
1454
1566
|
};
|
|
1567
|
+
const deserializeAws_restJson1CreateAllowListCommand = async (output, context) => {
|
|
1568
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
|
+
return deserializeAws_restJson1CreateAllowListCommandError(output, context);
|
|
1570
|
+
}
|
|
1571
|
+
const contents = map({
|
|
1572
|
+
$metadata: deserializeMetadata(output),
|
|
1573
|
+
});
|
|
1574
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1575
|
+
if (data.arn != null) {
|
|
1576
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1577
|
+
}
|
|
1578
|
+
if (data.id != null) {
|
|
1579
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
1580
|
+
}
|
|
1581
|
+
return contents;
|
|
1582
|
+
};
|
|
1583
|
+
exports.deserializeAws_restJson1CreateAllowListCommand = deserializeAws_restJson1CreateAllowListCommand;
|
|
1584
|
+
const deserializeAws_restJson1CreateAllowListCommandError = async (output, context) => {
|
|
1585
|
+
const parsedOutput = {
|
|
1586
|
+
...output,
|
|
1587
|
+
body: await parseBody(output.body, context),
|
|
1588
|
+
};
|
|
1589
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
+
switch (errorCode) {
|
|
1591
|
+
case "AccessDeniedException":
|
|
1592
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
1593
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1594
|
+
case "ConflictException":
|
|
1595
|
+
case "com.amazonaws.macie2#ConflictException":
|
|
1596
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1597
|
+
case "InternalServerException":
|
|
1598
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
1599
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1600
|
+
case "ResourceNotFoundException":
|
|
1601
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
1602
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1603
|
+
case "ServiceQuotaExceededException":
|
|
1604
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
1605
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1606
|
+
case "ThrottlingException":
|
|
1607
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
1608
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1609
|
+
case "ValidationException":
|
|
1610
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
1611
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1612
|
+
default:
|
|
1613
|
+
const parsedBody = parsedOutput.body;
|
|
1614
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1615
|
+
output,
|
|
1616
|
+
parsedBody,
|
|
1617
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1618
|
+
errorCode,
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
};
|
|
1455
1622
|
const deserializeAws_restJson1CreateClassificationJobCommand = async (output, context) => {
|
|
1456
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1457
1624
|
return deserializeAws_restJson1CreateClassificationJobCommandError(output, context);
|
|
@@ -1819,6 +1986,49 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1819
1986
|
});
|
|
1820
1987
|
}
|
|
1821
1988
|
};
|
|
1989
|
+
const deserializeAws_restJson1DeleteAllowListCommand = async (output, context) => {
|
|
1990
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1991
|
+
return deserializeAws_restJson1DeleteAllowListCommandError(output, context);
|
|
1992
|
+
}
|
|
1993
|
+
const contents = map({
|
|
1994
|
+
$metadata: deserializeMetadata(output),
|
|
1995
|
+
});
|
|
1996
|
+
await collectBody(output.body, context);
|
|
1997
|
+
return contents;
|
|
1998
|
+
};
|
|
1999
|
+
exports.deserializeAws_restJson1DeleteAllowListCommand = deserializeAws_restJson1DeleteAllowListCommand;
|
|
2000
|
+
const deserializeAws_restJson1DeleteAllowListCommandError = async (output, context) => {
|
|
2001
|
+
const parsedOutput = {
|
|
2002
|
+
...output,
|
|
2003
|
+
body: await parseBody(output.body, context),
|
|
2004
|
+
};
|
|
2005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
+
switch (errorCode) {
|
|
2007
|
+
case "AccessDeniedException":
|
|
2008
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2009
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2010
|
+
case "InternalServerException":
|
|
2011
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
2012
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2013
|
+
case "ResourceNotFoundException":
|
|
2014
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2015
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2016
|
+
case "ThrottlingException":
|
|
2017
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
2018
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2019
|
+
case "ValidationException":
|
|
2020
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
2021
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2022
|
+
default:
|
|
2023
|
+
const parsedBody = parsedOutput.body;
|
|
2024
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2025
|
+
output,
|
|
2026
|
+
parsedBody,
|
|
2027
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2028
|
+
errorCode,
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
1822
2032
|
const deserializeAws_restJson1DeleteCustomDataIdentifierCommand = async (output, context) => {
|
|
1823
2033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1824
2034
|
return deserializeAws_restJson1DeleteCustomDataIdentifierCommandError(output, context);
|
|
@@ -2081,6 +2291,9 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2081
2291
|
$metadata: deserializeMetadata(output),
|
|
2082
2292
|
});
|
|
2083
2293
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2294
|
+
if (data.allowListIds != null) {
|
|
2295
|
+
contents.allowListIds = deserializeAws_restJson1__listOf__string(data.allowListIds, context);
|
|
2296
|
+
}
|
|
2084
2297
|
if (data.clientToken != null) {
|
|
2085
2298
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
2086
2299
|
}
|
|
@@ -2632,6 +2845,76 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2632
2845
|
});
|
|
2633
2846
|
}
|
|
2634
2847
|
};
|
|
2848
|
+
const deserializeAws_restJson1GetAllowListCommand = async (output, context) => {
|
|
2849
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2850
|
+
return deserializeAws_restJson1GetAllowListCommandError(output, context);
|
|
2851
|
+
}
|
|
2852
|
+
const contents = map({
|
|
2853
|
+
$metadata: deserializeMetadata(output),
|
|
2854
|
+
});
|
|
2855
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2856
|
+
if (data.arn != null) {
|
|
2857
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2858
|
+
}
|
|
2859
|
+
if (data.createdAt != null) {
|
|
2860
|
+
contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdAt));
|
|
2861
|
+
}
|
|
2862
|
+
if (data.criteria != null) {
|
|
2863
|
+
contents.criteria = deserializeAws_restJson1AllowListCriteria(data.criteria, context);
|
|
2864
|
+
}
|
|
2865
|
+
if (data.description != null) {
|
|
2866
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
2867
|
+
}
|
|
2868
|
+
if (data.id != null) {
|
|
2869
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
2870
|
+
}
|
|
2871
|
+
if (data.name != null) {
|
|
2872
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2873
|
+
}
|
|
2874
|
+
if (data.status != null) {
|
|
2875
|
+
contents.status = deserializeAws_restJson1AllowListStatus(data.status, context);
|
|
2876
|
+
}
|
|
2877
|
+
if (data.tags != null) {
|
|
2878
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2879
|
+
}
|
|
2880
|
+
if (data.updatedAt != null) {
|
|
2881
|
+
contents.updatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.updatedAt));
|
|
2882
|
+
}
|
|
2883
|
+
return contents;
|
|
2884
|
+
};
|
|
2885
|
+
exports.deserializeAws_restJson1GetAllowListCommand = deserializeAws_restJson1GetAllowListCommand;
|
|
2886
|
+
const deserializeAws_restJson1GetAllowListCommandError = async (output, context) => {
|
|
2887
|
+
const parsedOutput = {
|
|
2888
|
+
...output,
|
|
2889
|
+
body: await parseBody(output.body, context),
|
|
2890
|
+
};
|
|
2891
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2892
|
+
switch (errorCode) {
|
|
2893
|
+
case "AccessDeniedException":
|
|
2894
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
2895
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2896
|
+
case "InternalServerException":
|
|
2897
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
2898
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2899
|
+
case "ResourceNotFoundException":
|
|
2900
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
2901
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2902
|
+
case "ThrottlingException":
|
|
2903
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
2904
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2905
|
+
case "ValidationException":
|
|
2906
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
2907
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2908
|
+
default:
|
|
2909
|
+
const parsedBody = parsedOutput.body;
|
|
2910
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2911
|
+
output,
|
|
2912
|
+
parsedBody,
|
|
2913
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2914
|
+
errorCode,
|
|
2915
|
+
});
|
|
2916
|
+
}
|
|
2917
|
+
};
|
|
2635
2918
|
const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, context) => {
|
|
2636
2919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2637
2920
|
return deserializeAws_restJson1GetBucketStatisticsCommandError(output, context);
|
|
@@ -3588,6 +3871,52 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3588
3871
|
});
|
|
3589
3872
|
}
|
|
3590
3873
|
};
|
|
3874
|
+
const deserializeAws_restJson1ListAllowListsCommand = async (output, context) => {
|
|
3875
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3876
|
+
return deserializeAws_restJson1ListAllowListsCommandError(output, context);
|
|
3877
|
+
}
|
|
3878
|
+
const contents = map({
|
|
3879
|
+
$metadata: deserializeMetadata(output),
|
|
3880
|
+
});
|
|
3881
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3882
|
+
if (data.allowLists != null) {
|
|
3883
|
+
contents.allowLists = deserializeAws_restJson1__listOfAllowListSummary(data.allowLists, context);
|
|
3884
|
+
}
|
|
3885
|
+
if (data.nextToken != null) {
|
|
3886
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3887
|
+
}
|
|
3888
|
+
return contents;
|
|
3889
|
+
};
|
|
3890
|
+
exports.deserializeAws_restJson1ListAllowListsCommand = deserializeAws_restJson1ListAllowListsCommand;
|
|
3891
|
+
const deserializeAws_restJson1ListAllowListsCommandError = async (output, context) => {
|
|
3892
|
+
const parsedOutput = {
|
|
3893
|
+
...output,
|
|
3894
|
+
body: await parseBody(output.body, context),
|
|
3895
|
+
};
|
|
3896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
|
+
switch (errorCode) {
|
|
3898
|
+
case "AccessDeniedException":
|
|
3899
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3900
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3901
|
+
case "InternalServerException":
|
|
3902
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3903
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3904
|
+
case "ThrottlingException":
|
|
3905
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3906
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3907
|
+
case "ValidationException":
|
|
3908
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3909
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3910
|
+
default:
|
|
3911
|
+
const parsedBody = parsedOutput.body;
|
|
3912
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3913
|
+
output,
|
|
3914
|
+
parsedBody,
|
|
3915
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3916
|
+
errorCode,
|
|
3917
|
+
});
|
|
3918
|
+
}
|
|
3919
|
+
};
|
|
3591
3920
|
const deserializeAws_restJson1ListClassificationJobsCommand = async (output, context) => {
|
|
3592
3921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3593
3922
|
return deserializeAws_restJson1ListClassificationJobsCommandError(output, context);
|
|
@@ -4290,6 +4619,55 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4290
4619
|
errorCode,
|
|
4291
4620
|
});
|
|
4292
4621
|
};
|
|
4622
|
+
const deserializeAws_restJson1UpdateAllowListCommand = async (output, context) => {
|
|
4623
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4624
|
+
return deserializeAws_restJson1UpdateAllowListCommandError(output, context);
|
|
4625
|
+
}
|
|
4626
|
+
const contents = map({
|
|
4627
|
+
$metadata: deserializeMetadata(output),
|
|
4628
|
+
});
|
|
4629
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4630
|
+
if (data.arn != null) {
|
|
4631
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
4632
|
+
}
|
|
4633
|
+
if (data.id != null) {
|
|
4634
|
+
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
4635
|
+
}
|
|
4636
|
+
return contents;
|
|
4637
|
+
};
|
|
4638
|
+
exports.deserializeAws_restJson1UpdateAllowListCommand = deserializeAws_restJson1UpdateAllowListCommand;
|
|
4639
|
+
const deserializeAws_restJson1UpdateAllowListCommandError = async (output, context) => {
|
|
4640
|
+
const parsedOutput = {
|
|
4641
|
+
...output,
|
|
4642
|
+
body: await parseBody(output.body, context),
|
|
4643
|
+
};
|
|
4644
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4645
|
+
switch (errorCode) {
|
|
4646
|
+
case "AccessDeniedException":
|
|
4647
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4648
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4649
|
+
case "InternalServerException":
|
|
4650
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4651
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4652
|
+
case "ResourceNotFoundException":
|
|
4653
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
4654
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4655
|
+
case "ThrottlingException":
|
|
4656
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4657
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4658
|
+
case "ValidationException":
|
|
4659
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4660
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4661
|
+
default:
|
|
4662
|
+
const parsedBody = parsedOutput.body;
|
|
4663
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4664
|
+
output,
|
|
4665
|
+
parsedBody,
|
|
4666
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4667
|
+
errorCode,
|
|
4668
|
+
});
|
|
4669
|
+
}
|
|
4670
|
+
};
|
|
4293
4671
|
const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, context) => {
|
|
4294
4672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4295
4673
|
return deserializeAws_restJson1UpdateClassificationJobCommandError(output, context);
|
|
@@ -4764,6 +5142,12 @@ const serializeAws_restJson1AccountDetail = (input, context) => {
|
|
|
4764
5142
|
...(input.email != null && { email: input.email }),
|
|
4765
5143
|
};
|
|
4766
5144
|
};
|
|
5145
|
+
const serializeAws_restJson1AllowListCriteria = (input, context) => {
|
|
5146
|
+
return {
|
|
5147
|
+
...(input.regex != null && { regex: input.regex }),
|
|
5148
|
+
...(input.s3WordsList != null && { s3WordsList: serializeAws_restJson1S3WordsList(input.s3WordsList, context) }),
|
|
5149
|
+
};
|
|
5150
|
+
};
|
|
4767
5151
|
const serializeAws_restJson1BucketCriteria = (input, context) => {
|
|
4768
5152
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4769
5153
|
if (value === null) {
|
|
@@ -4944,6 +5328,12 @@ const serializeAws_restJson1S3JobDefinition = (input, context) => {
|
|
|
4944
5328
|
...(input.scoping != null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }),
|
|
4945
5329
|
};
|
|
4946
5330
|
};
|
|
5331
|
+
const serializeAws_restJson1S3WordsList = (input, context) => {
|
|
5332
|
+
return {
|
|
5333
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
5334
|
+
...(input.objectKey != null && { objectKey: input.objectKey }),
|
|
5335
|
+
};
|
|
5336
|
+
};
|
|
4947
5337
|
const serializeAws_restJson1Scoping = (input, context) => {
|
|
4948
5338
|
return {
|
|
4949
5339
|
...(input.excludes != null && { excludes: serializeAws_restJson1JobScopingBlock(input.excludes, context) }),
|
|
@@ -5122,6 +5512,17 @@ const deserializeAws_restJson1__listOfAdminAccount = (output, context) => {
|
|
|
5122
5512
|
});
|
|
5123
5513
|
return retVal;
|
|
5124
5514
|
};
|
|
5515
|
+
const deserializeAws_restJson1__listOfAllowListSummary = (output, context) => {
|
|
5516
|
+
const retVal = (output || [])
|
|
5517
|
+
.filter((e) => e != null)
|
|
5518
|
+
.map((entry) => {
|
|
5519
|
+
if (entry === null) {
|
|
5520
|
+
return null;
|
|
5521
|
+
}
|
|
5522
|
+
return deserializeAws_restJson1AllowListSummary(entry, context);
|
|
5523
|
+
});
|
|
5524
|
+
return retVal;
|
|
5525
|
+
};
|
|
5125
5526
|
const deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary = (output, context) => {
|
|
5126
5527
|
const retVal = (output || [])
|
|
5127
5528
|
.filter((e) => e != null)
|
|
@@ -5394,6 +5795,28 @@ const deserializeAws_restJson1AdminAccount = (output, context) => {
|
|
|
5394
5795
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5395
5796
|
};
|
|
5396
5797
|
};
|
|
5798
|
+
const deserializeAws_restJson1AllowListCriteria = (output, context) => {
|
|
5799
|
+
return {
|
|
5800
|
+
regex: (0, smithy_client_1.expectString)(output.regex),
|
|
5801
|
+
s3WordsList: output.s3WordsList != null ? deserializeAws_restJson1S3WordsList(output.s3WordsList, context) : undefined,
|
|
5802
|
+
};
|
|
5803
|
+
};
|
|
5804
|
+
const deserializeAws_restJson1AllowListStatus = (output, context) => {
|
|
5805
|
+
return {
|
|
5806
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
5807
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
5808
|
+
};
|
|
5809
|
+
};
|
|
5810
|
+
const deserializeAws_restJson1AllowListSummary = (output, context) => {
|
|
5811
|
+
return {
|
|
5812
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5813
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
|
|
5814
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
5815
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
5816
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
5817
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.updatedAt)) : undefined,
|
|
5818
|
+
};
|
|
5819
|
+
};
|
|
5397
5820
|
const deserializeAws_restJson1ApiCallDetails = (output, context) => {
|
|
5398
5821
|
return {
|
|
5399
5822
|
api: (0, smithy_client_1.expectString)(output.api),
|
|
@@ -6135,6 +6558,12 @@ const deserializeAws_restJson1S3Object = (output, context) => {
|
|
|
6135
6558
|
versionId: (0, smithy_client_1.expectString)(output.versionId),
|
|
6136
6559
|
};
|
|
6137
6560
|
};
|
|
6561
|
+
const deserializeAws_restJson1S3WordsList = (output, context) => {
|
|
6562
|
+
return {
|
|
6563
|
+
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
6564
|
+
objectKey: (0, smithy_client_1.expectString)(output.objectKey),
|
|
6565
|
+
};
|
|
6566
|
+
};
|
|
6138
6567
|
const deserializeAws_restJson1Scoping = (output, context) => {
|
|
6139
6568
|
return {
|
|
6140
6569
|
excludes: output.excludes != null ? deserializeAws_restJson1JobScopingBlock(output.excludes, context) : undefined,
|