@aws-sdk/client-macie2 3.131.0 → 3.142.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 +34 -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 +964 -1101
- 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 +1256 -1095
- 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 +7 -6
|
@@ -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");
|
|
@@ -252,16 +252,7 @@ const serializeAws_restJson1DeleteCustomDataIdentifierCommand = async (input, co
|
|
|
252
252
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
253
|
const headers = {};
|
|
254
254
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/{id}";
|
|
255
|
-
|
|
256
|
-
const labelValue = input.id;
|
|
257
|
-
if (labelValue.length <= 0) {
|
|
258
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
259
|
-
}
|
|
260
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
264
|
-
}
|
|
255
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
265
256
|
let body;
|
|
266
257
|
return new protocol_http_1.HttpRequest({
|
|
267
258
|
protocol,
|
|
@@ -278,16 +269,7 @@ const serializeAws_restJson1DeleteFindingsFilterCommand = async (input, context)
|
|
|
278
269
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
270
|
const headers = {};
|
|
280
271
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters/{id}";
|
|
281
|
-
|
|
282
|
-
const labelValue = input.id;
|
|
283
|
-
if (labelValue.length <= 0) {
|
|
284
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
285
|
-
}
|
|
286
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
290
|
-
}
|
|
272
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
291
273
|
let body;
|
|
292
274
|
return new protocol_http_1.HttpRequest({
|
|
293
275
|
protocol,
|
|
@@ -325,16 +307,7 @@ const serializeAws_restJson1DeleteMemberCommand = async (input, context) => {
|
|
|
325
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
308
|
const headers = {};
|
|
327
309
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/{id}";
|
|
328
|
-
|
|
329
|
-
const labelValue = input.id;
|
|
330
|
-
if (labelValue.length <= 0) {
|
|
331
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
332
|
-
}
|
|
333
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
337
|
-
}
|
|
310
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
338
311
|
let body;
|
|
339
312
|
return new protocol_http_1.HttpRequest({
|
|
340
313
|
protocol,
|
|
@@ -377,16 +350,7 @@ const serializeAws_restJson1DescribeClassificationJobCommand = async (input, con
|
|
|
377
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
351
|
const headers = {};
|
|
379
352
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
380
|
-
|
|
381
|
-
const labelValue = input.jobId;
|
|
382
|
-
if (labelValue.length <= 0) {
|
|
383
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
384
|
-
}
|
|
385
|
-
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
389
|
-
}
|
|
353
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
390
354
|
let body;
|
|
391
355
|
return new protocol_http_1.HttpRequest({
|
|
392
356
|
protocol,
|
|
@@ -441,9 +405,9 @@ const serializeAws_restJson1DisableOrganizationAdminAccountCommand = async (inpu
|
|
|
441
405
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
406
|
const headers = {};
|
|
443
407
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
|
|
444
|
-
const query = {
|
|
445
|
-
|
|
446
|
-
};
|
|
408
|
+
const query = map({
|
|
409
|
+
adminAccountId: [, input.adminAccountId],
|
|
410
|
+
});
|
|
447
411
|
let body;
|
|
448
412
|
return new protocol_http_1.HttpRequest({
|
|
449
413
|
protocol,
|
|
@@ -499,16 +463,7 @@ const serializeAws_restJson1DisassociateMemberCommand = async (input, context) =
|
|
|
499
463
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
500
464
|
const headers = {};
|
|
501
465
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/disassociate/{id}";
|
|
502
|
-
|
|
503
|
-
const labelValue = input.id;
|
|
504
|
-
if (labelValue.length <= 0) {
|
|
505
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
506
|
-
}
|
|
507
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
508
|
-
}
|
|
509
|
-
else {
|
|
510
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
511
|
-
}
|
|
466
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
512
467
|
let body;
|
|
513
468
|
return new protocol_http_1.HttpRequest({
|
|
514
469
|
protocol,
|
|
@@ -631,16 +586,7 @@ const serializeAws_restJson1GetCustomDataIdentifierCommand = async (input, conte
|
|
|
631
586
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
632
587
|
const headers = {};
|
|
633
588
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers/{id}";
|
|
634
|
-
|
|
635
|
-
const labelValue = input.id;
|
|
636
|
-
if (labelValue.length <= 0) {
|
|
637
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
638
|
-
}
|
|
639
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
640
|
-
}
|
|
641
|
-
else {
|
|
642
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
643
|
-
}
|
|
589
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
644
590
|
let body;
|
|
645
591
|
return new protocol_http_1.HttpRequest({
|
|
646
592
|
protocol,
|
|
@@ -681,16 +627,7 @@ const serializeAws_restJson1GetFindingsFilterCommand = async (input, context) =>
|
|
|
681
627
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
682
628
|
const headers = {};
|
|
683
629
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters/{id}";
|
|
684
|
-
|
|
685
|
-
const labelValue = input.id;
|
|
686
|
-
if (labelValue.length <= 0) {
|
|
687
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
688
|
-
}
|
|
689
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
690
|
-
}
|
|
691
|
-
else {
|
|
692
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
693
|
-
}
|
|
630
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
694
631
|
let body;
|
|
695
632
|
return new protocol_http_1.HttpRequest({
|
|
696
633
|
protocol,
|
|
@@ -811,16 +748,7 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
811
748
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
812
749
|
const headers = {};
|
|
813
750
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members/{id}";
|
|
814
|
-
|
|
815
|
-
const labelValue = input.id;
|
|
816
|
-
if (labelValue.length <= 0) {
|
|
817
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
818
|
-
}
|
|
819
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
820
|
-
}
|
|
821
|
-
else {
|
|
822
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
823
|
-
}
|
|
751
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
824
752
|
let body;
|
|
825
753
|
return new protocol_http_1.HttpRequest({
|
|
826
754
|
protocol,
|
|
@@ -833,6 +761,59 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
833
761
|
});
|
|
834
762
|
};
|
|
835
763
|
exports.serializeAws_restJson1GetMemberCommand = serializeAws_restJson1GetMemberCommand;
|
|
764
|
+
const serializeAws_restJson1GetRevealConfigurationCommand = async (input, context) => {
|
|
765
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
766
|
+
const headers = {
|
|
767
|
+
"content-type": "application/json",
|
|
768
|
+
};
|
|
769
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reveal-configuration";
|
|
770
|
+
let body;
|
|
771
|
+
body = "";
|
|
772
|
+
return new protocol_http_1.HttpRequest({
|
|
773
|
+
protocol,
|
|
774
|
+
hostname,
|
|
775
|
+
port,
|
|
776
|
+
method: "GET",
|
|
777
|
+
headers,
|
|
778
|
+
path: resolvedPath,
|
|
779
|
+
body,
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
exports.serializeAws_restJson1GetRevealConfigurationCommand = serializeAws_restJson1GetRevealConfigurationCommand;
|
|
783
|
+
const serializeAws_restJson1GetSensitiveDataOccurrencesCommand = async (input, context) => {
|
|
784
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
785
|
+
const headers = {};
|
|
786
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{findingId}/reveal";
|
|
787
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "findingId", () => input.findingId, "{findingId}", false);
|
|
788
|
+
let body;
|
|
789
|
+
return new protocol_http_1.HttpRequest({
|
|
790
|
+
protocol,
|
|
791
|
+
hostname,
|
|
792
|
+
port,
|
|
793
|
+
method: "GET",
|
|
794
|
+
headers,
|
|
795
|
+
path: resolvedPath,
|
|
796
|
+
body,
|
|
797
|
+
});
|
|
798
|
+
};
|
|
799
|
+
exports.serializeAws_restJson1GetSensitiveDataOccurrencesCommand = serializeAws_restJson1GetSensitiveDataOccurrencesCommand;
|
|
800
|
+
const serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = async (input, context) => {
|
|
801
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
802
|
+
const headers = {};
|
|
803
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings/{findingId}/reveal/availability";
|
|
804
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "findingId", () => input.findingId, "{findingId}", false);
|
|
805
|
+
let body;
|
|
806
|
+
return new protocol_http_1.HttpRequest({
|
|
807
|
+
protocol,
|
|
808
|
+
hostname,
|
|
809
|
+
port,
|
|
810
|
+
method: "GET",
|
|
811
|
+
headers,
|
|
812
|
+
path: resolvedPath,
|
|
813
|
+
body,
|
|
814
|
+
});
|
|
815
|
+
};
|
|
816
|
+
exports.serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand;
|
|
836
817
|
const serializeAws_restJson1GetUsageStatisticsCommand = async (input, context) => {
|
|
837
818
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
838
819
|
const headers = {
|
|
@@ -864,9 +845,9 @@ const serializeAws_restJson1GetUsageTotalsCommand = async (input, context) => {
|
|
|
864
845
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
865
846
|
const headers = {};
|
|
866
847
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/usage";
|
|
867
|
-
const query = {
|
|
868
|
-
|
|
869
|
-
};
|
|
848
|
+
const query = map({
|
|
849
|
+
timeRange: [, input.timeRange],
|
|
850
|
+
});
|
|
870
851
|
let body;
|
|
871
852
|
return new protocol_http_1.HttpRequest({
|
|
872
853
|
protocol,
|
|
@@ -962,10 +943,10 @@ const serializeAws_restJson1ListFindingsFiltersCommand = async (input, context)
|
|
|
962
943
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
963
944
|
const headers = {};
|
|
964
945
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters";
|
|
965
|
-
const query = {
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
};
|
|
946
|
+
const query = map({
|
|
947
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
948
|
+
nextToken: [, input.nextToken],
|
|
949
|
+
});
|
|
969
950
|
let body;
|
|
970
951
|
return new protocol_http_1.HttpRequest({
|
|
971
952
|
protocol,
|
|
@@ -983,10 +964,10 @@ const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
|
983
964
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
984
965
|
const headers = {};
|
|
985
966
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitations";
|
|
986
|
-
const query = {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
};
|
|
967
|
+
const query = map({
|
|
968
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
969
|
+
nextToken: [, input.nextToken],
|
|
970
|
+
});
|
|
990
971
|
let body;
|
|
991
972
|
return new protocol_http_1.HttpRequest({
|
|
992
973
|
protocol,
|
|
@@ -1025,11 +1006,11 @@ const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
|
1025
1006
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1026
1007
|
const headers = {};
|
|
1027
1008
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/members";
|
|
1028
|
-
const query = {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
};
|
|
1009
|
+
const query = map({
|
|
1010
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1011
|
+
nextToken: [, input.nextToken],
|
|
1012
|
+
onlyAssociated: [, input.onlyAssociated],
|
|
1013
|
+
});
|
|
1033
1014
|
let body;
|
|
1034
1015
|
return new protocol_http_1.HttpRequest({
|
|
1035
1016
|
protocol,
|
|
@@ -1047,10 +1028,10 @@ const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input,
|
|
|
1047
1028
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1048
1029
|
const headers = {};
|
|
1049
1030
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/admin";
|
|
1050
|
-
const query = {
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
};
|
|
1031
|
+
const query = map({
|
|
1032
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1033
|
+
nextToken: [, input.nextToken],
|
|
1034
|
+
});
|
|
1054
1035
|
let body;
|
|
1055
1036
|
return new protocol_http_1.HttpRequest({
|
|
1056
1037
|
protocol,
|
|
@@ -1068,16 +1049,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1068
1049
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1069
1050
|
const headers = {};
|
|
1070
1051
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1071
|
-
|
|
1072
|
-
const labelValue = input.resourceArn;
|
|
1073
|
-
if (labelValue.length <= 0) {
|
|
1074
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1075
|
-
}
|
|
1076
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1077
|
-
}
|
|
1078
|
-
else {
|
|
1079
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1080
|
-
}
|
|
1052
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1081
1053
|
let body;
|
|
1082
1054
|
return new protocol_http_1.HttpRequest({
|
|
1083
1055
|
protocol,
|
|
@@ -1172,16 +1144,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1172
1144
|
"content-type": "application/json",
|
|
1173
1145
|
};
|
|
1174
1146
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1175
|
-
|
|
1176
|
-
const labelValue = input.resourceArn;
|
|
1177
|
-
if (labelValue.length <= 0) {
|
|
1178
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1179
|
-
}
|
|
1180
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1181
|
-
}
|
|
1182
|
-
else {
|
|
1183
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1184
|
-
}
|
|
1147
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1185
1148
|
let body;
|
|
1186
1149
|
body = JSON.stringify({
|
|
1187
1150
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -1228,19 +1191,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1228
1191
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1229
1192
|
const headers = {};
|
|
1230
1193
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}
|
|
1236
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1237
|
-
}
|
|
1238
|
-
else {
|
|
1239
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1240
|
-
}
|
|
1241
|
-
const query = {
|
|
1242
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
1243
|
-
};
|
|
1194
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1195
|
+
const query = map({
|
|
1196
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
1197
|
+
});
|
|
1244
1198
|
let body;
|
|
1245
1199
|
return new protocol_http_1.HttpRequest({
|
|
1246
1200
|
protocol,
|
|
@@ -1260,16 +1214,7 @@ const serializeAws_restJson1UpdateClassificationJobCommand = async (input, conte
|
|
|
1260
1214
|
"content-type": "application/json",
|
|
1261
1215
|
};
|
|
1262
1216
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
1263
|
-
|
|
1264
|
-
const labelValue = input.jobId;
|
|
1265
|
-
if (labelValue.length <= 0) {
|
|
1266
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
1267
|
-
}
|
|
1268
|
-
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1269
|
-
}
|
|
1270
|
-
else {
|
|
1271
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
1272
|
-
}
|
|
1217
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
|
|
1273
1218
|
let body;
|
|
1274
1219
|
body = JSON.stringify({
|
|
1275
1220
|
...(input.jobStatus != null && { jobStatus: input.jobStatus }),
|
|
@@ -1292,16 +1237,7 @@ const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context)
|
|
|
1292
1237
|
"content-type": "application/json",
|
|
1293
1238
|
};
|
|
1294
1239
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findingsfilters/{id}";
|
|
1295
|
-
|
|
1296
|
-
const labelValue = input.id;
|
|
1297
|
-
if (labelValue.length <= 0) {
|
|
1298
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1299
|
-
}
|
|
1300
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1301
|
-
}
|
|
1302
|
-
else {
|
|
1303
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
1304
|
-
}
|
|
1240
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1305
1241
|
let body;
|
|
1306
1242
|
body = JSON.stringify({
|
|
1307
1243
|
...(input.action != null && { action: input.action }),
|
|
@@ -1352,16 +1288,7 @@ const serializeAws_restJson1UpdateMemberSessionCommand = async (input, context)
|
|
|
1352
1288
|
"content-type": "application/json",
|
|
1353
1289
|
};
|
|
1354
1290
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/macie/members/{id}";
|
|
1355
|
-
|
|
1356
|
-
const labelValue = input.id;
|
|
1357
|
-
if (labelValue.length <= 0) {
|
|
1358
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1359
|
-
}
|
|
1360
|
-
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1361
|
-
}
|
|
1362
|
-
else {
|
|
1363
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
1364
|
-
}
|
|
1291
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
1365
1292
|
let body;
|
|
1366
1293
|
body = JSON.stringify({
|
|
1367
1294
|
...(input.status != null && { status: input.status }),
|
|
@@ -1398,15 +1325,38 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
1398
1325
|
});
|
|
1399
1326
|
};
|
|
1400
1327
|
exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = serializeAws_restJson1UpdateOrganizationConfigurationCommand;
|
|
1328
|
+
const serializeAws_restJson1UpdateRevealConfigurationCommand = async (input, context) => {
|
|
1329
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1330
|
+
const headers = {
|
|
1331
|
+
"content-type": "application/json",
|
|
1332
|
+
};
|
|
1333
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/reveal-configuration";
|
|
1334
|
+
let body;
|
|
1335
|
+
body = JSON.stringify({
|
|
1336
|
+
...(input.configuration != null && {
|
|
1337
|
+
configuration: serializeAws_restJson1RevealConfiguration(input.configuration, context),
|
|
1338
|
+
}),
|
|
1339
|
+
});
|
|
1340
|
+
return new protocol_http_1.HttpRequest({
|
|
1341
|
+
protocol,
|
|
1342
|
+
hostname,
|
|
1343
|
+
port,
|
|
1344
|
+
method: "PUT",
|
|
1345
|
+
headers,
|
|
1346
|
+
path: resolvedPath,
|
|
1347
|
+
body,
|
|
1348
|
+
});
|
|
1349
|
+
};
|
|
1350
|
+
exports.serializeAws_restJson1UpdateRevealConfigurationCommand = serializeAws_restJson1UpdateRevealConfigurationCommand;
|
|
1401
1351
|
const deserializeAws_restJson1AcceptInvitationCommand = async (output, context) => {
|
|
1402
1352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
1353
|
return deserializeAws_restJson1AcceptInvitationCommandError(output, context);
|
|
1404
1354
|
}
|
|
1405
|
-
const contents = {
|
|
1355
|
+
const contents = map({
|
|
1406
1356
|
$metadata: deserializeMetadata(output),
|
|
1407
|
-
};
|
|
1357
|
+
});
|
|
1408
1358
|
await collectBody(output.body, context);
|
|
1409
|
-
return
|
|
1359
|
+
return contents;
|
|
1410
1360
|
};
|
|
1411
1361
|
exports.deserializeAws_restJson1AcceptInvitationCommand = deserializeAws_restJson1AcceptInvitationCommand;
|
|
1412
1362
|
const deserializeAws_restJson1AcceptInvitationCommandError = async (output, context) => {
|
|
@@ -1414,7 +1364,6 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
1414
1364
|
...output,
|
|
1415
1365
|
body: await parseBody(output.body, context),
|
|
1416
1366
|
};
|
|
1417
|
-
let response;
|
|
1418
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
1368
|
switch (errorCode) {
|
|
1420
1369
|
case "AccessDeniedException":
|
|
@@ -1440,33 +1389,29 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
1440
1389
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1441
1390
|
default:
|
|
1442
1391
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
$metadata,
|
|
1392
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1393
|
+
output,
|
|
1394
|
+
parsedBody,
|
|
1395
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1396
|
+
errorCode,
|
|
1449
1397
|
});
|
|
1450
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1451
1398
|
}
|
|
1452
1399
|
};
|
|
1453
1400
|
const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = async (output, context) => {
|
|
1454
1401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1455
1402
|
return deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError(output, context);
|
|
1456
1403
|
}
|
|
1457
|
-
const contents = {
|
|
1404
|
+
const contents = map({
|
|
1458
1405
|
$metadata: deserializeMetadata(output),
|
|
1459
|
-
|
|
1460
|
-
notFoundIdentifierIds: undefined,
|
|
1461
|
-
};
|
|
1406
|
+
});
|
|
1462
1407
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1463
|
-
if (data.customDataIdentifiers
|
|
1408
|
+
if (data.customDataIdentifiers != null) {
|
|
1464
1409
|
contents.customDataIdentifiers = deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary(data.customDataIdentifiers, context);
|
|
1465
1410
|
}
|
|
1466
|
-
if (data.notFoundIdentifierIds
|
|
1411
|
+
if (data.notFoundIdentifierIds != null) {
|
|
1467
1412
|
contents.notFoundIdentifierIds = deserializeAws_restJson1__listOf__string(data.notFoundIdentifierIds, context);
|
|
1468
1413
|
}
|
|
1469
|
-
return
|
|
1414
|
+
return contents;
|
|
1470
1415
|
};
|
|
1471
1416
|
exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand;
|
|
1472
1417
|
const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async (output, context) => {
|
|
@@ -1474,7 +1419,6 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1474
1419
|
...output,
|
|
1475
1420
|
body: await parseBody(output.body, context),
|
|
1476
1421
|
};
|
|
1477
|
-
let response;
|
|
1478
1422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
1423
|
switch (errorCode) {
|
|
1480
1424
|
case "AccessDeniedException":
|
|
@@ -1500,33 +1444,29 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = async
|
|
|
1500
1444
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1501
1445
|
default:
|
|
1502
1446
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
$metadata,
|
|
1447
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1448
|
+
output,
|
|
1449
|
+
parsedBody,
|
|
1450
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1451
|
+
errorCode,
|
|
1509
1452
|
});
|
|
1510
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1511
1453
|
}
|
|
1512
1454
|
};
|
|
1513
1455
|
const deserializeAws_restJson1CreateClassificationJobCommand = async (output, context) => {
|
|
1514
1456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
1457
|
return deserializeAws_restJson1CreateClassificationJobCommandError(output, context);
|
|
1516
1458
|
}
|
|
1517
|
-
const contents = {
|
|
1459
|
+
const contents = map({
|
|
1518
1460
|
$metadata: deserializeMetadata(output),
|
|
1519
|
-
|
|
1520
|
-
jobId: undefined,
|
|
1521
|
-
};
|
|
1461
|
+
});
|
|
1522
1462
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1523
|
-
if (data.jobArn
|
|
1463
|
+
if (data.jobArn != null) {
|
|
1524
1464
|
contents.jobArn = (0, smithy_client_1.expectString)(data.jobArn);
|
|
1525
1465
|
}
|
|
1526
|
-
if (data.jobId
|
|
1466
|
+
if (data.jobId != null) {
|
|
1527
1467
|
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
1528
1468
|
}
|
|
1529
|
-
return
|
|
1469
|
+
return contents;
|
|
1530
1470
|
};
|
|
1531
1471
|
exports.deserializeAws_restJson1CreateClassificationJobCommand = deserializeAws_restJson1CreateClassificationJobCommand;
|
|
1532
1472
|
const deserializeAws_restJson1CreateClassificationJobCommandError = async (output, context) => {
|
|
@@ -1534,7 +1474,6 @@ const deserializeAws_restJson1CreateClassificationJobCommandError = async (outpu
|
|
|
1534
1474
|
...output,
|
|
1535
1475
|
body: await parseBody(output.body, context),
|
|
1536
1476
|
};
|
|
1537
|
-
let response;
|
|
1538
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1478
|
switch (errorCode) {
|
|
1540
1479
|
case "AccessDeniedException":
|
|
@@ -1560,29 +1499,26 @@ const deserializeAws_restJson1CreateClassificationJobCommandError = async (outpu
|
|
|
1560
1499
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1561
1500
|
default:
|
|
1562
1501
|
const parsedBody = parsedOutput.body;
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
$metadata,
|
|
1502
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1503
|
+
output,
|
|
1504
|
+
parsedBody,
|
|
1505
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1506
|
+
errorCode,
|
|
1569
1507
|
});
|
|
1570
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1571
1508
|
}
|
|
1572
1509
|
};
|
|
1573
1510
|
const deserializeAws_restJson1CreateCustomDataIdentifierCommand = async (output, context) => {
|
|
1574
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1575
1512
|
return deserializeAws_restJson1CreateCustomDataIdentifierCommandError(output, context);
|
|
1576
1513
|
}
|
|
1577
|
-
const contents = {
|
|
1514
|
+
const contents = map({
|
|
1578
1515
|
$metadata: deserializeMetadata(output),
|
|
1579
|
-
|
|
1580
|
-
};
|
|
1516
|
+
});
|
|
1581
1517
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1582
|
-
if (data.customDataIdentifierId
|
|
1518
|
+
if (data.customDataIdentifierId != null) {
|
|
1583
1519
|
contents.customDataIdentifierId = (0, smithy_client_1.expectString)(data.customDataIdentifierId);
|
|
1584
1520
|
}
|
|
1585
|
-
return
|
|
1521
|
+
return contents;
|
|
1586
1522
|
};
|
|
1587
1523
|
exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = deserializeAws_restJson1CreateCustomDataIdentifierCommand;
|
|
1588
1524
|
const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (output, context) => {
|
|
@@ -1590,7 +1526,6 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (ou
|
|
|
1590
1526
|
...output,
|
|
1591
1527
|
body: await parseBody(output.body, context),
|
|
1592
1528
|
};
|
|
1593
|
-
let response;
|
|
1594
1529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
1530
|
switch (errorCode) {
|
|
1596
1531
|
case "AccessDeniedException":
|
|
@@ -1616,33 +1551,29 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommandError = async (ou
|
|
|
1616
1551
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1617
1552
|
default:
|
|
1618
1553
|
const parsedBody = parsedOutput.body;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
$metadata,
|
|
1554
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1555
|
+
output,
|
|
1556
|
+
parsedBody,
|
|
1557
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1558
|
+
errorCode,
|
|
1625
1559
|
});
|
|
1626
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1627
1560
|
}
|
|
1628
1561
|
};
|
|
1629
1562
|
const deserializeAws_restJson1CreateFindingsFilterCommand = async (output, context) => {
|
|
1630
1563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
1564
|
return deserializeAws_restJson1CreateFindingsFilterCommandError(output, context);
|
|
1632
1565
|
}
|
|
1633
|
-
const contents = {
|
|
1566
|
+
const contents = map({
|
|
1634
1567
|
$metadata: deserializeMetadata(output),
|
|
1635
|
-
|
|
1636
|
-
id: undefined,
|
|
1637
|
-
};
|
|
1568
|
+
});
|
|
1638
1569
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1639
|
-
if (data.arn
|
|
1570
|
+
if (data.arn != null) {
|
|
1640
1571
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1641
1572
|
}
|
|
1642
|
-
if (data.id
|
|
1573
|
+
if (data.id != null) {
|
|
1643
1574
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
1644
1575
|
}
|
|
1645
|
-
return
|
|
1576
|
+
return contents;
|
|
1646
1577
|
};
|
|
1647
1578
|
exports.deserializeAws_restJson1CreateFindingsFilterCommand = deserializeAws_restJson1CreateFindingsFilterCommand;
|
|
1648
1579
|
const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output, context) => {
|
|
@@ -1650,7 +1581,6 @@ const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output,
|
|
|
1650
1581
|
...output,
|
|
1651
1582
|
body: await parseBody(output.body, context),
|
|
1652
1583
|
};
|
|
1653
|
-
let response;
|
|
1654
1584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
1585
|
switch (errorCode) {
|
|
1656
1586
|
case "AccessDeniedException":
|
|
@@ -1676,29 +1606,26 @@ const deserializeAws_restJson1CreateFindingsFilterCommandError = async (output,
|
|
|
1676
1606
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1677
1607
|
default:
|
|
1678
1608
|
const parsedBody = parsedOutput.body;
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
$metadata,
|
|
1609
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1610
|
+
output,
|
|
1611
|
+
parsedBody,
|
|
1612
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1613
|
+
errorCode,
|
|
1685
1614
|
});
|
|
1686
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1687
1615
|
}
|
|
1688
1616
|
};
|
|
1689
1617
|
const deserializeAws_restJson1CreateInvitationsCommand = async (output, context) => {
|
|
1690
1618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1691
1619
|
return deserializeAws_restJson1CreateInvitationsCommandError(output, context);
|
|
1692
1620
|
}
|
|
1693
|
-
const contents = {
|
|
1621
|
+
const contents = map({
|
|
1694
1622
|
$metadata: deserializeMetadata(output),
|
|
1695
|
-
|
|
1696
|
-
};
|
|
1623
|
+
});
|
|
1697
1624
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1698
|
-
if (data.unprocessedAccounts
|
|
1625
|
+
if (data.unprocessedAccounts != null) {
|
|
1699
1626
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
1700
1627
|
}
|
|
1701
|
-
return
|
|
1628
|
+
return contents;
|
|
1702
1629
|
};
|
|
1703
1630
|
exports.deserializeAws_restJson1CreateInvitationsCommand = deserializeAws_restJson1CreateInvitationsCommand;
|
|
1704
1631
|
const deserializeAws_restJson1CreateInvitationsCommandError = async (output, context) => {
|
|
@@ -1706,7 +1633,6 @@ const deserializeAws_restJson1CreateInvitationsCommandError = async (output, con
|
|
|
1706
1633
|
...output,
|
|
1707
1634
|
body: await parseBody(output.body, context),
|
|
1708
1635
|
};
|
|
1709
|
-
let response;
|
|
1710
1636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
1637
|
switch (errorCode) {
|
|
1712
1638
|
case "AccessDeniedException":
|
|
@@ -1732,29 +1658,26 @@ const deserializeAws_restJson1CreateInvitationsCommandError = async (output, con
|
|
|
1732
1658
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1733
1659
|
default:
|
|
1734
1660
|
const parsedBody = parsedOutput.body;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
$metadata,
|
|
1661
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1662
|
+
output,
|
|
1663
|
+
parsedBody,
|
|
1664
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1665
|
+
errorCode,
|
|
1741
1666
|
});
|
|
1742
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1743
1667
|
}
|
|
1744
1668
|
};
|
|
1745
1669
|
const deserializeAws_restJson1CreateMemberCommand = async (output, context) => {
|
|
1746
1670
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
1671
|
return deserializeAws_restJson1CreateMemberCommandError(output, context);
|
|
1748
1672
|
}
|
|
1749
|
-
const contents = {
|
|
1673
|
+
const contents = map({
|
|
1750
1674
|
$metadata: deserializeMetadata(output),
|
|
1751
|
-
|
|
1752
|
-
};
|
|
1675
|
+
});
|
|
1753
1676
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1754
|
-
if (data.arn
|
|
1677
|
+
if (data.arn != null) {
|
|
1755
1678
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1756
1679
|
}
|
|
1757
|
-
return
|
|
1680
|
+
return contents;
|
|
1758
1681
|
};
|
|
1759
1682
|
exports.deserializeAws_restJson1CreateMemberCommand = deserializeAws_restJson1CreateMemberCommand;
|
|
1760
1683
|
const deserializeAws_restJson1CreateMemberCommandError = async (output, context) => {
|
|
@@ -1762,7 +1685,6 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
|
|
|
1762
1685
|
...output,
|
|
1763
1686
|
body: await parseBody(output.body, context),
|
|
1764
1687
|
};
|
|
1765
|
-
let response;
|
|
1766
1688
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1689
|
switch (errorCode) {
|
|
1768
1690
|
case "AccessDeniedException":
|
|
@@ -1788,25 +1710,23 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
|
|
|
1788
1710
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1789
1711
|
default:
|
|
1790
1712
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
$metadata,
|
|
1713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1714
|
+
output,
|
|
1715
|
+
parsedBody,
|
|
1716
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1717
|
+
errorCode,
|
|
1797
1718
|
});
|
|
1798
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1799
1719
|
}
|
|
1800
1720
|
};
|
|
1801
1721
|
const deserializeAws_restJson1CreateSampleFindingsCommand = async (output, context) => {
|
|
1802
1722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1803
1723
|
return deserializeAws_restJson1CreateSampleFindingsCommandError(output, context);
|
|
1804
1724
|
}
|
|
1805
|
-
const contents = {
|
|
1725
|
+
const contents = map({
|
|
1806
1726
|
$metadata: deserializeMetadata(output),
|
|
1807
|
-
};
|
|
1727
|
+
});
|
|
1808
1728
|
await collectBody(output.body, context);
|
|
1809
|
-
return
|
|
1729
|
+
return contents;
|
|
1810
1730
|
};
|
|
1811
1731
|
exports.deserializeAws_restJson1CreateSampleFindingsCommand = deserializeAws_restJson1CreateSampleFindingsCommand;
|
|
1812
1732
|
const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output, context) => {
|
|
@@ -1814,7 +1734,6 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
1814
1734
|
...output,
|
|
1815
1735
|
body: await parseBody(output.body, context),
|
|
1816
1736
|
};
|
|
1817
|
-
let response;
|
|
1818
1737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
1738
|
switch (errorCode) {
|
|
1820
1739
|
case "AccessDeniedException":
|
|
@@ -1840,29 +1759,26 @@ const deserializeAws_restJson1CreateSampleFindingsCommandError = async (output,
|
|
|
1840
1759
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1841
1760
|
default:
|
|
1842
1761
|
const parsedBody = parsedOutput.body;
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
$metadata,
|
|
1762
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1763
|
+
output,
|
|
1764
|
+
parsedBody,
|
|
1765
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1766
|
+
errorCode,
|
|
1849
1767
|
});
|
|
1850
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1851
1768
|
}
|
|
1852
1769
|
};
|
|
1853
1770
|
const deserializeAws_restJson1DeclineInvitationsCommand = async (output, context) => {
|
|
1854
1771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1855
1772
|
return deserializeAws_restJson1DeclineInvitationsCommandError(output, context);
|
|
1856
1773
|
}
|
|
1857
|
-
const contents = {
|
|
1774
|
+
const contents = map({
|
|
1858
1775
|
$metadata: deserializeMetadata(output),
|
|
1859
|
-
|
|
1860
|
-
};
|
|
1776
|
+
});
|
|
1861
1777
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1862
|
-
if (data.unprocessedAccounts
|
|
1778
|
+
if (data.unprocessedAccounts != null) {
|
|
1863
1779
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
1864
1780
|
}
|
|
1865
|
-
return
|
|
1781
|
+
return contents;
|
|
1866
1782
|
};
|
|
1867
1783
|
exports.deserializeAws_restJson1DeclineInvitationsCommand = deserializeAws_restJson1DeclineInvitationsCommand;
|
|
1868
1784
|
const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, context) => {
|
|
@@ -1870,7 +1786,6 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1870
1786
|
...output,
|
|
1871
1787
|
body: await parseBody(output.body, context),
|
|
1872
1788
|
};
|
|
1873
|
-
let response;
|
|
1874
1789
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
1790
|
switch (errorCode) {
|
|
1876
1791
|
case "AccessDeniedException":
|
|
@@ -1896,25 +1811,23 @@ const deserializeAws_restJson1DeclineInvitationsCommandError = async (output, co
|
|
|
1896
1811
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1897
1812
|
default:
|
|
1898
1813
|
const parsedBody = parsedOutput.body;
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
$metadata,
|
|
1814
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1815
|
+
output,
|
|
1816
|
+
parsedBody,
|
|
1817
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1818
|
+
errorCode,
|
|
1905
1819
|
});
|
|
1906
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1907
1820
|
}
|
|
1908
1821
|
};
|
|
1909
1822
|
const deserializeAws_restJson1DeleteCustomDataIdentifierCommand = async (output, context) => {
|
|
1910
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1911
1824
|
return deserializeAws_restJson1DeleteCustomDataIdentifierCommandError(output, context);
|
|
1912
1825
|
}
|
|
1913
|
-
const contents = {
|
|
1826
|
+
const contents = map({
|
|
1914
1827
|
$metadata: deserializeMetadata(output),
|
|
1915
|
-
};
|
|
1828
|
+
});
|
|
1916
1829
|
await collectBody(output.body, context);
|
|
1917
|
-
return
|
|
1830
|
+
return contents;
|
|
1918
1831
|
};
|
|
1919
1832
|
exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = deserializeAws_restJson1DeleteCustomDataIdentifierCommand;
|
|
1920
1833
|
const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (output, context) => {
|
|
@@ -1922,7 +1835,6 @@ const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (ou
|
|
|
1922
1835
|
...output,
|
|
1923
1836
|
body: await parseBody(output.body, context),
|
|
1924
1837
|
};
|
|
1925
|
-
let response;
|
|
1926
1838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
1839
|
switch (errorCode) {
|
|
1928
1840
|
case "AccessDeniedException":
|
|
@@ -1948,25 +1860,23 @@ const deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = async (ou
|
|
|
1948
1860
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1949
1861
|
default:
|
|
1950
1862
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
$metadata,
|
|
1863
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1864
|
+
output,
|
|
1865
|
+
parsedBody,
|
|
1866
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1867
|
+
errorCode,
|
|
1957
1868
|
});
|
|
1958
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1959
1869
|
}
|
|
1960
1870
|
};
|
|
1961
1871
|
const deserializeAws_restJson1DeleteFindingsFilterCommand = async (output, context) => {
|
|
1962
1872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1963
1873
|
return deserializeAws_restJson1DeleteFindingsFilterCommandError(output, context);
|
|
1964
1874
|
}
|
|
1965
|
-
const contents = {
|
|
1875
|
+
const contents = map({
|
|
1966
1876
|
$metadata: deserializeMetadata(output),
|
|
1967
|
-
};
|
|
1877
|
+
});
|
|
1968
1878
|
await collectBody(output.body, context);
|
|
1969
|
-
return
|
|
1879
|
+
return contents;
|
|
1970
1880
|
};
|
|
1971
1881
|
exports.deserializeAws_restJson1DeleteFindingsFilterCommand = deserializeAws_restJson1DeleteFindingsFilterCommand;
|
|
1972
1882
|
const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output, context) => {
|
|
@@ -1974,7 +1884,6 @@ const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output,
|
|
|
1974
1884
|
...output,
|
|
1975
1885
|
body: await parseBody(output.body, context),
|
|
1976
1886
|
};
|
|
1977
|
-
let response;
|
|
1978
1887
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
1888
|
switch (errorCode) {
|
|
1980
1889
|
case "AccessDeniedException":
|
|
@@ -2000,29 +1909,26 @@ const deserializeAws_restJson1DeleteFindingsFilterCommandError = async (output,
|
|
|
2000
1909
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2001
1910
|
default:
|
|
2002
1911
|
const parsedBody = parsedOutput.body;
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
$metadata,
|
|
1912
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1913
|
+
output,
|
|
1914
|
+
parsedBody,
|
|
1915
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1916
|
+
errorCode,
|
|
2009
1917
|
});
|
|
2010
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2011
1918
|
}
|
|
2012
1919
|
};
|
|
2013
1920
|
const deserializeAws_restJson1DeleteInvitationsCommand = async (output, context) => {
|
|
2014
1921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2015
1922
|
return deserializeAws_restJson1DeleteInvitationsCommandError(output, context);
|
|
2016
1923
|
}
|
|
2017
|
-
const contents = {
|
|
1924
|
+
const contents = map({
|
|
2018
1925
|
$metadata: deserializeMetadata(output),
|
|
2019
|
-
|
|
2020
|
-
};
|
|
1926
|
+
});
|
|
2021
1927
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2022
|
-
if (data.unprocessedAccounts
|
|
1928
|
+
if (data.unprocessedAccounts != null) {
|
|
2023
1929
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2024
1930
|
}
|
|
2025
|
-
return
|
|
1931
|
+
return contents;
|
|
2026
1932
|
};
|
|
2027
1933
|
exports.deserializeAws_restJson1DeleteInvitationsCommand = deserializeAws_restJson1DeleteInvitationsCommand;
|
|
2028
1934
|
const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, context) => {
|
|
@@ -2030,7 +1936,6 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2030
1936
|
...output,
|
|
2031
1937
|
body: await parseBody(output.body, context),
|
|
2032
1938
|
};
|
|
2033
|
-
let response;
|
|
2034
1939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2035
1940
|
switch (errorCode) {
|
|
2036
1941
|
case "AccessDeniedException":
|
|
@@ -2056,25 +1961,23 @@ const deserializeAws_restJson1DeleteInvitationsCommandError = async (output, con
|
|
|
2056
1961
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2057
1962
|
default:
|
|
2058
1963
|
const parsedBody = parsedOutput.body;
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
$metadata,
|
|
1964
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1965
|
+
output,
|
|
1966
|
+
parsedBody,
|
|
1967
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
1968
|
+
errorCode,
|
|
2065
1969
|
});
|
|
2066
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2067
1970
|
}
|
|
2068
1971
|
};
|
|
2069
1972
|
const deserializeAws_restJson1DeleteMemberCommand = async (output, context) => {
|
|
2070
1973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2071
1974
|
return deserializeAws_restJson1DeleteMemberCommandError(output, context);
|
|
2072
1975
|
}
|
|
2073
|
-
const contents = {
|
|
1976
|
+
const contents = map({
|
|
2074
1977
|
$metadata: deserializeMetadata(output),
|
|
2075
|
-
};
|
|
1978
|
+
});
|
|
2076
1979
|
await collectBody(output.body, context);
|
|
2077
|
-
return
|
|
1980
|
+
return contents;
|
|
2078
1981
|
};
|
|
2079
1982
|
exports.deserializeAws_restJson1DeleteMemberCommand = deserializeAws_restJson1DeleteMemberCommand;
|
|
2080
1983
|
const deserializeAws_restJson1DeleteMemberCommandError = async (output, context) => {
|
|
@@ -2082,7 +1985,6 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
|
|
|
2082
1985
|
...output,
|
|
2083
1986
|
body: await parseBody(output.body, context),
|
|
2084
1987
|
};
|
|
2085
|
-
let response;
|
|
2086
1988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
1989
|
switch (errorCode) {
|
|
2088
1990
|
case "AccessDeniedException":
|
|
@@ -2108,33 +2010,29 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
|
|
|
2108
2010
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2109
2011
|
default:
|
|
2110
2012
|
const parsedBody = parsedOutput.body;
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
$metadata,
|
|
2013
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2014
|
+
output,
|
|
2015
|
+
parsedBody,
|
|
2016
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2017
|
+
errorCode,
|
|
2117
2018
|
});
|
|
2118
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2119
2019
|
}
|
|
2120
2020
|
};
|
|
2121
2021
|
const deserializeAws_restJson1DescribeBucketsCommand = async (output, context) => {
|
|
2122
2022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2123
2023
|
return deserializeAws_restJson1DescribeBucketsCommandError(output, context);
|
|
2124
2024
|
}
|
|
2125
|
-
const contents = {
|
|
2025
|
+
const contents = map({
|
|
2126
2026
|
$metadata: deserializeMetadata(output),
|
|
2127
|
-
|
|
2128
|
-
nextToken: undefined,
|
|
2129
|
-
};
|
|
2027
|
+
});
|
|
2130
2028
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2131
|
-
if (data.buckets
|
|
2029
|
+
if (data.buckets != null) {
|
|
2132
2030
|
contents.buckets = deserializeAws_restJson1__listOfBucketMetadata(data.buckets, context);
|
|
2133
2031
|
}
|
|
2134
|
-
if (data.nextToken
|
|
2032
|
+
if (data.nextToken != null) {
|
|
2135
2033
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2136
2034
|
}
|
|
2137
|
-
return
|
|
2035
|
+
return contents;
|
|
2138
2036
|
};
|
|
2139
2037
|
exports.deserializeAws_restJson1DescribeBucketsCommand = deserializeAws_restJson1DescribeBucketsCommand;
|
|
2140
2038
|
const deserializeAws_restJson1DescribeBucketsCommandError = async (output, context) => {
|
|
@@ -2142,7 +2040,6 @@ const deserializeAws_restJson1DescribeBucketsCommandError = async (output, conte
|
|
|
2142
2040
|
...output,
|
|
2143
2041
|
body: await parseBody(output.body, context),
|
|
2144
2042
|
};
|
|
2145
|
-
let response;
|
|
2146
2043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
2044
|
switch (errorCode) {
|
|
2148
2045
|
case "AccessDeniedException":
|
|
@@ -2168,105 +2065,83 @@ const deserializeAws_restJson1DescribeBucketsCommandError = async (output, conte
|
|
|
2168
2065
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2169
2066
|
default:
|
|
2170
2067
|
const parsedBody = parsedOutput.body;
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
$metadata,
|
|
2068
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2069
|
+
output,
|
|
2070
|
+
parsedBody,
|
|
2071
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2072
|
+
errorCode,
|
|
2177
2073
|
});
|
|
2178
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2179
2074
|
}
|
|
2180
2075
|
};
|
|
2181
2076
|
const deserializeAws_restJson1DescribeClassificationJobCommand = async (output, context) => {
|
|
2182
2077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2183
2078
|
return deserializeAws_restJson1DescribeClassificationJobCommandError(output, context);
|
|
2184
2079
|
}
|
|
2185
|
-
const contents = {
|
|
2080
|
+
const contents = map({
|
|
2186
2081
|
$metadata: deserializeMetadata(output),
|
|
2187
|
-
|
|
2188
|
-
createdAt: undefined,
|
|
2189
|
-
customDataIdentifierIds: undefined,
|
|
2190
|
-
description: undefined,
|
|
2191
|
-
initialRun: undefined,
|
|
2192
|
-
jobArn: undefined,
|
|
2193
|
-
jobId: undefined,
|
|
2194
|
-
jobStatus: undefined,
|
|
2195
|
-
jobType: undefined,
|
|
2196
|
-
lastRunErrorStatus: undefined,
|
|
2197
|
-
lastRunTime: undefined,
|
|
2198
|
-
managedDataIdentifierIds: undefined,
|
|
2199
|
-
managedDataIdentifierSelector: undefined,
|
|
2200
|
-
name: undefined,
|
|
2201
|
-
s3JobDefinition: undefined,
|
|
2202
|
-
samplingPercentage: undefined,
|
|
2203
|
-
scheduleFrequency: undefined,
|
|
2204
|
-
statistics: undefined,
|
|
2205
|
-
tags: undefined,
|
|
2206
|
-
userPausedDetails: undefined,
|
|
2207
|
-
};
|
|
2082
|
+
});
|
|
2208
2083
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2209
|
-
if (data.clientToken
|
|
2084
|
+
if (data.clientToken != null) {
|
|
2210
2085
|
contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
|
|
2211
2086
|
}
|
|
2212
|
-
if (data.createdAt
|
|
2087
|
+
if (data.createdAt != null) {
|
|
2213
2088
|
contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdAt));
|
|
2214
2089
|
}
|
|
2215
|
-
if (data.customDataIdentifierIds
|
|
2090
|
+
if (data.customDataIdentifierIds != null) {
|
|
2216
2091
|
contents.customDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.customDataIdentifierIds, context);
|
|
2217
2092
|
}
|
|
2218
|
-
if (data.description
|
|
2093
|
+
if (data.description != null) {
|
|
2219
2094
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
2220
2095
|
}
|
|
2221
|
-
if (data.initialRun
|
|
2096
|
+
if (data.initialRun != null) {
|
|
2222
2097
|
contents.initialRun = (0, smithy_client_1.expectBoolean)(data.initialRun);
|
|
2223
2098
|
}
|
|
2224
|
-
if (data.jobArn
|
|
2099
|
+
if (data.jobArn != null) {
|
|
2225
2100
|
contents.jobArn = (0, smithy_client_1.expectString)(data.jobArn);
|
|
2226
2101
|
}
|
|
2227
|
-
if (data.jobId
|
|
2102
|
+
if (data.jobId != null) {
|
|
2228
2103
|
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
2229
2104
|
}
|
|
2230
|
-
if (data.jobStatus
|
|
2105
|
+
if (data.jobStatus != null) {
|
|
2231
2106
|
contents.jobStatus = (0, smithy_client_1.expectString)(data.jobStatus);
|
|
2232
2107
|
}
|
|
2233
|
-
if (data.jobType
|
|
2108
|
+
if (data.jobType != null) {
|
|
2234
2109
|
contents.jobType = (0, smithy_client_1.expectString)(data.jobType);
|
|
2235
2110
|
}
|
|
2236
|
-
if (data.lastRunErrorStatus
|
|
2111
|
+
if (data.lastRunErrorStatus != null) {
|
|
2237
2112
|
contents.lastRunErrorStatus = deserializeAws_restJson1LastRunErrorStatus(data.lastRunErrorStatus, context);
|
|
2238
2113
|
}
|
|
2239
|
-
if (data.lastRunTime
|
|
2114
|
+
if (data.lastRunTime != null) {
|
|
2240
2115
|
contents.lastRunTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastRunTime));
|
|
2241
2116
|
}
|
|
2242
|
-
if (data.managedDataIdentifierIds
|
|
2117
|
+
if (data.managedDataIdentifierIds != null) {
|
|
2243
2118
|
contents.managedDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.managedDataIdentifierIds, context);
|
|
2244
2119
|
}
|
|
2245
|
-
if (data.managedDataIdentifierSelector
|
|
2120
|
+
if (data.managedDataIdentifierSelector != null) {
|
|
2246
2121
|
contents.managedDataIdentifierSelector = (0, smithy_client_1.expectString)(data.managedDataIdentifierSelector);
|
|
2247
2122
|
}
|
|
2248
|
-
if (data.name
|
|
2123
|
+
if (data.name != null) {
|
|
2249
2124
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2250
2125
|
}
|
|
2251
|
-
if (data.s3JobDefinition
|
|
2126
|
+
if (data.s3JobDefinition != null) {
|
|
2252
2127
|
contents.s3JobDefinition = deserializeAws_restJson1S3JobDefinition(data.s3JobDefinition, context);
|
|
2253
2128
|
}
|
|
2254
|
-
if (data.samplingPercentage
|
|
2129
|
+
if (data.samplingPercentage != null) {
|
|
2255
2130
|
contents.samplingPercentage = (0, smithy_client_1.expectInt32)(data.samplingPercentage);
|
|
2256
2131
|
}
|
|
2257
|
-
if (data.scheduleFrequency
|
|
2132
|
+
if (data.scheduleFrequency != null) {
|
|
2258
2133
|
contents.scheduleFrequency = deserializeAws_restJson1JobScheduleFrequency(data.scheduleFrequency, context);
|
|
2259
2134
|
}
|
|
2260
|
-
if (data.statistics
|
|
2135
|
+
if (data.statistics != null) {
|
|
2261
2136
|
contents.statistics = deserializeAws_restJson1Statistics(data.statistics, context);
|
|
2262
2137
|
}
|
|
2263
|
-
if (data.tags
|
|
2138
|
+
if (data.tags != null) {
|
|
2264
2139
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2265
2140
|
}
|
|
2266
|
-
if (data.userPausedDetails
|
|
2141
|
+
if (data.userPausedDetails != null) {
|
|
2267
2142
|
contents.userPausedDetails = deserializeAws_restJson1UserPausedDetails(data.userPausedDetails, context);
|
|
2268
2143
|
}
|
|
2269
|
-
return
|
|
2144
|
+
return contents;
|
|
2270
2145
|
};
|
|
2271
2146
|
exports.deserializeAws_restJson1DescribeClassificationJobCommand = deserializeAws_restJson1DescribeClassificationJobCommand;
|
|
2272
2147
|
const deserializeAws_restJson1DescribeClassificationJobCommandError = async (output, context) => {
|
|
@@ -2274,7 +2149,6 @@ const deserializeAws_restJson1DescribeClassificationJobCommandError = async (out
|
|
|
2274
2149
|
...output,
|
|
2275
2150
|
body: await parseBody(output.body, context),
|
|
2276
2151
|
};
|
|
2277
|
-
let response;
|
|
2278
2152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
2153
|
switch (errorCode) {
|
|
2280
2154
|
case "AccessDeniedException":
|
|
@@ -2300,33 +2174,29 @@ const deserializeAws_restJson1DescribeClassificationJobCommandError = async (out
|
|
|
2300
2174
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2301
2175
|
default:
|
|
2302
2176
|
const parsedBody = parsedOutput.body;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
$metadata,
|
|
2177
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2178
|
+
output,
|
|
2179
|
+
parsedBody,
|
|
2180
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2181
|
+
errorCode,
|
|
2309
2182
|
});
|
|
2310
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2311
2183
|
}
|
|
2312
2184
|
};
|
|
2313
2185
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
2314
2186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2315
2187
|
return deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context);
|
|
2316
2188
|
}
|
|
2317
|
-
const contents = {
|
|
2189
|
+
const contents = map({
|
|
2318
2190
|
$metadata: deserializeMetadata(output),
|
|
2319
|
-
|
|
2320
|
-
maxAccountLimitReached: undefined,
|
|
2321
|
-
};
|
|
2191
|
+
});
|
|
2322
2192
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2323
|
-
if (data.autoEnable
|
|
2193
|
+
if (data.autoEnable != null) {
|
|
2324
2194
|
contents.autoEnable = (0, smithy_client_1.expectBoolean)(data.autoEnable);
|
|
2325
2195
|
}
|
|
2326
|
-
if (data.maxAccountLimitReached
|
|
2196
|
+
if (data.maxAccountLimitReached != null) {
|
|
2327
2197
|
contents.maxAccountLimitReached = (0, smithy_client_1.expectBoolean)(data.maxAccountLimitReached);
|
|
2328
2198
|
}
|
|
2329
|
-
return
|
|
2199
|
+
return contents;
|
|
2330
2200
|
};
|
|
2331
2201
|
exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = deserializeAws_restJson1DescribeOrganizationConfigurationCommand;
|
|
2332
2202
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -2334,7 +2204,6 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2334
2204
|
...output,
|
|
2335
2205
|
body: await parseBody(output.body, context),
|
|
2336
2206
|
};
|
|
2337
|
-
let response;
|
|
2338
2207
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2339
2208
|
switch (errorCode) {
|
|
2340
2209
|
case "AccessDeniedException":
|
|
@@ -2360,25 +2229,23 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = as
|
|
|
2360
2229
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2361
2230
|
default:
|
|
2362
2231
|
const parsedBody = parsedOutput.body;
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
$metadata,
|
|
2232
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2233
|
+
output,
|
|
2234
|
+
parsedBody,
|
|
2235
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2236
|
+
errorCode,
|
|
2369
2237
|
});
|
|
2370
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2371
2238
|
}
|
|
2372
2239
|
};
|
|
2373
2240
|
const deserializeAws_restJson1DisableMacieCommand = async (output, context) => {
|
|
2374
2241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2375
2242
|
return deserializeAws_restJson1DisableMacieCommandError(output, context);
|
|
2376
2243
|
}
|
|
2377
|
-
const contents = {
|
|
2244
|
+
const contents = map({
|
|
2378
2245
|
$metadata: deserializeMetadata(output),
|
|
2379
|
-
};
|
|
2246
|
+
});
|
|
2380
2247
|
await collectBody(output.body, context);
|
|
2381
|
-
return
|
|
2248
|
+
return contents;
|
|
2382
2249
|
};
|
|
2383
2250
|
exports.deserializeAws_restJson1DisableMacieCommand = deserializeAws_restJson1DisableMacieCommand;
|
|
2384
2251
|
const deserializeAws_restJson1DisableMacieCommandError = async (output, context) => {
|
|
@@ -2386,7 +2253,6 @@ const deserializeAws_restJson1DisableMacieCommandError = async (output, context)
|
|
|
2386
2253
|
...output,
|
|
2387
2254
|
body: await parseBody(output.body, context),
|
|
2388
2255
|
};
|
|
2389
|
-
let response;
|
|
2390
2256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
2257
|
switch (errorCode) {
|
|
2392
2258
|
case "AccessDeniedException":
|
|
@@ -2412,25 +2278,23 @@ const deserializeAws_restJson1DisableMacieCommandError = async (output, context)
|
|
|
2412
2278
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2413
2279
|
default:
|
|
2414
2280
|
const parsedBody = parsedOutput.body;
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
$metadata,
|
|
2281
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2282
|
+
output,
|
|
2283
|
+
parsedBody,
|
|
2284
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2285
|
+
errorCode,
|
|
2421
2286
|
});
|
|
2422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2423
2287
|
}
|
|
2424
2288
|
};
|
|
2425
2289
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommand = async (output, context) => {
|
|
2426
2290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2427
2291
|
return deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context);
|
|
2428
2292
|
}
|
|
2429
|
-
const contents = {
|
|
2293
|
+
const contents = map({
|
|
2430
2294
|
$metadata: deserializeMetadata(output),
|
|
2431
|
-
};
|
|
2295
|
+
});
|
|
2432
2296
|
await collectBody(output.body, context);
|
|
2433
|
-
return
|
|
2297
|
+
return contents;
|
|
2434
2298
|
};
|
|
2435
2299
|
exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = deserializeAws_restJson1DisableOrganizationAdminAccountCommand;
|
|
2436
2300
|
const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -2438,7 +2302,6 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2438
2302
|
...output,
|
|
2439
2303
|
body: await parseBody(output.body, context),
|
|
2440
2304
|
};
|
|
2441
|
-
let response;
|
|
2442
2305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2443
2306
|
switch (errorCode) {
|
|
2444
2307
|
case "AccessDeniedException":
|
|
@@ -2464,25 +2327,23 @@ const deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = asyn
|
|
|
2464
2327
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2465
2328
|
default:
|
|
2466
2329
|
const parsedBody = parsedOutput.body;
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
$metadata,
|
|
2330
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2331
|
+
output,
|
|
2332
|
+
parsedBody,
|
|
2333
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2334
|
+
errorCode,
|
|
2473
2335
|
});
|
|
2474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2475
2336
|
}
|
|
2476
2337
|
};
|
|
2477
2338
|
const deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = async (output, context) => {
|
|
2478
2339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2479
2340
|
return deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError(output, context);
|
|
2480
2341
|
}
|
|
2481
|
-
const contents = {
|
|
2342
|
+
const contents = map({
|
|
2482
2343
|
$metadata: deserializeMetadata(output),
|
|
2483
|
-
};
|
|
2344
|
+
});
|
|
2484
2345
|
await collectBody(output.body, context);
|
|
2485
|
-
return
|
|
2346
|
+
return contents;
|
|
2486
2347
|
};
|
|
2487
2348
|
exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = deserializeAws_restJson1DisassociateFromAdministratorAccountCommand;
|
|
2488
2349
|
const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = async (output, context) => {
|
|
@@ -2490,7 +2351,6 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2490
2351
|
...output,
|
|
2491
2352
|
body: await parseBody(output.body, context),
|
|
2492
2353
|
};
|
|
2493
|
-
let response;
|
|
2494
2354
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
2355
|
switch (errorCode) {
|
|
2496
2356
|
case "AccessDeniedException":
|
|
@@ -2516,25 +2376,23 @@ const deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError =
|
|
|
2516
2376
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2517
2377
|
default:
|
|
2518
2378
|
const parsedBody = parsedOutput.body;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
$metadata,
|
|
2379
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2380
|
+
output,
|
|
2381
|
+
parsedBody,
|
|
2382
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2383
|
+
errorCode,
|
|
2525
2384
|
});
|
|
2526
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2527
2385
|
}
|
|
2528
2386
|
};
|
|
2529
2387
|
const deserializeAws_restJson1DisassociateFromMasterAccountCommand = async (output, context) => {
|
|
2530
2388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2531
2389
|
return deserializeAws_restJson1DisassociateFromMasterAccountCommandError(output, context);
|
|
2532
2390
|
}
|
|
2533
|
-
const contents = {
|
|
2391
|
+
const contents = map({
|
|
2534
2392
|
$metadata: deserializeMetadata(output),
|
|
2535
|
-
};
|
|
2393
|
+
});
|
|
2536
2394
|
await collectBody(output.body, context);
|
|
2537
|
-
return
|
|
2395
|
+
return contents;
|
|
2538
2396
|
};
|
|
2539
2397
|
exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = deserializeAws_restJson1DisassociateFromMasterAccountCommand;
|
|
2540
2398
|
const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async (output, context) => {
|
|
@@ -2542,7 +2400,6 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2542
2400
|
...output,
|
|
2543
2401
|
body: await parseBody(output.body, context),
|
|
2544
2402
|
};
|
|
2545
|
-
let response;
|
|
2546
2403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2547
2404
|
switch (errorCode) {
|
|
2548
2405
|
case "AccessDeniedException":
|
|
@@ -2568,25 +2425,23 @@ const deserializeAws_restJson1DisassociateFromMasterAccountCommandError = async
|
|
|
2568
2425
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2569
2426
|
default:
|
|
2570
2427
|
const parsedBody = parsedOutput.body;
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
$metadata,
|
|
2428
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2429
|
+
output,
|
|
2430
|
+
parsedBody,
|
|
2431
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2432
|
+
errorCode,
|
|
2577
2433
|
});
|
|
2578
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2579
2434
|
}
|
|
2580
2435
|
};
|
|
2581
2436
|
const deserializeAws_restJson1DisassociateMemberCommand = async (output, context) => {
|
|
2582
2437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2583
2438
|
return deserializeAws_restJson1DisassociateMemberCommandError(output, context);
|
|
2584
2439
|
}
|
|
2585
|
-
const contents = {
|
|
2440
|
+
const contents = map({
|
|
2586
2441
|
$metadata: deserializeMetadata(output),
|
|
2587
|
-
};
|
|
2442
|
+
});
|
|
2588
2443
|
await collectBody(output.body, context);
|
|
2589
|
-
return
|
|
2444
|
+
return contents;
|
|
2590
2445
|
};
|
|
2591
2446
|
exports.deserializeAws_restJson1DisassociateMemberCommand = deserializeAws_restJson1DisassociateMemberCommand;
|
|
2592
2447
|
const deserializeAws_restJson1DisassociateMemberCommandError = async (output, context) => {
|
|
@@ -2594,7 +2449,6 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
2594
2449
|
...output,
|
|
2595
2450
|
body: await parseBody(output.body, context),
|
|
2596
2451
|
};
|
|
2597
|
-
let response;
|
|
2598
2452
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
2453
|
switch (errorCode) {
|
|
2600
2454
|
case "AccessDeniedException":
|
|
@@ -2620,25 +2474,23 @@ const deserializeAws_restJson1DisassociateMemberCommandError = async (output, co
|
|
|
2620
2474
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2621
2475
|
default:
|
|
2622
2476
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
$metadata,
|
|
2477
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2478
|
+
output,
|
|
2479
|
+
parsedBody,
|
|
2480
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2481
|
+
errorCode,
|
|
2629
2482
|
});
|
|
2630
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2631
2483
|
}
|
|
2632
2484
|
};
|
|
2633
2485
|
const deserializeAws_restJson1EnableMacieCommand = async (output, context) => {
|
|
2634
2486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2635
2487
|
return deserializeAws_restJson1EnableMacieCommandError(output, context);
|
|
2636
2488
|
}
|
|
2637
|
-
const contents = {
|
|
2489
|
+
const contents = map({
|
|
2638
2490
|
$metadata: deserializeMetadata(output),
|
|
2639
|
-
};
|
|
2491
|
+
});
|
|
2640
2492
|
await collectBody(output.body, context);
|
|
2641
|
-
return
|
|
2493
|
+
return contents;
|
|
2642
2494
|
};
|
|
2643
2495
|
exports.deserializeAws_restJson1EnableMacieCommand = deserializeAws_restJson1EnableMacieCommand;
|
|
2644
2496
|
const deserializeAws_restJson1EnableMacieCommandError = async (output, context) => {
|
|
@@ -2646,7 +2498,6 @@ const deserializeAws_restJson1EnableMacieCommandError = async (output, context)
|
|
|
2646
2498
|
...output,
|
|
2647
2499
|
body: await parseBody(output.body, context),
|
|
2648
2500
|
};
|
|
2649
|
-
let response;
|
|
2650
2501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2651
2502
|
switch (errorCode) {
|
|
2652
2503
|
case "AccessDeniedException":
|
|
@@ -2672,25 +2523,23 @@ const deserializeAws_restJson1EnableMacieCommandError = async (output, context)
|
|
|
2672
2523
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2673
2524
|
default:
|
|
2674
2525
|
const parsedBody = parsedOutput.body;
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
$metadata,
|
|
2526
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2527
|
+
output,
|
|
2528
|
+
parsedBody,
|
|
2529
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2530
|
+
errorCode,
|
|
2681
2531
|
});
|
|
2682
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2683
2532
|
}
|
|
2684
2533
|
};
|
|
2685
2534
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommand = async (output, context) => {
|
|
2686
2535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2687
2536
|
return deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context);
|
|
2688
2537
|
}
|
|
2689
|
-
const contents = {
|
|
2538
|
+
const contents = map({
|
|
2690
2539
|
$metadata: deserializeMetadata(output),
|
|
2691
|
-
};
|
|
2540
|
+
});
|
|
2692
2541
|
await collectBody(output.body, context);
|
|
2693
|
-
return
|
|
2542
|
+
return contents;
|
|
2694
2543
|
};
|
|
2695
2544
|
exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = deserializeAws_restJson1EnableOrganizationAdminAccountCommand;
|
|
2696
2545
|
const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -2698,7 +2547,6 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2698
2547
|
...output,
|
|
2699
2548
|
body: await parseBody(output.body, context),
|
|
2700
2549
|
};
|
|
2701
|
-
let response;
|
|
2702
2550
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2703
2551
|
switch (errorCode) {
|
|
2704
2552
|
case "AccessDeniedException":
|
|
@@ -2724,29 +2572,26 @@ const deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = async
|
|
|
2724
2572
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2725
2573
|
default:
|
|
2726
2574
|
const parsedBody = parsedOutput.body;
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
$metadata,
|
|
2575
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2576
|
+
output,
|
|
2577
|
+
parsedBody,
|
|
2578
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2579
|
+
errorCode,
|
|
2733
2580
|
});
|
|
2734
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2735
2581
|
}
|
|
2736
2582
|
};
|
|
2737
2583
|
const deserializeAws_restJson1GetAdministratorAccountCommand = async (output, context) => {
|
|
2738
2584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2739
2585
|
return deserializeAws_restJson1GetAdministratorAccountCommandError(output, context);
|
|
2740
2586
|
}
|
|
2741
|
-
const contents = {
|
|
2587
|
+
const contents = map({
|
|
2742
2588
|
$metadata: deserializeMetadata(output),
|
|
2743
|
-
|
|
2744
|
-
};
|
|
2589
|
+
});
|
|
2745
2590
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2746
|
-
if (data.administrator
|
|
2591
|
+
if (data.administrator != null) {
|
|
2747
2592
|
contents.administrator = deserializeAws_restJson1Invitation(data.administrator, context);
|
|
2748
2593
|
}
|
|
2749
|
-
return
|
|
2594
|
+
return contents;
|
|
2750
2595
|
};
|
|
2751
2596
|
exports.deserializeAws_restJson1GetAdministratorAccountCommand = deserializeAws_restJson1GetAdministratorAccountCommand;
|
|
2752
2597
|
const deserializeAws_restJson1GetAdministratorAccountCommandError = async (output, context) => {
|
|
@@ -2754,7 +2599,6 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2754
2599
|
...output,
|
|
2755
2600
|
body: await parseBody(output.body, context),
|
|
2756
2601
|
};
|
|
2757
|
-
let response;
|
|
2758
2602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2759
2603
|
switch (errorCode) {
|
|
2760
2604
|
case "AccessDeniedException":
|
|
@@ -2780,79 +2624,63 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2780
2624
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2781
2625
|
default:
|
|
2782
2626
|
const parsedBody = parsedOutput.body;
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
$metadata,
|
|
2627
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2628
|
+
output,
|
|
2629
|
+
parsedBody,
|
|
2630
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2631
|
+
errorCode,
|
|
2789
2632
|
});
|
|
2790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2791
2633
|
}
|
|
2792
2634
|
};
|
|
2793
2635
|
const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, context) => {
|
|
2794
2636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2795
2637
|
return deserializeAws_restJson1GetBucketStatisticsCommandError(output, context);
|
|
2796
2638
|
}
|
|
2797
|
-
const contents = {
|
|
2639
|
+
const contents = map({
|
|
2798
2640
|
$metadata: deserializeMetadata(output),
|
|
2799
|
-
|
|
2800
|
-
bucketCountByEffectivePermission: undefined,
|
|
2801
|
-
bucketCountByEncryptionType: undefined,
|
|
2802
|
-
bucketCountByObjectEncryptionRequirement: undefined,
|
|
2803
|
-
bucketCountBySharedAccessType: undefined,
|
|
2804
|
-
classifiableObjectCount: undefined,
|
|
2805
|
-
classifiableSizeInBytes: undefined,
|
|
2806
|
-
lastUpdated: undefined,
|
|
2807
|
-
objectCount: undefined,
|
|
2808
|
-
sizeInBytes: undefined,
|
|
2809
|
-
sizeInBytesCompressed: undefined,
|
|
2810
|
-
unclassifiableObjectCount: undefined,
|
|
2811
|
-
unclassifiableObjectSizeInBytes: undefined,
|
|
2812
|
-
};
|
|
2641
|
+
});
|
|
2813
2642
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2814
|
-
if (data.bucketCount
|
|
2643
|
+
if (data.bucketCount != null) {
|
|
2815
2644
|
contents.bucketCount = (0, smithy_client_1.expectLong)(data.bucketCount);
|
|
2816
2645
|
}
|
|
2817
|
-
if (data.bucketCountByEffectivePermission
|
|
2646
|
+
if (data.bucketCountByEffectivePermission != null) {
|
|
2818
2647
|
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
2819
2648
|
}
|
|
2820
|
-
if (data.bucketCountByEncryptionType
|
|
2649
|
+
if (data.bucketCountByEncryptionType != null) {
|
|
2821
2650
|
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
2822
2651
|
}
|
|
2823
|
-
if (data.bucketCountByObjectEncryptionRequirement
|
|
2824
|
-
data.bucketCountByObjectEncryptionRequirement !== null) {
|
|
2652
|
+
if (data.bucketCountByObjectEncryptionRequirement != null) {
|
|
2825
2653
|
contents.bucketCountByObjectEncryptionRequirement =
|
|
2826
2654
|
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
2827
2655
|
}
|
|
2828
|
-
if (data.bucketCountBySharedAccessType
|
|
2656
|
+
if (data.bucketCountBySharedAccessType != null) {
|
|
2829
2657
|
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
2830
2658
|
}
|
|
2831
|
-
if (data.classifiableObjectCount
|
|
2659
|
+
if (data.classifiableObjectCount != null) {
|
|
2832
2660
|
contents.classifiableObjectCount = (0, smithy_client_1.expectLong)(data.classifiableObjectCount);
|
|
2833
2661
|
}
|
|
2834
|
-
if (data.classifiableSizeInBytes
|
|
2662
|
+
if (data.classifiableSizeInBytes != null) {
|
|
2835
2663
|
contents.classifiableSizeInBytes = (0, smithy_client_1.expectLong)(data.classifiableSizeInBytes);
|
|
2836
2664
|
}
|
|
2837
|
-
if (data.lastUpdated
|
|
2665
|
+
if (data.lastUpdated != null) {
|
|
2838
2666
|
contents.lastUpdated = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdated));
|
|
2839
2667
|
}
|
|
2840
|
-
if (data.objectCount
|
|
2668
|
+
if (data.objectCount != null) {
|
|
2841
2669
|
contents.objectCount = (0, smithy_client_1.expectLong)(data.objectCount);
|
|
2842
2670
|
}
|
|
2843
|
-
if (data.sizeInBytes
|
|
2671
|
+
if (data.sizeInBytes != null) {
|
|
2844
2672
|
contents.sizeInBytes = (0, smithy_client_1.expectLong)(data.sizeInBytes);
|
|
2845
2673
|
}
|
|
2846
|
-
if (data.sizeInBytesCompressed
|
|
2674
|
+
if (data.sizeInBytesCompressed != null) {
|
|
2847
2675
|
contents.sizeInBytesCompressed = (0, smithy_client_1.expectLong)(data.sizeInBytesCompressed);
|
|
2848
2676
|
}
|
|
2849
|
-
if (data.unclassifiableObjectCount
|
|
2677
|
+
if (data.unclassifiableObjectCount != null) {
|
|
2850
2678
|
contents.unclassifiableObjectCount = deserializeAws_restJson1ObjectLevelStatistics(data.unclassifiableObjectCount, context);
|
|
2851
2679
|
}
|
|
2852
|
-
if (data.unclassifiableObjectSizeInBytes
|
|
2680
|
+
if (data.unclassifiableObjectSizeInBytes != null) {
|
|
2853
2681
|
contents.unclassifiableObjectSizeInBytes = deserializeAws_restJson1ObjectLevelStatistics(data.unclassifiableObjectSizeInBytes, context);
|
|
2854
2682
|
}
|
|
2855
|
-
return
|
|
2683
|
+
return contents;
|
|
2856
2684
|
};
|
|
2857
2685
|
exports.deserializeAws_restJson1GetBucketStatisticsCommand = deserializeAws_restJson1GetBucketStatisticsCommand;
|
|
2858
2686
|
const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, context) => {
|
|
@@ -2860,7 +2688,6 @@ const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, c
|
|
|
2860
2688
|
...output,
|
|
2861
2689
|
body: await parseBody(output.body, context),
|
|
2862
2690
|
};
|
|
2863
|
-
let response;
|
|
2864
2691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2865
2692
|
switch (errorCode) {
|
|
2866
2693
|
case "AccessDeniedException":
|
|
@@ -2886,29 +2713,26 @@ const deserializeAws_restJson1GetBucketStatisticsCommandError = async (output, c
|
|
|
2886
2713
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2887
2714
|
default:
|
|
2888
2715
|
const parsedBody = parsedOutput.body;
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
$metadata,
|
|
2716
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2717
|
+
output,
|
|
2718
|
+
parsedBody,
|
|
2719
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2720
|
+
errorCode,
|
|
2895
2721
|
});
|
|
2896
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2897
2722
|
}
|
|
2898
2723
|
};
|
|
2899
2724
|
const deserializeAws_restJson1GetClassificationExportConfigurationCommand = async (output, context) => {
|
|
2900
2725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2901
2726
|
return deserializeAws_restJson1GetClassificationExportConfigurationCommandError(output, context);
|
|
2902
2727
|
}
|
|
2903
|
-
const contents = {
|
|
2728
|
+
const contents = map({
|
|
2904
2729
|
$metadata: deserializeMetadata(output),
|
|
2905
|
-
|
|
2906
|
-
};
|
|
2730
|
+
});
|
|
2907
2731
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2908
|
-
if (data.configuration
|
|
2732
|
+
if (data.configuration != null) {
|
|
2909
2733
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
2910
2734
|
}
|
|
2911
|
-
return
|
|
2735
|
+
return contents;
|
|
2912
2736
|
};
|
|
2913
2737
|
exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = deserializeAws_restJson1GetClassificationExportConfigurationCommand;
|
|
2914
2738
|
const deserializeAws_restJson1GetClassificationExportConfigurationCommandError = async (output, context) => {
|
|
@@ -2916,7 +2740,6 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2916
2740
|
...output,
|
|
2917
2741
|
body: await parseBody(output.body, context),
|
|
2918
2742
|
};
|
|
2919
|
-
let response;
|
|
2920
2743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
2744
|
switch (errorCode) {
|
|
2922
2745
|
case "AccessDeniedException":
|
|
@@ -2942,73 +2765,59 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommandError =
|
|
|
2942
2765
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2943
2766
|
default:
|
|
2944
2767
|
const parsedBody = parsedOutput.body;
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
$metadata,
|
|
2768
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2769
|
+
output,
|
|
2770
|
+
parsedBody,
|
|
2771
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2772
|
+
errorCode,
|
|
2951
2773
|
});
|
|
2952
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2953
2774
|
}
|
|
2954
2775
|
};
|
|
2955
2776
|
const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, context) => {
|
|
2956
2777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2957
2778
|
return deserializeAws_restJson1GetCustomDataIdentifierCommandError(output, context);
|
|
2958
2779
|
}
|
|
2959
|
-
const contents = {
|
|
2780
|
+
const contents = map({
|
|
2960
2781
|
$metadata: deserializeMetadata(output),
|
|
2961
|
-
|
|
2962
|
-
createdAt: undefined,
|
|
2963
|
-
deleted: undefined,
|
|
2964
|
-
description: undefined,
|
|
2965
|
-
id: undefined,
|
|
2966
|
-
ignoreWords: undefined,
|
|
2967
|
-
keywords: undefined,
|
|
2968
|
-
maximumMatchDistance: undefined,
|
|
2969
|
-
name: undefined,
|
|
2970
|
-
regex: undefined,
|
|
2971
|
-
severityLevels: undefined,
|
|
2972
|
-
tags: undefined,
|
|
2973
|
-
};
|
|
2782
|
+
});
|
|
2974
2783
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2975
|
-
if (data.arn
|
|
2784
|
+
if (data.arn != null) {
|
|
2976
2785
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2977
2786
|
}
|
|
2978
|
-
if (data.createdAt
|
|
2787
|
+
if (data.createdAt != null) {
|
|
2979
2788
|
contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdAt));
|
|
2980
2789
|
}
|
|
2981
|
-
if (data.deleted
|
|
2790
|
+
if (data.deleted != null) {
|
|
2982
2791
|
contents.deleted = (0, smithy_client_1.expectBoolean)(data.deleted);
|
|
2983
2792
|
}
|
|
2984
|
-
if (data.description
|
|
2793
|
+
if (data.description != null) {
|
|
2985
2794
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
2986
2795
|
}
|
|
2987
|
-
if (data.id
|
|
2796
|
+
if (data.id != null) {
|
|
2988
2797
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
2989
2798
|
}
|
|
2990
|
-
if (data.ignoreWords
|
|
2799
|
+
if (data.ignoreWords != null) {
|
|
2991
2800
|
contents.ignoreWords = deserializeAws_restJson1__listOf__string(data.ignoreWords, context);
|
|
2992
2801
|
}
|
|
2993
|
-
if (data.keywords
|
|
2802
|
+
if (data.keywords != null) {
|
|
2994
2803
|
contents.keywords = deserializeAws_restJson1__listOf__string(data.keywords, context);
|
|
2995
2804
|
}
|
|
2996
|
-
if (data.maximumMatchDistance
|
|
2805
|
+
if (data.maximumMatchDistance != null) {
|
|
2997
2806
|
contents.maximumMatchDistance = (0, smithy_client_1.expectInt32)(data.maximumMatchDistance);
|
|
2998
2807
|
}
|
|
2999
|
-
if (data.name
|
|
2808
|
+
if (data.name != null) {
|
|
3000
2809
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3001
2810
|
}
|
|
3002
|
-
if (data.regex
|
|
2811
|
+
if (data.regex != null) {
|
|
3003
2812
|
contents.regex = (0, smithy_client_1.expectString)(data.regex);
|
|
3004
2813
|
}
|
|
3005
|
-
if (data.severityLevels
|
|
2814
|
+
if (data.severityLevels != null) {
|
|
3006
2815
|
contents.severityLevels = deserializeAws_restJson1SeverityLevelList(data.severityLevels, context);
|
|
3007
2816
|
}
|
|
3008
|
-
if (data.tags
|
|
2817
|
+
if (data.tags != null) {
|
|
3009
2818
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3010
2819
|
}
|
|
3011
|
-
return
|
|
2820
|
+
return contents;
|
|
3012
2821
|
};
|
|
3013
2822
|
exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = deserializeAws_restJson1GetCustomDataIdentifierCommand;
|
|
3014
2823
|
const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (output, context) => {
|
|
@@ -3016,7 +2825,6 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (outpu
|
|
|
3016
2825
|
...output,
|
|
3017
2826
|
body: await parseBody(output.body, context),
|
|
3018
2827
|
};
|
|
3019
|
-
let response;
|
|
3020
2828
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3021
2829
|
switch (errorCode) {
|
|
3022
2830
|
case "AccessDeniedException":
|
|
@@ -3042,29 +2850,26 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommandError = async (outpu
|
|
|
3042
2850
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3043
2851
|
default:
|
|
3044
2852
|
const parsedBody = parsedOutput.body;
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
$metadata,
|
|
2853
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2854
|
+
output,
|
|
2855
|
+
parsedBody,
|
|
2856
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2857
|
+
errorCode,
|
|
3051
2858
|
});
|
|
3052
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3053
2859
|
}
|
|
3054
2860
|
};
|
|
3055
2861
|
const deserializeAws_restJson1GetFindingsCommand = async (output, context) => {
|
|
3056
2862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3057
2863
|
return deserializeAws_restJson1GetFindingsCommandError(output, context);
|
|
3058
2864
|
}
|
|
3059
|
-
const contents = {
|
|
2865
|
+
const contents = map({
|
|
3060
2866
|
$metadata: deserializeMetadata(output),
|
|
3061
|
-
|
|
3062
|
-
};
|
|
2867
|
+
});
|
|
3063
2868
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3064
|
-
if (data.findings
|
|
2869
|
+
if (data.findings != null) {
|
|
3065
2870
|
contents.findings = deserializeAws_restJson1__listOfFinding(data.findings, context);
|
|
3066
2871
|
}
|
|
3067
|
-
return
|
|
2872
|
+
return contents;
|
|
3068
2873
|
};
|
|
3069
2874
|
exports.deserializeAws_restJson1GetFindingsCommand = deserializeAws_restJson1GetFindingsCommand;
|
|
3070
2875
|
const deserializeAws_restJson1GetFindingsCommandError = async (output, context) => {
|
|
@@ -3072,7 +2877,6 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3072
2877
|
...output,
|
|
3073
2878
|
body: await parseBody(output.body, context),
|
|
3074
2879
|
};
|
|
3075
|
-
let response;
|
|
3076
2880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3077
2881
|
switch (errorCode) {
|
|
3078
2882
|
case "AccessDeniedException":
|
|
@@ -3098,57 +2902,47 @@ const deserializeAws_restJson1GetFindingsCommandError = async (output, context)
|
|
|
3098
2902
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3099
2903
|
default:
|
|
3100
2904
|
const parsedBody = parsedOutput.body;
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
$metadata,
|
|
2905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2906
|
+
output,
|
|
2907
|
+
parsedBody,
|
|
2908
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2909
|
+
errorCode,
|
|
3107
2910
|
});
|
|
3108
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3109
2911
|
}
|
|
3110
2912
|
};
|
|
3111
2913
|
const deserializeAws_restJson1GetFindingsFilterCommand = async (output, context) => {
|
|
3112
2914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3113
2915
|
return deserializeAws_restJson1GetFindingsFilterCommandError(output, context);
|
|
3114
2916
|
}
|
|
3115
|
-
const contents = {
|
|
2917
|
+
const contents = map({
|
|
3116
2918
|
$metadata: deserializeMetadata(output),
|
|
3117
|
-
|
|
3118
|
-
arn: undefined,
|
|
3119
|
-
description: undefined,
|
|
3120
|
-
findingCriteria: undefined,
|
|
3121
|
-
id: undefined,
|
|
3122
|
-
name: undefined,
|
|
3123
|
-
position: undefined,
|
|
3124
|
-
tags: undefined,
|
|
3125
|
-
};
|
|
2919
|
+
});
|
|
3126
2920
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3127
|
-
if (data.action
|
|
2921
|
+
if (data.action != null) {
|
|
3128
2922
|
contents.action = (0, smithy_client_1.expectString)(data.action);
|
|
3129
2923
|
}
|
|
3130
|
-
if (data.arn
|
|
2924
|
+
if (data.arn != null) {
|
|
3131
2925
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
3132
2926
|
}
|
|
3133
|
-
if (data.description
|
|
2927
|
+
if (data.description != null) {
|
|
3134
2928
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
3135
2929
|
}
|
|
3136
|
-
if (data.findingCriteria
|
|
2930
|
+
if (data.findingCriteria != null) {
|
|
3137
2931
|
contents.findingCriteria = deserializeAws_restJson1FindingCriteria(data.findingCriteria, context);
|
|
3138
2932
|
}
|
|
3139
|
-
if (data.id
|
|
2933
|
+
if (data.id != null) {
|
|
3140
2934
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
3141
2935
|
}
|
|
3142
|
-
if (data.name
|
|
2936
|
+
if (data.name != null) {
|
|
3143
2937
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3144
2938
|
}
|
|
3145
|
-
if (data.position
|
|
2939
|
+
if (data.position != null) {
|
|
3146
2940
|
contents.position = (0, smithy_client_1.expectInt32)(data.position);
|
|
3147
2941
|
}
|
|
3148
|
-
if (data.tags
|
|
2942
|
+
if (data.tags != null) {
|
|
3149
2943
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3150
2944
|
}
|
|
3151
|
-
return
|
|
2945
|
+
return contents;
|
|
3152
2946
|
};
|
|
3153
2947
|
exports.deserializeAws_restJson1GetFindingsFilterCommand = deserializeAws_restJson1GetFindingsFilterCommand;
|
|
3154
2948
|
const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, context) => {
|
|
@@ -3156,7 +2950,6 @@ const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, con
|
|
|
3156
2950
|
...output,
|
|
3157
2951
|
body: await parseBody(output.body, context),
|
|
3158
2952
|
};
|
|
3159
|
-
let response;
|
|
3160
2953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3161
2954
|
switch (errorCode) {
|
|
3162
2955
|
case "AccessDeniedException":
|
|
@@ -3182,29 +2975,26 @@ const deserializeAws_restJson1GetFindingsFilterCommandError = async (output, con
|
|
|
3182
2975
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3183
2976
|
default:
|
|
3184
2977
|
const parsedBody = parsedOutput.body;
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
$metadata,
|
|
2978
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2979
|
+
output,
|
|
2980
|
+
parsedBody,
|
|
2981
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
2982
|
+
errorCode,
|
|
3191
2983
|
});
|
|
3192
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3193
2984
|
}
|
|
3194
2985
|
};
|
|
3195
2986
|
const deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = async (output, context) => {
|
|
3196
2987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3197
2988
|
return deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError(output, context);
|
|
3198
2989
|
}
|
|
3199
|
-
const contents = {
|
|
2990
|
+
const contents = map({
|
|
3200
2991
|
$metadata: deserializeMetadata(output),
|
|
3201
|
-
|
|
3202
|
-
};
|
|
2992
|
+
});
|
|
3203
2993
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3204
|
-
if (data.securityHubConfiguration
|
|
2994
|
+
if (data.securityHubConfiguration != null) {
|
|
3205
2995
|
contents.securityHubConfiguration = deserializeAws_restJson1SecurityHubConfiguration(data.securityHubConfiguration, context);
|
|
3206
2996
|
}
|
|
3207
|
-
return
|
|
2997
|
+
return contents;
|
|
3208
2998
|
};
|
|
3209
2999
|
exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = deserializeAws_restJson1GetFindingsPublicationConfigurationCommand;
|
|
3210
3000
|
const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = async (output, context) => {
|
|
@@ -3212,7 +3002,6 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError =
|
|
|
3212
3002
|
...output,
|
|
3213
3003
|
body: await parseBody(output.body, context),
|
|
3214
3004
|
};
|
|
3215
|
-
let response;
|
|
3216
3005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
3006
|
switch (errorCode) {
|
|
3218
3007
|
case "AccessDeniedException":
|
|
@@ -3238,29 +3027,26 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError =
|
|
|
3238
3027
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3239
3028
|
default:
|
|
3240
3029
|
const parsedBody = parsedOutput.body;
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
$metadata,
|
|
3030
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3031
|
+
output,
|
|
3032
|
+
parsedBody,
|
|
3033
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3034
|
+
errorCode,
|
|
3247
3035
|
});
|
|
3248
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3249
3036
|
}
|
|
3250
3037
|
};
|
|
3251
3038
|
const deserializeAws_restJson1GetFindingStatisticsCommand = async (output, context) => {
|
|
3252
3039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3253
3040
|
return deserializeAws_restJson1GetFindingStatisticsCommandError(output, context);
|
|
3254
3041
|
}
|
|
3255
|
-
const contents = {
|
|
3042
|
+
const contents = map({
|
|
3256
3043
|
$metadata: deserializeMetadata(output),
|
|
3257
|
-
|
|
3258
|
-
};
|
|
3044
|
+
});
|
|
3259
3045
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3260
|
-
if (data.countsByGroup
|
|
3046
|
+
if (data.countsByGroup != null) {
|
|
3261
3047
|
contents.countsByGroup = deserializeAws_restJson1__listOfGroupCount(data.countsByGroup, context);
|
|
3262
3048
|
}
|
|
3263
|
-
return
|
|
3049
|
+
return contents;
|
|
3264
3050
|
};
|
|
3265
3051
|
exports.deserializeAws_restJson1GetFindingStatisticsCommand = deserializeAws_restJson1GetFindingStatisticsCommand;
|
|
3266
3052
|
const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output, context) => {
|
|
@@ -3268,7 +3054,6 @@ const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output,
|
|
|
3268
3054
|
...output,
|
|
3269
3055
|
body: await parseBody(output.body, context),
|
|
3270
3056
|
};
|
|
3271
|
-
let response;
|
|
3272
3057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3273
3058
|
switch (errorCode) {
|
|
3274
3059
|
case "AccessDeniedException":
|
|
@@ -3294,29 +3079,26 @@ const deserializeAws_restJson1GetFindingStatisticsCommandError = async (output,
|
|
|
3294
3079
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3295
3080
|
default:
|
|
3296
3081
|
const parsedBody = parsedOutput.body;
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
$metadata,
|
|
3082
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3083
|
+
output,
|
|
3084
|
+
parsedBody,
|
|
3085
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3086
|
+
errorCode,
|
|
3303
3087
|
});
|
|
3304
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3305
3088
|
}
|
|
3306
3089
|
};
|
|
3307
3090
|
const deserializeAws_restJson1GetInvitationsCountCommand = async (output, context) => {
|
|
3308
3091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3309
3092
|
return deserializeAws_restJson1GetInvitationsCountCommandError(output, context);
|
|
3310
3093
|
}
|
|
3311
|
-
const contents = {
|
|
3094
|
+
const contents = map({
|
|
3312
3095
|
$metadata: deserializeMetadata(output),
|
|
3313
|
-
|
|
3314
|
-
};
|
|
3096
|
+
});
|
|
3315
3097
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3316
|
-
if (data.invitationsCount
|
|
3098
|
+
if (data.invitationsCount != null) {
|
|
3317
3099
|
contents.invitationsCount = (0, smithy_client_1.expectLong)(data.invitationsCount);
|
|
3318
3100
|
}
|
|
3319
|
-
return
|
|
3101
|
+
return contents;
|
|
3320
3102
|
};
|
|
3321
3103
|
exports.deserializeAws_restJson1GetInvitationsCountCommand = deserializeAws_restJson1GetInvitationsCountCommand;
|
|
3322
3104
|
const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, context) => {
|
|
@@ -3324,7 +3106,6 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3324
3106
|
...output,
|
|
3325
3107
|
body: await parseBody(output.body, context),
|
|
3326
3108
|
};
|
|
3327
|
-
let response;
|
|
3328
3109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3329
3110
|
switch (errorCode) {
|
|
3330
3111
|
case "AccessDeniedException":
|
|
@@ -3350,45 +3131,38 @@ const deserializeAws_restJson1GetInvitationsCountCommandError = async (output, c
|
|
|
3350
3131
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3351
3132
|
default:
|
|
3352
3133
|
const parsedBody = parsedOutput.body;
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
$metadata,
|
|
3134
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3135
|
+
output,
|
|
3136
|
+
parsedBody,
|
|
3137
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3138
|
+
errorCode,
|
|
3359
3139
|
});
|
|
3360
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3361
3140
|
}
|
|
3362
3141
|
};
|
|
3363
3142
|
const deserializeAws_restJson1GetMacieSessionCommand = async (output, context) => {
|
|
3364
3143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3365
3144
|
return deserializeAws_restJson1GetMacieSessionCommandError(output, context);
|
|
3366
3145
|
}
|
|
3367
|
-
const contents = {
|
|
3146
|
+
const contents = map({
|
|
3368
3147
|
$metadata: deserializeMetadata(output),
|
|
3369
|
-
|
|
3370
|
-
findingPublishingFrequency: undefined,
|
|
3371
|
-
serviceRole: undefined,
|
|
3372
|
-
status: undefined,
|
|
3373
|
-
updatedAt: undefined,
|
|
3374
|
-
};
|
|
3148
|
+
});
|
|
3375
3149
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3376
|
-
if (data.createdAt
|
|
3150
|
+
if (data.createdAt != null) {
|
|
3377
3151
|
contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.createdAt));
|
|
3378
3152
|
}
|
|
3379
|
-
if (data.findingPublishingFrequency
|
|
3153
|
+
if (data.findingPublishingFrequency != null) {
|
|
3380
3154
|
contents.findingPublishingFrequency = (0, smithy_client_1.expectString)(data.findingPublishingFrequency);
|
|
3381
3155
|
}
|
|
3382
|
-
if (data.serviceRole
|
|
3156
|
+
if (data.serviceRole != null) {
|
|
3383
3157
|
contents.serviceRole = (0, smithy_client_1.expectString)(data.serviceRole);
|
|
3384
3158
|
}
|
|
3385
|
-
if (data.status
|
|
3159
|
+
if (data.status != null) {
|
|
3386
3160
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
3387
3161
|
}
|
|
3388
|
-
if (data.updatedAt
|
|
3162
|
+
if (data.updatedAt != null) {
|
|
3389
3163
|
contents.updatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.updatedAt));
|
|
3390
3164
|
}
|
|
3391
|
-
return
|
|
3165
|
+
return contents;
|
|
3392
3166
|
};
|
|
3393
3167
|
exports.deserializeAws_restJson1GetMacieSessionCommand = deserializeAws_restJson1GetMacieSessionCommand;
|
|
3394
3168
|
const deserializeAws_restJson1GetMacieSessionCommandError = async (output, context) => {
|
|
@@ -3396,7 +3170,6 @@ const deserializeAws_restJson1GetMacieSessionCommandError = async (output, conte
|
|
|
3396
3170
|
...output,
|
|
3397
3171
|
body: await parseBody(output.body, context),
|
|
3398
3172
|
};
|
|
3399
|
-
let response;
|
|
3400
3173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3401
3174
|
switch (errorCode) {
|
|
3402
3175
|
case "AccessDeniedException":
|
|
@@ -3422,29 +3195,26 @@ const deserializeAws_restJson1GetMacieSessionCommandError = async (output, conte
|
|
|
3422
3195
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3423
3196
|
default:
|
|
3424
3197
|
const parsedBody = parsedOutput.body;
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
$metadata,
|
|
3198
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3199
|
+
output,
|
|
3200
|
+
parsedBody,
|
|
3201
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3202
|
+
errorCode,
|
|
3431
3203
|
});
|
|
3432
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3433
3204
|
}
|
|
3434
3205
|
};
|
|
3435
3206
|
const deserializeAws_restJson1GetMasterAccountCommand = async (output, context) => {
|
|
3436
3207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3437
3208
|
return deserializeAws_restJson1GetMasterAccountCommandError(output, context);
|
|
3438
3209
|
}
|
|
3439
|
-
const contents = {
|
|
3210
|
+
const contents = map({
|
|
3440
3211
|
$metadata: deserializeMetadata(output),
|
|
3441
|
-
|
|
3442
|
-
};
|
|
3212
|
+
});
|
|
3443
3213
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3444
|
-
if (data.master
|
|
3214
|
+
if (data.master != null) {
|
|
3445
3215
|
contents.master = deserializeAws_restJson1Invitation(data.master, context);
|
|
3446
3216
|
}
|
|
3447
|
-
return
|
|
3217
|
+
return contents;
|
|
3448
3218
|
};
|
|
3449
3219
|
exports.deserializeAws_restJson1GetMasterAccountCommand = deserializeAws_restJson1GetMasterAccountCommand;
|
|
3450
3220
|
const deserializeAws_restJson1GetMasterAccountCommandError = async (output, context) => {
|
|
@@ -3452,7 +3222,6 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3452
3222
|
...output,
|
|
3453
3223
|
body: await parseBody(output.body, context),
|
|
3454
3224
|
};
|
|
3455
|
-
let response;
|
|
3456
3225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3457
3226
|
switch (errorCode) {
|
|
3458
3227
|
case "AccessDeniedException":
|
|
@@ -3478,61 +3247,50 @@ const deserializeAws_restJson1GetMasterAccountCommandError = async (output, cont
|
|
|
3478
3247
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3479
3248
|
default:
|
|
3480
3249
|
const parsedBody = parsedOutput.body;
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
$metadata,
|
|
3250
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3251
|
+
output,
|
|
3252
|
+
parsedBody,
|
|
3253
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3254
|
+
errorCode,
|
|
3487
3255
|
});
|
|
3488
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3489
3256
|
}
|
|
3490
3257
|
};
|
|
3491
3258
|
const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
|
|
3492
3259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3493
3260
|
return deserializeAws_restJson1GetMemberCommandError(output, context);
|
|
3494
3261
|
}
|
|
3495
|
-
const contents = {
|
|
3262
|
+
const contents = map({
|
|
3496
3263
|
$metadata: deserializeMetadata(output),
|
|
3497
|
-
|
|
3498
|
-
administratorAccountId: undefined,
|
|
3499
|
-
arn: undefined,
|
|
3500
|
-
email: undefined,
|
|
3501
|
-
invitedAt: undefined,
|
|
3502
|
-
masterAccountId: undefined,
|
|
3503
|
-
relationshipStatus: undefined,
|
|
3504
|
-
tags: undefined,
|
|
3505
|
-
updatedAt: undefined,
|
|
3506
|
-
};
|
|
3264
|
+
});
|
|
3507
3265
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3508
|
-
if (data.accountId
|
|
3266
|
+
if (data.accountId != null) {
|
|
3509
3267
|
contents.accountId = (0, smithy_client_1.expectString)(data.accountId);
|
|
3510
3268
|
}
|
|
3511
|
-
if (data.administratorAccountId
|
|
3269
|
+
if (data.administratorAccountId != null) {
|
|
3512
3270
|
contents.administratorAccountId = (0, smithy_client_1.expectString)(data.administratorAccountId);
|
|
3513
3271
|
}
|
|
3514
|
-
if (data.arn
|
|
3272
|
+
if (data.arn != null) {
|
|
3515
3273
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
3516
3274
|
}
|
|
3517
|
-
if (data.email
|
|
3275
|
+
if (data.email != null) {
|
|
3518
3276
|
contents.email = (0, smithy_client_1.expectString)(data.email);
|
|
3519
3277
|
}
|
|
3520
|
-
if (data.invitedAt
|
|
3278
|
+
if (data.invitedAt != null) {
|
|
3521
3279
|
contents.invitedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.invitedAt));
|
|
3522
3280
|
}
|
|
3523
|
-
if (data.masterAccountId
|
|
3281
|
+
if (data.masterAccountId != null) {
|
|
3524
3282
|
contents.masterAccountId = (0, smithy_client_1.expectString)(data.masterAccountId);
|
|
3525
3283
|
}
|
|
3526
|
-
if (data.relationshipStatus
|
|
3284
|
+
if (data.relationshipStatus != null) {
|
|
3527
3285
|
contents.relationshipStatus = (0, smithy_client_1.expectString)(data.relationshipStatus);
|
|
3528
3286
|
}
|
|
3529
|
-
if (data.tags
|
|
3287
|
+
if (data.tags != null) {
|
|
3530
3288
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3531
3289
|
}
|
|
3532
|
-
if (data.updatedAt
|
|
3290
|
+
if (data.updatedAt != null) {
|
|
3533
3291
|
contents.updatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.updatedAt));
|
|
3534
3292
|
}
|
|
3535
|
-
return
|
|
3293
|
+
return contents;
|
|
3536
3294
|
};
|
|
3537
3295
|
exports.deserializeAws_restJson1GetMemberCommand = deserializeAws_restJson1GetMemberCommand;
|
|
3538
3296
|
const deserializeAws_restJson1GetMemberCommandError = async (output, context) => {
|
|
@@ -3540,7 +3298,6 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3540
3298
|
...output,
|
|
3541
3299
|
body: await parseBody(output.body, context),
|
|
3542
3300
|
};
|
|
3543
|
-
let response;
|
|
3544
3301
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
3302
|
switch (errorCode) {
|
|
3546
3303
|
case "AccessDeniedException":
|
|
@@ -3566,37 +3323,176 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
|
|
|
3566
3323
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3567
3324
|
default:
|
|
3568
3325
|
const parsedBody = parsedOutput.body;
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3326
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3327
|
+
output,
|
|
3328
|
+
parsedBody,
|
|
3329
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3330
|
+
errorCode,
|
|
3331
|
+
});
|
|
3332
|
+
}
|
|
3333
|
+
};
|
|
3334
|
+
const deserializeAws_restJson1GetRevealConfigurationCommand = async (output, context) => {
|
|
3335
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3336
|
+
return deserializeAws_restJson1GetRevealConfigurationCommandError(output, context);
|
|
3337
|
+
}
|
|
3338
|
+
const contents = map({
|
|
3339
|
+
$metadata: deserializeMetadata(output),
|
|
3340
|
+
});
|
|
3341
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3342
|
+
if (data.configuration != null) {
|
|
3343
|
+
contents.configuration = deserializeAws_restJson1RevealConfiguration(data.configuration, context);
|
|
3344
|
+
}
|
|
3345
|
+
return contents;
|
|
3346
|
+
};
|
|
3347
|
+
exports.deserializeAws_restJson1GetRevealConfigurationCommand = deserializeAws_restJson1GetRevealConfigurationCommand;
|
|
3348
|
+
const deserializeAws_restJson1GetRevealConfigurationCommandError = async (output, context) => {
|
|
3349
|
+
const parsedOutput = {
|
|
3350
|
+
...output,
|
|
3351
|
+
body: await parseBody(output.body, context),
|
|
3352
|
+
};
|
|
3353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3354
|
+
switch (errorCode) {
|
|
3355
|
+
case "AccessDeniedException":
|
|
3356
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3357
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3358
|
+
case "InternalServerException":
|
|
3359
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3360
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3361
|
+
case "ThrottlingException":
|
|
3362
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3363
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3364
|
+
case "ValidationException":
|
|
3365
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
3366
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3367
|
+
default:
|
|
3368
|
+
const parsedBody = parsedOutput.body;
|
|
3369
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3370
|
+
output,
|
|
3371
|
+
parsedBody,
|
|
3372
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3373
|
+
errorCode,
|
|
3374
|
+
});
|
|
3375
|
+
}
|
|
3376
|
+
};
|
|
3377
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = async (output, context) => {
|
|
3378
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3379
|
+
return deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError(output, context);
|
|
3380
|
+
}
|
|
3381
|
+
const contents = map({
|
|
3382
|
+
$metadata: deserializeMetadata(output),
|
|
3383
|
+
});
|
|
3384
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3385
|
+
if (data.error != null) {
|
|
3386
|
+
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
3387
|
+
}
|
|
3388
|
+
if (data.sensitiveDataOccurrences != null) {
|
|
3389
|
+
contents.sensitiveDataOccurrences = deserializeAws_restJson1SensitiveDataOccurrences(data.sensitiveDataOccurrences, context);
|
|
3390
|
+
}
|
|
3391
|
+
if (data.status != null) {
|
|
3392
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
3393
|
+
}
|
|
3394
|
+
return contents;
|
|
3395
|
+
};
|
|
3396
|
+
exports.deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = deserializeAws_restJson1GetSensitiveDataOccurrencesCommand;
|
|
3397
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError = async (output, context) => {
|
|
3398
|
+
const parsedOutput = {
|
|
3399
|
+
...output,
|
|
3400
|
+
body: await parseBody(output.body, context),
|
|
3401
|
+
};
|
|
3402
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
|
+
switch (errorCode) {
|
|
3404
|
+
case "AccessDeniedException":
|
|
3405
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3406
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3407
|
+
case "InternalServerException":
|
|
3408
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3409
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3410
|
+
case "ResourceNotFoundException":
|
|
3411
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3412
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3413
|
+
case "ServiceQuotaExceededException":
|
|
3414
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException":
|
|
3415
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3416
|
+
case "ThrottlingException":
|
|
3417
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3418
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3419
|
+
case "UnprocessableEntityException":
|
|
3420
|
+
case "com.amazonaws.macie2#UnprocessableEntityException":
|
|
3421
|
+
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
3422
|
+
default:
|
|
3423
|
+
const parsedBody = parsedOutput.body;
|
|
3424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3425
|
+
output,
|
|
3426
|
+
parsedBody,
|
|
3427
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3428
|
+
errorCode,
|
|
3429
|
+
});
|
|
3430
|
+
}
|
|
3431
|
+
};
|
|
3432
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = async (output, context) => {
|
|
3433
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3434
|
+
return deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError(output, context);
|
|
3435
|
+
}
|
|
3436
|
+
const contents = map({
|
|
3437
|
+
$metadata: deserializeMetadata(output),
|
|
3438
|
+
});
|
|
3439
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3440
|
+
if (data.code != null) {
|
|
3441
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
3442
|
+
}
|
|
3443
|
+
if (data.reasons != null) {
|
|
3444
|
+
contents.reasons = deserializeAws_restJson1__listOfUnavailabilityReasonCode(data.reasons, context);
|
|
3445
|
+
}
|
|
3446
|
+
return contents;
|
|
3447
|
+
};
|
|
3448
|
+
exports.deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand;
|
|
3449
|
+
const deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError = async (output, context) => {
|
|
3450
|
+
const parsedOutput = {
|
|
3451
|
+
...output,
|
|
3452
|
+
body: await parseBody(output.body, context),
|
|
3453
|
+
};
|
|
3454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3455
|
+
switch (errorCode) {
|
|
3456
|
+
case "AccessDeniedException":
|
|
3457
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
3458
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3459
|
+
case "InternalServerException":
|
|
3460
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
3461
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3462
|
+
case "ResourceNotFoundException":
|
|
3463
|
+
case "com.amazonaws.macie2#ResourceNotFoundException":
|
|
3464
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3465
|
+
case "ThrottlingException":
|
|
3466
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
3467
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3468
|
+
default:
|
|
3469
|
+
const parsedBody = parsedOutput.body;
|
|
3470
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3471
|
+
output,
|
|
3472
|
+
parsedBody,
|
|
3473
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3474
|
+
errorCode,
|
|
3575
3475
|
});
|
|
3576
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3577
3476
|
}
|
|
3578
3477
|
};
|
|
3579
3478
|
const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context) => {
|
|
3580
3479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3581
3480
|
return deserializeAws_restJson1GetUsageStatisticsCommandError(output, context);
|
|
3582
3481
|
}
|
|
3583
|
-
const contents = {
|
|
3482
|
+
const contents = map({
|
|
3584
3483
|
$metadata: deserializeMetadata(output),
|
|
3585
|
-
|
|
3586
|
-
records: undefined,
|
|
3587
|
-
timeRange: undefined,
|
|
3588
|
-
};
|
|
3484
|
+
});
|
|
3589
3485
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3590
|
-
if (data.nextToken
|
|
3486
|
+
if (data.nextToken != null) {
|
|
3591
3487
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3592
3488
|
}
|
|
3593
|
-
if (data.records
|
|
3489
|
+
if (data.records != null) {
|
|
3594
3490
|
contents.records = deserializeAws_restJson1__listOfUsageRecord(data.records, context);
|
|
3595
3491
|
}
|
|
3596
|
-
if (data.timeRange
|
|
3492
|
+
if (data.timeRange != null) {
|
|
3597
3493
|
contents.timeRange = (0, smithy_client_1.expectString)(data.timeRange);
|
|
3598
3494
|
}
|
|
3599
|
-
return
|
|
3495
|
+
return contents;
|
|
3600
3496
|
};
|
|
3601
3497
|
exports.deserializeAws_restJson1GetUsageStatisticsCommand = deserializeAws_restJson1GetUsageStatisticsCommand;
|
|
3602
3498
|
const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, context) => {
|
|
@@ -3604,7 +3500,6 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3604
3500
|
...output,
|
|
3605
3501
|
body: await parseBody(output.body, context),
|
|
3606
3502
|
};
|
|
3607
|
-
let response;
|
|
3608
3503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
3504
|
switch (errorCode) {
|
|
3610
3505
|
case "AccessDeniedException":
|
|
@@ -3630,33 +3525,29 @@ const deserializeAws_restJson1GetUsageStatisticsCommandError = async (output, co
|
|
|
3630
3525
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3631
3526
|
default:
|
|
3632
3527
|
const parsedBody = parsedOutput.body;
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
$metadata,
|
|
3528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3529
|
+
output,
|
|
3530
|
+
parsedBody,
|
|
3531
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3532
|
+
errorCode,
|
|
3639
3533
|
});
|
|
3640
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3641
3534
|
}
|
|
3642
3535
|
};
|
|
3643
3536
|
const deserializeAws_restJson1GetUsageTotalsCommand = async (output, context) => {
|
|
3644
3537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3645
3538
|
return deserializeAws_restJson1GetUsageTotalsCommandError(output, context);
|
|
3646
3539
|
}
|
|
3647
|
-
const contents = {
|
|
3540
|
+
const contents = map({
|
|
3648
3541
|
$metadata: deserializeMetadata(output),
|
|
3649
|
-
|
|
3650
|
-
usageTotals: undefined,
|
|
3651
|
-
};
|
|
3542
|
+
});
|
|
3652
3543
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3653
|
-
if (data.timeRange
|
|
3544
|
+
if (data.timeRange != null) {
|
|
3654
3545
|
contents.timeRange = (0, smithy_client_1.expectString)(data.timeRange);
|
|
3655
3546
|
}
|
|
3656
|
-
if (data.usageTotals
|
|
3547
|
+
if (data.usageTotals != null) {
|
|
3657
3548
|
contents.usageTotals = deserializeAws_restJson1__listOfUsageTotal(data.usageTotals, context);
|
|
3658
3549
|
}
|
|
3659
|
-
return
|
|
3550
|
+
return contents;
|
|
3660
3551
|
};
|
|
3661
3552
|
exports.deserializeAws_restJson1GetUsageTotalsCommand = deserializeAws_restJson1GetUsageTotalsCommand;
|
|
3662
3553
|
const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, context) => {
|
|
@@ -3664,7 +3555,6 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3664
3555
|
...output,
|
|
3665
3556
|
body: await parseBody(output.body, context),
|
|
3666
3557
|
};
|
|
3667
|
-
let response;
|
|
3668
3558
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3669
3559
|
switch (errorCode) {
|
|
3670
3560
|
case "AccessDeniedException":
|
|
@@ -3690,33 +3580,29 @@ const deserializeAws_restJson1GetUsageTotalsCommandError = async (output, contex
|
|
|
3690
3580
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3691
3581
|
default:
|
|
3692
3582
|
const parsedBody = parsedOutput.body;
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
$metadata,
|
|
3583
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3584
|
+
output,
|
|
3585
|
+
parsedBody,
|
|
3586
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3587
|
+
errorCode,
|
|
3699
3588
|
});
|
|
3700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3701
3589
|
}
|
|
3702
3590
|
};
|
|
3703
3591
|
const deserializeAws_restJson1ListClassificationJobsCommand = async (output, context) => {
|
|
3704
3592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3705
3593
|
return deserializeAws_restJson1ListClassificationJobsCommandError(output, context);
|
|
3706
3594
|
}
|
|
3707
|
-
const contents = {
|
|
3595
|
+
const contents = map({
|
|
3708
3596
|
$metadata: deserializeMetadata(output),
|
|
3709
|
-
|
|
3710
|
-
nextToken: undefined,
|
|
3711
|
-
};
|
|
3597
|
+
});
|
|
3712
3598
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3713
|
-
if (data.items
|
|
3599
|
+
if (data.items != null) {
|
|
3714
3600
|
contents.items = deserializeAws_restJson1__listOfJobSummary(data.items, context);
|
|
3715
3601
|
}
|
|
3716
|
-
if (data.nextToken
|
|
3602
|
+
if (data.nextToken != null) {
|
|
3717
3603
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3718
3604
|
}
|
|
3719
|
-
return
|
|
3605
|
+
return contents;
|
|
3720
3606
|
};
|
|
3721
3607
|
exports.deserializeAws_restJson1ListClassificationJobsCommand = deserializeAws_restJson1ListClassificationJobsCommand;
|
|
3722
3608
|
const deserializeAws_restJson1ListClassificationJobsCommandError = async (output, context) => {
|
|
@@ -3724,7 +3610,6 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3724
3610
|
...output,
|
|
3725
3611
|
body: await parseBody(output.body, context),
|
|
3726
3612
|
};
|
|
3727
|
-
let response;
|
|
3728
3613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3729
3614
|
switch (errorCode) {
|
|
3730
3615
|
case "AccessDeniedException":
|
|
@@ -3750,33 +3635,29 @@ const deserializeAws_restJson1ListClassificationJobsCommandError = async (output
|
|
|
3750
3635
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3751
3636
|
default:
|
|
3752
3637
|
const parsedBody = parsedOutput.body;
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
$metadata,
|
|
3638
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3639
|
+
output,
|
|
3640
|
+
parsedBody,
|
|
3641
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3642
|
+
errorCode,
|
|
3759
3643
|
});
|
|
3760
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3761
3644
|
}
|
|
3762
3645
|
};
|
|
3763
3646
|
const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output, context) => {
|
|
3764
3647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3765
3648
|
return deserializeAws_restJson1ListCustomDataIdentifiersCommandError(output, context);
|
|
3766
3649
|
}
|
|
3767
|
-
const contents = {
|
|
3650
|
+
const contents = map({
|
|
3768
3651
|
$metadata: deserializeMetadata(output),
|
|
3769
|
-
|
|
3770
|
-
nextToken: undefined,
|
|
3771
|
-
};
|
|
3652
|
+
});
|
|
3772
3653
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3773
|
-
if (data.items
|
|
3654
|
+
if (data.items != null) {
|
|
3774
3655
|
contents.items = deserializeAws_restJson1__listOfCustomDataIdentifierSummary(data.items, context);
|
|
3775
3656
|
}
|
|
3776
|
-
if (data.nextToken
|
|
3657
|
+
if (data.nextToken != null) {
|
|
3777
3658
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3778
3659
|
}
|
|
3779
|
-
return
|
|
3660
|
+
return contents;
|
|
3780
3661
|
};
|
|
3781
3662
|
exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = deserializeAws_restJson1ListCustomDataIdentifiersCommand;
|
|
3782
3663
|
const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (output, context) => {
|
|
@@ -3784,7 +3665,6 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (out
|
|
|
3784
3665
|
...output,
|
|
3785
3666
|
body: await parseBody(output.body, context),
|
|
3786
3667
|
};
|
|
3787
|
-
let response;
|
|
3788
3668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3789
3669
|
switch (errorCode) {
|
|
3790
3670
|
case "AccessDeniedException":
|
|
@@ -3810,33 +3690,29 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommandError = async (out
|
|
|
3810
3690
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3811
3691
|
default:
|
|
3812
3692
|
const parsedBody = parsedOutput.body;
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
$metadata,
|
|
3693
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3694
|
+
output,
|
|
3695
|
+
parsedBody,
|
|
3696
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3697
|
+
errorCode,
|
|
3819
3698
|
});
|
|
3820
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3821
3699
|
}
|
|
3822
3700
|
};
|
|
3823
3701
|
const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
3824
3702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3825
3703
|
return deserializeAws_restJson1ListFindingsCommandError(output, context);
|
|
3826
3704
|
}
|
|
3827
|
-
const contents = {
|
|
3705
|
+
const contents = map({
|
|
3828
3706
|
$metadata: deserializeMetadata(output),
|
|
3829
|
-
|
|
3830
|
-
nextToken: undefined,
|
|
3831
|
-
};
|
|
3707
|
+
});
|
|
3832
3708
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3833
|
-
if (data.findingIds
|
|
3709
|
+
if (data.findingIds != null) {
|
|
3834
3710
|
contents.findingIds = deserializeAws_restJson1__listOf__string(data.findingIds, context);
|
|
3835
3711
|
}
|
|
3836
|
-
if (data.nextToken
|
|
3712
|
+
if (data.nextToken != null) {
|
|
3837
3713
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3838
3714
|
}
|
|
3839
|
-
return
|
|
3715
|
+
return contents;
|
|
3840
3716
|
};
|
|
3841
3717
|
exports.deserializeAws_restJson1ListFindingsCommand = deserializeAws_restJson1ListFindingsCommand;
|
|
3842
3718
|
const deserializeAws_restJson1ListFindingsCommandError = async (output, context) => {
|
|
@@ -3844,7 +3720,6 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3844
3720
|
...output,
|
|
3845
3721
|
body: await parseBody(output.body, context),
|
|
3846
3722
|
};
|
|
3847
|
-
let response;
|
|
3848
3723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3849
3724
|
switch (errorCode) {
|
|
3850
3725
|
case "AccessDeniedException":
|
|
@@ -3870,33 +3745,29 @@ const deserializeAws_restJson1ListFindingsCommandError = async (output, context)
|
|
|
3870
3745
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3871
3746
|
default:
|
|
3872
3747
|
const parsedBody = parsedOutput.body;
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
$metadata,
|
|
3748
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3749
|
+
output,
|
|
3750
|
+
parsedBody,
|
|
3751
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3752
|
+
errorCode,
|
|
3879
3753
|
});
|
|
3880
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3881
3754
|
}
|
|
3882
3755
|
};
|
|
3883
3756
|
const deserializeAws_restJson1ListFindingsFiltersCommand = async (output, context) => {
|
|
3884
3757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3885
3758
|
return deserializeAws_restJson1ListFindingsFiltersCommandError(output, context);
|
|
3886
3759
|
}
|
|
3887
|
-
const contents = {
|
|
3760
|
+
const contents = map({
|
|
3888
3761
|
$metadata: deserializeMetadata(output),
|
|
3889
|
-
|
|
3890
|
-
nextToken: undefined,
|
|
3891
|
-
};
|
|
3762
|
+
});
|
|
3892
3763
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3893
|
-
if (data.findingsFilterListItems
|
|
3764
|
+
if (data.findingsFilterListItems != null) {
|
|
3894
3765
|
contents.findingsFilterListItems = deserializeAws_restJson1__listOfFindingsFilterListItem(data.findingsFilterListItems, context);
|
|
3895
3766
|
}
|
|
3896
|
-
if (data.nextToken
|
|
3767
|
+
if (data.nextToken != null) {
|
|
3897
3768
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3898
3769
|
}
|
|
3899
|
-
return
|
|
3770
|
+
return contents;
|
|
3900
3771
|
};
|
|
3901
3772
|
exports.deserializeAws_restJson1ListFindingsFiltersCommand = deserializeAws_restJson1ListFindingsFiltersCommand;
|
|
3902
3773
|
const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, context) => {
|
|
@@ -3904,7 +3775,6 @@ const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, c
|
|
|
3904
3775
|
...output,
|
|
3905
3776
|
body: await parseBody(output.body, context),
|
|
3906
3777
|
};
|
|
3907
|
-
let response;
|
|
3908
3778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3909
3779
|
switch (errorCode) {
|
|
3910
3780
|
case "AccessDeniedException":
|
|
@@ -3930,33 +3800,29 @@ const deserializeAws_restJson1ListFindingsFiltersCommandError = async (output, c
|
|
|
3930
3800
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3931
3801
|
default:
|
|
3932
3802
|
const parsedBody = parsedOutput.body;
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
$metadata,
|
|
3803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3804
|
+
output,
|
|
3805
|
+
parsedBody,
|
|
3806
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3807
|
+
errorCode,
|
|
3939
3808
|
});
|
|
3940
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3941
3809
|
}
|
|
3942
3810
|
};
|
|
3943
3811
|
const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
|
|
3944
3812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3945
3813
|
return deserializeAws_restJson1ListInvitationsCommandError(output, context);
|
|
3946
3814
|
}
|
|
3947
|
-
const contents = {
|
|
3815
|
+
const contents = map({
|
|
3948
3816
|
$metadata: deserializeMetadata(output),
|
|
3949
|
-
|
|
3950
|
-
nextToken: undefined,
|
|
3951
|
-
};
|
|
3817
|
+
});
|
|
3952
3818
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3953
|
-
if (data.invitations
|
|
3819
|
+
if (data.invitations != null) {
|
|
3954
3820
|
contents.invitations = deserializeAws_restJson1__listOfInvitation(data.invitations, context);
|
|
3955
3821
|
}
|
|
3956
|
-
if (data.nextToken
|
|
3822
|
+
if (data.nextToken != null) {
|
|
3957
3823
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3958
3824
|
}
|
|
3959
|
-
return
|
|
3825
|
+
return contents;
|
|
3960
3826
|
};
|
|
3961
3827
|
exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson1ListInvitationsCommand;
|
|
3962
3828
|
const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
|
|
@@ -3964,7 +3830,6 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3964
3830
|
...output,
|
|
3965
3831
|
body: await parseBody(output.body, context),
|
|
3966
3832
|
};
|
|
3967
|
-
let response;
|
|
3968
3833
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3969
3834
|
switch (errorCode) {
|
|
3970
3835
|
case "AccessDeniedException":
|
|
@@ -3990,33 +3855,29 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
3990
3855
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3991
3856
|
default:
|
|
3992
3857
|
const parsedBody = parsedOutput.body;
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
$metadata,
|
|
3858
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3859
|
+
output,
|
|
3860
|
+
parsedBody,
|
|
3861
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3862
|
+
errorCode,
|
|
3999
3863
|
});
|
|
4000
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4001
3864
|
}
|
|
4002
3865
|
};
|
|
4003
3866
|
const deserializeAws_restJson1ListManagedDataIdentifiersCommand = async (output, context) => {
|
|
4004
3867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4005
3868
|
return deserializeAws_restJson1ListManagedDataIdentifiersCommandError(output, context);
|
|
4006
3869
|
}
|
|
4007
|
-
const contents = {
|
|
3870
|
+
const contents = map({
|
|
4008
3871
|
$metadata: deserializeMetadata(output),
|
|
4009
|
-
|
|
4010
|
-
nextToken: undefined,
|
|
4011
|
-
};
|
|
3872
|
+
});
|
|
4012
3873
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4013
|
-
if (data.items
|
|
3874
|
+
if (data.items != null) {
|
|
4014
3875
|
contents.items = deserializeAws_restJson1__listOfManagedDataIdentifierSummary(data.items, context);
|
|
4015
3876
|
}
|
|
4016
|
-
if (data.nextToken
|
|
3877
|
+
if (data.nextToken != null) {
|
|
4017
3878
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4018
3879
|
}
|
|
4019
|
-
return
|
|
3880
|
+
return contents;
|
|
4020
3881
|
};
|
|
4021
3882
|
exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = deserializeAws_restJson1ListManagedDataIdentifiersCommand;
|
|
4022
3883
|
const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (output, context) => {
|
|
@@ -4024,38 +3885,30 @@ const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (ou
|
|
|
4024
3885
|
...output,
|
|
4025
3886
|
body: await parseBody(output.body, context),
|
|
4026
3887
|
};
|
|
4027
|
-
let response;
|
|
4028
3888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
$fault: "client",
|
|
4037
|
-
$metadata,
|
|
4038
|
-
});
|
|
4039
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4040
|
-
}
|
|
3889
|
+
const parsedBody = parsedOutput.body;
|
|
3890
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3891
|
+
output,
|
|
3892
|
+
parsedBody,
|
|
3893
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3894
|
+
errorCode,
|
|
3895
|
+
});
|
|
4041
3896
|
};
|
|
4042
3897
|
const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
4043
3898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4044
3899
|
return deserializeAws_restJson1ListMembersCommandError(output, context);
|
|
4045
3900
|
}
|
|
4046
|
-
const contents = {
|
|
3901
|
+
const contents = map({
|
|
4047
3902
|
$metadata: deserializeMetadata(output),
|
|
4048
|
-
|
|
4049
|
-
nextToken: undefined,
|
|
4050
|
-
};
|
|
3903
|
+
});
|
|
4051
3904
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4052
|
-
if (data.members
|
|
3905
|
+
if (data.members != null) {
|
|
4053
3906
|
contents.members = deserializeAws_restJson1__listOfMember(data.members, context);
|
|
4054
3907
|
}
|
|
4055
|
-
if (data.nextToken
|
|
3908
|
+
if (data.nextToken != null) {
|
|
4056
3909
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4057
3910
|
}
|
|
4058
|
-
return
|
|
3911
|
+
return contents;
|
|
4059
3912
|
};
|
|
4060
3913
|
exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1ListMembersCommand;
|
|
4061
3914
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
@@ -4063,7 +3916,6 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
4063
3916
|
...output,
|
|
4064
3917
|
body: await parseBody(output.body, context),
|
|
4065
3918
|
};
|
|
4066
|
-
let response;
|
|
4067
3919
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4068
3920
|
switch (errorCode) {
|
|
4069
3921
|
case "AccessDeniedException":
|
|
@@ -4089,33 +3941,29 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
|
|
|
4089
3941
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4090
3942
|
default:
|
|
4091
3943
|
const parsedBody = parsedOutput.body;
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
$metadata,
|
|
3944
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3945
|
+
output,
|
|
3946
|
+
parsedBody,
|
|
3947
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
3948
|
+
errorCode,
|
|
4098
3949
|
});
|
|
4099
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4100
3950
|
}
|
|
4101
3951
|
};
|
|
4102
3952
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (output, context) => {
|
|
4103
3953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4104
3954
|
return deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context);
|
|
4105
3955
|
}
|
|
4106
|
-
const contents = {
|
|
3956
|
+
const contents = map({
|
|
4107
3957
|
$metadata: deserializeMetadata(output),
|
|
4108
|
-
|
|
4109
|
-
nextToken: undefined,
|
|
4110
|
-
};
|
|
3958
|
+
});
|
|
4111
3959
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4112
|
-
if (data.adminAccounts
|
|
3960
|
+
if (data.adminAccounts != null) {
|
|
4113
3961
|
contents.adminAccounts = deserializeAws_restJson1__listOfAdminAccount(data.adminAccounts, context);
|
|
4114
3962
|
}
|
|
4115
|
-
if (data.nextToken
|
|
3963
|
+
if (data.nextToken != null) {
|
|
4116
3964
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4117
3965
|
}
|
|
4118
|
-
return
|
|
3966
|
+
return contents;
|
|
4119
3967
|
};
|
|
4120
3968
|
exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = deserializeAws_restJson1ListOrganizationAdminAccountsCommand;
|
|
4121
3969
|
const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
@@ -4123,7 +3971,6 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4123
3971
|
...output,
|
|
4124
3972
|
body: await parseBody(output.body, context),
|
|
4125
3973
|
};
|
|
4126
|
-
let response;
|
|
4127
3974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4128
3975
|
switch (errorCode) {
|
|
4129
3976
|
case "AccessDeniedException":
|
|
@@ -4149,29 +3996,26 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = async
|
|
|
4149
3996
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4150
3997
|
default:
|
|
4151
3998
|
const parsedBody = parsedOutput.body;
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
$metadata,
|
|
3999
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4000
|
+
output,
|
|
4001
|
+
parsedBody,
|
|
4002
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4003
|
+
errorCode,
|
|
4158
4004
|
});
|
|
4159
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4160
4005
|
}
|
|
4161
4006
|
};
|
|
4162
4007
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
4163
4008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4164
4009
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
4165
4010
|
}
|
|
4166
|
-
const contents = {
|
|
4011
|
+
const contents = map({
|
|
4167
4012
|
$metadata: deserializeMetadata(output),
|
|
4168
|
-
|
|
4169
|
-
};
|
|
4013
|
+
});
|
|
4170
4014
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4171
|
-
if (data.tags
|
|
4015
|
+
if (data.tags != null) {
|
|
4172
4016
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4173
4017
|
}
|
|
4174
|
-
return
|
|
4018
|
+
return contents;
|
|
4175
4019
|
};
|
|
4176
4020
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
4177
4021
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -4179,34 +4023,27 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4179
4023
|
...output,
|
|
4180
4024
|
body: await parseBody(output.body, context),
|
|
4181
4025
|
};
|
|
4182
|
-
let response;
|
|
4183
4026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
$fault: "client",
|
|
4192
|
-
$metadata,
|
|
4193
|
-
});
|
|
4194
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4195
|
-
}
|
|
4027
|
+
const parsedBody = parsedOutput.body;
|
|
4028
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4029
|
+
output,
|
|
4030
|
+
parsedBody,
|
|
4031
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4032
|
+
errorCode,
|
|
4033
|
+
});
|
|
4196
4034
|
};
|
|
4197
4035
|
const deserializeAws_restJson1PutClassificationExportConfigurationCommand = async (output, context) => {
|
|
4198
4036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4199
4037
|
return deserializeAws_restJson1PutClassificationExportConfigurationCommandError(output, context);
|
|
4200
4038
|
}
|
|
4201
|
-
const contents = {
|
|
4039
|
+
const contents = map({
|
|
4202
4040
|
$metadata: deserializeMetadata(output),
|
|
4203
|
-
|
|
4204
|
-
};
|
|
4041
|
+
});
|
|
4205
4042
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4206
|
-
if (data.configuration
|
|
4043
|
+
if (data.configuration != null) {
|
|
4207
4044
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
4208
4045
|
}
|
|
4209
|
-
return
|
|
4046
|
+
return contents;
|
|
4210
4047
|
};
|
|
4211
4048
|
exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = deserializeAws_restJson1PutClassificationExportConfigurationCommand;
|
|
4212
4049
|
const deserializeAws_restJson1PutClassificationExportConfigurationCommandError = async (output, context) => {
|
|
@@ -4214,7 +4051,6 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommandError =
|
|
|
4214
4051
|
...output,
|
|
4215
4052
|
body: await parseBody(output.body, context),
|
|
4216
4053
|
};
|
|
4217
|
-
let response;
|
|
4218
4054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4219
4055
|
switch (errorCode) {
|
|
4220
4056
|
case "AccessDeniedException":
|
|
@@ -4240,25 +4076,23 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommandError =
|
|
|
4240
4076
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4241
4077
|
default:
|
|
4242
4078
|
const parsedBody = parsedOutput.body;
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
$metadata,
|
|
4079
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4080
|
+
output,
|
|
4081
|
+
parsedBody,
|
|
4082
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4083
|
+
errorCode,
|
|
4249
4084
|
});
|
|
4250
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4251
4085
|
}
|
|
4252
4086
|
};
|
|
4253
4087
|
const deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = async (output, context) => {
|
|
4254
4088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4255
4089
|
return deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError(output, context);
|
|
4256
4090
|
}
|
|
4257
|
-
const contents = {
|
|
4091
|
+
const contents = map({
|
|
4258
4092
|
$metadata: deserializeMetadata(output),
|
|
4259
|
-
};
|
|
4093
|
+
});
|
|
4260
4094
|
await collectBody(output.body, context);
|
|
4261
|
-
return
|
|
4095
|
+
return contents;
|
|
4262
4096
|
};
|
|
4263
4097
|
exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = deserializeAws_restJson1PutFindingsPublicationConfigurationCommand;
|
|
4264
4098
|
const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = async (output, context) => {
|
|
@@ -4266,7 +4100,6 @@ const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError =
|
|
|
4266
4100
|
...output,
|
|
4267
4101
|
body: await parseBody(output.body, context),
|
|
4268
4102
|
};
|
|
4269
|
-
let response;
|
|
4270
4103
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4271
4104
|
switch (errorCode) {
|
|
4272
4105
|
case "AccessDeniedException":
|
|
@@ -4292,33 +4125,29 @@ const deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError =
|
|
|
4292
4125
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4293
4126
|
default:
|
|
4294
4127
|
const parsedBody = parsedOutput.body;
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
$metadata,
|
|
4128
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4129
|
+
output,
|
|
4130
|
+
parsedBody,
|
|
4131
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4132
|
+
errorCode,
|
|
4301
4133
|
});
|
|
4302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4303
4134
|
}
|
|
4304
4135
|
};
|
|
4305
4136
|
const deserializeAws_restJson1SearchResourcesCommand = async (output, context) => {
|
|
4306
4137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4307
4138
|
return deserializeAws_restJson1SearchResourcesCommandError(output, context);
|
|
4308
4139
|
}
|
|
4309
|
-
const contents = {
|
|
4140
|
+
const contents = map({
|
|
4310
4141
|
$metadata: deserializeMetadata(output),
|
|
4311
|
-
|
|
4312
|
-
nextToken: undefined,
|
|
4313
|
-
};
|
|
4142
|
+
});
|
|
4314
4143
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4315
|
-
if (data.matchingResources
|
|
4144
|
+
if (data.matchingResources != null) {
|
|
4316
4145
|
contents.matchingResources = deserializeAws_restJson1__listOfMatchingResource(data.matchingResources, context);
|
|
4317
4146
|
}
|
|
4318
|
-
if (data.nextToken
|
|
4147
|
+
if (data.nextToken != null) {
|
|
4319
4148
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4320
4149
|
}
|
|
4321
|
-
return
|
|
4150
|
+
return contents;
|
|
4322
4151
|
};
|
|
4323
4152
|
exports.deserializeAws_restJson1SearchResourcesCommand = deserializeAws_restJson1SearchResourcesCommand;
|
|
4324
4153
|
const deserializeAws_restJson1SearchResourcesCommandError = async (output, context) => {
|
|
@@ -4326,7 +4155,6 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
4326
4155
|
...output,
|
|
4327
4156
|
body: await parseBody(output.body, context),
|
|
4328
4157
|
};
|
|
4329
|
-
let response;
|
|
4330
4158
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4331
4159
|
switch (errorCode) {
|
|
4332
4160
|
case "AccessDeniedException":
|
|
@@ -4352,25 +4180,23 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
4352
4180
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4353
4181
|
default:
|
|
4354
4182
|
const parsedBody = parsedOutput.body;
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
$metadata,
|
|
4183
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4184
|
+
output,
|
|
4185
|
+
parsedBody,
|
|
4186
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4187
|
+
errorCode,
|
|
4361
4188
|
});
|
|
4362
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4363
4189
|
}
|
|
4364
4190
|
};
|
|
4365
4191
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
4366
4192
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4367
4193
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
4368
4194
|
}
|
|
4369
|
-
const contents = {
|
|
4195
|
+
const contents = map({
|
|
4370
4196
|
$metadata: deserializeMetadata(output),
|
|
4371
|
-
};
|
|
4197
|
+
});
|
|
4372
4198
|
await collectBody(output.body, context);
|
|
4373
|
-
return
|
|
4199
|
+
return contents;
|
|
4374
4200
|
};
|
|
4375
4201
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
4376
4202
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -4378,34 +4204,27 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4378
4204
|
...output,
|
|
4379
4205
|
body: await parseBody(output.body, context),
|
|
4380
4206
|
};
|
|
4381
|
-
let response;
|
|
4382
4207
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
$fault: "client",
|
|
4391
|
-
$metadata,
|
|
4392
|
-
});
|
|
4393
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4394
|
-
}
|
|
4208
|
+
const parsedBody = parsedOutput.body;
|
|
4209
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4210
|
+
output,
|
|
4211
|
+
parsedBody,
|
|
4212
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4213
|
+
errorCode,
|
|
4214
|
+
});
|
|
4395
4215
|
};
|
|
4396
4216
|
const deserializeAws_restJson1TestCustomDataIdentifierCommand = async (output, context) => {
|
|
4397
4217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4398
4218
|
return deserializeAws_restJson1TestCustomDataIdentifierCommandError(output, context);
|
|
4399
4219
|
}
|
|
4400
|
-
const contents = {
|
|
4220
|
+
const contents = map({
|
|
4401
4221
|
$metadata: deserializeMetadata(output),
|
|
4402
|
-
|
|
4403
|
-
};
|
|
4222
|
+
});
|
|
4404
4223
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4405
|
-
if (data.matchCount
|
|
4224
|
+
if (data.matchCount != null) {
|
|
4406
4225
|
contents.matchCount = (0, smithy_client_1.expectInt32)(data.matchCount);
|
|
4407
4226
|
}
|
|
4408
|
-
return
|
|
4227
|
+
return contents;
|
|
4409
4228
|
};
|
|
4410
4229
|
exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = deserializeAws_restJson1TestCustomDataIdentifierCommand;
|
|
4411
4230
|
const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (output, context) => {
|
|
@@ -4413,7 +4232,6 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4413
4232
|
...output,
|
|
4414
4233
|
body: await parseBody(output.body, context),
|
|
4415
4234
|
};
|
|
4416
|
-
let response;
|
|
4417
4235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4418
4236
|
switch (errorCode) {
|
|
4419
4237
|
case "AccessDeniedException":
|
|
@@ -4439,25 +4257,23 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommandError = async (outp
|
|
|
4439
4257
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4440
4258
|
default:
|
|
4441
4259
|
const parsedBody = parsedOutput.body;
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
$metadata,
|
|
4260
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4261
|
+
output,
|
|
4262
|
+
parsedBody,
|
|
4263
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4264
|
+
errorCode,
|
|
4448
4265
|
});
|
|
4449
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4450
4266
|
}
|
|
4451
4267
|
};
|
|
4452
4268
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4453
4269
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
4454
4270
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
4455
4271
|
}
|
|
4456
|
-
const contents = {
|
|
4272
|
+
const contents = map({
|
|
4457
4273
|
$metadata: deserializeMetadata(output),
|
|
4458
|
-
};
|
|
4274
|
+
});
|
|
4459
4275
|
await collectBody(output.body, context);
|
|
4460
|
-
return
|
|
4276
|
+
return contents;
|
|
4461
4277
|
};
|
|
4462
4278
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
4463
4279
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -4465,30 +4281,24 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4465
4281
|
...output,
|
|
4466
4282
|
body: await parseBody(output.body, context),
|
|
4467
4283
|
};
|
|
4468
|
-
let response;
|
|
4469
4284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
$fault: "client",
|
|
4478
|
-
$metadata,
|
|
4479
|
-
});
|
|
4480
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4481
|
-
}
|
|
4285
|
+
const parsedBody = parsedOutput.body;
|
|
4286
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4287
|
+
output,
|
|
4288
|
+
parsedBody,
|
|
4289
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4290
|
+
errorCode,
|
|
4291
|
+
});
|
|
4482
4292
|
};
|
|
4483
4293
|
const deserializeAws_restJson1UpdateClassificationJobCommand = async (output, context) => {
|
|
4484
4294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4485
4295
|
return deserializeAws_restJson1UpdateClassificationJobCommandError(output, context);
|
|
4486
4296
|
}
|
|
4487
|
-
const contents = {
|
|
4297
|
+
const contents = map({
|
|
4488
4298
|
$metadata: deserializeMetadata(output),
|
|
4489
|
-
};
|
|
4299
|
+
});
|
|
4490
4300
|
await collectBody(output.body, context);
|
|
4491
|
-
return
|
|
4301
|
+
return contents;
|
|
4492
4302
|
};
|
|
4493
4303
|
exports.deserializeAws_restJson1UpdateClassificationJobCommand = deserializeAws_restJson1UpdateClassificationJobCommand;
|
|
4494
4304
|
const deserializeAws_restJson1UpdateClassificationJobCommandError = async (output, context) => {
|
|
@@ -4496,7 +4306,6 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4496
4306
|
...output,
|
|
4497
4307
|
body: await parseBody(output.body, context),
|
|
4498
4308
|
};
|
|
4499
|
-
let response;
|
|
4500
4309
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
4310
|
switch (errorCode) {
|
|
4502
4311
|
case "AccessDeniedException":
|
|
@@ -4522,33 +4331,29 @@ const deserializeAws_restJson1UpdateClassificationJobCommandError = async (outpu
|
|
|
4522
4331
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4523
4332
|
default:
|
|
4524
4333
|
const parsedBody = parsedOutput.body;
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
$metadata,
|
|
4334
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4335
|
+
output,
|
|
4336
|
+
parsedBody,
|
|
4337
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4338
|
+
errorCode,
|
|
4531
4339
|
});
|
|
4532
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4533
4340
|
}
|
|
4534
4341
|
};
|
|
4535
4342
|
const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, context) => {
|
|
4536
4343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4537
4344
|
return deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context);
|
|
4538
4345
|
}
|
|
4539
|
-
const contents = {
|
|
4346
|
+
const contents = map({
|
|
4540
4347
|
$metadata: deserializeMetadata(output),
|
|
4541
|
-
|
|
4542
|
-
id: undefined,
|
|
4543
|
-
};
|
|
4348
|
+
});
|
|
4544
4349
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4545
|
-
if (data.arn
|
|
4350
|
+
if (data.arn != null) {
|
|
4546
4351
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
4547
4352
|
}
|
|
4548
|
-
if (data.id
|
|
4353
|
+
if (data.id != null) {
|
|
4549
4354
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
4550
4355
|
}
|
|
4551
|
-
return
|
|
4356
|
+
return contents;
|
|
4552
4357
|
};
|
|
4553
4358
|
exports.deserializeAws_restJson1UpdateFindingsFilterCommand = deserializeAws_restJson1UpdateFindingsFilterCommand;
|
|
4554
4359
|
const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output, context) => {
|
|
@@ -4556,7 +4361,6 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4556
4361
|
...output,
|
|
4557
4362
|
body: await parseBody(output.body, context),
|
|
4558
4363
|
};
|
|
4559
|
-
let response;
|
|
4560
4364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4561
4365
|
switch (errorCode) {
|
|
4562
4366
|
case "AccessDeniedException":
|
|
@@ -4582,25 +4386,23 @@ const deserializeAws_restJson1UpdateFindingsFilterCommandError = async (output,
|
|
|
4582
4386
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4583
4387
|
default:
|
|
4584
4388
|
const parsedBody = parsedOutput.body;
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
$metadata,
|
|
4389
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4390
|
+
output,
|
|
4391
|
+
parsedBody,
|
|
4392
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4393
|
+
errorCode,
|
|
4591
4394
|
});
|
|
4592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4593
4395
|
}
|
|
4594
4396
|
};
|
|
4595
4397
|
const deserializeAws_restJson1UpdateMacieSessionCommand = async (output, context) => {
|
|
4596
4398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4597
4399
|
return deserializeAws_restJson1UpdateMacieSessionCommandError(output, context);
|
|
4598
4400
|
}
|
|
4599
|
-
const contents = {
|
|
4401
|
+
const contents = map({
|
|
4600
4402
|
$metadata: deserializeMetadata(output),
|
|
4601
|
-
};
|
|
4403
|
+
});
|
|
4602
4404
|
await collectBody(output.body, context);
|
|
4603
|
-
return
|
|
4405
|
+
return contents;
|
|
4604
4406
|
};
|
|
4605
4407
|
exports.deserializeAws_restJson1UpdateMacieSessionCommand = deserializeAws_restJson1UpdateMacieSessionCommand;
|
|
4606
4408
|
const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, context) => {
|
|
@@ -4608,7 +4410,6 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4608
4410
|
...output,
|
|
4609
4411
|
body: await parseBody(output.body, context),
|
|
4610
4412
|
};
|
|
4611
|
-
let response;
|
|
4612
4413
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4613
4414
|
switch (errorCode) {
|
|
4614
4415
|
case "AccessDeniedException":
|
|
@@ -4634,25 +4435,23 @@ const deserializeAws_restJson1UpdateMacieSessionCommandError = async (output, co
|
|
|
4634
4435
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4635
4436
|
default:
|
|
4636
4437
|
const parsedBody = parsedOutput.body;
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
$metadata,
|
|
4438
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4439
|
+
output,
|
|
4440
|
+
parsedBody,
|
|
4441
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4442
|
+
errorCode,
|
|
4643
4443
|
});
|
|
4644
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4645
4444
|
}
|
|
4646
4445
|
};
|
|
4647
4446
|
const deserializeAws_restJson1UpdateMemberSessionCommand = async (output, context) => {
|
|
4648
4447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4649
4448
|
return deserializeAws_restJson1UpdateMemberSessionCommandError(output, context);
|
|
4650
4449
|
}
|
|
4651
|
-
const contents = {
|
|
4450
|
+
const contents = map({
|
|
4652
4451
|
$metadata: deserializeMetadata(output),
|
|
4653
|
-
};
|
|
4452
|
+
});
|
|
4654
4453
|
await collectBody(output.body, context);
|
|
4655
|
-
return
|
|
4454
|
+
return contents;
|
|
4656
4455
|
};
|
|
4657
4456
|
exports.deserializeAws_restJson1UpdateMemberSessionCommand = deserializeAws_restJson1UpdateMemberSessionCommand;
|
|
4658
4457
|
const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, context) => {
|
|
@@ -4660,7 +4459,6 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4660
4459
|
...output,
|
|
4661
4460
|
body: await parseBody(output.body, context),
|
|
4662
4461
|
};
|
|
4663
|
-
let response;
|
|
4664
4462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4665
4463
|
switch (errorCode) {
|
|
4666
4464
|
case "AccessDeniedException":
|
|
@@ -4686,25 +4484,23 @@ const deserializeAws_restJson1UpdateMemberSessionCommandError = async (output, c
|
|
|
4686
4484
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4687
4485
|
default:
|
|
4688
4486
|
const parsedBody = parsedOutput.body;
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
$metadata,
|
|
4487
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4488
|
+
output,
|
|
4489
|
+
parsedBody,
|
|
4490
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4491
|
+
errorCode,
|
|
4695
4492
|
});
|
|
4696
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4697
4493
|
}
|
|
4698
4494
|
};
|
|
4699
4495
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
4700
4496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4701
4497
|
return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
|
|
4702
4498
|
}
|
|
4703
|
-
const contents = {
|
|
4499
|
+
const contents = map({
|
|
4704
4500
|
$metadata: deserializeMetadata(output),
|
|
4705
|
-
};
|
|
4501
|
+
});
|
|
4706
4502
|
await collectBody(output.body, context);
|
|
4707
|
-
return
|
|
4503
|
+
return contents;
|
|
4708
4504
|
};
|
|
4709
4505
|
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = deserializeAws_restJson1UpdateOrganizationConfigurationCommand;
|
|
4710
4506
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -4712,7 +4508,6 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4712
4508
|
...output,
|
|
4713
4509
|
body: await parseBody(output.body, context),
|
|
4714
4510
|
};
|
|
4715
|
-
let response;
|
|
4716
4511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4717
4512
|
switch (errorCode) {
|
|
4718
4513
|
case "AccessDeniedException":
|
|
@@ -4738,20 +4533,62 @@ const deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = asyn
|
|
|
4738
4533
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4739
4534
|
default:
|
|
4740
4535
|
const parsedBody = parsedOutput.body;
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4536
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4537
|
+
output,
|
|
4538
|
+
parsedBody,
|
|
4539
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4540
|
+
errorCode,
|
|
4541
|
+
});
|
|
4542
|
+
}
|
|
4543
|
+
};
|
|
4544
|
+
const deserializeAws_restJson1UpdateRevealConfigurationCommand = async (output, context) => {
|
|
4545
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4546
|
+
return deserializeAws_restJson1UpdateRevealConfigurationCommandError(output, context);
|
|
4547
|
+
}
|
|
4548
|
+
const contents = map({
|
|
4549
|
+
$metadata: deserializeMetadata(output),
|
|
4550
|
+
});
|
|
4551
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4552
|
+
if (data.configuration != null) {
|
|
4553
|
+
contents.configuration = deserializeAws_restJson1RevealConfiguration(data.configuration, context);
|
|
4554
|
+
}
|
|
4555
|
+
return contents;
|
|
4556
|
+
};
|
|
4557
|
+
exports.deserializeAws_restJson1UpdateRevealConfigurationCommand = deserializeAws_restJson1UpdateRevealConfigurationCommand;
|
|
4558
|
+
const deserializeAws_restJson1UpdateRevealConfigurationCommandError = async (output, context) => {
|
|
4559
|
+
const parsedOutput = {
|
|
4560
|
+
...output,
|
|
4561
|
+
body: await parseBody(output.body, context),
|
|
4562
|
+
};
|
|
4563
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4564
|
+
switch (errorCode) {
|
|
4565
|
+
case "AccessDeniedException":
|
|
4566
|
+
case "com.amazonaws.macie2#AccessDeniedException":
|
|
4567
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4568
|
+
case "InternalServerException":
|
|
4569
|
+
case "com.amazonaws.macie2#InternalServerException":
|
|
4570
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4571
|
+
case "ThrottlingException":
|
|
4572
|
+
case "com.amazonaws.macie2#ThrottlingException":
|
|
4573
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4574
|
+
case "ValidationException":
|
|
4575
|
+
case "com.amazonaws.macie2#ValidationException":
|
|
4576
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4577
|
+
default:
|
|
4578
|
+
const parsedBody = parsedOutput.body;
|
|
4579
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4580
|
+
output,
|
|
4581
|
+
parsedBody,
|
|
4582
|
+
exceptionCtor: Macie2ServiceException_1.Macie2ServiceException,
|
|
4583
|
+
errorCode,
|
|
4747
4584
|
});
|
|
4748
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4749
4585
|
}
|
|
4750
4586
|
};
|
|
4587
|
+
const map = smithy_client_1.map;
|
|
4751
4588
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4752
|
-
const contents = {};
|
|
4589
|
+
const contents = map({});
|
|
4753
4590
|
const data = parsedOutput.body;
|
|
4754
|
-
if (data.message
|
|
4591
|
+
if (data.message != null) {
|
|
4755
4592
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4756
4593
|
}
|
|
4757
4594
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -4761,9 +4598,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
4761
4598
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4762
4599
|
};
|
|
4763
4600
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4764
|
-
const contents = {};
|
|
4601
|
+
const contents = map({});
|
|
4765
4602
|
const data = parsedOutput.body;
|
|
4766
|
-
if (data.message
|
|
4603
|
+
if (data.message != null) {
|
|
4767
4604
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4768
4605
|
}
|
|
4769
4606
|
const exception = new models_0_1.ConflictException({
|
|
@@ -4773,9 +4610,9 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
4773
4610
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4774
4611
|
};
|
|
4775
4612
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
4776
|
-
const contents = {};
|
|
4613
|
+
const contents = map({});
|
|
4777
4614
|
const data = parsedOutput.body;
|
|
4778
|
-
if (data.message
|
|
4615
|
+
if (data.message != null) {
|
|
4779
4616
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4780
4617
|
}
|
|
4781
4618
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -4785,9 +4622,9 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
4785
4622
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4786
4623
|
};
|
|
4787
4624
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4788
|
-
const contents = {};
|
|
4625
|
+
const contents = map({});
|
|
4789
4626
|
const data = parsedOutput.body;
|
|
4790
|
-
if (data.message
|
|
4627
|
+
if (data.message != null) {
|
|
4791
4628
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4792
4629
|
}
|
|
4793
4630
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -4797,9 +4634,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
4797
4634
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4798
4635
|
};
|
|
4799
4636
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4800
|
-
const contents = {};
|
|
4637
|
+
const contents = map({});
|
|
4801
4638
|
const data = parsedOutput.body;
|
|
4802
|
-
if (data.message
|
|
4639
|
+
if (data.message != null) {
|
|
4803
4640
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4804
4641
|
}
|
|
4805
4642
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -4809,9 +4646,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
4809
4646
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4810
4647
|
};
|
|
4811
4648
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
4812
|
-
const contents = {};
|
|
4649
|
+
const contents = map({});
|
|
4813
4650
|
const data = parsedOutput.body;
|
|
4814
|
-
if (data.message
|
|
4651
|
+
if (data.message != null) {
|
|
4815
4652
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4816
4653
|
}
|
|
4817
4654
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -4820,10 +4657,22 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
4820
4657
|
});
|
|
4821
4658
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4822
4659
|
};
|
|
4660
|
+
const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (parsedOutput, context) => {
|
|
4661
|
+
const contents = map({});
|
|
4662
|
+
const data = parsedOutput.body;
|
|
4663
|
+
if (data.message != null) {
|
|
4664
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4665
|
+
}
|
|
4666
|
+
const exception = new models_0_1.UnprocessableEntityException({
|
|
4667
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4668
|
+
...contents,
|
|
4669
|
+
});
|
|
4670
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4671
|
+
};
|
|
4823
4672
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
4824
|
-
const contents = {};
|
|
4673
|
+
const contents = map({});
|
|
4825
4674
|
const data = parsedOutput.body;
|
|
4826
|
-
if (data.message
|
|
4675
|
+
if (data.message != null) {
|
|
4827
4676
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
4828
4677
|
}
|
|
4829
4678
|
const exception = new models_0_1.ValidationException({
|
|
@@ -4836,9 +4685,6 @@ const serializeAws_restJson1__listOf__string = (input, context) => {
|
|
|
4836
4685
|
return input
|
|
4837
4686
|
.filter((e) => e != null)
|
|
4838
4687
|
.map((entry) => {
|
|
4839
|
-
if (entry === null) {
|
|
4840
|
-
return null;
|
|
4841
|
-
}
|
|
4842
4688
|
return entry;
|
|
4843
4689
|
});
|
|
4844
4690
|
};
|
|
@@ -4846,9 +4692,6 @@ const serializeAws_restJson1__listOfCriteriaForJob = (input, context) => {
|
|
|
4846
4692
|
return input
|
|
4847
4693
|
.filter((e) => e != null)
|
|
4848
4694
|
.map((entry) => {
|
|
4849
|
-
if (entry === null) {
|
|
4850
|
-
return null;
|
|
4851
|
-
}
|
|
4852
4695
|
return serializeAws_restJson1CriteriaForJob(entry, context);
|
|
4853
4696
|
});
|
|
4854
4697
|
};
|
|
@@ -4856,9 +4699,6 @@ const serializeAws_restJson1__listOfFindingType = (input, context) => {
|
|
|
4856
4699
|
return input
|
|
4857
4700
|
.filter((e) => e != null)
|
|
4858
4701
|
.map((entry) => {
|
|
4859
|
-
if (entry === null) {
|
|
4860
|
-
return null;
|
|
4861
|
-
}
|
|
4862
4702
|
return entry;
|
|
4863
4703
|
});
|
|
4864
4704
|
};
|
|
@@ -4866,9 +4706,6 @@ const serializeAws_restJson1__listOfJobScopeTerm = (input, context) => {
|
|
|
4866
4706
|
return input
|
|
4867
4707
|
.filter((e) => e != null)
|
|
4868
4708
|
.map((entry) => {
|
|
4869
|
-
if (entry === null) {
|
|
4870
|
-
return null;
|
|
4871
|
-
}
|
|
4872
4709
|
return serializeAws_restJson1JobScopeTerm(entry, context);
|
|
4873
4710
|
});
|
|
4874
4711
|
};
|
|
@@ -4876,9 +4713,6 @@ const serializeAws_restJson1__listOfListJobsFilterTerm = (input, context) => {
|
|
|
4876
4713
|
return input
|
|
4877
4714
|
.filter((e) => e != null)
|
|
4878
4715
|
.map((entry) => {
|
|
4879
|
-
if (entry === null) {
|
|
4880
|
-
return null;
|
|
4881
|
-
}
|
|
4882
4716
|
return serializeAws_restJson1ListJobsFilterTerm(entry, context);
|
|
4883
4717
|
});
|
|
4884
4718
|
};
|
|
@@ -4886,9 +4720,6 @@ const serializeAws_restJson1__listOfS3BucketDefinitionForJob = (input, context)
|
|
|
4886
4720
|
return input
|
|
4887
4721
|
.filter((e) => e != null)
|
|
4888
4722
|
.map((entry) => {
|
|
4889
|
-
if (entry === null) {
|
|
4890
|
-
return null;
|
|
4891
|
-
}
|
|
4892
4723
|
return serializeAws_restJson1S3BucketDefinitionForJob(entry, context);
|
|
4893
4724
|
});
|
|
4894
4725
|
};
|
|
@@ -4896,9 +4727,6 @@ const serializeAws_restJson1__listOfSearchResourcesCriteria = (input, context) =
|
|
|
4896
4727
|
return input
|
|
4897
4728
|
.filter((e) => e != null)
|
|
4898
4729
|
.map((entry) => {
|
|
4899
|
-
if (entry === null) {
|
|
4900
|
-
return null;
|
|
4901
|
-
}
|
|
4902
4730
|
return serializeAws_restJson1SearchResourcesCriteria(entry, context);
|
|
4903
4731
|
});
|
|
4904
4732
|
};
|
|
@@ -4906,9 +4734,6 @@ const serializeAws_restJson1__listOfSearchResourcesTagCriterionPair = (input, co
|
|
|
4906
4734
|
return input
|
|
4907
4735
|
.filter((e) => e != null)
|
|
4908
4736
|
.map((entry) => {
|
|
4909
|
-
if (entry === null) {
|
|
4910
|
-
return null;
|
|
4911
|
-
}
|
|
4912
4737
|
return serializeAws_restJson1SearchResourcesTagCriterionPair(entry, context);
|
|
4913
4738
|
});
|
|
4914
4739
|
};
|
|
@@ -4916,9 +4741,6 @@ const serializeAws_restJson1__listOfTagCriterionPairForJob = (input, context) =>
|
|
|
4916
4741
|
return input
|
|
4917
4742
|
.filter((e) => e != null)
|
|
4918
4743
|
.map((entry) => {
|
|
4919
|
-
if (entry === null) {
|
|
4920
|
-
return null;
|
|
4921
|
-
}
|
|
4922
4744
|
return serializeAws_restJson1TagCriterionPairForJob(entry, context);
|
|
4923
4745
|
});
|
|
4924
4746
|
};
|
|
@@ -4926,9 +4748,6 @@ const serializeAws_restJson1__listOfTagValuePair = (input, context) => {
|
|
|
4926
4748
|
return input
|
|
4927
4749
|
.filter((e) => e != null)
|
|
4928
4750
|
.map((entry) => {
|
|
4929
|
-
if (entry === null) {
|
|
4930
|
-
return null;
|
|
4931
|
-
}
|
|
4932
4751
|
return serializeAws_restJson1TagValuePair(entry, context);
|
|
4933
4752
|
});
|
|
4934
4753
|
};
|
|
@@ -4936,9 +4755,6 @@ const serializeAws_restJson1__listOfUsageStatisticsFilter = (input, context) =>
|
|
|
4936
4755
|
return input
|
|
4937
4756
|
.filter((e) => e != null)
|
|
4938
4757
|
.map((entry) => {
|
|
4939
|
-
if (entry === null) {
|
|
4940
|
-
return null;
|
|
4941
|
-
}
|
|
4942
4758
|
return serializeAws_restJson1UsageStatisticsFilter(entry, context);
|
|
4943
4759
|
});
|
|
4944
4760
|
};
|
|
@@ -5092,6 +4908,12 @@ const serializeAws_restJson1MonthlySchedule = (input, context) => {
|
|
|
5092
4908
|
...(input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }),
|
|
5093
4909
|
};
|
|
5094
4910
|
};
|
|
4911
|
+
const serializeAws_restJson1RevealConfiguration = (input, context) => {
|
|
4912
|
+
return {
|
|
4913
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
4914
|
+
...(input.status != null && { status: input.status }),
|
|
4915
|
+
};
|
|
4916
|
+
};
|
|
5095
4917
|
const serializeAws_restJson1S3BucketCriteriaForJob = (input, context) => {
|
|
5096
4918
|
return {
|
|
5097
4919
|
...(input.excludes != null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) }),
|
|
@@ -5198,9 +5020,6 @@ const serializeAws_restJson1SeverityLevelList = (input, context) => {
|
|
|
5198
5020
|
return input
|
|
5199
5021
|
.filter((e) => e != null)
|
|
5200
5022
|
.map((entry) => {
|
|
5201
|
-
if (entry === null) {
|
|
5202
|
-
return null;
|
|
5203
|
-
}
|
|
5204
5023
|
return serializeAws_restJson1SeverityLevel(entry, context);
|
|
5205
5024
|
});
|
|
5206
5025
|
};
|
|
@@ -5347,6 +5166,17 @@ const deserializeAws_restJson1__listOfCustomDataIdentifierSummary = (output, con
|
|
|
5347
5166
|
});
|
|
5348
5167
|
return retVal;
|
|
5349
5168
|
};
|
|
5169
|
+
const deserializeAws_restJson1__listOfDetectedDataDetails = (output, context) => {
|
|
5170
|
+
const retVal = (output || [])
|
|
5171
|
+
.filter((e) => e != null)
|
|
5172
|
+
.map((entry) => {
|
|
5173
|
+
if (entry === null) {
|
|
5174
|
+
return null;
|
|
5175
|
+
}
|
|
5176
|
+
return deserializeAws_restJson1DetectedDataDetails(entry, context);
|
|
5177
|
+
});
|
|
5178
|
+
return retVal;
|
|
5179
|
+
};
|
|
5350
5180
|
const deserializeAws_restJson1__listOfFinding = (output, context) => {
|
|
5351
5181
|
const retVal = (output || [])
|
|
5352
5182
|
.filter((e) => e != null)
|
|
@@ -5490,6 +5320,17 @@ const deserializeAws_restJson1__listOfTagValuePair = (output, context) => {
|
|
|
5490
5320
|
});
|
|
5491
5321
|
return retVal;
|
|
5492
5322
|
};
|
|
5323
|
+
const deserializeAws_restJson1__listOfUnavailabilityReasonCode = (output, context) => {
|
|
5324
|
+
const retVal = (output || [])
|
|
5325
|
+
.filter((e) => e != null)
|
|
5326
|
+
.map((entry) => {
|
|
5327
|
+
if (entry === null) {
|
|
5328
|
+
return null;
|
|
5329
|
+
}
|
|
5330
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5331
|
+
});
|
|
5332
|
+
return retVal;
|
|
5333
|
+
};
|
|
5493
5334
|
const deserializeAws_restJson1__listOfUnprocessedAccount = (output, context) => {
|
|
5494
5335
|
const retVal = (output || [])
|
|
5495
5336
|
.filter((e) => e != null)
|
|
@@ -5856,6 +5697,11 @@ const deserializeAws_restJson1DefaultDetections = (output, context) => {
|
|
|
5856
5697
|
});
|
|
5857
5698
|
return retVal;
|
|
5858
5699
|
};
|
|
5700
|
+
const deserializeAws_restJson1DetectedDataDetails = (output, context) => {
|
|
5701
|
+
return {
|
|
5702
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
5703
|
+
};
|
|
5704
|
+
};
|
|
5859
5705
|
const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
5860
5706
|
return {
|
|
5861
5707
|
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
@@ -6213,6 +6059,12 @@ const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
|
6213
6059
|
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
6214
6060
|
};
|
|
6215
6061
|
};
|
|
6062
|
+
const deserializeAws_restJson1RevealConfiguration = (output, context) => {
|
|
6063
|
+
return {
|
|
6064
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
6065
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
6066
|
+
};
|
|
6067
|
+
};
|
|
6216
6068
|
const deserializeAws_restJson1S3Bucket = (output, context) => {
|
|
6217
6069
|
return {
|
|
6218
6070
|
allowsUnencryptedObjectUploads: (0, smithy_client_1.expectString)(output.allowsUnencryptedObjectUploads),
|
|
@@ -6313,6 +6165,17 @@ const deserializeAws_restJson1SensitiveDataItem = (output, context) => {
|
|
|
6313
6165
|
totalCount: (0, smithy_client_1.expectLong)(output.totalCount),
|
|
6314
6166
|
};
|
|
6315
6167
|
};
|
|
6168
|
+
const deserializeAws_restJson1SensitiveDataOccurrences = (output, context) => {
|
|
6169
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6170
|
+
if (value === null) {
|
|
6171
|
+
return acc;
|
|
6172
|
+
}
|
|
6173
|
+
return {
|
|
6174
|
+
...acc,
|
|
6175
|
+
[key]: deserializeAws_restJson1__listOfDetectedDataDetails(value, context),
|
|
6176
|
+
};
|
|
6177
|
+
}, {});
|
|
6178
|
+
};
|
|
6316
6179
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
6317
6180
|
return {
|
|
6318
6181
|
encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|