@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,9 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { Macie2ServiceException as __BaseException } from "../models/Macie2ServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnprocessableEntityException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_restJson1AcceptInvitationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
9
|
return __generator(this, function (_c) {
|
|
@@ -242,7 +242,7 @@ export var serializeAws_restJson1DeclineInvitationsCommand = function (input, co
|
|
|
242
242
|
});
|
|
243
243
|
}); };
|
|
244
244
|
export var serializeAws_restJson1DeleteCustomDataIdentifierCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
245
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
245
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
246
246
|
return __generator(this, function (_c) {
|
|
247
247
|
switch (_c.label) {
|
|
248
248
|
case 0: return [4, context.endpoint()];
|
|
@@ -250,16 +250,7 @@ export var serializeAws_restJson1DeleteCustomDataIdentifierCommand = function (i
|
|
|
250
250
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
251
251
|
headers = {};
|
|
252
252
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-data-identifiers/{id}";
|
|
253
|
-
|
|
254
|
-
labelValue = input.id;
|
|
255
|
-
if (labelValue.length <= 0) {
|
|
256
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
257
|
-
}
|
|
258
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
262
|
-
}
|
|
253
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
263
254
|
return [2, new __HttpRequest({
|
|
264
255
|
protocol: protocol,
|
|
265
256
|
hostname: hostname,
|
|
@@ -273,7 +264,7 @@ export var serializeAws_restJson1DeleteCustomDataIdentifierCommand = function (i
|
|
|
273
264
|
});
|
|
274
265
|
}); };
|
|
275
266
|
export var serializeAws_restJson1DeleteFindingsFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
276
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
267
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
277
268
|
return __generator(this, function (_c) {
|
|
278
269
|
switch (_c.label) {
|
|
279
270
|
case 0: return [4, context.endpoint()];
|
|
@@ -281,16 +272,7 @@ export var serializeAws_restJson1DeleteFindingsFilterCommand = function (input,
|
|
|
281
272
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
282
273
|
headers = {};
|
|
283
274
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingsfilters/{id}";
|
|
284
|
-
|
|
285
|
-
labelValue = input.id;
|
|
286
|
-
if (labelValue.length <= 0) {
|
|
287
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
288
|
-
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
293
|
-
}
|
|
275
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
294
276
|
return [2, new __HttpRequest({
|
|
295
277
|
protocol: protocol,
|
|
296
278
|
hostname: hostname,
|
|
@@ -328,7 +310,7 @@ export var serializeAws_restJson1DeleteInvitationsCommand = function (input, con
|
|
|
328
310
|
});
|
|
329
311
|
}); };
|
|
330
312
|
export var serializeAws_restJson1DeleteMemberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
313
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
332
314
|
return __generator(this, function (_c) {
|
|
333
315
|
switch (_c.label) {
|
|
334
316
|
case 0: return [4, context.endpoint()];
|
|
@@ -336,16 +318,7 @@ export var serializeAws_restJson1DeleteMemberCommand = function (input, context)
|
|
|
336
318
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
337
319
|
headers = {};
|
|
338
320
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/{id}";
|
|
339
|
-
|
|
340
|
-
labelValue = input.id;
|
|
341
|
-
if (labelValue.length <= 0) {
|
|
342
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
343
|
-
}
|
|
344
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
348
|
-
}
|
|
321
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
349
322
|
return [2, new __HttpRequest({
|
|
350
323
|
protocol: protocol,
|
|
351
324
|
hostname: hostname,
|
|
@@ -385,7 +358,7 @@ export var serializeAws_restJson1DescribeBucketsCommand = function (input, conte
|
|
|
385
358
|
});
|
|
386
359
|
}); };
|
|
387
360
|
export var serializeAws_restJson1DescribeClassificationJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
388
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
361
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
389
362
|
return __generator(this, function (_c) {
|
|
390
363
|
switch (_c.label) {
|
|
391
364
|
case 0: return [4, context.endpoint()];
|
|
@@ -393,16 +366,7 @@ export var serializeAws_restJson1DescribeClassificationJobCommand = function (in
|
|
|
393
366
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
394
367
|
headers = {};
|
|
395
368
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
396
|
-
|
|
397
|
-
labelValue = input.jobId;
|
|
398
|
-
if (labelValue.length <= 0) {
|
|
399
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
400
|
-
}
|
|
401
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
402
|
-
}
|
|
403
|
-
else {
|
|
404
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
405
|
-
}
|
|
369
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
406
370
|
return [2, new __HttpRequest({
|
|
407
371
|
protocol: protocol,
|
|
408
372
|
hostname: hostname,
|
|
@@ -472,7 +436,9 @@ export var serializeAws_restJson1DisableOrganizationAdminAccountCommand = functi
|
|
|
472
436
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
473
437
|
headers = {};
|
|
474
438
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/admin";
|
|
475
|
-
query =
|
|
439
|
+
query = map({
|
|
440
|
+
adminAccountId: [, input.adminAccountId],
|
|
441
|
+
});
|
|
476
442
|
return [2, new __HttpRequest({
|
|
477
443
|
protocol: protocol,
|
|
478
444
|
hostname: hostname,
|
|
@@ -535,7 +501,7 @@ export var serializeAws_restJson1DisassociateFromMasterAccountCommand = function
|
|
|
535
501
|
});
|
|
536
502
|
}); };
|
|
537
503
|
export var serializeAws_restJson1DisassociateMemberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
538
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
504
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
539
505
|
return __generator(this, function (_c) {
|
|
540
506
|
switch (_c.label) {
|
|
541
507
|
case 0: return [4, context.endpoint()];
|
|
@@ -543,16 +509,7 @@ export var serializeAws_restJson1DisassociateMemberCommand = function (input, co
|
|
|
543
509
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
544
510
|
headers = {};
|
|
545
511
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/disassociate/{id}";
|
|
546
|
-
|
|
547
|
-
labelValue = input.id;
|
|
548
|
-
if (labelValue.length <= 0) {
|
|
549
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
550
|
-
}
|
|
551
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
555
|
-
}
|
|
512
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
556
513
|
return [2, new __HttpRequest({
|
|
557
514
|
protocol: protocol,
|
|
558
515
|
hostname: hostname,
|
|
@@ -688,7 +645,7 @@ export var serializeAws_restJson1GetClassificationExportConfigurationCommand = f
|
|
|
688
645
|
});
|
|
689
646
|
}); };
|
|
690
647
|
export var serializeAws_restJson1GetCustomDataIdentifierCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
691
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
648
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
692
649
|
return __generator(this, function (_c) {
|
|
693
650
|
switch (_c.label) {
|
|
694
651
|
case 0: return [4, context.endpoint()];
|
|
@@ -696,16 +653,7 @@ export var serializeAws_restJson1GetCustomDataIdentifierCommand = function (inpu
|
|
|
696
653
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
697
654
|
headers = {};
|
|
698
655
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-data-identifiers/{id}";
|
|
699
|
-
|
|
700
|
-
labelValue = input.id;
|
|
701
|
-
if (labelValue.length <= 0) {
|
|
702
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
703
|
-
}
|
|
704
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
705
|
-
}
|
|
706
|
-
else {
|
|
707
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
708
|
-
}
|
|
656
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
709
657
|
return [2, new __HttpRequest({
|
|
710
658
|
protocol: protocol,
|
|
711
659
|
hostname: hostname,
|
|
@@ -745,7 +693,7 @@ export var serializeAws_restJson1GetFindingsCommand = function (input, context)
|
|
|
745
693
|
});
|
|
746
694
|
}); };
|
|
747
695
|
export var serializeAws_restJson1GetFindingsFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
748
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
696
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
749
697
|
return __generator(this, function (_c) {
|
|
750
698
|
switch (_c.label) {
|
|
751
699
|
case 0: return [4, context.endpoint()];
|
|
@@ -753,16 +701,7 @@ export var serializeAws_restJson1GetFindingsFilterCommand = function (input, con
|
|
|
753
701
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
754
702
|
headers = {};
|
|
755
703
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingsfilters/{id}";
|
|
756
|
-
|
|
757
|
-
labelValue = input.id;
|
|
758
|
-
if (labelValue.length <= 0) {
|
|
759
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
760
|
-
}
|
|
761
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
762
|
-
}
|
|
763
|
-
else {
|
|
764
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
765
|
-
}
|
|
704
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
766
705
|
return [2, new __HttpRequest({
|
|
767
706
|
protocol: protocol,
|
|
768
707
|
hostname: hostname,
|
|
@@ -900,7 +839,7 @@ export var serializeAws_restJson1GetMasterAccountCommand = function (input, cont
|
|
|
900
839
|
});
|
|
901
840
|
}); };
|
|
902
841
|
export var serializeAws_restJson1GetMemberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
903
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
842
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
904
843
|
return __generator(this, function (_c) {
|
|
905
844
|
switch (_c.label) {
|
|
906
845
|
case 0: return [4, context.endpoint()];
|
|
@@ -908,16 +847,75 @@ export var serializeAws_restJson1GetMemberCommand = function (input, context) {
|
|
|
908
847
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
909
848
|
headers = {};
|
|
910
849
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members/{id}";
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
850
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
851
|
+
return [2, new __HttpRequest({
|
|
852
|
+
protocol: protocol,
|
|
853
|
+
hostname: hostname,
|
|
854
|
+
port: port,
|
|
855
|
+
method: "GET",
|
|
856
|
+
headers: headers,
|
|
857
|
+
path: resolvedPath,
|
|
858
|
+
body: body,
|
|
859
|
+
})];
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
}); };
|
|
863
|
+
export var serializeAws_restJson1GetRevealConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
864
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
865
|
+
return __generator(this, function (_c) {
|
|
866
|
+
switch (_c.label) {
|
|
867
|
+
case 0: return [4, context.endpoint()];
|
|
868
|
+
case 1:
|
|
869
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
870
|
+
headers = {
|
|
871
|
+
"content-type": "application/json",
|
|
872
|
+
};
|
|
873
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reveal-configuration";
|
|
874
|
+
body = "";
|
|
875
|
+
return [2, new __HttpRequest({
|
|
876
|
+
protocol: protocol,
|
|
877
|
+
hostname: hostname,
|
|
878
|
+
port: port,
|
|
879
|
+
method: "GET",
|
|
880
|
+
headers: headers,
|
|
881
|
+
path: resolvedPath,
|
|
882
|
+
body: body,
|
|
883
|
+
})];
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
}); };
|
|
887
|
+
export var serializeAws_restJson1GetSensitiveDataOccurrencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
888
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
889
|
+
return __generator(this, function (_c) {
|
|
890
|
+
switch (_c.label) {
|
|
891
|
+
case 0: return [4, context.endpoint()];
|
|
892
|
+
case 1:
|
|
893
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
894
|
+
headers = {};
|
|
895
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/{findingId}/reveal";
|
|
896
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "findingId", function () { return input.findingId; }, "{findingId}", false);
|
|
897
|
+
return [2, new __HttpRequest({
|
|
898
|
+
protocol: protocol,
|
|
899
|
+
hostname: hostname,
|
|
900
|
+
port: port,
|
|
901
|
+
method: "GET",
|
|
902
|
+
headers: headers,
|
|
903
|
+
path: resolvedPath,
|
|
904
|
+
body: body,
|
|
905
|
+
})];
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
}); };
|
|
909
|
+
export var serializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
910
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
911
|
+
return __generator(this, function (_c) {
|
|
912
|
+
switch (_c.label) {
|
|
913
|
+
case 0: return [4, context.endpoint()];
|
|
914
|
+
case 1:
|
|
915
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
916
|
+
headers = {};
|
|
917
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findings/{findingId}/reveal/availability";
|
|
918
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "findingId", function () { return input.findingId; }, "{findingId}", false);
|
|
921
919
|
return [2, new __HttpRequest({
|
|
922
920
|
protocol: protocol,
|
|
923
921
|
hostname: hostname,
|
|
@@ -965,7 +963,9 @@ export var serializeAws_restJson1GetUsageTotalsCommand = function (input, contex
|
|
|
965
963
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
966
964
|
headers = {};
|
|
967
965
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/usage";
|
|
968
|
-
query =
|
|
966
|
+
query = map({
|
|
967
|
+
timeRange: [, input.timeRange],
|
|
968
|
+
});
|
|
969
969
|
return [2, new __HttpRequest({
|
|
970
970
|
protocol: protocol,
|
|
971
971
|
hostname: hostname,
|
|
@@ -1068,7 +1068,10 @@ export var serializeAws_restJson1ListFindingsFiltersCommand = function (input, c
|
|
|
1068
1068
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1069
1069
|
headers = {};
|
|
1070
1070
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingsfilters";
|
|
1071
|
-
query =
|
|
1071
|
+
query = map({
|
|
1072
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
1073
|
+
nextToken: [, input.nextToken],
|
|
1074
|
+
});
|
|
1072
1075
|
return [2, new __HttpRequest({
|
|
1073
1076
|
protocol: protocol,
|
|
1074
1077
|
hostname: hostname,
|
|
@@ -1091,7 +1094,10 @@ export var serializeAws_restJson1ListInvitationsCommand = function (input, conte
|
|
|
1091
1094
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1092
1095
|
headers = {};
|
|
1093
1096
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations";
|
|
1094
|
-
query =
|
|
1097
|
+
query = map({
|
|
1098
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
1099
|
+
nextToken: [, input.nextToken],
|
|
1100
|
+
});
|
|
1095
1101
|
return [2, new __HttpRequest({
|
|
1096
1102
|
protocol: protocol,
|
|
1097
1103
|
hostname: hostname,
|
|
@@ -1138,7 +1144,11 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
1138
1144
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1139
1145
|
headers = {};
|
|
1140
1146
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/members";
|
|
1141
|
-
query =
|
|
1147
|
+
query = map({
|
|
1148
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
1149
|
+
nextToken: [, input.nextToken],
|
|
1150
|
+
onlyAssociated: [, input.onlyAssociated],
|
|
1151
|
+
});
|
|
1142
1152
|
return [2, new __HttpRequest({
|
|
1143
1153
|
protocol: protocol,
|
|
1144
1154
|
hostname: hostname,
|
|
@@ -1161,7 +1171,10 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
|
|
|
1161
1171
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1162
1172
|
headers = {};
|
|
1163
1173
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/admin";
|
|
1164
|
-
query =
|
|
1174
|
+
query = map({
|
|
1175
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
1176
|
+
nextToken: [, input.nextToken],
|
|
1177
|
+
});
|
|
1165
1178
|
return [2, new __HttpRequest({
|
|
1166
1179
|
protocol: protocol,
|
|
1167
1180
|
hostname: hostname,
|
|
@@ -1176,7 +1189,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
|
|
|
1176
1189
|
});
|
|
1177
1190
|
}); };
|
|
1178
1191
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1179
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1192
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1180
1193
|
return __generator(this, function (_c) {
|
|
1181
1194
|
switch (_c.label) {
|
|
1182
1195
|
case 0: return [4, context.endpoint()];
|
|
@@ -1184,16 +1197,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1184
1197
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1185
1198
|
headers = {};
|
|
1186
1199
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1187
|
-
|
|
1188
|
-
labelValue = input.resourceArn;
|
|
1189
|
-
if (labelValue.length <= 0) {
|
|
1190
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1191
|
-
}
|
|
1192
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1193
|
-
}
|
|
1194
|
-
else {
|
|
1195
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1196
|
-
}
|
|
1200
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1197
1201
|
return [2, new __HttpRequest({
|
|
1198
1202
|
protocol: protocol,
|
|
1199
1203
|
hostname: hostname,
|
|
@@ -1288,7 +1292,7 @@ export var serializeAws_restJson1SearchResourcesCommand = function (input, conte
|
|
|
1288
1292
|
});
|
|
1289
1293
|
}); };
|
|
1290
1294
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1291
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1295
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1292
1296
|
return __generator(this, function (_c) {
|
|
1293
1297
|
switch (_c.label) {
|
|
1294
1298
|
case 0: return [4, context.endpoint()];
|
|
@@ -1298,16 +1302,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1298
1302
|
"content-type": "application/json",
|
|
1299
1303
|
};
|
|
1300
1304
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1301
|
-
|
|
1302
|
-
labelValue = input.resourceArn;
|
|
1303
|
-
if (labelValue.length <= 0) {
|
|
1304
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1305
|
-
}
|
|
1306
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1307
|
-
}
|
|
1308
|
-
else {
|
|
1309
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1310
|
-
}
|
|
1305
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1311
1306
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1312
1307
|
return [2, new __HttpRequest({
|
|
1313
1308
|
protocol: protocol,
|
|
@@ -1348,7 +1343,7 @@ export var serializeAws_restJson1TestCustomDataIdentifierCommand = function (inp
|
|
|
1348
1343
|
});
|
|
1349
1344
|
}); };
|
|
1350
1345
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1351
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1346
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1352
1347
|
return __generator(this, function (_c) {
|
|
1353
1348
|
switch (_c.label) {
|
|
1354
1349
|
case 0: return [4, context.endpoint()];
|
|
@@ -1356,17 +1351,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1356
1351
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1357
1352
|
headers = {};
|
|
1358
1353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1364
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1365
|
-
}
|
|
1366
|
-
else {
|
|
1367
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1368
|
-
}
|
|
1369
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
1354
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1355
|
+
query = map({
|
|
1356
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
1357
|
+
});
|
|
1370
1358
|
return [2, new __HttpRequest({
|
|
1371
1359
|
protocol: protocol,
|
|
1372
1360
|
hostname: hostname,
|
|
@@ -1381,7 +1369,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1381
1369
|
});
|
|
1382
1370
|
}); };
|
|
1383
1371
|
export var serializeAws_restJson1UpdateClassificationJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1384
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1372
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1385
1373
|
return __generator(this, function (_c) {
|
|
1386
1374
|
switch (_c.label) {
|
|
1387
1375
|
case 0: return [4, context.endpoint()];
|
|
@@ -1391,16 +1379,7 @@ export var serializeAws_restJson1UpdateClassificationJobCommand = function (inpu
|
|
|
1391
1379
|
"content-type": "application/json",
|
|
1392
1380
|
};
|
|
1393
1381
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
1394
|
-
|
|
1395
|
-
labelValue = input.jobId;
|
|
1396
|
-
if (labelValue.length <= 0) {
|
|
1397
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
1398
|
-
}
|
|
1399
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
1400
|
-
}
|
|
1401
|
-
else {
|
|
1402
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
1403
|
-
}
|
|
1382
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
1404
1383
|
body = JSON.stringify(__assign({}, (input.jobStatus != null && { jobStatus: input.jobStatus })));
|
|
1405
1384
|
return [2, new __HttpRequest({
|
|
1406
1385
|
protocol: protocol,
|
|
@@ -1415,7 +1394,7 @@ export var serializeAws_restJson1UpdateClassificationJobCommand = function (inpu
|
|
|
1415
1394
|
});
|
|
1416
1395
|
}); };
|
|
1417
1396
|
export var serializeAws_restJson1UpdateFindingsFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1418
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1397
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1419
1398
|
var _c;
|
|
1420
1399
|
return __generator(this, function (_d) {
|
|
1421
1400
|
switch (_d.label) {
|
|
@@ -1426,16 +1405,7 @@ export var serializeAws_restJson1UpdateFindingsFilterCommand = function (input,
|
|
|
1426
1405
|
"content-type": "application/json",
|
|
1427
1406
|
};
|
|
1428
1407
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/findingsfilters/{id}";
|
|
1429
|
-
|
|
1430
|
-
labelValue = input.id;
|
|
1431
|
-
if (labelValue.length <= 0) {
|
|
1432
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1433
|
-
}
|
|
1434
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
1435
|
-
}
|
|
1436
|
-
else {
|
|
1437
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
1438
|
-
}
|
|
1408
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
1439
1409
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.findingCriteria != null && {
|
|
1440
1410
|
findingCriteria: serializeAws_restJson1FindingCriteria(input.findingCriteria, context),
|
|
1441
1411
|
})), (input.name != null && { name: input.name })), (input.position != null && { position: input.position })));
|
|
@@ -1476,7 +1446,7 @@ export var serializeAws_restJson1UpdateMacieSessionCommand = function (input, co
|
|
|
1476
1446
|
});
|
|
1477
1447
|
}); };
|
|
1478
1448
|
export var serializeAws_restJson1UpdateMemberSessionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1479
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1449
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1480
1450
|
return __generator(this, function (_c) {
|
|
1481
1451
|
switch (_c.label) {
|
|
1482
1452
|
case 0: return [4, context.endpoint()];
|
|
@@ -1486,16 +1456,7 @@ export var serializeAws_restJson1UpdateMemberSessionCommand = function (input, c
|
|
|
1486
1456
|
"content-type": "application/json",
|
|
1487
1457
|
};
|
|
1488
1458
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/macie/members/{id}";
|
|
1489
|
-
|
|
1490
|
-
labelValue = input.id;
|
|
1491
|
-
if (labelValue.length <= 0) {
|
|
1492
|
-
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1493
|
-
}
|
|
1494
|
-
resolvedPath = resolvedPath.replace("{id}", __extendedEncodeURIComponent(labelValue));
|
|
1495
|
-
}
|
|
1496
|
-
else {
|
|
1497
|
-
throw new Error("No value provided for input HTTP label: id.");
|
|
1498
|
-
}
|
|
1459
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
1499
1460
|
body = JSON.stringify(__assign({}, (input.status != null && { status: input.status })));
|
|
1500
1461
|
return [2, new __HttpRequest({
|
|
1501
1462
|
protocol: protocol,
|
|
@@ -1533,6 +1494,32 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
|
|
|
1533
1494
|
}
|
|
1534
1495
|
});
|
|
1535
1496
|
}); };
|
|
1497
|
+
export var serializeAws_restJson1UpdateRevealConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1498
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1499
|
+
return __generator(this, function (_c) {
|
|
1500
|
+
switch (_c.label) {
|
|
1501
|
+
case 0: return [4, context.endpoint()];
|
|
1502
|
+
case 1:
|
|
1503
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1504
|
+
headers = {
|
|
1505
|
+
"content-type": "application/json",
|
|
1506
|
+
};
|
|
1507
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reveal-configuration";
|
|
1508
|
+
body = JSON.stringify(__assign({}, (input.configuration != null && {
|
|
1509
|
+
configuration: serializeAws_restJson1RevealConfiguration(input.configuration, context),
|
|
1510
|
+
})));
|
|
1511
|
+
return [2, new __HttpRequest({
|
|
1512
|
+
protocol: protocol,
|
|
1513
|
+
hostname: hostname,
|
|
1514
|
+
port: port,
|
|
1515
|
+
method: "PUT",
|
|
1516
|
+
headers: headers,
|
|
1517
|
+
path: resolvedPath,
|
|
1518
|
+
body: body,
|
|
1519
|
+
})];
|
|
1520
|
+
}
|
|
1521
|
+
});
|
|
1522
|
+
}); };
|
|
1536
1523
|
export var deserializeAws_restJson1AcceptInvitationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1537
1524
|
var contents;
|
|
1538
1525
|
return __generator(this, function (_a) {
|
|
@@ -1541,18 +1528,18 @@ export var deserializeAws_restJson1AcceptInvitationCommand = function (output, c
|
|
|
1541
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1542
1529
|
return [2, deserializeAws_restJson1AcceptInvitationCommandError(output, context)];
|
|
1543
1530
|
}
|
|
1544
|
-
contents = {
|
|
1531
|
+
contents = map({
|
|
1545
1532
|
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1533
|
+
});
|
|
1547
1534
|
return [4, collectBody(output.body, context)];
|
|
1548
1535
|
case 1:
|
|
1549
1536
|
_a.sent();
|
|
1550
|
-
return [2,
|
|
1537
|
+
return [2, contents];
|
|
1551
1538
|
}
|
|
1552
1539
|
});
|
|
1553
1540
|
}); };
|
|
1554
1541
|
var deserializeAws_restJson1AcceptInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1555
|
-
var parsedOutput, _a,
|
|
1542
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1556
1543
|
var _c;
|
|
1557
1544
|
return __generator(this, function (_d) {
|
|
1558
1545
|
switch (_d.label) {
|
|
@@ -1597,14 +1584,14 @@ var deserializeAws_restJson1AcceptInvitationCommandError = function (output, con
|
|
|
1597
1584
|
case 15: throw _d.sent();
|
|
1598
1585
|
case 16:
|
|
1599
1586
|
parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
$metadata: $metadata,
|
|
1587
|
+
throwDefaultError({
|
|
1588
|
+
output: output,
|
|
1589
|
+
parsedBody: parsedBody,
|
|
1590
|
+
exceptionCtor: __BaseException,
|
|
1591
|
+
errorCode: errorCode,
|
|
1606
1592
|
});
|
|
1607
|
-
|
|
1593
|
+
_d.label = 17;
|
|
1594
|
+
case 17: return [2];
|
|
1608
1595
|
}
|
|
1609
1596
|
});
|
|
1610
1597
|
}); };
|
|
@@ -1616,28 +1603,26 @@ export var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = functi
|
|
|
1616
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1617
1604
|
return [2, deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError(output, context)];
|
|
1618
1605
|
}
|
|
1619
|
-
contents = {
|
|
1606
|
+
contents = map({
|
|
1620
1607
|
$metadata: deserializeMetadata(output),
|
|
1621
|
-
|
|
1622
|
-
notFoundIdentifierIds: undefined,
|
|
1623
|
-
};
|
|
1608
|
+
});
|
|
1624
1609
|
_a = __expectNonNull;
|
|
1625
1610
|
_b = __expectObject;
|
|
1626
1611
|
return [4, parseBody(output.body, context)];
|
|
1627
1612
|
case 1:
|
|
1628
1613
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1629
|
-
if (data.customDataIdentifiers
|
|
1614
|
+
if (data.customDataIdentifiers != null) {
|
|
1630
1615
|
contents.customDataIdentifiers = deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary(data.customDataIdentifiers, context);
|
|
1631
1616
|
}
|
|
1632
|
-
if (data.notFoundIdentifierIds
|
|
1617
|
+
if (data.notFoundIdentifierIds != null) {
|
|
1633
1618
|
contents.notFoundIdentifierIds = deserializeAws_restJson1__listOf__string(data.notFoundIdentifierIds, context);
|
|
1634
1619
|
}
|
|
1635
|
-
return [2,
|
|
1620
|
+
return [2, contents];
|
|
1636
1621
|
}
|
|
1637
1622
|
});
|
|
1638
1623
|
}); };
|
|
1639
1624
|
var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1640
|
-
var parsedOutput, _a,
|
|
1625
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1641
1626
|
var _c;
|
|
1642
1627
|
return __generator(this, function (_d) {
|
|
1643
1628
|
switch (_d.label) {
|
|
@@ -1682,14 +1667,14 @@ var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = function
|
|
|
1682
1667
|
case 15: throw _d.sent();
|
|
1683
1668
|
case 16:
|
|
1684
1669
|
parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
$metadata: $metadata,
|
|
1670
|
+
throwDefaultError({
|
|
1671
|
+
output: output,
|
|
1672
|
+
parsedBody: parsedBody,
|
|
1673
|
+
exceptionCtor: __BaseException,
|
|
1674
|
+
errorCode: errorCode,
|
|
1691
1675
|
});
|
|
1692
|
-
|
|
1676
|
+
_d.label = 17;
|
|
1677
|
+
case 17: return [2];
|
|
1693
1678
|
}
|
|
1694
1679
|
});
|
|
1695
1680
|
}); };
|
|
@@ -1701,28 +1686,26 @@ export var deserializeAws_restJson1CreateClassificationJobCommand = function (ou
|
|
|
1701
1686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
1687
|
return [2, deserializeAws_restJson1CreateClassificationJobCommandError(output, context)];
|
|
1703
1688
|
}
|
|
1704
|
-
contents = {
|
|
1689
|
+
contents = map({
|
|
1705
1690
|
$metadata: deserializeMetadata(output),
|
|
1706
|
-
|
|
1707
|
-
jobId: undefined,
|
|
1708
|
-
};
|
|
1691
|
+
});
|
|
1709
1692
|
_a = __expectNonNull;
|
|
1710
1693
|
_b = __expectObject;
|
|
1711
1694
|
return [4, parseBody(output.body, context)];
|
|
1712
1695
|
case 1:
|
|
1713
1696
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1714
|
-
if (data.jobArn
|
|
1697
|
+
if (data.jobArn != null) {
|
|
1715
1698
|
contents.jobArn = __expectString(data.jobArn);
|
|
1716
1699
|
}
|
|
1717
|
-
if (data.jobId
|
|
1700
|
+
if (data.jobId != null) {
|
|
1718
1701
|
contents.jobId = __expectString(data.jobId);
|
|
1719
1702
|
}
|
|
1720
|
-
return [2,
|
|
1703
|
+
return [2, contents];
|
|
1721
1704
|
}
|
|
1722
1705
|
});
|
|
1723
1706
|
}); };
|
|
1724
1707
|
var deserializeAws_restJson1CreateClassificationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1725
|
-
var parsedOutput, _a,
|
|
1708
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1726
1709
|
var _c;
|
|
1727
1710
|
return __generator(this, function (_d) {
|
|
1728
1711
|
switch (_d.label) {
|
|
@@ -1767,14 +1750,14 @@ var deserializeAws_restJson1CreateClassificationJobCommandError = function (outp
|
|
|
1767
1750
|
case 15: throw _d.sent();
|
|
1768
1751
|
case 16:
|
|
1769
1752
|
parsedBody = parsedOutput.body;
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
$metadata: $metadata,
|
|
1753
|
+
throwDefaultError({
|
|
1754
|
+
output: output,
|
|
1755
|
+
parsedBody: parsedBody,
|
|
1756
|
+
exceptionCtor: __BaseException,
|
|
1757
|
+
errorCode: errorCode,
|
|
1776
1758
|
});
|
|
1777
|
-
|
|
1759
|
+
_d.label = 17;
|
|
1760
|
+
case 17: return [2];
|
|
1778
1761
|
}
|
|
1779
1762
|
});
|
|
1780
1763
|
}); };
|
|
@@ -1786,24 +1769,23 @@ export var deserializeAws_restJson1CreateCustomDataIdentifierCommand = function
|
|
|
1786
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
1770
|
return [2, deserializeAws_restJson1CreateCustomDataIdentifierCommandError(output, context)];
|
|
1788
1771
|
}
|
|
1789
|
-
contents = {
|
|
1772
|
+
contents = map({
|
|
1790
1773
|
$metadata: deserializeMetadata(output),
|
|
1791
|
-
|
|
1792
|
-
};
|
|
1774
|
+
});
|
|
1793
1775
|
_a = __expectNonNull;
|
|
1794
1776
|
_b = __expectObject;
|
|
1795
1777
|
return [4, parseBody(output.body, context)];
|
|
1796
1778
|
case 1:
|
|
1797
1779
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1798
|
-
if (data.customDataIdentifierId
|
|
1780
|
+
if (data.customDataIdentifierId != null) {
|
|
1799
1781
|
contents.customDataIdentifierId = __expectString(data.customDataIdentifierId);
|
|
1800
1782
|
}
|
|
1801
|
-
return [2,
|
|
1783
|
+
return [2, contents];
|
|
1802
1784
|
}
|
|
1803
1785
|
});
|
|
1804
1786
|
}); };
|
|
1805
1787
|
var deserializeAws_restJson1CreateCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1806
|
-
var parsedOutput, _a,
|
|
1788
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1807
1789
|
var _c;
|
|
1808
1790
|
return __generator(this, function (_d) {
|
|
1809
1791
|
switch (_d.label) {
|
|
@@ -1848,14 +1830,14 @@ var deserializeAws_restJson1CreateCustomDataIdentifierCommandError = function (o
|
|
|
1848
1830
|
case 15: throw _d.sent();
|
|
1849
1831
|
case 16:
|
|
1850
1832
|
parsedBody = parsedOutput.body;
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
$metadata: $metadata,
|
|
1833
|
+
throwDefaultError({
|
|
1834
|
+
output: output,
|
|
1835
|
+
parsedBody: parsedBody,
|
|
1836
|
+
exceptionCtor: __BaseException,
|
|
1837
|
+
errorCode: errorCode,
|
|
1857
1838
|
});
|
|
1858
|
-
|
|
1839
|
+
_d.label = 17;
|
|
1840
|
+
case 17: return [2];
|
|
1859
1841
|
}
|
|
1860
1842
|
});
|
|
1861
1843
|
}); };
|
|
@@ -1867,28 +1849,26 @@ export var deserializeAws_restJson1CreateFindingsFilterCommand = function (outpu
|
|
|
1867
1849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1868
1850
|
return [2, deserializeAws_restJson1CreateFindingsFilterCommandError(output, context)];
|
|
1869
1851
|
}
|
|
1870
|
-
contents = {
|
|
1852
|
+
contents = map({
|
|
1871
1853
|
$metadata: deserializeMetadata(output),
|
|
1872
|
-
|
|
1873
|
-
id: undefined,
|
|
1874
|
-
};
|
|
1854
|
+
});
|
|
1875
1855
|
_a = __expectNonNull;
|
|
1876
1856
|
_b = __expectObject;
|
|
1877
1857
|
return [4, parseBody(output.body, context)];
|
|
1878
1858
|
case 1:
|
|
1879
1859
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1880
|
-
if (data.arn
|
|
1860
|
+
if (data.arn != null) {
|
|
1881
1861
|
contents.arn = __expectString(data.arn);
|
|
1882
1862
|
}
|
|
1883
|
-
if (data.id
|
|
1863
|
+
if (data.id != null) {
|
|
1884
1864
|
contents.id = __expectString(data.id);
|
|
1885
1865
|
}
|
|
1886
|
-
return [2,
|
|
1866
|
+
return [2, contents];
|
|
1887
1867
|
}
|
|
1888
1868
|
});
|
|
1889
1869
|
}); };
|
|
1890
1870
|
var deserializeAws_restJson1CreateFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1891
|
-
var parsedOutput, _a,
|
|
1871
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1892
1872
|
var _c;
|
|
1893
1873
|
return __generator(this, function (_d) {
|
|
1894
1874
|
switch (_d.label) {
|
|
@@ -1933,14 +1913,14 @@ var deserializeAws_restJson1CreateFindingsFilterCommandError = function (output,
|
|
|
1933
1913
|
case 15: throw _d.sent();
|
|
1934
1914
|
case 16:
|
|
1935
1915
|
parsedBody = parsedOutput.body;
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
$metadata: $metadata,
|
|
1916
|
+
throwDefaultError({
|
|
1917
|
+
output: output,
|
|
1918
|
+
parsedBody: parsedBody,
|
|
1919
|
+
exceptionCtor: __BaseException,
|
|
1920
|
+
errorCode: errorCode,
|
|
1942
1921
|
});
|
|
1943
|
-
|
|
1922
|
+
_d.label = 17;
|
|
1923
|
+
case 17: return [2];
|
|
1944
1924
|
}
|
|
1945
1925
|
});
|
|
1946
1926
|
}); };
|
|
@@ -1952,24 +1932,23 @@ export var deserializeAws_restJson1CreateInvitationsCommand = function (output,
|
|
|
1952
1932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1953
1933
|
return [2, deserializeAws_restJson1CreateInvitationsCommandError(output, context)];
|
|
1954
1934
|
}
|
|
1955
|
-
contents = {
|
|
1935
|
+
contents = map({
|
|
1956
1936
|
$metadata: deserializeMetadata(output),
|
|
1957
|
-
|
|
1958
|
-
};
|
|
1937
|
+
});
|
|
1959
1938
|
_a = __expectNonNull;
|
|
1960
1939
|
_b = __expectObject;
|
|
1961
1940
|
return [4, parseBody(output.body, context)];
|
|
1962
1941
|
case 1:
|
|
1963
1942
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1964
|
-
if (data.unprocessedAccounts
|
|
1943
|
+
if (data.unprocessedAccounts != null) {
|
|
1965
1944
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
1966
1945
|
}
|
|
1967
|
-
return [2,
|
|
1946
|
+
return [2, contents];
|
|
1968
1947
|
}
|
|
1969
1948
|
});
|
|
1970
1949
|
}); };
|
|
1971
1950
|
var deserializeAws_restJson1CreateInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1972
|
-
var parsedOutput, _a,
|
|
1951
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1973
1952
|
var _c;
|
|
1974
1953
|
return __generator(this, function (_d) {
|
|
1975
1954
|
switch (_d.label) {
|
|
@@ -2014,14 +1993,14 @@ var deserializeAws_restJson1CreateInvitationsCommandError = function (output, co
|
|
|
2014
1993
|
case 15: throw _d.sent();
|
|
2015
1994
|
case 16:
|
|
2016
1995
|
parsedBody = parsedOutput.body;
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
$metadata: $metadata,
|
|
1996
|
+
throwDefaultError({
|
|
1997
|
+
output: output,
|
|
1998
|
+
parsedBody: parsedBody,
|
|
1999
|
+
exceptionCtor: __BaseException,
|
|
2000
|
+
errorCode: errorCode,
|
|
2023
2001
|
});
|
|
2024
|
-
|
|
2002
|
+
_d.label = 17;
|
|
2003
|
+
case 17: return [2];
|
|
2025
2004
|
}
|
|
2026
2005
|
});
|
|
2027
2006
|
}); };
|
|
@@ -2033,24 +2012,23 @@ export var deserializeAws_restJson1CreateMemberCommand = function (output, conte
|
|
|
2033
2012
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2034
2013
|
return [2, deserializeAws_restJson1CreateMemberCommandError(output, context)];
|
|
2035
2014
|
}
|
|
2036
|
-
contents = {
|
|
2015
|
+
contents = map({
|
|
2037
2016
|
$metadata: deserializeMetadata(output),
|
|
2038
|
-
|
|
2039
|
-
};
|
|
2017
|
+
});
|
|
2040
2018
|
_a = __expectNonNull;
|
|
2041
2019
|
_b = __expectObject;
|
|
2042
2020
|
return [4, parseBody(output.body, context)];
|
|
2043
2021
|
case 1:
|
|
2044
2022
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2045
|
-
if (data.arn
|
|
2023
|
+
if (data.arn != null) {
|
|
2046
2024
|
contents.arn = __expectString(data.arn);
|
|
2047
2025
|
}
|
|
2048
|
-
return [2,
|
|
2026
|
+
return [2, contents];
|
|
2049
2027
|
}
|
|
2050
2028
|
});
|
|
2051
2029
|
}); };
|
|
2052
2030
|
var deserializeAws_restJson1CreateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2053
|
-
var parsedOutput, _a,
|
|
2031
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2054
2032
|
var _c;
|
|
2055
2033
|
return __generator(this, function (_d) {
|
|
2056
2034
|
switch (_d.label) {
|
|
@@ -2095,14 +2073,14 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
2095
2073
|
case 15: throw _d.sent();
|
|
2096
2074
|
case 16:
|
|
2097
2075
|
parsedBody = parsedOutput.body;
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
$metadata: $metadata,
|
|
2076
|
+
throwDefaultError({
|
|
2077
|
+
output: output,
|
|
2078
|
+
parsedBody: parsedBody,
|
|
2079
|
+
exceptionCtor: __BaseException,
|
|
2080
|
+
errorCode: errorCode,
|
|
2104
2081
|
});
|
|
2105
|
-
|
|
2082
|
+
_d.label = 17;
|
|
2083
|
+
case 17: return [2];
|
|
2106
2084
|
}
|
|
2107
2085
|
});
|
|
2108
2086
|
}); };
|
|
@@ -2114,18 +2092,18 @@ export var deserializeAws_restJson1CreateSampleFindingsCommand = function (outpu
|
|
|
2114
2092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2115
2093
|
return [2, deserializeAws_restJson1CreateSampleFindingsCommandError(output, context)];
|
|
2116
2094
|
}
|
|
2117
|
-
contents = {
|
|
2095
|
+
contents = map({
|
|
2118
2096
|
$metadata: deserializeMetadata(output),
|
|
2119
|
-
};
|
|
2097
|
+
});
|
|
2120
2098
|
return [4, collectBody(output.body, context)];
|
|
2121
2099
|
case 1:
|
|
2122
2100
|
_a.sent();
|
|
2123
|
-
return [2,
|
|
2101
|
+
return [2, contents];
|
|
2124
2102
|
}
|
|
2125
2103
|
});
|
|
2126
2104
|
}); };
|
|
2127
2105
|
var deserializeAws_restJson1CreateSampleFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2128
|
-
var parsedOutput, _a,
|
|
2106
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2129
2107
|
var _c;
|
|
2130
2108
|
return __generator(this, function (_d) {
|
|
2131
2109
|
switch (_d.label) {
|
|
@@ -2170,14 +2148,14 @@ var deserializeAws_restJson1CreateSampleFindingsCommandError = function (output,
|
|
|
2170
2148
|
case 15: throw _d.sent();
|
|
2171
2149
|
case 16:
|
|
2172
2150
|
parsedBody = parsedOutput.body;
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
$metadata: $metadata,
|
|
2151
|
+
throwDefaultError({
|
|
2152
|
+
output: output,
|
|
2153
|
+
parsedBody: parsedBody,
|
|
2154
|
+
exceptionCtor: __BaseException,
|
|
2155
|
+
errorCode: errorCode,
|
|
2179
2156
|
});
|
|
2180
|
-
|
|
2157
|
+
_d.label = 17;
|
|
2158
|
+
case 17: return [2];
|
|
2181
2159
|
}
|
|
2182
2160
|
});
|
|
2183
2161
|
}); };
|
|
@@ -2189,24 +2167,23 @@ export var deserializeAws_restJson1DeclineInvitationsCommand = function (output,
|
|
|
2189
2167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2190
2168
|
return [2, deserializeAws_restJson1DeclineInvitationsCommandError(output, context)];
|
|
2191
2169
|
}
|
|
2192
|
-
contents = {
|
|
2170
|
+
contents = map({
|
|
2193
2171
|
$metadata: deserializeMetadata(output),
|
|
2194
|
-
|
|
2195
|
-
};
|
|
2172
|
+
});
|
|
2196
2173
|
_a = __expectNonNull;
|
|
2197
2174
|
_b = __expectObject;
|
|
2198
2175
|
return [4, parseBody(output.body, context)];
|
|
2199
2176
|
case 1:
|
|
2200
2177
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2201
|
-
if (data.unprocessedAccounts
|
|
2178
|
+
if (data.unprocessedAccounts != null) {
|
|
2202
2179
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2203
2180
|
}
|
|
2204
|
-
return [2,
|
|
2181
|
+
return [2, contents];
|
|
2205
2182
|
}
|
|
2206
2183
|
});
|
|
2207
2184
|
}); };
|
|
2208
2185
|
var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2209
|
-
var parsedOutput, _a,
|
|
2186
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2210
2187
|
var _c;
|
|
2211
2188
|
return __generator(this, function (_d) {
|
|
2212
2189
|
switch (_d.label) {
|
|
@@ -2251,14 +2228,14 @@ var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, c
|
|
|
2251
2228
|
case 15: throw _d.sent();
|
|
2252
2229
|
case 16:
|
|
2253
2230
|
parsedBody = parsedOutput.body;
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
$metadata: $metadata,
|
|
2231
|
+
throwDefaultError({
|
|
2232
|
+
output: output,
|
|
2233
|
+
parsedBody: parsedBody,
|
|
2234
|
+
exceptionCtor: __BaseException,
|
|
2235
|
+
errorCode: errorCode,
|
|
2260
2236
|
});
|
|
2261
|
-
|
|
2237
|
+
_d.label = 17;
|
|
2238
|
+
case 17: return [2];
|
|
2262
2239
|
}
|
|
2263
2240
|
});
|
|
2264
2241
|
}); };
|
|
@@ -2270,18 +2247,18 @@ export var deserializeAws_restJson1DeleteCustomDataIdentifierCommand = function
|
|
|
2270
2247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2271
2248
|
return [2, deserializeAws_restJson1DeleteCustomDataIdentifierCommandError(output, context)];
|
|
2272
2249
|
}
|
|
2273
|
-
contents = {
|
|
2250
|
+
contents = map({
|
|
2274
2251
|
$metadata: deserializeMetadata(output),
|
|
2275
|
-
};
|
|
2252
|
+
});
|
|
2276
2253
|
return [4, collectBody(output.body, context)];
|
|
2277
2254
|
case 1:
|
|
2278
2255
|
_a.sent();
|
|
2279
|
-
return [2,
|
|
2256
|
+
return [2, contents];
|
|
2280
2257
|
}
|
|
2281
2258
|
});
|
|
2282
2259
|
}); };
|
|
2283
2260
|
var deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2284
|
-
var parsedOutput, _a,
|
|
2261
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2285
2262
|
var _c;
|
|
2286
2263
|
return __generator(this, function (_d) {
|
|
2287
2264
|
switch (_d.label) {
|
|
@@ -2326,14 +2303,14 @@ var deserializeAws_restJson1DeleteCustomDataIdentifierCommandError = function (o
|
|
|
2326
2303
|
case 15: throw _d.sent();
|
|
2327
2304
|
case 16:
|
|
2328
2305
|
parsedBody = parsedOutput.body;
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
$metadata: $metadata,
|
|
2306
|
+
throwDefaultError({
|
|
2307
|
+
output: output,
|
|
2308
|
+
parsedBody: parsedBody,
|
|
2309
|
+
exceptionCtor: __BaseException,
|
|
2310
|
+
errorCode: errorCode,
|
|
2335
2311
|
});
|
|
2336
|
-
|
|
2312
|
+
_d.label = 17;
|
|
2313
|
+
case 17: return [2];
|
|
2337
2314
|
}
|
|
2338
2315
|
});
|
|
2339
2316
|
}); };
|
|
@@ -2345,18 +2322,18 @@ export var deserializeAws_restJson1DeleteFindingsFilterCommand = function (outpu
|
|
|
2345
2322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2346
2323
|
return [2, deserializeAws_restJson1DeleteFindingsFilterCommandError(output, context)];
|
|
2347
2324
|
}
|
|
2348
|
-
contents = {
|
|
2325
|
+
contents = map({
|
|
2349
2326
|
$metadata: deserializeMetadata(output),
|
|
2350
|
-
};
|
|
2327
|
+
});
|
|
2351
2328
|
return [4, collectBody(output.body, context)];
|
|
2352
2329
|
case 1:
|
|
2353
2330
|
_a.sent();
|
|
2354
|
-
return [2,
|
|
2331
|
+
return [2, contents];
|
|
2355
2332
|
}
|
|
2356
2333
|
});
|
|
2357
2334
|
}); };
|
|
2358
2335
|
var deserializeAws_restJson1DeleteFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2359
|
-
var parsedOutput, _a,
|
|
2336
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2360
2337
|
var _c;
|
|
2361
2338
|
return __generator(this, function (_d) {
|
|
2362
2339
|
switch (_d.label) {
|
|
@@ -2401,14 +2378,14 @@ var deserializeAws_restJson1DeleteFindingsFilterCommandError = function (output,
|
|
|
2401
2378
|
case 15: throw _d.sent();
|
|
2402
2379
|
case 16:
|
|
2403
2380
|
parsedBody = parsedOutput.body;
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
$metadata: $metadata,
|
|
2381
|
+
throwDefaultError({
|
|
2382
|
+
output: output,
|
|
2383
|
+
parsedBody: parsedBody,
|
|
2384
|
+
exceptionCtor: __BaseException,
|
|
2385
|
+
errorCode: errorCode,
|
|
2410
2386
|
});
|
|
2411
|
-
|
|
2387
|
+
_d.label = 17;
|
|
2388
|
+
case 17: return [2];
|
|
2412
2389
|
}
|
|
2413
2390
|
});
|
|
2414
2391
|
}); };
|
|
@@ -2420,24 +2397,23 @@ export var deserializeAws_restJson1DeleteInvitationsCommand = function (output,
|
|
|
2420
2397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2421
2398
|
return [2, deserializeAws_restJson1DeleteInvitationsCommandError(output, context)];
|
|
2422
2399
|
}
|
|
2423
|
-
contents = {
|
|
2400
|
+
contents = map({
|
|
2424
2401
|
$metadata: deserializeMetadata(output),
|
|
2425
|
-
|
|
2426
|
-
};
|
|
2402
|
+
});
|
|
2427
2403
|
_a = __expectNonNull;
|
|
2428
2404
|
_b = __expectObject;
|
|
2429
2405
|
return [4, parseBody(output.body, context)];
|
|
2430
2406
|
case 1:
|
|
2431
2407
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2432
|
-
if (data.unprocessedAccounts
|
|
2408
|
+
if (data.unprocessedAccounts != null) {
|
|
2433
2409
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2434
2410
|
}
|
|
2435
|
-
return [2,
|
|
2411
|
+
return [2, contents];
|
|
2436
2412
|
}
|
|
2437
2413
|
});
|
|
2438
2414
|
}); };
|
|
2439
2415
|
var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2440
|
-
var parsedOutput, _a,
|
|
2416
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2441
2417
|
var _c;
|
|
2442
2418
|
return __generator(this, function (_d) {
|
|
2443
2419
|
switch (_d.label) {
|
|
@@ -2482,14 +2458,14 @@ var deserializeAws_restJson1DeleteInvitationsCommandError = function (output, co
|
|
|
2482
2458
|
case 15: throw _d.sent();
|
|
2483
2459
|
case 16:
|
|
2484
2460
|
parsedBody = parsedOutput.body;
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
$metadata: $metadata,
|
|
2461
|
+
throwDefaultError({
|
|
2462
|
+
output: output,
|
|
2463
|
+
parsedBody: parsedBody,
|
|
2464
|
+
exceptionCtor: __BaseException,
|
|
2465
|
+
errorCode: errorCode,
|
|
2491
2466
|
});
|
|
2492
|
-
|
|
2467
|
+
_d.label = 17;
|
|
2468
|
+
case 17: return [2];
|
|
2493
2469
|
}
|
|
2494
2470
|
});
|
|
2495
2471
|
}); };
|
|
@@ -2501,18 +2477,18 @@ export var deserializeAws_restJson1DeleteMemberCommand = function (output, conte
|
|
|
2501
2477
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
2478
|
return [2, deserializeAws_restJson1DeleteMemberCommandError(output, context)];
|
|
2503
2479
|
}
|
|
2504
|
-
contents = {
|
|
2480
|
+
contents = map({
|
|
2505
2481
|
$metadata: deserializeMetadata(output),
|
|
2506
|
-
};
|
|
2482
|
+
});
|
|
2507
2483
|
return [4, collectBody(output.body, context)];
|
|
2508
2484
|
case 1:
|
|
2509
2485
|
_a.sent();
|
|
2510
|
-
return [2,
|
|
2486
|
+
return [2, contents];
|
|
2511
2487
|
}
|
|
2512
2488
|
});
|
|
2513
2489
|
}); };
|
|
2514
2490
|
var deserializeAws_restJson1DeleteMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2515
|
-
var parsedOutput, _a,
|
|
2491
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2516
2492
|
var _c;
|
|
2517
2493
|
return __generator(this, function (_d) {
|
|
2518
2494
|
switch (_d.label) {
|
|
@@ -2557,14 +2533,14 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
2557
2533
|
case 15: throw _d.sent();
|
|
2558
2534
|
case 16:
|
|
2559
2535
|
parsedBody = parsedOutput.body;
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
$metadata: $metadata,
|
|
2536
|
+
throwDefaultError({
|
|
2537
|
+
output: output,
|
|
2538
|
+
parsedBody: parsedBody,
|
|
2539
|
+
exceptionCtor: __BaseException,
|
|
2540
|
+
errorCode: errorCode,
|
|
2566
2541
|
});
|
|
2567
|
-
|
|
2542
|
+
_d.label = 17;
|
|
2543
|
+
case 17: return [2];
|
|
2568
2544
|
}
|
|
2569
2545
|
});
|
|
2570
2546
|
}); };
|
|
@@ -2576,28 +2552,26 @@ export var deserializeAws_restJson1DescribeBucketsCommand = function (output, co
|
|
|
2576
2552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2577
2553
|
return [2, deserializeAws_restJson1DescribeBucketsCommandError(output, context)];
|
|
2578
2554
|
}
|
|
2579
|
-
contents = {
|
|
2555
|
+
contents = map({
|
|
2580
2556
|
$metadata: deserializeMetadata(output),
|
|
2581
|
-
|
|
2582
|
-
nextToken: undefined,
|
|
2583
|
-
};
|
|
2557
|
+
});
|
|
2584
2558
|
_a = __expectNonNull;
|
|
2585
2559
|
_b = __expectObject;
|
|
2586
2560
|
return [4, parseBody(output.body, context)];
|
|
2587
2561
|
case 1:
|
|
2588
2562
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2589
|
-
if (data.buckets
|
|
2563
|
+
if (data.buckets != null) {
|
|
2590
2564
|
contents.buckets = deserializeAws_restJson1__listOfBucketMetadata(data.buckets, context);
|
|
2591
2565
|
}
|
|
2592
|
-
if (data.nextToken
|
|
2566
|
+
if (data.nextToken != null) {
|
|
2593
2567
|
contents.nextToken = __expectString(data.nextToken);
|
|
2594
2568
|
}
|
|
2595
|
-
return [2,
|
|
2569
|
+
return [2, contents];
|
|
2596
2570
|
}
|
|
2597
2571
|
});
|
|
2598
2572
|
}); };
|
|
2599
2573
|
var deserializeAws_restJson1DescribeBucketsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2600
|
-
var parsedOutput, _a,
|
|
2574
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2601
2575
|
var _c;
|
|
2602
2576
|
return __generator(this, function (_d) {
|
|
2603
2577
|
switch (_d.label) {
|
|
@@ -2642,14 +2616,14 @@ var deserializeAws_restJson1DescribeBucketsCommandError = function (output, cont
|
|
|
2642
2616
|
case 15: throw _d.sent();
|
|
2643
2617
|
case 16:
|
|
2644
2618
|
parsedBody = parsedOutput.body;
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
$metadata: $metadata,
|
|
2619
|
+
throwDefaultError({
|
|
2620
|
+
output: output,
|
|
2621
|
+
parsedBody: parsedBody,
|
|
2622
|
+
exceptionCtor: __BaseException,
|
|
2623
|
+
errorCode: errorCode,
|
|
2651
2624
|
});
|
|
2652
|
-
|
|
2625
|
+
_d.label = 17;
|
|
2626
|
+
case 17: return [2];
|
|
2653
2627
|
}
|
|
2654
2628
|
});
|
|
2655
2629
|
}); };
|
|
@@ -2661,100 +2635,80 @@ export var deserializeAws_restJson1DescribeClassificationJobCommand = function (
|
|
|
2661
2635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2662
2636
|
return [2, deserializeAws_restJson1DescribeClassificationJobCommandError(output, context)];
|
|
2663
2637
|
}
|
|
2664
|
-
contents = {
|
|
2638
|
+
contents = map({
|
|
2665
2639
|
$metadata: deserializeMetadata(output),
|
|
2666
|
-
|
|
2667
|
-
createdAt: undefined,
|
|
2668
|
-
customDataIdentifierIds: undefined,
|
|
2669
|
-
description: undefined,
|
|
2670
|
-
initialRun: undefined,
|
|
2671
|
-
jobArn: undefined,
|
|
2672
|
-
jobId: undefined,
|
|
2673
|
-
jobStatus: undefined,
|
|
2674
|
-
jobType: undefined,
|
|
2675
|
-
lastRunErrorStatus: undefined,
|
|
2676
|
-
lastRunTime: undefined,
|
|
2677
|
-
managedDataIdentifierIds: undefined,
|
|
2678
|
-
managedDataIdentifierSelector: undefined,
|
|
2679
|
-
name: undefined,
|
|
2680
|
-
s3JobDefinition: undefined,
|
|
2681
|
-
samplingPercentage: undefined,
|
|
2682
|
-
scheduleFrequency: undefined,
|
|
2683
|
-
statistics: undefined,
|
|
2684
|
-
tags: undefined,
|
|
2685
|
-
userPausedDetails: undefined,
|
|
2686
|
-
};
|
|
2640
|
+
});
|
|
2687
2641
|
_a = __expectNonNull;
|
|
2688
2642
|
_b = __expectObject;
|
|
2689
2643
|
return [4, parseBody(output.body, context)];
|
|
2690
2644
|
case 1:
|
|
2691
2645
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2692
|
-
if (data.clientToken
|
|
2646
|
+
if (data.clientToken != null) {
|
|
2693
2647
|
contents.clientToken = __expectString(data.clientToken);
|
|
2694
2648
|
}
|
|
2695
|
-
if (data.createdAt
|
|
2649
|
+
if (data.createdAt != null) {
|
|
2696
2650
|
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
2697
2651
|
}
|
|
2698
|
-
if (data.customDataIdentifierIds
|
|
2652
|
+
if (data.customDataIdentifierIds != null) {
|
|
2699
2653
|
contents.customDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.customDataIdentifierIds, context);
|
|
2700
2654
|
}
|
|
2701
|
-
if (data.description
|
|
2655
|
+
if (data.description != null) {
|
|
2702
2656
|
contents.description = __expectString(data.description);
|
|
2703
2657
|
}
|
|
2704
|
-
if (data.initialRun
|
|
2658
|
+
if (data.initialRun != null) {
|
|
2705
2659
|
contents.initialRun = __expectBoolean(data.initialRun);
|
|
2706
2660
|
}
|
|
2707
|
-
if (data.jobArn
|
|
2661
|
+
if (data.jobArn != null) {
|
|
2708
2662
|
contents.jobArn = __expectString(data.jobArn);
|
|
2709
2663
|
}
|
|
2710
|
-
if (data.jobId
|
|
2664
|
+
if (data.jobId != null) {
|
|
2711
2665
|
contents.jobId = __expectString(data.jobId);
|
|
2712
2666
|
}
|
|
2713
|
-
if (data.jobStatus
|
|
2667
|
+
if (data.jobStatus != null) {
|
|
2714
2668
|
contents.jobStatus = __expectString(data.jobStatus);
|
|
2715
2669
|
}
|
|
2716
|
-
if (data.jobType
|
|
2670
|
+
if (data.jobType != null) {
|
|
2717
2671
|
contents.jobType = __expectString(data.jobType);
|
|
2718
2672
|
}
|
|
2719
|
-
if (data.lastRunErrorStatus
|
|
2673
|
+
if (data.lastRunErrorStatus != null) {
|
|
2720
2674
|
contents.lastRunErrorStatus = deserializeAws_restJson1LastRunErrorStatus(data.lastRunErrorStatus, context);
|
|
2721
2675
|
}
|
|
2722
|
-
if (data.lastRunTime
|
|
2676
|
+
if (data.lastRunTime != null) {
|
|
2723
2677
|
contents.lastRunTime = __expectNonNull(__parseRfc3339DateTime(data.lastRunTime));
|
|
2724
2678
|
}
|
|
2725
|
-
if (data.managedDataIdentifierIds
|
|
2679
|
+
if (data.managedDataIdentifierIds != null) {
|
|
2726
2680
|
contents.managedDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.managedDataIdentifierIds, context);
|
|
2727
2681
|
}
|
|
2728
|
-
if (data.managedDataIdentifierSelector
|
|
2682
|
+
if (data.managedDataIdentifierSelector != null) {
|
|
2729
2683
|
contents.managedDataIdentifierSelector = __expectString(data.managedDataIdentifierSelector);
|
|
2730
2684
|
}
|
|
2731
|
-
if (data.name
|
|
2685
|
+
if (data.name != null) {
|
|
2732
2686
|
contents.name = __expectString(data.name);
|
|
2733
2687
|
}
|
|
2734
|
-
if (data.s3JobDefinition
|
|
2688
|
+
if (data.s3JobDefinition != null) {
|
|
2735
2689
|
contents.s3JobDefinition = deserializeAws_restJson1S3JobDefinition(data.s3JobDefinition, context);
|
|
2736
2690
|
}
|
|
2737
|
-
if (data.samplingPercentage
|
|
2691
|
+
if (data.samplingPercentage != null) {
|
|
2738
2692
|
contents.samplingPercentage = __expectInt32(data.samplingPercentage);
|
|
2739
2693
|
}
|
|
2740
|
-
if (data.scheduleFrequency
|
|
2694
|
+
if (data.scheduleFrequency != null) {
|
|
2741
2695
|
contents.scheduleFrequency = deserializeAws_restJson1JobScheduleFrequency(data.scheduleFrequency, context);
|
|
2742
2696
|
}
|
|
2743
|
-
if (data.statistics
|
|
2697
|
+
if (data.statistics != null) {
|
|
2744
2698
|
contents.statistics = deserializeAws_restJson1Statistics(data.statistics, context);
|
|
2745
2699
|
}
|
|
2746
|
-
if (data.tags
|
|
2700
|
+
if (data.tags != null) {
|
|
2747
2701
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2748
2702
|
}
|
|
2749
|
-
if (data.userPausedDetails
|
|
2703
|
+
if (data.userPausedDetails != null) {
|
|
2750
2704
|
contents.userPausedDetails = deserializeAws_restJson1UserPausedDetails(data.userPausedDetails, context);
|
|
2751
2705
|
}
|
|
2752
|
-
return [2,
|
|
2706
|
+
return [2, contents];
|
|
2753
2707
|
}
|
|
2754
2708
|
});
|
|
2755
2709
|
}); };
|
|
2756
2710
|
var deserializeAws_restJson1DescribeClassificationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2757
|
-
var parsedOutput, _a,
|
|
2711
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2758
2712
|
var _c;
|
|
2759
2713
|
return __generator(this, function (_d) {
|
|
2760
2714
|
switch (_d.label) {
|
|
@@ -2799,14 +2753,14 @@ var deserializeAws_restJson1DescribeClassificationJobCommandError = function (ou
|
|
|
2799
2753
|
case 15: throw _d.sent();
|
|
2800
2754
|
case 16:
|
|
2801
2755
|
parsedBody = parsedOutput.body;
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
$metadata: $metadata,
|
|
2756
|
+
throwDefaultError({
|
|
2757
|
+
output: output,
|
|
2758
|
+
parsedBody: parsedBody,
|
|
2759
|
+
exceptionCtor: __BaseException,
|
|
2760
|
+
errorCode: errorCode,
|
|
2808
2761
|
});
|
|
2809
|
-
|
|
2762
|
+
_d.label = 17;
|
|
2763
|
+
case 17: return [2];
|
|
2810
2764
|
}
|
|
2811
2765
|
});
|
|
2812
2766
|
}); };
|
|
@@ -2818,28 +2772,26 @@ export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = fu
|
|
|
2818
2772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2819
2773
|
return [2, deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context)];
|
|
2820
2774
|
}
|
|
2821
|
-
contents = {
|
|
2775
|
+
contents = map({
|
|
2822
2776
|
$metadata: deserializeMetadata(output),
|
|
2823
|
-
|
|
2824
|
-
maxAccountLimitReached: undefined,
|
|
2825
|
-
};
|
|
2777
|
+
});
|
|
2826
2778
|
_a = __expectNonNull;
|
|
2827
2779
|
_b = __expectObject;
|
|
2828
2780
|
return [4, parseBody(output.body, context)];
|
|
2829
2781
|
case 1:
|
|
2830
2782
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2831
|
-
if (data.autoEnable
|
|
2783
|
+
if (data.autoEnable != null) {
|
|
2832
2784
|
contents.autoEnable = __expectBoolean(data.autoEnable);
|
|
2833
2785
|
}
|
|
2834
|
-
if (data.maxAccountLimitReached
|
|
2786
|
+
if (data.maxAccountLimitReached != null) {
|
|
2835
2787
|
contents.maxAccountLimitReached = __expectBoolean(data.maxAccountLimitReached);
|
|
2836
2788
|
}
|
|
2837
|
-
return [2,
|
|
2789
|
+
return [2, contents];
|
|
2838
2790
|
}
|
|
2839
2791
|
});
|
|
2840
2792
|
}); };
|
|
2841
2793
|
var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2842
|
-
var parsedOutput, _a,
|
|
2794
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2843
2795
|
var _c;
|
|
2844
2796
|
return __generator(this, function (_d) {
|
|
2845
2797
|
switch (_d.label) {
|
|
@@ -2884,14 +2836,14 @@ var deserializeAws_restJson1DescribeOrganizationConfigurationCommandError = func
|
|
|
2884
2836
|
case 15: throw _d.sent();
|
|
2885
2837
|
case 16:
|
|
2886
2838
|
parsedBody = parsedOutput.body;
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
$metadata: $metadata,
|
|
2839
|
+
throwDefaultError({
|
|
2840
|
+
output: output,
|
|
2841
|
+
parsedBody: parsedBody,
|
|
2842
|
+
exceptionCtor: __BaseException,
|
|
2843
|
+
errorCode: errorCode,
|
|
2893
2844
|
});
|
|
2894
|
-
|
|
2845
|
+
_d.label = 17;
|
|
2846
|
+
case 17: return [2];
|
|
2895
2847
|
}
|
|
2896
2848
|
});
|
|
2897
2849
|
}); };
|
|
@@ -2903,18 +2855,18 @@ export var deserializeAws_restJson1DisableMacieCommand = function (output, conte
|
|
|
2903
2855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2904
2856
|
return [2, deserializeAws_restJson1DisableMacieCommandError(output, context)];
|
|
2905
2857
|
}
|
|
2906
|
-
contents = {
|
|
2858
|
+
contents = map({
|
|
2907
2859
|
$metadata: deserializeMetadata(output),
|
|
2908
|
-
};
|
|
2860
|
+
});
|
|
2909
2861
|
return [4, collectBody(output.body, context)];
|
|
2910
2862
|
case 1:
|
|
2911
2863
|
_a.sent();
|
|
2912
|
-
return [2,
|
|
2864
|
+
return [2, contents];
|
|
2913
2865
|
}
|
|
2914
2866
|
});
|
|
2915
2867
|
}); };
|
|
2916
2868
|
var deserializeAws_restJson1DisableMacieCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2917
|
-
var parsedOutput, _a,
|
|
2869
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2918
2870
|
var _c;
|
|
2919
2871
|
return __generator(this, function (_d) {
|
|
2920
2872
|
switch (_d.label) {
|
|
@@ -2959,14 +2911,14 @@ var deserializeAws_restJson1DisableMacieCommandError = function (output, context
|
|
|
2959
2911
|
case 15: throw _d.sent();
|
|
2960
2912
|
case 16:
|
|
2961
2913
|
parsedBody = parsedOutput.body;
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
$metadata: $metadata,
|
|
2914
|
+
throwDefaultError({
|
|
2915
|
+
output: output,
|
|
2916
|
+
parsedBody: parsedBody,
|
|
2917
|
+
exceptionCtor: __BaseException,
|
|
2918
|
+
errorCode: errorCode,
|
|
2968
2919
|
});
|
|
2969
|
-
|
|
2920
|
+
_d.label = 17;
|
|
2921
|
+
case 17: return [2];
|
|
2970
2922
|
}
|
|
2971
2923
|
});
|
|
2972
2924
|
}); };
|
|
@@ -2978,18 +2930,18 @@ export var deserializeAws_restJson1DisableOrganizationAdminAccountCommand = func
|
|
|
2978
2930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2979
2931
|
return [2, deserializeAws_restJson1DisableOrganizationAdminAccountCommandError(output, context)];
|
|
2980
2932
|
}
|
|
2981
|
-
contents = {
|
|
2933
|
+
contents = map({
|
|
2982
2934
|
$metadata: deserializeMetadata(output),
|
|
2983
|
-
};
|
|
2935
|
+
});
|
|
2984
2936
|
return [4, collectBody(output.body, context)];
|
|
2985
2937
|
case 1:
|
|
2986
2938
|
_a.sent();
|
|
2987
|
-
return [2,
|
|
2939
|
+
return [2, contents];
|
|
2988
2940
|
}
|
|
2989
2941
|
});
|
|
2990
2942
|
}); };
|
|
2991
2943
|
var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2992
|
-
var parsedOutput, _a,
|
|
2944
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2993
2945
|
var _c;
|
|
2994
2946
|
return __generator(this, function (_d) {
|
|
2995
2947
|
switch (_d.label) {
|
|
@@ -3034,14 +2986,14 @@ var deserializeAws_restJson1DisableOrganizationAdminAccountCommandError = functi
|
|
|
3034
2986
|
case 15: throw _d.sent();
|
|
3035
2987
|
case 16:
|
|
3036
2988
|
parsedBody = parsedOutput.body;
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
$metadata: $metadata,
|
|
2989
|
+
throwDefaultError({
|
|
2990
|
+
output: output,
|
|
2991
|
+
parsedBody: parsedBody,
|
|
2992
|
+
exceptionCtor: __BaseException,
|
|
2993
|
+
errorCode: errorCode,
|
|
3043
2994
|
});
|
|
3044
|
-
|
|
2995
|
+
_d.label = 17;
|
|
2996
|
+
case 17: return [2];
|
|
3045
2997
|
}
|
|
3046
2998
|
});
|
|
3047
2999
|
}); };
|
|
@@ -3053,18 +3005,18 @@ export var deserializeAws_restJson1DisassociateFromAdministratorAccountCommand =
|
|
|
3053
3005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3054
3006
|
return [2, deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError(output, context)];
|
|
3055
3007
|
}
|
|
3056
|
-
contents = {
|
|
3008
|
+
contents = map({
|
|
3057
3009
|
$metadata: deserializeMetadata(output),
|
|
3058
|
-
};
|
|
3010
|
+
});
|
|
3059
3011
|
return [4, collectBody(output.body, context)];
|
|
3060
3012
|
case 1:
|
|
3061
3013
|
_a.sent();
|
|
3062
|
-
return [2,
|
|
3014
|
+
return [2, contents];
|
|
3063
3015
|
}
|
|
3064
3016
|
});
|
|
3065
3017
|
}); };
|
|
3066
3018
|
var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3067
|
-
var parsedOutput, _a,
|
|
3019
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3068
3020
|
var _c;
|
|
3069
3021
|
return __generator(this, function (_d) {
|
|
3070
3022
|
switch (_d.label) {
|
|
@@ -3109,14 +3061,14 @@ var deserializeAws_restJson1DisassociateFromAdministratorAccountCommandError = f
|
|
|
3109
3061
|
case 15: throw _d.sent();
|
|
3110
3062
|
case 16:
|
|
3111
3063
|
parsedBody = parsedOutput.body;
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
$metadata: $metadata,
|
|
3064
|
+
throwDefaultError({
|
|
3065
|
+
output: output,
|
|
3066
|
+
parsedBody: parsedBody,
|
|
3067
|
+
exceptionCtor: __BaseException,
|
|
3068
|
+
errorCode: errorCode,
|
|
3118
3069
|
});
|
|
3119
|
-
|
|
3070
|
+
_d.label = 17;
|
|
3071
|
+
case 17: return [2];
|
|
3120
3072
|
}
|
|
3121
3073
|
});
|
|
3122
3074
|
}); };
|
|
@@ -3128,18 +3080,18 @@ export var deserializeAws_restJson1DisassociateFromMasterAccountCommand = functi
|
|
|
3128
3080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3129
3081
|
return [2, deserializeAws_restJson1DisassociateFromMasterAccountCommandError(output, context)];
|
|
3130
3082
|
}
|
|
3131
|
-
contents = {
|
|
3083
|
+
contents = map({
|
|
3132
3084
|
$metadata: deserializeMetadata(output),
|
|
3133
|
-
};
|
|
3085
|
+
});
|
|
3134
3086
|
return [4, collectBody(output.body, context)];
|
|
3135
3087
|
case 1:
|
|
3136
3088
|
_a.sent();
|
|
3137
|
-
return [2,
|
|
3089
|
+
return [2, contents];
|
|
3138
3090
|
}
|
|
3139
3091
|
});
|
|
3140
3092
|
}); };
|
|
3141
3093
|
var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3142
|
-
var parsedOutput, _a,
|
|
3094
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3143
3095
|
var _c;
|
|
3144
3096
|
return __generator(this, function (_d) {
|
|
3145
3097
|
switch (_d.label) {
|
|
@@ -3184,14 +3136,14 @@ var deserializeAws_restJson1DisassociateFromMasterAccountCommandError = function
|
|
|
3184
3136
|
case 15: throw _d.sent();
|
|
3185
3137
|
case 16:
|
|
3186
3138
|
parsedBody = parsedOutput.body;
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
$metadata: $metadata,
|
|
3139
|
+
throwDefaultError({
|
|
3140
|
+
output: output,
|
|
3141
|
+
parsedBody: parsedBody,
|
|
3142
|
+
exceptionCtor: __BaseException,
|
|
3143
|
+
errorCode: errorCode,
|
|
3193
3144
|
});
|
|
3194
|
-
|
|
3145
|
+
_d.label = 17;
|
|
3146
|
+
case 17: return [2];
|
|
3195
3147
|
}
|
|
3196
3148
|
});
|
|
3197
3149
|
}); };
|
|
@@ -3203,18 +3155,18 @@ export var deserializeAws_restJson1DisassociateMemberCommand = function (output,
|
|
|
3203
3155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3204
3156
|
return [2, deserializeAws_restJson1DisassociateMemberCommandError(output, context)];
|
|
3205
3157
|
}
|
|
3206
|
-
contents = {
|
|
3158
|
+
contents = map({
|
|
3207
3159
|
$metadata: deserializeMetadata(output),
|
|
3208
|
-
};
|
|
3160
|
+
});
|
|
3209
3161
|
return [4, collectBody(output.body, context)];
|
|
3210
3162
|
case 1:
|
|
3211
3163
|
_a.sent();
|
|
3212
|
-
return [2,
|
|
3164
|
+
return [2, contents];
|
|
3213
3165
|
}
|
|
3214
3166
|
});
|
|
3215
3167
|
}); };
|
|
3216
3168
|
var deserializeAws_restJson1DisassociateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3217
|
-
var parsedOutput, _a,
|
|
3169
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3218
3170
|
var _c;
|
|
3219
3171
|
return __generator(this, function (_d) {
|
|
3220
3172
|
switch (_d.label) {
|
|
@@ -3259,14 +3211,14 @@ var deserializeAws_restJson1DisassociateMemberCommandError = function (output, c
|
|
|
3259
3211
|
case 15: throw _d.sent();
|
|
3260
3212
|
case 16:
|
|
3261
3213
|
parsedBody = parsedOutput.body;
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
$metadata: $metadata,
|
|
3214
|
+
throwDefaultError({
|
|
3215
|
+
output: output,
|
|
3216
|
+
parsedBody: parsedBody,
|
|
3217
|
+
exceptionCtor: __BaseException,
|
|
3218
|
+
errorCode: errorCode,
|
|
3268
3219
|
});
|
|
3269
|
-
|
|
3220
|
+
_d.label = 17;
|
|
3221
|
+
case 17: return [2];
|
|
3270
3222
|
}
|
|
3271
3223
|
});
|
|
3272
3224
|
}); };
|
|
@@ -3278,18 +3230,18 @@ export var deserializeAws_restJson1EnableMacieCommand = function (output, contex
|
|
|
3278
3230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3279
3231
|
return [2, deserializeAws_restJson1EnableMacieCommandError(output, context)];
|
|
3280
3232
|
}
|
|
3281
|
-
contents = {
|
|
3233
|
+
contents = map({
|
|
3282
3234
|
$metadata: deserializeMetadata(output),
|
|
3283
|
-
};
|
|
3235
|
+
});
|
|
3284
3236
|
return [4, collectBody(output.body, context)];
|
|
3285
3237
|
case 1:
|
|
3286
3238
|
_a.sent();
|
|
3287
|
-
return [2,
|
|
3239
|
+
return [2, contents];
|
|
3288
3240
|
}
|
|
3289
3241
|
});
|
|
3290
3242
|
}); };
|
|
3291
3243
|
var deserializeAws_restJson1EnableMacieCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3292
|
-
var parsedOutput, _a,
|
|
3244
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3293
3245
|
var _c;
|
|
3294
3246
|
return __generator(this, function (_d) {
|
|
3295
3247
|
switch (_d.label) {
|
|
@@ -3334,14 +3286,14 @@ var deserializeAws_restJson1EnableMacieCommandError = function (output, context)
|
|
|
3334
3286
|
case 15: throw _d.sent();
|
|
3335
3287
|
case 16:
|
|
3336
3288
|
parsedBody = parsedOutput.body;
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
$metadata: $metadata,
|
|
3289
|
+
throwDefaultError({
|
|
3290
|
+
output: output,
|
|
3291
|
+
parsedBody: parsedBody,
|
|
3292
|
+
exceptionCtor: __BaseException,
|
|
3293
|
+
errorCode: errorCode,
|
|
3343
3294
|
});
|
|
3344
|
-
|
|
3295
|
+
_d.label = 17;
|
|
3296
|
+
case 17: return [2];
|
|
3345
3297
|
}
|
|
3346
3298
|
});
|
|
3347
3299
|
}); };
|
|
@@ -3353,18 +3305,18 @@ export var deserializeAws_restJson1EnableOrganizationAdminAccountCommand = funct
|
|
|
3353
3305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3354
3306
|
return [2, deserializeAws_restJson1EnableOrganizationAdminAccountCommandError(output, context)];
|
|
3355
3307
|
}
|
|
3356
|
-
contents = {
|
|
3308
|
+
contents = map({
|
|
3357
3309
|
$metadata: deserializeMetadata(output),
|
|
3358
|
-
};
|
|
3310
|
+
});
|
|
3359
3311
|
return [4, collectBody(output.body, context)];
|
|
3360
3312
|
case 1:
|
|
3361
3313
|
_a.sent();
|
|
3362
|
-
return [2,
|
|
3314
|
+
return [2, contents];
|
|
3363
3315
|
}
|
|
3364
3316
|
});
|
|
3365
3317
|
}); };
|
|
3366
3318
|
var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3367
|
-
var parsedOutput, _a,
|
|
3319
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3368
3320
|
var _c;
|
|
3369
3321
|
return __generator(this, function (_d) {
|
|
3370
3322
|
switch (_d.label) {
|
|
@@ -3409,14 +3361,14 @@ var deserializeAws_restJson1EnableOrganizationAdminAccountCommandError = functio
|
|
|
3409
3361
|
case 15: throw _d.sent();
|
|
3410
3362
|
case 16:
|
|
3411
3363
|
parsedBody = parsedOutput.body;
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
$metadata: $metadata,
|
|
3364
|
+
throwDefaultError({
|
|
3365
|
+
output: output,
|
|
3366
|
+
parsedBody: parsedBody,
|
|
3367
|
+
exceptionCtor: __BaseException,
|
|
3368
|
+
errorCode: errorCode,
|
|
3418
3369
|
});
|
|
3419
|
-
|
|
3370
|
+
_d.label = 17;
|
|
3371
|
+
case 17: return [2];
|
|
3420
3372
|
}
|
|
3421
3373
|
});
|
|
3422
3374
|
}); };
|
|
@@ -3428,24 +3380,23 @@ export var deserializeAws_restJson1GetAdministratorAccountCommand = function (ou
|
|
|
3428
3380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3429
3381
|
return [2, deserializeAws_restJson1GetAdministratorAccountCommandError(output, context)];
|
|
3430
3382
|
}
|
|
3431
|
-
contents = {
|
|
3383
|
+
contents = map({
|
|
3432
3384
|
$metadata: deserializeMetadata(output),
|
|
3433
|
-
|
|
3434
|
-
};
|
|
3385
|
+
});
|
|
3435
3386
|
_a = __expectNonNull;
|
|
3436
3387
|
_b = __expectObject;
|
|
3437
3388
|
return [4, parseBody(output.body, context)];
|
|
3438
3389
|
case 1:
|
|
3439
3390
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3440
|
-
if (data.administrator
|
|
3391
|
+
if (data.administrator != null) {
|
|
3441
3392
|
contents.administrator = deserializeAws_restJson1Invitation(data.administrator, context);
|
|
3442
3393
|
}
|
|
3443
|
-
return [2,
|
|
3394
|
+
return [2, contents];
|
|
3444
3395
|
}
|
|
3445
3396
|
});
|
|
3446
3397
|
}); };
|
|
3447
3398
|
var deserializeAws_restJson1GetAdministratorAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3448
|
-
var parsedOutput, _a,
|
|
3399
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3449
3400
|
var _c;
|
|
3450
3401
|
return __generator(this, function (_d) {
|
|
3451
3402
|
switch (_d.label) {
|
|
@@ -3490,14 +3441,14 @@ var deserializeAws_restJson1GetAdministratorAccountCommandError = function (outp
|
|
|
3490
3441
|
case 15: throw _d.sent();
|
|
3491
3442
|
case 16:
|
|
3492
3443
|
parsedBody = parsedOutput.body;
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
$metadata: $metadata,
|
|
3444
|
+
throwDefaultError({
|
|
3445
|
+
output: output,
|
|
3446
|
+
parsedBody: parsedBody,
|
|
3447
|
+
exceptionCtor: __BaseException,
|
|
3448
|
+
errorCode: errorCode,
|
|
3499
3449
|
});
|
|
3500
|
-
|
|
3450
|
+
_d.label = 17;
|
|
3451
|
+
case 17: return [2];
|
|
3501
3452
|
}
|
|
3502
3453
|
});
|
|
3503
3454
|
}); };
|
|
@@ -3509,74 +3460,60 @@ export var deserializeAws_restJson1GetBucketStatisticsCommand = function (output
|
|
|
3509
3460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3510
3461
|
return [2, deserializeAws_restJson1GetBucketStatisticsCommandError(output, context)];
|
|
3511
3462
|
}
|
|
3512
|
-
contents = {
|
|
3463
|
+
contents = map({
|
|
3513
3464
|
$metadata: deserializeMetadata(output),
|
|
3514
|
-
|
|
3515
|
-
bucketCountByEffectivePermission: undefined,
|
|
3516
|
-
bucketCountByEncryptionType: undefined,
|
|
3517
|
-
bucketCountByObjectEncryptionRequirement: undefined,
|
|
3518
|
-
bucketCountBySharedAccessType: undefined,
|
|
3519
|
-
classifiableObjectCount: undefined,
|
|
3520
|
-
classifiableSizeInBytes: undefined,
|
|
3521
|
-
lastUpdated: undefined,
|
|
3522
|
-
objectCount: undefined,
|
|
3523
|
-
sizeInBytes: undefined,
|
|
3524
|
-
sizeInBytesCompressed: undefined,
|
|
3525
|
-
unclassifiableObjectCount: undefined,
|
|
3526
|
-
unclassifiableObjectSizeInBytes: undefined,
|
|
3527
|
-
};
|
|
3465
|
+
});
|
|
3528
3466
|
_a = __expectNonNull;
|
|
3529
3467
|
_b = __expectObject;
|
|
3530
3468
|
return [4, parseBody(output.body, context)];
|
|
3531
3469
|
case 1:
|
|
3532
3470
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3533
|
-
if (data.bucketCount
|
|
3471
|
+
if (data.bucketCount != null) {
|
|
3534
3472
|
contents.bucketCount = __expectLong(data.bucketCount);
|
|
3535
3473
|
}
|
|
3536
|
-
if (data.bucketCountByEffectivePermission
|
|
3474
|
+
if (data.bucketCountByEffectivePermission != null) {
|
|
3537
3475
|
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
3538
3476
|
}
|
|
3539
|
-
if (data.bucketCountByEncryptionType
|
|
3477
|
+
if (data.bucketCountByEncryptionType != null) {
|
|
3540
3478
|
contents.bucketCountByEncryptionType = deserializeAws_restJson1BucketCountByEncryptionType(data.bucketCountByEncryptionType, context);
|
|
3541
3479
|
}
|
|
3542
|
-
if (data.bucketCountByObjectEncryptionRequirement
|
|
3543
|
-
data.bucketCountByObjectEncryptionRequirement !== null) {
|
|
3480
|
+
if (data.bucketCountByObjectEncryptionRequirement != null) {
|
|
3544
3481
|
contents.bucketCountByObjectEncryptionRequirement =
|
|
3545
3482
|
deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads(data.bucketCountByObjectEncryptionRequirement, context);
|
|
3546
3483
|
}
|
|
3547
|
-
if (data.bucketCountBySharedAccessType
|
|
3484
|
+
if (data.bucketCountBySharedAccessType != null) {
|
|
3548
3485
|
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3549
3486
|
}
|
|
3550
|
-
if (data.classifiableObjectCount
|
|
3487
|
+
if (data.classifiableObjectCount != null) {
|
|
3551
3488
|
contents.classifiableObjectCount = __expectLong(data.classifiableObjectCount);
|
|
3552
3489
|
}
|
|
3553
|
-
if (data.classifiableSizeInBytes
|
|
3490
|
+
if (data.classifiableSizeInBytes != null) {
|
|
3554
3491
|
contents.classifiableSizeInBytes = __expectLong(data.classifiableSizeInBytes);
|
|
3555
3492
|
}
|
|
3556
|
-
if (data.lastUpdated
|
|
3493
|
+
if (data.lastUpdated != null) {
|
|
3557
3494
|
contents.lastUpdated = __expectNonNull(__parseRfc3339DateTime(data.lastUpdated));
|
|
3558
3495
|
}
|
|
3559
|
-
if (data.objectCount
|
|
3496
|
+
if (data.objectCount != null) {
|
|
3560
3497
|
contents.objectCount = __expectLong(data.objectCount);
|
|
3561
3498
|
}
|
|
3562
|
-
if (data.sizeInBytes
|
|
3499
|
+
if (data.sizeInBytes != null) {
|
|
3563
3500
|
contents.sizeInBytes = __expectLong(data.sizeInBytes);
|
|
3564
3501
|
}
|
|
3565
|
-
if (data.sizeInBytesCompressed
|
|
3502
|
+
if (data.sizeInBytesCompressed != null) {
|
|
3566
3503
|
contents.sizeInBytesCompressed = __expectLong(data.sizeInBytesCompressed);
|
|
3567
3504
|
}
|
|
3568
|
-
if (data.unclassifiableObjectCount
|
|
3505
|
+
if (data.unclassifiableObjectCount != null) {
|
|
3569
3506
|
contents.unclassifiableObjectCount = deserializeAws_restJson1ObjectLevelStatistics(data.unclassifiableObjectCount, context);
|
|
3570
3507
|
}
|
|
3571
|
-
if (data.unclassifiableObjectSizeInBytes
|
|
3508
|
+
if (data.unclassifiableObjectSizeInBytes != null) {
|
|
3572
3509
|
contents.unclassifiableObjectSizeInBytes = deserializeAws_restJson1ObjectLevelStatistics(data.unclassifiableObjectSizeInBytes, context);
|
|
3573
3510
|
}
|
|
3574
|
-
return [2,
|
|
3511
|
+
return [2, contents];
|
|
3575
3512
|
}
|
|
3576
3513
|
});
|
|
3577
3514
|
}); };
|
|
3578
3515
|
var deserializeAws_restJson1GetBucketStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3579
|
-
var parsedOutput, _a,
|
|
3516
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3580
3517
|
var _c;
|
|
3581
3518
|
return __generator(this, function (_d) {
|
|
3582
3519
|
switch (_d.label) {
|
|
@@ -3621,14 +3558,14 @@ var deserializeAws_restJson1GetBucketStatisticsCommandError = function (output,
|
|
|
3621
3558
|
case 15: throw _d.sent();
|
|
3622
3559
|
case 16:
|
|
3623
3560
|
parsedBody = parsedOutput.body;
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
$metadata: $metadata,
|
|
3561
|
+
throwDefaultError({
|
|
3562
|
+
output: output,
|
|
3563
|
+
parsedBody: parsedBody,
|
|
3564
|
+
exceptionCtor: __BaseException,
|
|
3565
|
+
errorCode: errorCode,
|
|
3630
3566
|
});
|
|
3631
|
-
|
|
3567
|
+
_d.label = 17;
|
|
3568
|
+
case 17: return [2];
|
|
3632
3569
|
}
|
|
3633
3570
|
});
|
|
3634
3571
|
}); };
|
|
@@ -3640,24 +3577,23 @@ export var deserializeAws_restJson1GetClassificationExportConfigurationCommand =
|
|
|
3640
3577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3641
3578
|
return [2, deserializeAws_restJson1GetClassificationExportConfigurationCommandError(output, context)];
|
|
3642
3579
|
}
|
|
3643
|
-
contents = {
|
|
3580
|
+
contents = map({
|
|
3644
3581
|
$metadata: deserializeMetadata(output),
|
|
3645
|
-
|
|
3646
|
-
};
|
|
3582
|
+
});
|
|
3647
3583
|
_a = __expectNonNull;
|
|
3648
3584
|
_b = __expectObject;
|
|
3649
3585
|
return [4, parseBody(output.body, context)];
|
|
3650
3586
|
case 1:
|
|
3651
3587
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3652
|
-
if (data.configuration
|
|
3588
|
+
if (data.configuration != null) {
|
|
3653
3589
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
3654
3590
|
}
|
|
3655
|
-
return [2,
|
|
3591
|
+
return [2, contents];
|
|
3656
3592
|
}
|
|
3657
3593
|
});
|
|
3658
3594
|
}); };
|
|
3659
3595
|
var deserializeAws_restJson1GetClassificationExportConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3660
|
-
var parsedOutput, _a,
|
|
3596
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3661
3597
|
var _c;
|
|
3662
3598
|
return __generator(this, function (_d) {
|
|
3663
3599
|
switch (_d.label) {
|
|
@@ -3702,14 +3638,14 @@ var deserializeAws_restJson1GetClassificationExportConfigurationCommandError = f
|
|
|
3702
3638
|
case 15: throw _d.sent();
|
|
3703
3639
|
case 16:
|
|
3704
3640
|
parsedBody = parsedOutput.body;
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
$metadata: $metadata,
|
|
3641
|
+
throwDefaultError({
|
|
3642
|
+
output: output,
|
|
3643
|
+
parsedBody: parsedBody,
|
|
3644
|
+
exceptionCtor: __BaseException,
|
|
3645
|
+
errorCode: errorCode,
|
|
3711
3646
|
});
|
|
3712
|
-
|
|
3647
|
+
_d.label = 17;
|
|
3648
|
+
case 17: return [2];
|
|
3713
3649
|
}
|
|
3714
3650
|
});
|
|
3715
3651
|
}); };
|
|
@@ -3721,68 +3657,56 @@ export var deserializeAws_restJson1GetCustomDataIdentifierCommand = function (ou
|
|
|
3721
3657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3722
3658
|
return [2, deserializeAws_restJson1GetCustomDataIdentifierCommandError(output, context)];
|
|
3723
3659
|
}
|
|
3724
|
-
contents = {
|
|
3660
|
+
contents = map({
|
|
3725
3661
|
$metadata: deserializeMetadata(output),
|
|
3726
|
-
|
|
3727
|
-
createdAt: undefined,
|
|
3728
|
-
deleted: undefined,
|
|
3729
|
-
description: undefined,
|
|
3730
|
-
id: undefined,
|
|
3731
|
-
ignoreWords: undefined,
|
|
3732
|
-
keywords: undefined,
|
|
3733
|
-
maximumMatchDistance: undefined,
|
|
3734
|
-
name: undefined,
|
|
3735
|
-
regex: undefined,
|
|
3736
|
-
severityLevels: undefined,
|
|
3737
|
-
tags: undefined,
|
|
3738
|
-
};
|
|
3662
|
+
});
|
|
3739
3663
|
_a = __expectNonNull;
|
|
3740
3664
|
_b = __expectObject;
|
|
3741
3665
|
return [4, parseBody(output.body, context)];
|
|
3742
3666
|
case 1:
|
|
3743
3667
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3744
|
-
if (data.arn
|
|
3668
|
+
if (data.arn != null) {
|
|
3745
3669
|
contents.arn = __expectString(data.arn);
|
|
3746
3670
|
}
|
|
3747
|
-
if (data.createdAt
|
|
3671
|
+
if (data.createdAt != null) {
|
|
3748
3672
|
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
3749
3673
|
}
|
|
3750
|
-
if (data.deleted
|
|
3674
|
+
if (data.deleted != null) {
|
|
3751
3675
|
contents.deleted = __expectBoolean(data.deleted);
|
|
3752
3676
|
}
|
|
3753
|
-
if (data.description
|
|
3677
|
+
if (data.description != null) {
|
|
3754
3678
|
contents.description = __expectString(data.description);
|
|
3755
3679
|
}
|
|
3756
|
-
if (data.id
|
|
3680
|
+
if (data.id != null) {
|
|
3757
3681
|
contents.id = __expectString(data.id);
|
|
3758
3682
|
}
|
|
3759
|
-
if (data.ignoreWords
|
|
3683
|
+
if (data.ignoreWords != null) {
|
|
3760
3684
|
contents.ignoreWords = deserializeAws_restJson1__listOf__string(data.ignoreWords, context);
|
|
3761
3685
|
}
|
|
3762
|
-
if (data.keywords
|
|
3686
|
+
if (data.keywords != null) {
|
|
3763
3687
|
contents.keywords = deserializeAws_restJson1__listOf__string(data.keywords, context);
|
|
3764
3688
|
}
|
|
3765
|
-
if (data.maximumMatchDistance
|
|
3689
|
+
if (data.maximumMatchDistance != null) {
|
|
3766
3690
|
contents.maximumMatchDistance = __expectInt32(data.maximumMatchDistance);
|
|
3767
3691
|
}
|
|
3768
|
-
if (data.name
|
|
3692
|
+
if (data.name != null) {
|
|
3769
3693
|
contents.name = __expectString(data.name);
|
|
3770
3694
|
}
|
|
3771
|
-
if (data.regex
|
|
3695
|
+
if (data.regex != null) {
|
|
3772
3696
|
contents.regex = __expectString(data.regex);
|
|
3773
3697
|
}
|
|
3774
|
-
if (data.severityLevels
|
|
3698
|
+
if (data.severityLevels != null) {
|
|
3775
3699
|
contents.severityLevels = deserializeAws_restJson1SeverityLevelList(data.severityLevels, context);
|
|
3776
3700
|
}
|
|
3777
|
-
if (data.tags
|
|
3701
|
+
if (data.tags != null) {
|
|
3778
3702
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3779
3703
|
}
|
|
3780
|
-
return [2,
|
|
3704
|
+
return [2, contents];
|
|
3781
3705
|
}
|
|
3782
3706
|
});
|
|
3783
3707
|
}); };
|
|
3784
3708
|
var deserializeAws_restJson1GetCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3785
|
-
var parsedOutput, _a,
|
|
3709
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3786
3710
|
var _c;
|
|
3787
3711
|
return __generator(this, function (_d) {
|
|
3788
3712
|
switch (_d.label) {
|
|
@@ -3827,14 +3751,14 @@ var deserializeAws_restJson1GetCustomDataIdentifierCommandError = function (outp
|
|
|
3827
3751
|
case 15: throw _d.sent();
|
|
3828
3752
|
case 16:
|
|
3829
3753
|
parsedBody = parsedOutput.body;
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
$metadata: $metadata,
|
|
3754
|
+
throwDefaultError({
|
|
3755
|
+
output: output,
|
|
3756
|
+
parsedBody: parsedBody,
|
|
3757
|
+
exceptionCtor: __BaseException,
|
|
3758
|
+
errorCode: errorCode,
|
|
3836
3759
|
});
|
|
3837
|
-
|
|
3760
|
+
_d.label = 17;
|
|
3761
|
+
case 17: return [2];
|
|
3838
3762
|
}
|
|
3839
3763
|
});
|
|
3840
3764
|
}); };
|
|
@@ -3846,24 +3770,23 @@ export var deserializeAws_restJson1GetFindingsCommand = function (output, contex
|
|
|
3846
3770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3847
3771
|
return [2, deserializeAws_restJson1GetFindingsCommandError(output, context)];
|
|
3848
3772
|
}
|
|
3849
|
-
contents = {
|
|
3773
|
+
contents = map({
|
|
3850
3774
|
$metadata: deserializeMetadata(output),
|
|
3851
|
-
|
|
3852
|
-
};
|
|
3775
|
+
});
|
|
3853
3776
|
_a = __expectNonNull;
|
|
3854
3777
|
_b = __expectObject;
|
|
3855
3778
|
return [4, parseBody(output.body, context)];
|
|
3856
3779
|
case 1:
|
|
3857
3780
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3858
|
-
if (data.findings
|
|
3781
|
+
if (data.findings != null) {
|
|
3859
3782
|
contents.findings = deserializeAws_restJson1__listOfFinding(data.findings, context);
|
|
3860
3783
|
}
|
|
3861
|
-
return [2,
|
|
3784
|
+
return [2, contents];
|
|
3862
3785
|
}
|
|
3863
3786
|
});
|
|
3864
3787
|
}); };
|
|
3865
3788
|
var deserializeAws_restJson1GetFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3866
|
-
var parsedOutput, _a,
|
|
3789
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3867
3790
|
var _c;
|
|
3868
3791
|
return __generator(this, function (_d) {
|
|
3869
3792
|
switch (_d.label) {
|
|
@@ -3908,14 +3831,14 @@ var deserializeAws_restJson1GetFindingsCommandError = function (output, context)
|
|
|
3908
3831
|
case 15: throw _d.sent();
|
|
3909
3832
|
case 16:
|
|
3910
3833
|
parsedBody = parsedOutput.body;
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
$metadata: $metadata,
|
|
3834
|
+
throwDefaultError({
|
|
3835
|
+
output: output,
|
|
3836
|
+
parsedBody: parsedBody,
|
|
3837
|
+
exceptionCtor: __BaseException,
|
|
3838
|
+
errorCode: errorCode,
|
|
3917
3839
|
});
|
|
3918
|
-
|
|
3840
|
+
_d.label = 17;
|
|
3841
|
+
case 17: return [2];
|
|
3919
3842
|
}
|
|
3920
3843
|
});
|
|
3921
3844
|
}); };
|
|
@@ -3927,52 +3850,44 @@ export var deserializeAws_restJson1GetFindingsFilterCommand = function (output,
|
|
|
3927
3850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3928
3851
|
return [2, deserializeAws_restJson1GetFindingsFilterCommandError(output, context)];
|
|
3929
3852
|
}
|
|
3930
|
-
contents = {
|
|
3853
|
+
contents = map({
|
|
3931
3854
|
$metadata: deserializeMetadata(output),
|
|
3932
|
-
|
|
3933
|
-
arn: undefined,
|
|
3934
|
-
description: undefined,
|
|
3935
|
-
findingCriteria: undefined,
|
|
3936
|
-
id: undefined,
|
|
3937
|
-
name: undefined,
|
|
3938
|
-
position: undefined,
|
|
3939
|
-
tags: undefined,
|
|
3940
|
-
};
|
|
3855
|
+
});
|
|
3941
3856
|
_a = __expectNonNull;
|
|
3942
3857
|
_b = __expectObject;
|
|
3943
3858
|
return [4, parseBody(output.body, context)];
|
|
3944
3859
|
case 1:
|
|
3945
3860
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3946
|
-
if (data.action
|
|
3861
|
+
if (data.action != null) {
|
|
3947
3862
|
contents.action = __expectString(data.action);
|
|
3948
3863
|
}
|
|
3949
|
-
if (data.arn
|
|
3864
|
+
if (data.arn != null) {
|
|
3950
3865
|
contents.arn = __expectString(data.arn);
|
|
3951
3866
|
}
|
|
3952
|
-
if (data.description
|
|
3867
|
+
if (data.description != null) {
|
|
3953
3868
|
contents.description = __expectString(data.description);
|
|
3954
3869
|
}
|
|
3955
|
-
if (data.findingCriteria
|
|
3870
|
+
if (data.findingCriteria != null) {
|
|
3956
3871
|
contents.findingCriteria = deserializeAws_restJson1FindingCriteria(data.findingCriteria, context);
|
|
3957
3872
|
}
|
|
3958
|
-
if (data.id
|
|
3873
|
+
if (data.id != null) {
|
|
3959
3874
|
contents.id = __expectString(data.id);
|
|
3960
3875
|
}
|
|
3961
|
-
if (data.name
|
|
3876
|
+
if (data.name != null) {
|
|
3962
3877
|
contents.name = __expectString(data.name);
|
|
3963
3878
|
}
|
|
3964
|
-
if (data.position
|
|
3879
|
+
if (data.position != null) {
|
|
3965
3880
|
contents.position = __expectInt32(data.position);
|
|
3966
3881
|
}
|
|
3967
|
-
if (data.tags
|
|
3882
|
+
if (data.tags != null) {
|
|
3968
3883
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3969
3884
|
}
|
|
3970
|
-
return [2,
|
|
3885
|
+
return [2, contents];
|
|
3971
3886
|
}
|
|
3972
3887
|
});
|
|
3973
3888
|
}); };
|
|
3974
3889
|
var deserializeAws_restJson1GetFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3975
|
-
var parsedOutput, _a,
|
|
3890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3976
3891
|
var _c;
|
|
3977
3892
|
return __generator(this, function (_d) {
|
|
3978
3893
|
switch (_d.label) {
|
|
@@ -4017,14 +3932,14 @@ var deserializeAws_restJson1GetFindingsFilterCommandError = function (output, co
|
|
|
4017
3932
|
case 15: throw _d.sent();
|
|
4018
3933
|
case 16:
|
|
4019
3934
|
parsedBody = parsedOutput.body;
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
$metadata: $metadata,
|
|
3935
|
+
throwDefaultError({
|
|
3936
|
+
output: output,
|
|
3937
|
+
parsedBody: parsedBody,
|
|
3938
|
+
exceptionCtor: __BaseException,
|
|
3939
|
+
errorCode: errorCode,
|
|
4026
3940
|
});
|
|
4027
|
-
|
|
3941
|
+
_d.label = 17;
|
|
3942
|
+
case 17: return [2];
|
|
4028
3943
|
}
|
|
4029
3944
|
});
|
|
4030
3945
|
}); };
|
|
@@ -4036,24 +3951,23 @@ export var deserializeAws_restJson1GetFindingsPublicationConfigurationCommand =
|
|
|
4036
3951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4037
3952
|
return [2, deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError(output, context)];
|
|
4038
3953
|
}
|
|
4039
|
-
contents = {
|
|
3954
|
+
contents = map({
|
|
4040
3955
|
$metadata: deserializeMetadata(output),
|
|
4041
|
-
|
|
4042
|
-
};
|
|
3956
|
+
});
|
|
4043
3957
|
_a = __expectNonNull;
|
|
4044
3958
|
_b = __expectObject;
|
|
4045
3959
|
return [4, parseBody(output.body, context)];
|
|
4046
3960
|
case 1:
|
|
4047
3961
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4048
|
-
if (data.securityHubConfiguration
|
|
3962
|
+
if (data.securityHubConfiguration != null) {
|
|
4049
3963
|
contents.securityHubConfiguration = deserializeAws_restJson1SecurityHubConfiguration(data.securityHubConfiguration, context);
|
|
4050
3964
|
}
|
|
4051
|
-
return [2,
|
|
3965
|
+
return [2, contents];
|
|
4052
3966
|
}
|
|
4053
3967
|
});
|
|
4054
3968
|
}); };
|
|
4055
3969
|
var deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4056
|
-
var parsedOutput, _a,
|
|
3970
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4057
3971
|
var _c;
|
|
4058
3972
|
return __generator(this, function (_d) {
|
|
4059
3973
|
switch (_d.label) {
|
|
@@ -4098,14 +4012,14 @@ var deserializeAws_restJson1GetFindingsPublicationConfigurationCommandError = fu
|
|
|
4098
4012
|
case 15: throw _d.sent();
|
|
4099
4013
|
case 16:
|
|
4100
4014
|
parsedBody = parsedOutput.body;
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
$metadata: $metadata,
|
|
4015
|
+
throwDefaultError({
|
|
4016
|
+
output: output,
|
|
4017
|
+
parsedBody: parsedBody,
|
|
4018
|
+
exceptionCtor: __BaseException,
|
|
4019
|
+
errorCode: errorCode,
|
|
4107
4020
|
});
|
|
4108
|
-
|
|
4021
|
+
_d.label = 17;
|
|
4022
|
+
case 17: return [2];
|
|
4109
4023
|
}
|
|
4110
4024
|
});
|
|
4111
4025
|
}); };
|
|
@@ -4117,24 +4031,23 @@ export var deserializeAws_restJson1GetFindingStatisticsCommand = function (outpu
|
|
|
4117
4031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4118
4032
|
return [2, deserializeAws_restJson1GetFindingStatisticsCommandError(output, context)];
|
|
4119
4033
|
}
|
|
4120
|
-
contents = {
|
|
4034
|
+
contents = map({
|
|
4121
4035
|
$metadata: deserializeMetadata(output),
|
|
4122
|
-
|
|
4123
|
-
};
|
|
4036
|
+
});
|
|
4124
4037
|
_a = __expectNonNull;
|
|
4125
4038
|
_b = __expectObject;
|
|
4126
4039
|
return [4, parseBody(output.body, context)];
|
|
4127
4040
|
case 1:
|
|
4128
4041
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4129
|
-
if (data.countsByGroup
|
|
4042
|
+
if (data.countsByGroup != null) {
|
|
4130
4043
|
contents.countsByGroup = deserializeAws_restJson1__listOfGroupCount(data.countsByGroup, context);
|
|
4131
4044
|
}
|
|
4132
|
-
return [2,
|
|
4045
|
+
return [2, contents];
|
|
4133
4046
|
}
|
|
4134
4047
|
});
|
|
4135
4048
|
}); };
|
|
4136
4049
|
var deserializeAws_restJson1GetFindingStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4137
|
-
var parsedOutput, _a,
|
|
4050
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4138
4051
|
var _c;
|
|
4139
4052
|
return __generator(this, function (_d) {
|
|
4140
4053
|
switch (_d.label) {
|
|
@@ -4179,14 +4092,14 @@ var deserializeAws_restJson1GetFindingStatisticsCommandError = function (output,
|
|
|
4179
4092
|
case 15: throw _d.sent();
|
|
4180
4093
|
case 16:
|
|
4181
4094
|
parsedBody = parsedOutput.body;
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
$metadata: $metadata,
|
|
4095
|
+
throwDefaultError({
|
|
4096
|
+
output: output,
|
|
4097
|
+
parsedBody: parsedBody,
|
|
4098
|
+
exceptionCtor: __BaseException,
|
|
4099
|
+
errorCode: errorCode,
|
|
4188
4100
|
});
|
|
4189
|
-
|
|
4101
|
+
_d.label = 17;
|
|
4102
|
+
case 17: return [2];
|
|
4190
4103
|
}
|
|
4191
4104
|
});
|
|
4192
4105
|
}); };
|
|
@@ -4198,24 +4111,23 @@ export var deserializeAws_restJson1GetInvitationsCountCommand = function (output
|
|
|
4198
4111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4199
4112
|
return [2, deserializeAws_restJson1GetInvitationsCountCommandError(output, context)];
|
|
4200
4113
|
}
|
|
4201
|
-
contents = {
|
|
4114
|
+
contents = map({
|
|
4202
4115
|
$metadata: deserializeMetadata(output),
|
|
4203
|
-
|
|
4204
|
-
};
|
|
4116
|
+
});
|
|
4205
4117
|
_a = __expectNonNull;
|
|
4206
4118
|
_b = __expectObject;
|
|
4207
4119
|
return [4, parseBody(output.body, context)];
|
|
4208
4120
|
case 1:
|
|
4209
4121
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4210
|
-
if (data.invitationsCount
|
|
4122
|
+
if (data.invitationsCount != null) {
|
|
4211
4123
|
contents.invitationsCount = __expectLong(data.invitationsCount);
|
|
4212
4124
|
}
|
|
4213
|
-
return [2,
|
|
4125
|
+
return [2, contents];
|
|
4214
4126
|
}
|
|
4215
4127
|
});
|
|
4216
4128
|
}); };
|
|
4217
4129
|
var deserializeAws_restJson1GetInvitationsCountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4218
|
-
var parsedOutput, _a,
|
|
4130
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4219
4131
|
var _c;
|
|
4220
4132
|
return __generator(this, function (_d) {
|
|
4221
4133
|
switch (_d.label) {
|
|
@@ -4260,14 +4172,14 @@ var deserializeAws_restJson1GetInvitationsCountCommandError = function (output,
|
|
|
4260
4172
|
case 15: throw _d.sent();
|
|
4261
4173
|
case 16:
|
|
4262
4174
|
parsedBody = parsedOutput.body;
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
$metadata: $metadata,
|
|
4175
|
+
throwDefaultError({
|
|
4176
|
+
output: output,
|
|
4177
|
+
parsedBody: parsedBody,
|
|
4178
|
+
exceptionCtor: __BaseException,
|
|
4179
|
+
errorCode: errorCode,
|
|
4269
4180
|
});
|
|
4270
|
-
|
|
4181
|
+
_d.label = 17;
|
|
4182
|
+
case 17: return [2];
|
|
4271
4183
|
}
|
|
4272
4184
|
});
|
|
4273
4185
|
}); };
|
|
@@ -4279,40 +4191,35 @@ export var deserializeAws_restJson1GetMacieSessionCommand = function (output, co
|
|
|
4279
4191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4280
4192
|
return [2, deserializeAws_restJson1GetMacieSessionCommandError(output, context)];
|
|
4281
4193
|
}
|
|
4282
|
-
contents = {
|
|
4194
|
+
contents = map({
|
|
4283
4195
|
$metadata: deserializeMetadata(output),
|
|
4284
|
-
|
|
4285
|
-
findingPublishingFrequency: undefined,
|
|
4286
|
-
serviceRole: undefined,
|
|
4287
|
-
status: undefined,
|
|
4288
|
-
updatedAt: undefined,
|
|
4289
|
-
};
|
|
4196
|
+
});
|
|
4290
4197
|
_a = __expectNonNull;
|
|
4291
4198
|
_b = __expectObject;
|
|
4292
4199
|
return [4, parseBody(output.body, context)];
|
|
4293
4200
|
case 1:
|
|
4294
4201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4295
|
-
if (data.createdAt
|
|
4202
|
+
if (data.createdAt != null) {
|
|
4296
4203
|
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
4297
4204
|
}
|
|
4298
|
-
if (data.findingPublishingFrequency
|
|
4205
|
+
if (data.findingPublishingFrequency != null) {
|
|
4299
4206
|
contents.findingPublishingFrequency = __expectString(data.findingPublishingFrequency);
|
|
4300
4207
|
}
|
|
4301
|
-
if (data.serviceRole
|
|
4208
|
+
if (data.serviceRole != null) {
|
|
4302
4209
|
contents.serviceRole = __expectString(data.serviceRole);
|
|
4303
4210
|
}
|
|
4304
|
-
if (data.status
|
|
4211
|
+
if (data.status != null) {
|
|
4305
4212
|
contents.status = __expectString(data.status);
|
|
4306
4213
|
}
|
|
4307
|
-
if (data.updatedAt
|
|
4214
|
+
if (data.updatedAt != null) {
|
|
4308
4215
|
contents.updatedAt = __expectNonNull(__parseRfc3339DateTime(data.updatedAt));
|
|
4309
4216
|
}
|
|
4310
|
-
return [2,
|
|
4217
|
+
return [2, contents];
|
|
4311
4218
|
}
|
|
4312
4219
|
});
|
|
4313
4220
|
}); };
|
|
4314
4221
|
var deserializeAws_restJson1GetMacieSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4315
|
-
var parsedOutput, _a,
|
|
4222
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4316
4223
|
var _c;
|
|
4317
4224
|
return __generator(this, function (_d) {
|
|
4318
4225
|
switch (_d.label) {
|
|
@@ -4357,14 +4264,14 @@ var deserializeAws_restJson1GetMacieSessionCommandError = function (output, cont
|
|
|
4357
4264
|
case 15: throw _d.sent();
|
|
4358
4265
|
case 16:
|
|
4359
4266
|
parsedBody = parsedOutput.body;
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
$metadata: $metadata,
|
|
4267
|
+
throwDefaultError({
|
|
4268
|
+
output: output,
|
|
4269
|
+
parsedBody: parsedBody,
|
|
4270
|
+
exceptionCtor: __BaseException,
|
|
4271
|
+
errorCode: errorCode,
|
|
4366
4272
|
});
|
|
4367
|
-
|
|
4273
|
+
_d.label = 17;
|
|
4274
|
+
case 17: return [2];
|
|
4368
4275
|
}
|
|
4369
4276
|
});
|
|
4370
4277
|
}); };
|
|
@@ -4376,24 +4283,23 @@ export var deserializeAws_restJson1GetMasterAccountCommand = function (output, c
|
|
|
4376
4283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4377
4284
|
return [2, deserializeAws_restJson1GetMasterAccountCommandError(output, context)];
|
|
4378
4285
|
}
|
|
4379
|
-
contents = {
|
|
4286
|
+
contents = map({
|
|
4380
4287
|
$metadata: deserializeMetadata(output),
|
|
4381
|
-
|
|
4382
|
-
};
|
|
4288
|
+
});
|
|
4383
4289
|
_a = __expectNonNull;
|
|
4384
4290
|
_b = __expectObject;
|
|
4385
4291
|
return [4, parseBody(output.body, context)];
|
|
4386
4292
|
case 1:
|
|
4387
4293
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4388
|
-
if (data.master
|
|
4294
|
+
if (data.master != null) {
|
|
4389
4295
|
contents.master = deserializeAws_restJson1Invitation(data.master, context);
|
|
4390
4296
|
}
|
|
4391
|
-
return [2,
|
|
4297
|
+
return [2, contents];
|
|
4392
4298
|
}
|
|
4393
4299
|
});
|
|
4394
4300
|
}); };
|
|
4395
4301
|
var deserializeAws_restJson1GetMasterAccountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4396
|
-
var parsedOutput, _a,
|
|
4302
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4397
4303
|
var _c;
|
|
4398
4304
|
return __generator(this, function (_d) {
|
|
4399
4305
|
switch (_d.label) {
|
|
@@ -4438,14 +4344,14 @@ var deserializeAws_restJson1GetMasterAccountCommandError = function (output, con
|
|
|
4438
4344
|
case 15: throw _d.sent();
|
|
4439
4345
|
case 16:
|
|
4440
4346
|
parsedBody = parsedOutput.body;
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
$metadata: $metadata,
|
|
4347
|
+
throwDefaultError({
|
|
4348
|
+
output: output,
|
|
4349
|
+
parsedBody: parsedBody,
|
|
4350
|
+
exceptionCtor: __BaseException,
|
|
4351
|
+
errorCode: errorCode,
|
|
4447
4352
|
});
|
|
4448
|
-
|
|
4353
|
+
_d.label = 17;
|
|
4354
|
+
case 17: return [2];
|
|
4449
4355
|
}
|
|
4450
4356
|
});
|
|
4451
4357
|
}); };
|
|
@@ -4457,56 +4363,47 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
4457
4363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4458
4364
|
return [2, deserializeAws_restJson1GetMemberCommandError(output, context)];
|
|
4459
4365
|
}
|
|
4460
|
-
contents = {
|
|
4366
|
+
contents = map({
|
|
4461
4367
|
$metadata: deserializeMetadata(output),
|
|
4462
|
-
|
|
4463
|
-
administratorAccountId: undefined,
|
|
4464
|
-
arn: undefined,
|
|
4465
|
-
email: undefined,
|
|
4466
|
-
invitedAt: undefined,
|
|
4467
|
-
masterAccountId: undefined,
|
|
4468
|
-
relationshipStatus: undefined,
|
|
4469
|
-
tags: undefined,
|
|
4470
|
-
updatedAt: undefined,
|
|
4471
|
-
};
|
|
4368
|
+
});
|
|
4472
4369
|
_a = __expectNonNull;
|
|
4473
4370
|
_b = __expectObject;
|
|
4474
4371
|
return [4, parseBody(output.body, context)];
|
|
4475
4372
|
case 1:
|
|
4476
4373
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4477
|
-
if (data.accountId
|
|
4374
|
+
if (data.accountId != null) {
|
|
4478
4375
|
contents.accountId = __expectString(data.accountId);
|
|
4479
4376
|
}
|
|
4480
|
-
if (data.administratorAccountId
|
|
4377
|
+
if (data.administratorAccountId != null) {
|
|
4481
4378
|
contents.administratorAccountId = __expectString(data.administratorAccountId);
|
|
4482
4379
|
}
|
|
4483
|
-
if (data.arn
|
|
4380
|
+
if (data.arn != null) {
|
|
4484
4381
|
contents.arn = __expectString(data.arn);
|
|
4485
4382
|
}
|
|
4486
|
-
if (data.email
|
|
4383
|
+
if (data.email != null) {
|
|
4487
4384
|
contents.email = __expectString(data.email);
|
|
4488
4385
|
}
|
|
4489
|
-
if (data.invitedAt
|
|
4386
|
+
if (data.invitedAt != null) {
|
|
4490
4387
|
contents.invitedAt = __expectNonNull(__parseRfc3339DateTime(data.invitedAt));
|
|
4491
4388
|
}
|
|
4492
|
-
if (data.masterAccountId
|
|
4389
|
+
if (data.masterAccountId != null) {
|
|
4493
4390
|
contents.masterAccountId = __expectString(data.masterAccountId);
|
|
4494
4391
|
}
|
|
4495
|
-
if (data.relationshipStatus
|
|
4392
|
+
if (data.relationshipStatus != null) {
|
|
4496
4393
|
contents.relationshipStatus = __expectString(data.relationshipStatus);
|
|
4497
4394
|
}
|
|
4498
|
-
if (data.tags
|
|
4395
|
+
if (data.tags != null) {
|
|
4499
4396
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4500
4397
|
}
|
|
4501
|
-
if (data.updatedAt
|
|
4398
|
+
if (data.updatedAt != null) {
|
|
4502
4399
|
contents.updatedAt = __expectNonNull(__parseRfc3339DateTime(data.updatedAt));
|
|
4503
4400
|
}
|
|
4504
|
-
return [2,
|
|
4401
|
+
return [2, contents];
|
|
4505
4402
|
}
|
|
4506
4403
|
});
|
|
4507
4404
|
}); };
|
|
4508
4405
|
var deserializeAws_restJson1GetMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4509
|
-
var parsedOutput, _a,
|
|
4406
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4510
4407
|
var _c;
|
|
4511
4408
|
return __generator(this, function (_d) {
|
|
4512
4409
|
switch (_d.label) {
|
|
@@ -4551,14 +4448,235 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
4551
4448
|
case 15: throw _d.sent();
|
|
4552
4449
|
case 16:
|
|
4553
4450
|
parsedBody = parsedOutput.body;
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4451
|
+
throwDefaultError({
|
|
4452
|
+
output: output,
|
|
4453
|
+
parsedBody: parsedBody,
|
|
4454
|
+
exceptionCtor: __BaseException,
|
|
4455
|
+
errorCode: errorCode,
|
|
4456
|
+
});
|
|
4457
|
+
_d.label = 17;
|
|
4458
|
+
case 17: return [2];
|
|
4459
|
+
}
|
|
4460
|
+
});
|
|
4461
|
+
}); };
|
|
4462
|
+
export var deserializeAws_restJson1GetRevealConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4463
|
+
var contents, data, _a, _b;
|
|
4464
|
+
return __generator(this, function (_c) {
|
|
4465
|
+
switch (_c.label) {
|
|
4466
|
+
case 0:
|
|
4467
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4468
|
+
return [2, deserializeAws_restJson1GetRevealConfigurationCommandError(output, context)];
|
|
4469
|
+
}
|
|
4470
|
+
contents = map({
|
|
4471
|
+
$metadata: deserializeMetadata(output),
|
|
4472
|
+
});
|
|
4473
|
+
_a = __expectNonNull;
|
|
4474
|
+
_b = __expectObject;
|
|
4475
|
+
return [4, parseBody(output.body, context)];
|
|
4476
|
+
case 1:
|
|
4477
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4478
|
+
if (data.configuration != null) {
|
|
4479
|
+
contents.configuration = deserializeAws_restJson1RevealConfiguration(data.configuration, context);
|
|
4480
|
+
}
|
|
4481
|
+
return [2, contents];
|
|
4482
|
+
}
|
|
4483
|
+
});
|
|
4484
|
+
}); };
|
|
4485
|
+
var deserializeAws_restJson1GetRevealConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4487
|
+
var _c;
|
|
4488
|
+
return __generator(this, function (_d) {
|
|
4489
|
+
switch (_d.label) {
|
|
4490
|
+
case 0:
|
|
4491
|
+
_a = [__assign({}, output)];
|
|
4492
|
+
_c = {};
|
|
4493
|
+
return [4, parseBody(output.body, context)];
|
|
4494
|
+
case 1:
|
|
4495
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4496
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4497
|
+
_b = errorCode;
|
|
4498
|
+
switch (_b) {
|
|
4499
|
+
case "AccessDeniedException": return [3, 2];
|
|
4500
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
4501
|
+
case "InternalServerException": return [3, 4];
|
|
4502
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
4503
|
+
case "ThrottlingException": return [3, 6];
|
|
4504
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 6];
|
|
4505
|
+
case "ValidationException": return [3, 8];
|
|
4506
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 8];
|
|
4507
|
+
}
|
|
4508
|
+
return [3, 10];
|
|
4509
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4510
|
+
case 3: throw _d.sent();
|
|
4511
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4512
|
+
case 5: throw _d.sent();
|
|
4513
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4514
|
+
case 7: throw _d.sent();
|
|
4515
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
4516
|
+
case 9: throw _d.sent();
|
|
4517
|
+
case 10:
|
|
4518
|
+
parsedBody = parsedOutput.body;
|
|
4519
|
+
throwDefaultError({
|
|
4520
|
+
output: output,
|
|
4521
|
+
parsedBody: parsedBody,
|
|
4522
|
+
exceptionCtor: __BaseException,
|
|
4523
|
+
errorCode: errorCode,
|
|
4524
|
+
});
|
|
4525
|
+
_d.label = 11;
|
|
4526
|
+
case 11: return [2];
|
|
4527
|
+
}
|
|
4528
|
+
});
|
|
4529
|
+
}); };
|
|
4530
|
+
export var deserializeAws_restJson1GetSensitiveDataOccurrencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4531
|
+
var contents, data, _a, _b;
|
|
4532
|
+
return __generator(this, function (_c) {
|
|
4533
|
+
switch (_c.label) {
|
|
4534
|
+
case 0:
|
|
4535
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4536
|
+
return [2, deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError(output, context)];
|
|
4537
|
+
}
|
|
4538
|
+
contents = map({
|
|
4539
|
+
$metadata: deserializeMetadata(output),
|
|
4540
|
+
});
|
|
4541
|
+
_a = __expectNonNull;
|
|
4542
|
+
_b = __expectObject;
|
|
4543
|
+
return [4, parseBody(output.body, context)];
|
|
4544
|
+
case 1:
|
|
4545
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4546
|
+
if (data.error != null) {
|
|
4547
|
+
contents.error = __expectString(data.error);
|
|
4548
|
+
}
|
|
4549
|
+
if (data.sensitiveDataOccurrences != null) {
|
|
4550
|
+
contents.sensitiveDataOccurrences = deserializeAws_restJson1SensitiveDataOccurrences(data.sensitiveDataOccurrences, context);
|
|
4551
|
+
}
|
|
4552
|
+
if (data.status != null) {
|
|
4553
|
+
contents.status = __expectString(data.status);
|
|
4554
|
+
}
|
|
4555
|
+
return [2, contents];
|
|
4556
|
+
}
|
|
4557
|
+
});
|
|
4558
|
+
}); };
|
|
4559
|
+
var deserializeAws_restJson1GetSensitiveDataOccurrencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4560
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4561
|
+
var _c;
|
|
4562
|
+
return __generator(this, function (_d) {
|
|
4563
|
+
switch (_d.label) {
|
|
4564
|
+
case 0:
|
|
4565
|
+
_a = [__assign({}, output)];
|
|
4566
|
+
_c = {};
|
|
4567
|
+
return [4, parseBody(output.body, context)];
|
|
4568
|
+
case 1:
|
|
4569
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4570
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4571
|
+
_b = errorCode;
|
|
4572
|
+
switch (_b) {
|
|
4573
|
+
case "AccessDeniedException": return [3, 2];
|
|
4574
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
4575
|
+
case "InternalServerException": return [3, 4];
|
|
4576
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
4577
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4578
|
+
case "com.amazonaws.macie2#ResourceNotFoundException": return [3, 6];
|
|
4579
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
4580
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException": return [3, 8];
|
|
4581
|
+
case "ThrottlingException": return [3, 10];
|
|
4582
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 10];
|
|
4583
|
+
case "UnprocessableEntityException": return [3, 12];
|
|
4584
|
+
case "com.amazonaws.macie2#UnprocessableEntityException": return [3, 12];
|
|
4585
|
+
}
|
|
4586
|
+
return [3, 14];
|
|
4587
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4588
|
+
case 3: throw _d.sent();
|
|
4589
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4590
|
+
case 5: throw _d.sent();
|
|
4591
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4592
|
+
case 7: throw _d.sent();
|
|
4593
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
4594
|
+
case 9: throw _d.sent();
|
|
4595
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4596
|
+
case 11: throw _d.sent();
|
|
4597
|
+
case 12: return [4, deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context)];
|
|
4598
|
+
case 13: throw _d.sent();
|
|
4599
|
+
case 14:
|
|
4600
|
+
parsedBody = parsedOutput.body;
|
|
4601
|
+
throwDefaultError({
|
|
4602
|
+
output: output,
|
|
4603
|
+
parsedBody: parsedBody,
|
|
4604
|
+
exceptionCtor: __BaseException,
|
|
4605
|
+
errorCode: errorCode,
|
|
4606
|
+
});
|
|
4607
|
+
_d.label = 15;
|
|
4608
|
+
case 15: return [2];
|
|
4609
|
+
}
|
|
4610
|
+
});
|
|
4611
|
+
}); };
|
|
4612
|
+
export var deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4613
|
+
var contents, data, _a, _b;
|
|
4614
|
+
return __generator(this, function (_c) {
|
|
4615
|
+
switch (_c.label) {
|
|
4616
|
+
case 0:
|
|
4617
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4618
|
+
return [2, deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError(output, context)];
|
|
4619
|
+
}
|
|
4620
|
+
contents = map({
|
|
4621
|
+
$metadata: deserializeMetadata(output),
|
|
4560
4622
|
});
|
|
4561
|
-
|
|
4623
|
+
_a = __expectNonNull;
|
|
4624
|
+
_b = __expectObject;
|
|
4625
|
+
return [4, parseBody(output.body, context)];
|
|
4626
|
+
case 1:
|
|
4627
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4628
|
+
if (data.code != null) {
|
|
4629
|
+
contents.code = __expectString(data.code);
|
|
4630
|
+
}
|
|
4631
|
+
if (data.reasons != null) {
|
|
4632
|
+
contents.reasons = deserializeAws_restJson1__listOfUnavailabilityReasonCode(data.reasons, context);
|
|
4633
|
+
}
|
|
4634
|
+
return [2, contents];
|
|
4635
|
+
}
|
|
4636
|
+
});
|
|
4637
|
+
}); };
|
|
4638
|
+
var deserializeAws_restJson1GetSensitiveDataOccurrencesAvailabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4639
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4640
|
+
var _c;
|
|
4641
|
+
return __generator(this, function (_d) {
|
|
4642
|
+
switch (_d.label) {
|
|
4643
|
+
case 0:
|
|
4644
|
+
_a = [__assign({}, output)];
|
|
4645
|
+
_c = {};
|
|
4646
|
+
return [4, parseBody(output.body, context)];
|
|
4647
|
+
case 1:
|
|
4648
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4649
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4650
|
+
_b = errorCode;
|
|
4651
|
+
switch (_b) {
|
|
4652
|
+
case "AccessDeniedException": return [3, 2];
|
|
4653
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
4654
|
+
case "InternalServerException": return [3, 4];
|
|
4655
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
4656
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4657
|
+
case "com.amazonaws.macie2#ResourceNotFoundException": return [3, 6];
|
|
4658
|
+
case "ThrottlingException": return [3, 8];
|
|
4659
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 8];
|
|
4660
|
+
}
|
|
4661
|
+
return [3, 10];
|
|
4662
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4663
|
+
case 3: throw _d.sent();
|
|
4664
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4665
|
+
case 5: throw _d.sent();
|
|
4666
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4667
|
+
case 7: throw _d.sent();
|
|
4668
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4669
|
+
case 9: throw _d.sent();
|
|
4670
|
+
case 10:
|
|
4671
|
+
parsedBody = parsedOutput.body;
|
|
4672
|
+
throwDefaultError({
|
|
4673
|
+
output: output,
|
|
4674
|
+
parsedBody: parsedBody,
|
|
4675
|
+
exceptionCtor: __BaseException,
|
|
4676
|
+
errorCode: errorCode,
|
|
4677
|
+
});
|
|
4678
|
+
_d.label = 11;
|
|
4679
|
+
case 11: return [2];
|
|
4562
4680
|
}
|
|
4563
4681
|
});
|
|
4564
4682
|
}); };
|
|
@@ -4570,32 +4688,29 @@ export var deserializeAws_restJson1GetUsageStatisticsCommand = function (output,
|
|
|
4570
4688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4571
4689
|
return [2, deserializeAws_restJson1GetUsageStatisticsCommandError(output, context)];
|
|
4572
4690
|
}
|
|
4573
|
-
contents = {
|
|
4691
|
+
contents = map({
|
|
4574
4692
|
$metadata: deserializeMetadata(output),
|
|
4575
|
-
|
|
4576
|
-
records: undefined,
|
|
4577
|
-
timeRange: undefined,
|
|
4578
|
-
};
|
|
4693
|
+
});
|
|
4579
4694
|
_a = __expectNonNull;
|
|
4580
4695
|
_b = __expectObject;
|
|
4581
4696
|
return [4, parseBody(output.body, context)];
|
|
4582
4697
|
case 1:
|
|
4583
4698
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4584
|
-
if (data.nextToken
|
|
4699
|
+
if (data.nextToken != null) {
|
|
4585
4700
|
contents.nextToken = __expectString(data.nextToken);
|
|
4586
4701
|
}
|
|
4587
|
-
if (data.records
|
|
4702
|
+
if (data.records != null) {
|
|
4588
4703
|
contents.records = deserializeAws_restJson1__listOfUsageRecord(data.records, context);
|
|
4589
4704
|
}
|
|
4590
|
-
if (data.timeRange
|
|
4705
|
+
if (data.timeRange != null) {
|
|
4591
4706
|
contents.timeRange = __expectString(data.timeRange);
|
|
4592
4707
|
}
|
|
4593
|
-
return [2,
|
|
4708
|
+
return [2, contents];
|
|
4594
4709
|
}
|
|
4595
4710
|
});
|
|
4596
4711
|
}); };
|
|
4597
4712
|
var deserializeAws_restJson1GetUsageStatisticsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4598
|
-
var parsedOutput, _a,
|
|
4713
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4599
4714
|
var _c;
|
|
4600
4715
|
return __generator(this, function (_d) {
|
|
4601
4716
|
switch (_d.label) {
|
|
@@ -4640,14 +4755,14 @@ var deserializeAws_restJson1GetUsageStatisticsCommandError = function (output, c
|
|
|
4640
4755
|
case 15: throw _d.sent();
|
|
4641
4756
|
case 16:
|
|
4642
4757
|
parsedBody = parsedOutput.body;
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
$metadata: $metadata,
|
|
4758
|
+
throwDefaultError({
|
|
4759
|
+
output: output,
|
|
4760
|
+
parsedBody: parsedBody,
|
|
4761
|
+
exceptionCtor: __BaseException,
|
|
4762
|
+
errorCode: errorCode,
|
|
4649
4763
|
});
|
|
4650
|
-
|
|
4764
|
+
_d.label = 17;
|
|
4765
|
+
case 17: return [2];
|
|
4651
4766
|
}
|
|
4652
4767
|
});
|
|
4653
4768
|
}); };
|
|
@@ -4659,28 +4774,26 @@ export var deserializeAws_restJson1GetUsageTotalsCommand = function (output, con
|
|
|
4659
4774
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4660
4775
|
return [2, deserializeAws_restJson1GetUsageTotalsCommandError(output, context)];
|
|
4661
4776
|
}
|
|
4662
|
-
contents = {
|
|
4777
|
+
contents = map({
|
|
4663
4778
|
$metadata: deserializeMetadata(output),
|
|
4664
|
-
|
|
4665
|
-
usageTotals: undefined,
|
|
4666
|
-
};
|
|
4779
|
+
});
|
|
4667
4780
|
_a = __expectNonNull;
|
|
4668
4781
|
_b = __expectObject;
|
|
4669
4782
|
return [4, parseBody(output.body, context)];
|
|
4670
4783
|
case 1:
|
|
4671
4784
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4672
|
-
if (data.timeRange
|
|
4785
|
+
if (data.timeRange != null) {
|
|
4673
4786
|
contents.timeRange = __expectString(data.timeRange);
|
|
4674
4787
|
}
|
|
4675
|
-
if (data.usageTotals
|
|
4788
|
+
if (data.usageTotals != null) {
|
|
4676
4789
|
contents.usageTotals = deserializeAws_restJson1__listOfUsageTotal(data.usageTotals, context);
|
|
4677
4790
|
}
|
|
4678
|
-
return [2,
|
|
4791
|
+
return [2, contents];
|
|
4679
4792
|
}
|
|
4680
4793
|
});
|
|
4681
4794
|
}); };
|
|
4682
4795
|
var deserializeAws_restJson1GetUsageTotalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4683
|
-
var parsedOutput, _a,
|
|
4796
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4684
4797
|
var _c;
|
|
4685
4798
|
return __generator(this, function (_d) {
|
|
4686
4799
|
switch (_d.label) {
|
|
@@ -4725,14 +4838,14 @@ var deserializeAws_restJson1GetUsageTotalsCommandError = function (output, conte
|
|
|
4725
4838
|
case 15: throw _d.sent();
|
|
4726
4839
|
case 16:
|
|
4727
4840
|
parsedBody = parsedOutput.body;
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
$metadata: $metadata,
|
|
4841
|
+
throwDefaultError({
|
|
4842
|
+
output: output,
|
|
4843
|
+
parsedBody: parsedBody,
|
|
4844
|
+
exceptionCtor: __BaseException,
|
|
4845
|
+
errorCode: errorCode,
|
|
4734
4846
|
});
|
|
4735
|
-
|
|
4847
|
+
_d.label = 17;
|
|
4848
|
+
case 17: return [2];
|
|
4736
4849
|
}
|
|
4737
4850
|
});
|
|
4738
4851
|
}); };
|
|
@@ -4744,28 +4857,26 @@ export var deserializeAws_restJson1ListClassificationJobsCommand = function (out
|
|
|
4744
4857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4745
4858
|
return [2, deserializeAws_restJson1ListClassificationJobsCommandError(output, context)];
|
|
4746
4859
|
}
|
|
4747
|
-
contents = {
|
|
4860
|
+
contents = map({
|
|
4748
4861
|
$metadata: deserializeMetadata(output),
|
|
4749
|
-
|
|
4750
|
-
nextToken: undefined,
|
|
4751
|
-
};
|
|
4862
|
+
});
|
|
4752
4863
|
_a = __expectNonNull;
|
|
4753
4864
|
_b = __expectObject;
|
|
4754
4865
|
return [4, parseBody(output.body, context)];
|
|
4755
4866
|
case 1:
|
|
4756
4867
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4757
|
-
if (data.items
|
|
4868
|
+
if (data.items != null) {
|
|
4758
4869
|
contents.items = deserializeAws_restJson1__listOfJobSummary(data.items, context);
|
|
4759
4870
|
}
|
|
4760
|
-
if (data.nextToken
|
|
4871
|
+
if (data.nextToken != null) {
|
|
4761
4872
|
contents.nextToken = __expectString(data.nextToken);
|
|
4762
4873
|
}
|
|
4763
|
-
return [2,
|
|
4874
|
+
return [2, contents];
|
|
4764
4875
|
}
|
|
4765
4876
|
});
|
|
4766
4877
|
}); };
|
|
4767
4878
|
var deserializeAws_restJson1ListClassificationJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4768
|
-
var parsedOutput, _a,
|
|
4879
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4769
4880
|
var _c;
|
|
4770
4881
|
return __generator(this, function (_d) {
|
|
4771
4882
|
switch (_d.label) {
|
|
@@ -4810,14 +4921,14 @@ var deserializeAws_restJson1ListClassificationJobsCommandError = function (outpu
|
|
|
4810
4921
|
case 15: throw _d.sent();
|
|
4811
4922
|
case 16:
|
|
4812
4923
|
parsedBody = parsedOutput.body;
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
$metadata: $metadata,
|
|
4924
|
+
throwDefaultError({
|
|
4925
|
+
output: output,
|
|
4926
|
+
parsedBody: parsedBody,
|
|
4927
|
+
exceptionCtor: __BaseException,
|
|
4928
|
+
errorCode: errorCode,
|
|
4819
4929
|
});
|
|
4820
|
-
|
|
4930
|
+
_d.label = 17;
|
|
4931
|
+
case 17: return [2];
|
|
4821
4932
|
}
|
|
4822
4933
|
});
|
|
4823
4934
|
}); };
|
|
@@ -4829,28 +4940,26 @@ export var deserializeAws_restJson1ListCustomDataIdentifiersCommand = function (
|
|
|
4829
4940
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4830
4941
|
return [2, deserializeAws_restJson1ListCustomDataIdentifiersCommandError(output, context)];
|
|
4831
4942
|
}
|
|
4832
|
-
contents = {
|
|
4943
|
+
contents = map({
|
|
4833
4944
|
$metadata: deserializeMetadata(output),
|
|
4834
|
-
|
|
4835
|
-
nextToken: undefined,
|
|
4836
|
-
};
|
|
4945
|
+
});
|
|
4837
4946
|
_a = __expectNonNull;
|
|
4838
4947
|
_b = __expectObject;
|
|
4839
4948
|
return [4, parseBody(output.body, context)];
|
|
4840
4949
|
case 1:
|
|
4841
4950
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4842
|
-
if (data.items
|
|
4951
|
+
if (data.items != null) {
|
|
4843
4952
|
contents.items = deserializeAws_restJson1__listOfCustomDataIdentifierSummary(data.items, context);
|
|
4844
4953
|
}
|
|
4845
|
-
if (data.nextToken
|
|
4954
|
+
if (data.nextToken != null) {
|
|
4846
4955
|
contents.nextToken = __expectString(data.nextToken);
|
|
4847
4956
|
}
|
|
4848
|
-
return [2,
|
|
4957
|
+
return [2, contents];
|
|
4849
4958
|
}
|
|
4850
4959
|
});
|
|
4851
4960
|
}); };
|
|
4852
4961
|
var deserializeAws_restJson1ListCustomDataIdentifiersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4853
|
-
var parsedOutput, _a,
|
|
4962
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4854
4963
|
var _c;
|
|
4855
4964
|
return __generator(this, function (_d) {
|
|
4856
4965
|
switch (_d.label) {
|
|
@@ -4895,14 +5004,14 @@ var deserializeAws_restJson1ListCustomDataIdentifiersCommandError = function (ou
|
|
|
4895
5004
|
case 15: throw _d.sent();
|
|
4896
5005
|
case 16:
|
|
4897
5006
|
parsedBody = parsedOutput.body;
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
$metadata: $metadata,
|
|
5007
|
+
throwDefaultError({
|
|
5008
|
+
output: output,
|
|
5009
|
+
parsedBody: parsedBody,
|
|
5010
|
+
exceptionCtor: __BaseException,
|
|
5011
|
+
errorCode: errorCode,
|
|
4904
5012
|
});
|
|
4905
|
-
|
|
5013
|
+
_d.label = 17;
|
|
5014
|
+
case 17: return [2];
|
|
4906
5015
|
}
|
|
4907
5016
|
});
|
|
4908
5017
|
}); };
|
|
@@ -4914,28 +5023,26 @@ export var deserializeAws_restJson1ListFindingsCommand = function (output, conte
|
|
|
4914
5023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4915
5024
|
return [2, deserializeAws_restJson1ListFindingsCommandError(output, context)];
|
|
4916
5025
|
}
|
|
4917
|
-
contents = {
|
|
5026
|
+
contents = map({
|
|
4918
5027
|
$metadata: deserializeMetadata(output),
|
|
4919
|
-
|
|
4920
|
-
nextToken: undefined,
|
|
4921
|
-
};
|
|
5028
|
+
});
|
|
4922
5029
|
_a = __expectNonNull;
|
|
4923
5030
|
_b = __expectObject;
|
|
4924
5031
|
return [4, parseBody(output.body, context)];
|
|
4925
5032
|
case 1:
|
|
4926
5033
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4927
|
-
if (data.findingIds
|
|
5034
|
+
if (data.findingIds != null) {
|
|
4928
5035
|
contents.findingIds = deserializeAws_restJson1__listOf__string(data.findingIds, context);
|
|
4929
5036
|
}
|
|
4930
|
-
if (data.nextToken
|
|
5037
|
+
if (data.nextToken != null) {
|
|
4931
5038
|
contents.nextToken = __expectString(data.nextToken);
|
|
4932
5039
|
}
|
|
4933
|
-
return [2,
|
|
5040
|
+
return [2, contents];
|
|
4934
5041
|
}
|
|
4935
5042
|
});
|
|
4936
5043
|
}); };
|
|
4937
5044
|
var deserializeAws_restJson1ListFindingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4938
|
-
var parsedOutput, _a,
|
|
5045
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4939
5046
|
var _c;
|
|
4940
5047
|
return __generator(this, function (_d) {
|
|
4941
5048
|
switch (_d.label) {
|
|
@@ -4980,14 +5087,14 @@ var deserializeAws_restJson1ListFindingsCommandError = function (output, context
|
|
|
4980
5087
|
case 15: throw _d.sent();
|
|
4981
5088
|
case 16:
|
|
4982
5089
|
parsedBody = parsedOutput.body;
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
$metadata: $metadata,
|
|
5090
|
+
throwDefaultError({
|
|
5091
|
+
output: output,
|
|
5092
|
+
parsedBody: parsedBody,
|
|
5093
|
+
exceptionCtor: __BaseException,
|
|
5094
|
+
errorCode: errorCode,
|
|
4989
5095
|
});
|
|
4990
|
-
|
|
5096
|
+
_d.label = 17;
|
|
5097
|
+
case 17: return [2];
|
|
4991
5098
|
}
|
|
4992
5099
|
});
|
|
4993
5100
|
}); };
|
|
@@ -4999,28 +5106,26 @@ export var deserializeAws_restJson1ListFindingsFiltersCommand = function (output
|
|
|
4999
5106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5000
5107
|
return [2, deserializeAws_restJson1ListFindingsFiltersCommandError(output, context)];
|
|
5001
5108
|
}
|
|
5002
|
-
contents = {
|
|
5109
|
+
contents = map({
|
|
5003
5110
|
$metadata: deserializeMetadata(output),
|
|
5004
|
-
|
|
5005
|
-
nextToken: undefined,
|
|
5006
|
-
};
|
|
5111
|
+
});
|
|
5007
5112
|
_a = __expectNonNull;
|
|
5008
5113
|
_b = __expectObject;
|
|
5009
5114
|
return [4, parseBody(output.body, context)];
|
|
5010
5115
|
case 1:
|
|
5011
5116
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5012
|
-
if (data.findingsFilterListItems
|
|
5117
|
+
if (data.findingsFilterListItems != null) {
|
|
5013
5118
|
contents.findingsFilterListItems = deserializeAws_restJson1__listOfFindingsFilterListItem(data.findingsFilterListItems, context);
|
|
5014
5119
|
}
|
|
5015
|
-
if (data.nextToken
|
|
5120
|
+
if (data.nextToken != null) {
|
|
5016
5121
|
contents.nextToken = __expectString(data.nextToken);
|
|
5017
5122
|
}
|
|
5018
|
-
return [2,
|
|
5123
|
+
return [2, contents];
|
|
5019
5124
|
}
|
|
5020
5125
|
});
|
|
5021
5126
|
}); };
|
|
5022
5127
|
var deserializeAws_restJson1ListFindingsFiltersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5023
|
-
var parsedOutput, _a,
|
|
5128
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5024
5129
|
var _c;
|
|
5025
5130
|
return __generator(this, function (_d) {
|
|
5026
5131
|
switch (_d.label) {
|
|
@@ -5065,14 +5170,14 @@ var deserializeAws_restJson1ListFindingsFiltersCommandError = function (output,
|
|
|
5065
5170
|
case 15: throw _d.sent();
|
|
5066
5171
|
case 16:
|
|
5067
5172
|
parsedBody = parsedOutput.body;
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
$metadata: $metadata,
|
|
5173
|
+
throwDefaultError({
|
|
5174
|
+
output: output,
|
|
5175
|
+
parsedBody: parsedBody,
|
|
5176
|
+
exceptionCtor: __BaseException,
|
|
5177
|
+
errorCode: errorCode,
|
|
5074
5178
|
});
|
|
5075
|
-
|
|
5179
|
+
_d.label = 17;
|
|
5180
|
+
case 17: return [2];
|
|
5076
5181
|
}
|
|
5077
5182
|
});
|
|
5078
5183
|
}); };
|
|
@@ -5084,28 +5189,26 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
5084
5189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5085
5190
|
return [2, deserializeAws_restJson1ListInvitationsCommandError(output, context)];
|
|
5086
5191
|
}
|
|
5087
|
-
contents = {
|
|
5192
|
+
contents = map({
|
|
5088
5193
|
$metadata: deserializeMetadata(output),
|
|
5089
|
-
|
|
5090
|
-
nextToken: undefined,
|
|
5091
|
-
};
|
|
5194
|
+
});
|
|
5092
5195
|
_a = __expectNonNull;
|
|
5093
5196
|
_b = __expectObject;
|
|
5094
5197
|
return [4, parseBody(output.body, context)];
|
|
5095
5198
|
case 1:
|
|
5096
5199
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5097
|
-
if (data.invitations
|
|
5200
|
+
if (data.invitations != null) {
|
|
5098
5201
|
contents.invitations = deserializeAws_restJson1__listOfInvitation(data.invitations, context);
|
|
5099
5202
|
}
|
|
5100
|
-
if (data.nextToken
|
|
5203
|
+
if (data.nextToken != null) {
|
|
5101
5204
|
contents.nextToken = __expectString(data.nextToken);
|
|
5102
5205
|
}
|
|
5103
|
-
return [2,
|
|
5206
|
+
return [2, contents];
|
|
5104
5207
|
}
|
|
5105
5208
|
});
|
|
5106
5209
|
}); };
|
|
5107
5210
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5108
|
-
var parsedOutput, _a,
|
|
5211
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5109
5212
|
var _c;
|
|
5110
5213
|
return __generator(this, function (_d) {
|
|
5111
5214
|
switch (_d.label) {
|
|
@@ -5150,14 +5253,14 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
5150
5253
|
case 15: throw _d.sent();
|
|
5151
5254
|
case 16:
|
|
5152
5255
|
parsedBody = parsedOutput.body;
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
$metadata: $metadata,
|
|
5256
|
+
throwDefaultError({
|
|
5257
|
+
output: output,
|
|
5258
|
+
parsedBody: parsedBody,
|
|
5259
|
+
exceptionCtor: __BaseException,
|
|
5260
|
+
errorCode: errorCode,
|
|
5159
5261
|
});
|
|
5160
|
-
|
|
5262
|
+
_d.label = 17;
|
|
5263
|
+
case 17: return [2];
|
|
5161
5264
|
}
|
|
5162
5265
|
});
|
|
5163
5266
|
}); };
|
|
@@ -5169,28 +5272,26 @@ export var deserializeAws_restJson1ListManagedDataIdentifiersCommand = function
|
|
|
5169
5272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5170
5273
|
return [2, deserializeAws_restJson1ListManagedDataIdentifiersCommandError(output, context)];
|
|
5171
5274
|
}
|
|
5172
|
-
contents = {
|
|
5275
|
+
contents = map({
|
|
5173
5276
|
$metadata: deserializeMetadata(output),
|
|
5174
|
-
|
|
5175
|
-
nextToken: undefined,
|
|
5176
|
-
};
|
|
5277
|
+
});
|
|
5177
5278
|
_a = __expectNonNull;
|
|
5178
5279
|
_b = __expectObject;
|
|
5179
5280
|
return [4, parseBody(output.body, context)];
|
|
5180
5281
|
case 1:
|
|
5181
5282
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5182
|
-
if (data.items
|
|
5283
|
+
if (data.items != null) {
|
|
5183
5284
|
contents.items = deserializeAws_restJson1__listOfManagedDataIdentifierSummary(data.items, context);
|
|
5184
5285
|
}
|
|
5185
|
-
if (data.nextToken
|
|
5286
|
+
if (data.nextToken != null) {
|
|
5186
5287
|
contents.nextToken = __expectString(data.nextToken);
|
|
5187
5288
|
}
|
|
5188
|
-
return [2,
|
|
5289
|
+
return [2, contents];
|
|
5189
5290
|
}
|
|
5190
5291
|
});
|
|
5191
5292
|
}); };
|
|
5192
5293
|
var deserializeAws_restJson1ListManagedDataIdentifiersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5193
|
-
var parsedOutput, _a,
|
|
5294
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
5194
5295
|
var _b;
|
|
5195
5296
|
return __generator(this, function (_c) {
|
|
5196
5297
|
switch (_c.label) {
|
|
@@ -5201,18 +5302,13 @@ var deserializeAws_restJson1ListManagedDataIdentifiersCommandError = function (o
|
|
|
5201
5302
|
case 1:
|
|
5202
5303
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5203
5304
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
$fault: "client",
|
|
5212
|
-
$metadata: $metadata,
|
|
5213
|
-
});
|
|
5214
|
-
throw __decorateServiceException(response, parsedBody);
|
|
5215
|
-
}
|
|
5305
|
+
parsedBody = parsedOutput.body;
|
|
5306
|
+
throwDefaultError({
|
|
5307
|
+
output: output,
|
|
5308
|
+
parsedBody: parsedBody,
|
|
5309
|
+
exceptionCtor: __BaseException,
|
|
5310
|
+
errorCode: errorCode,
|
|
5311
|
+
});
|
|
5216
5312
|
return [2];
|
|
5217
5313
|
}
|
|
5218
5314
|
});
|
|
@@ -5225,28 +5321,26 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
5225
5321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5226
5322
|
return [2, deserializeAws_restJson1ListMembersCommandError(output, context)];
|
|
5227
5323
|
}
|
|
5228
|
-
contents = {
|
|
5324
|
+
contents = map({
|
|
5229
5325
|
$metadata: deserializeMetadata(output),
|
|
5230
|
-
|
|
5231
|
-
nextToken: undefined,
|
|
5232
|
-
};
|
|
5326
|
+
});
|
|
5233
5327
|
_a = __expectNonNull;
|
|
5234
5328
|
_b = __expectObject;
|
|
5235
5329
|
return [4, parseBody(output.body, context)];
|
|
5236
5330
|
case 1:
|
|
5237
5331
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5238
|
-
if (data.members
|
|
5332
|
+
if (data.members != null) {
|
|
5239
5333
|
contents.members = deserializeAws_restJson1__listOfMember(data.members, context);
|
|
5240
5334
|
}
|
|
5241
|
-
if (data.nextToken
|
|
5335
|
+
if (data.nextToken != null) {
|
|
5242
5336
|
contents.nextToken = __expectString(data.nextToken);
|
|
5243
5337
|
}
|
|
5244
|
-
return [2,
|
|
5338
|
+
return [2, contents];
|
|
5245
5339
|
}
|
|
5246
5340
|
});
|
|
5247
5341
|
}); };
|
|
5248
5342
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5249
|
-
var parsedOutput, _a,
|
|
5343
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5250
5344
|
var _c;
|
|
5251
5345
|
return __generator(this, function (_d) {
|
|
5252
5346
|
switch (_d.label) {
|
|
@@ -5291,14 +5385,14 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
5291
5385
|
case 15: throw _d.sent();
|
|
5292
5386
|
case 16:
|
|
5293
5387
|
parsedBody = parsedOutput.body;
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
$metadata: $metadata,
|
|
5388
|
+
throwDefaultError({
|
|
5389
|
+
output: output,
|
|
5390
|
+
parsedBody: parsedBody,
|
|
5391
|
+
exceptionCtor: __BaseException,
|
|
5392
|
+
errorCode: errorCode,
|
|
5300
5393
|
});
|
|
5301
|
-
|
|
5394
|
+
_d.label = 17;
|
|
5395
|
+
case 17: return [2];
|
|
5302
5396
|
}
|
|
5303
5397
|
});
|
|
5304
5398
|
}); };
|
|
@@ -5310,28 +5404,26 @@ export var deserializeAws_restJson1ListOrganizationAdminAccountsCommand = functi
|
|
|
5310
5404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5311
5405
|
return [2, deserializeAws_restJson1ListOrganizationAdminAccountsCommandError(output, context)];
|
|
5312
5406
|
}
|
|
5313
|
-
contents = {
|
|
5407
|
+
contents = map({
|
|
5314
5408
|
$metadata: deserializeMetadata(output),
|
|
5315
|
-
|
|
5316
|
-
nextToken: undefined,
|
|
5317
|
-
};
|
|
5409
|
+
});
|
|
5318
5410
|
_a = __expectNonNull;
|
|
5319
5411
|
_b = __expectObject;
|
|
5320
5412
|
return [4, parseBody(output.body, context)];
|
|
5321
5413
|
case 1:
|
|
5322
5414
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5323
|
-
if (data.adminAccounts
|
|
5415
|
+
if (data.adminAccounts != null) {
|
|
5324
5416
|
contents.adminAccounts = deserializeAws_restJson1__listOfAdminAccount(data.adminAccounts, context);
|
|
5325
5417
|
}
|
|
5326
|
-
if (data.nextToken
|
|
5418
|
+
if (data.nextToken != null) {
|
|
5327
5419
|
contents.nextToken = __expectString(data.nextToken);
|
|
5328
5420
|
}
|
|
5329
|
-
return [2,
|
|
5421
|
+
return [2, contents];
|
|
5330
5422
|
}
|
|
5331
5423
|
});
|
|
5332
5424
|
}); };
|
|
5333
5425
|
var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5334
|
-
var parsedOutput, _a,
|
|
5426
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5335
5427
|
var _c;
|
|
5336
5428
|
return __generator(this, function (_d) {
|
|
5337
5429
|
switch (_d.label) {
|
|
@@ -5376,14 +5468,14 @@ var deserializeAws_restJson1ListOrganizationAdminAccountsCommandError = function
|
|
|
5376
5468
|
case 15: throw _d.sent();
|
|
5377
5469
|
case 16:
|
|
5378
5470
|
parsedBody = parsedOutput.body;
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
$metadata: $metadata,
|
|
5471
|
+
throwDefaultError({
|
|
5472
|
+
output: output,
|
|
5473
|
+
parsedBody: parsedBody,
|
|
5474
|
+
exceptionCtor: __BaseException,
|
|
5475
|
+
errorCode: errorCode,
|
|
5385
5476
|
});
|
|
5386
|
-
|
|
5477
|
+
_d.label = 17;
|
|
5478
|
+
case 17: return [2];
|
|
5387
5479
|
}
|
|
5388
5480
|
});
|
|
5389
5481
|
}); };
|
|
@@ -5395,24 +5487,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
5395
5487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5396
5488
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
5397
5489
|
}
|
|
5398
|
-
contents = {
|
|
5490
|
+
contents = map({
|
|
5399
5491
|
$metadata: deserializeMetadata(output),
|
|
5400
|
-
|
|
5401
|
-
};
|
|
5492
|
+
});
|
|
5402
5493
|
_a = __expectNonNull;
|
|
5403
5494
|
_b = __expectObject;
|
|
5404
5495
|
return [4, parseBody(output.body, context)];
|
|
5405
5496
|
case 1:
|
|
5406
5497
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5407
|
-
if (data.tags
|
|
5498
|
+
if (data.tags != null) {
|
|
5408
5499
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5409
5500
|
}
|
|
5410
|
-
return [2,
|
|
5501
|
+
return [2, contents];
|
|
5411
5502
|
}
|
|
5412
5503
|
});
|
|
5413
5504
|
}); };
|
|
5414
5505
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5415
|
-
var parsedOutput, _a,
|
|
5506
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
5416
5507
|
var _b;
|
|
5417
5508
|
return __generator(this, function (_c) {
|
|
5418
5509
|
switch (_c.label) {
|
|
@@ -5423,18 +5514,13 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
5423
5514
|
case 1:
|
|
5424
5515
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5425
5516
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
$fault: "client",
|
|
5434
|
-
$metadata: $metadata,
|
|
5435
|
-
});
|
|
5436
|
-
throw __decorateServiceException(response, parsedBody);
|
|
5437
|
-
}
|
|
5517
|
+
parsedBody = parsedOutput.body;
|
|
5518
|
+
throwDefaultError({
|
|
5519
|
+
output: output,
|
|
5520
|
+
parsedBody: parsedBody,
|
|
5521
|
+
exceptionCtor: __BaseException,
|
|
5522
|
+
errorCode: errorCode,
|
|
5523
|
+
});
|
|
5438
5524
|
return [2];
|
|
5439
5525
|
}
|
|
5440
5526
|
});
|
|
@@ -5447,24 +5533,23 @@ export var deserializeAws_restJson1PutClassificationExportConfigurationCommand =
|
|
|
5447
5533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5448
5534
|
return [2, deserializeAws_restJson1PutClassificationExportConfigurationCommandError(output, context)];
|
|
5449
5535
|
}
|
|
5450
|
-
contents = {
|
|
5536
|
+
contents = map({
|
|
5451
5537
|
$metadata: deserializeMetadata(output),
|
|
5452
|
-
|
|
5453
|
-
};
|
|
5538
|
+
});
|
|
5454
5539
|
_a = __expectNonNull;
|
|
5455
5540
|
_b = __expectObject;
|
|
5456
5541
|
return [4, parseBody(output.body, context)];
|
|
5457
5542
|
case 1:
|
|
5458
5543
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5459
|
-
if (data.configuration
|
|
5544
|
+
if (data.configuration != null) {
|
|
5460
5545
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
5461
5546
|
}
|
|
5462
|
-
return [2,
|
|
5547
|
+
return [2, contents];
|
|
5463
5548
|
}
|
|
5464
5549
|
});
|
|
5465
5550
|
}); };
|
|
5466
5551
|
var deserializeAws_restJson1PutClassificationExportConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5467
|
-
var parsedOutput, _a,
|
|
5552
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5468
5553
|
var _c;
|
|
5469
5554
|
return __generator(this, function (_d) {
|
|
5470
5555
|
switch (_d.label) {
|
|
@@ -5509,14 +5594,14 @@ var deserializeAws_restJson1PutClassificationExportConfigurationCommandError = f
|
|
|
5509
5594
|
case 15: throw _d.sent();
|
|
5510
5595
|
case 16:
|
|
5511
5596
|
parsedBody = parsedOutput.body;
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
$metadata: $metadata,
|
|
5597
|
+
throwDefaultError({
|
|
5598
|
+
output: output,
|
|
5599
|
+
parsedBody: parsedBody,
|
|
5600
|
+
exceptionCtor: __BaseException,
|
|
5601
|
+
errorCode: errorCode,
|
|
5518
5602
|
});
|
|
5519
|
-
|
|
5603
|
+
_d.label = 17;
|
|
5604
|
+
case 17: return [2];
|
|
5520
5605
|
}
|
|
5521
5606
|
});
|
|
5522
5607
|
}); };
|
|
@@ -5528,18 +5613,18 @@ export var deserializeAws_restJson1PutFindingsPublicationConfigurationCommand =
|
|
|
5528
5613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5529
5614
|
return [2, deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError(output, context)];
|
|
5530
5615
|
}
|
|
5531
|
-
contents = {
|
|
5616
|
+
contents = map({
|
|
5532
5617
|
$metadata: deserializeMetadata(output),
|
|
5533
|
-
};
|
|
5618
|
+
});
|
|
5534
5619
|
return [4, collectBody(output.body, context)];
|
|
5535
5620
|
case 1:
|
|
5536
5621
|
_a.sent();
|
|
5537
|
-
return [2,
|
|
5622
|
+
return [2, contents];
|
|
5538
5623
|
}
|
|
5539
5624
|
});
|
|
5540
5625
|
}); };
|
|
5541
5626
|
var deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5542
|
-
var parsedOutput, _a,
|
|
5627
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5543
5628
|
var _c;
|
|
5544
5629
|
return __generator(this, function (_d) {
|
|
5545
5630
|
switch (_d.label) {
|
|
@@ -5584,14 +5669,14 @@ var deserializeAws_restJson1PutFindingsPublicationConfigurationCommandError = fu
|
|
|
5584
5669
|
case 15: throw _d.sent();
|
|
5585
5670
|
case 16:
|
|
5586
5671
|
parsedBody = parsedOutput.body;
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
$metadata: $metadata,
|
|
5672
|
+
throwDefaultError({
|
|
5673
|
+
output: output,
|
|
5674
|
+
parsedBody: parsedBody,
|
|
5675
|
+
exceptionCtor: __BaseException,
|
|
5676
|
+
errorCode: errorCode,
|
|
5593
5677
|
});
|
|
5594
|
-
|
|
5678
|
+
_d.label = 17;
|
|
5679
|
+
case 17: return [2];
|
|
5595
5680
|
}
|
|
5596
5681
|
});
|
|
5597
5682
|
}); };
|
|
@@ -5603,28 +5688,26 @@ export var deserializeAws_restJson1SearchResourcesCommand = function (output, co
|
|
|
5603
5688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5604
5689
|
return [2, deserializeAws_restJson1SearchResourcesCommandError(output, context)];
|
|
5605
5690
|
}
|
|
5606
|
-
contents = {
|
|
5691
|
+
contents = map({
|
|
5607
5692
|
$metadata: deserializeMetadata(output),
|
|
5608
|
-
|
|
5609
|
-
nextToken: undefined,
|
|
5610
|
-
};
|
|
5693
|
+
});
|
|
5611
5694
|
_a = __expectNonNull;
|
|
5612
5695
|
_b = __expectObject;
|
|
5613
5696
|
return [4, parseBody(output.body, context)];
|
|
5614
5697
|
case 1:
|
|
5615
5698
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5616
|
-
if (data.matchingResources
|
|
5699
|
+
if (data.matchingResources != null) {
|
|
5617
5700
|
contents.matchingResources = deserializeAws_restJson1__listOfMatchingResource(data.matchingResources, context);
|
|
5618
5701
|
}
|
|
5619
|
-
if (data.nextToken
|
|
5702
|
+
if (data.nextToken != null) {
|
|
5620
5703
|
contents.nextToken = __expectString(data.nextToken);
|
|
5621
5704
|
}
|
|
5622
|
-
return [2,
|
|
5705
|
+
return [2, contents];
|
|
5623
5706
|
}
|
|
5624
5707
|
});
|
|
5625
5708
|
}); };
|
|
5626
5709
|
var deserializeAws_restJson1SearchResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5627
|
-
var parsedOutput, _a,
|
|
5710
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5628
5711
|
var _c;
|
|
5629
5712
|
return __generator(this, function (_d) {
|
|
5630
5713
|
switch (_d.label) {
|
|
@@ -5669,14 +5752,14 @@ var deserializeAws_restJson1SearchResourcesCommandError = function (output, cont
|
|
|
5669
5752
|
case 15: throw _d.sent();
|
|
5670
5753
|
case 16:
|
|
5671
5754
|
parsedBody = parsedOutput.body;
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
$metadata: $metadata,
|
|
5755
|
+
throwDefaultError({
|
|
5756
|
+
output: output,
|
|
5757
|
+
parsedBody: parsedBody,
|
|
5758
|
+
exceptionCtor: __BaseException,
|
|
5759
|
+
errorCode: errorCode,
|
|
5678
5760
|
});
|
|
5679
|
-
|
|
5761
|
+
_d.label = 17;
|
|
5762
|
+
case 17: return [2];
|
|
5680
5763
|
}
|
|
5681
5764
|
});
|
|
5682
5765
|
}); };
|
|
@@ -5688,18 +5771,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
5688
5771
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5689
5772
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
5690
5773
|
}
|
|
5691
|
-
contents = {
|
|
5774
|
+
contents = map({
|
|
5692
5775
|
$metadata: deserializeMetadata(output),
|
|
5693
|
-
};
|
|
5776
|
+
});
|
|
5694
5777
|
return [4, collectBody(output.body, context)];
|
|
5695
5778
|
case 1:
|
|
5696
5779
|
_a.sent();
|
|
5697
|
-
return [2,
|
|
5780
|
+
return [2, contents];
|
|
5698
5781
|
}
|
|
5699
5782
|
});
|
|
5700
5783
|
}); };
|
|
5701
5784
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5702
|
-
var parsedOutput, _a,
|
|
5785
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
5703
5786
|
var _b;
|
|
5704
5787
|
return __generator(this, function (_c) {
|
|
5705
5788
|
switch (_c.label) {
|
|
@@ -5710,18 +5793,13 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
5710
5793
|
case 1:
|
|
5711
5794
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5712
5795
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
$fault: "client",
|
|
5721
|
-
$metadata: $metadata,
|
|
5722
|
-
});
|
|
5723
|
-
throw __decorateServiceException(response, parsedBody);
|
|
5724
|
-
}
|
|
5796
|
+
parsedBody = parsedOutput.body;
|
|
5797
|
+
throwDefaultError({
|
|
5798
|
+
output: output,
|
|
5799
|
+
parsedBody: parsedBody,
|
|
5800
|
+
exceptionCtor: __BaseException,
|
|
5801
|
+
errorCode: errorCode,
|
|
5802
|
+
});
|
|
5725
5803
|
return [2];
|
|
5726
5804
|
}
|
|
5727
5805
|
});
|
|
@@ -5734,24 +5812,23 @@ export var deserializeAws_restJson1TestCustomDataIdentifierCommand = function (o
|
|
|
5734
5812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5735
5813
|
return [2, deserializeAws_restJson1TestCustomDataIdentifierCommandError(output, context)];
|
|
5736
5814
|
}
|
|
5737
|
-
contents = {
|
|
5815
|
+
contents = map({
|
|
5738
5816
|
$metadata: deserializeMetadata(output),
|
|
5739
|
-
|
|
5740
|
-
};
|
|
5817
|
+
});
|
|
5741
5818
|
_a = __expectNonNull;
|
|
5742
5819
|
_b = __expectObject;
|
|
5743
5820
|
return [4, parseBody(output.body, context)];
|
|
5744
5821
|
case 1:
|
|
5745
5822
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5746
|
-
if (data.matchCount
|
|
5823
|
+
if (data.matchCount != null) {
|
|
5747
5824
|
contents.matchCount = __expectInt32(data.matchCount);
|
|
5748
5825
|
}
|
|
5749
|
-
return [2,
|
|
5826
|
+
return [2, contents];
|
|
5750
5827
|
}
|
|
5751
5828
|
});
|
|
5752
5829
|
}); };
|
|
5753
5830
|
var deserializeAws_restJson1TestCustomDataIdentifierCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5754
|
-
var parsedOutput, _a,
|
|
5831
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5755
5832
|
var _c;
|
|
5756
5833
|
return __generator(this, function (_d) {
|
|
5757
5834
|
switch (_d.label) {
|
|
@@ -5796,14 +5873,14 @@ var deserializeAws_restJson1TestCustomDataIdentifierCommandError = function (out
|
|
|
5796
5873
|
case 15: throw _d.sent();
|
|
5797
5874
|
case 16:
|
|
5798
5875
|
parsedBody = parsedOutput.body;
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
$metadata: $metadata,
|
|
5876
|
+
throwDefaultError({
|
|
5877
|
+
output: output,
|
|
5878
|
+
parsedBody: parsedBody,
|
|
5879
|
+
exceptionCtor: __BaseException,
|
|
5880
|
+
errorCode: errorCode,
|
|
5805
5881
|
});
|
|
5806
|
-
|
|
5882
|
+
_d.label = 17;
|
|
5883
|
+
case 17: return [2];
|
|
5807
5884
|
}
|
|
5808
5885
|
});
|
|
5809
5886
|
}); };
|
|
@@ -5815,18 +5892,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
5815
5892
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5816
5893
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
5817
5894
|
}
|
|
5818
|
-
contents = {
|
|
5895
|
+
contents = map({
|
|
5819
5896
|
$metadata: deserializeMetadata(output),
|
|
5820
|
-
};
|
|
5897
|
+
});
|
|
5821
5898
|
return [4, collectBody(output.body, context)];
|
|
5822
5899
|
case 1:
|
|
5823
5900
|
_a.sent();
|
|
5824
|
-
return [2,
|
|
5901
|
+
return [2, contents];
|
|
5825
5902
|
}
|
|
5826
5903
|
});
|
|
5827
5904
|
}); };
|
|
5828
5905
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5829
|
-
var parsedOutput, _a,
|
|
5906
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
5830
5907
|
var _b;
|
|
5831
5908
|
return __generator(this, function (_c) {
|
|
5832
5909
|
switch (_c.label) {
|
|
@@ -5837,18 +5914,13 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5837
5914
|
case 1:
|
|
5838
5915
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
5839
5916
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
$fault: "client",
|
|
5848
|
-
$metadata: $metadata,
|
|
5849
|
-
});
|
|
5850
|
-
throw __decorateServiceException(response, parsedBody);
|
|
5851
|
-
}
|
|
5917
|
+
parsedBody = parsedOutput.body;
|
|
5918
|
+
throwDefaultError({
|
|
5919
|
+
output: output,
|
|
5920
|
+
parsedBody: parsedBody,
|
|
5921
|
+
exceptionCtor: __BaseException,
|
|
5922
|
+
errorCode: errorCode,
|
|
5923
|
+
});
|
|
5852
5924
|
return [2];
|
|
5853
5925
|
}
|
|
5854
5926
|
});
|
|
@@ -5861,18 +5933,18 @@ export var deserializeAws_restJson1UpdateClassificationJobCommand = function (ou
|
|
|
5861
5933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5862
5934
|
return [2, deserializeAws_restJson1UpdateClassificationJobCommandError(output, context)];
|
|
5863
5935
|
}
|
|
5864
|
-
contents = {
|
|
5936
|
+
contents = map({
|
|
5865
5937
|
$metadata: deserializeMetadata(output),
|
|
5866
|
-
};
|
|
5938
|
+
});
|
|
5867
5939
|
return [4, collectBody(output.body, context)];
|
|
5868
5940
|
case 1:
|
|
5869
5941
|
_a.sent();
|
|
5870
|
-
return [2,
|
|
5942
|
+
return [2, contents];
|
|
5871
5943
|
}
|
|
5872
5944
|
});
|
|
5873
5945
|
}); };
|
|
5874
5946
|
var deserializeAws_restJson1UpdateClassificationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5875
|
-
var parsedOutput, _a,
|
|
5947
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5876
5948
|
var _c;
|
|
5877
5949
|
return __generator(this, function (_d) {
|
|
5878
5950
|
switch (_d.label) {
|
|
@@ -5917,14 +5989,14 @@ var deserializeAws_restJson1UpdateClassificationJobCommandError = function (outp
|
|
|
5917
5989
|
case 15: throw _d.sent();
|
|
5918
5990
|
case 16:
|
|
5919
5991
|
parsedBody = parsedOutput.body;
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
$metadata: $metadata,
|
|
5992
|
+
throwDefaultError({
|
|
5993
|
+
output: output,
|
|
5994
|
+
parsedBody: parsedBody,
|
|
5995
|
+
exceptionCtor: __BaseException,
|
|
5996
|
+
errorCode: errorCode,
|
|
5926
5997
|
});
|
|
5927
|
-
|
|
5998
|
+
_d.label = 17;
|
|
5999
|
+
case 17: return [2];
|
|
5928
6000
|
}
|
|
5929
6001
|
});
|
|
5930
6002
|
}); };
|
|
@@ -5936,28 +6008,26 @@ export var deserializeAws_restJson1UpdateFindingsFilterCommand = function (outpu
|
|
|
5936
6008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5937
6009
|
return [2, deserializeAws_restJson1UpdateFindingsFilterCommandError(output, context)];
|
|
5938
6010
|
}
|
|
5939
|
-
contents = {
|
|
6011
|
+
contents = map({
|
|
5940
6012
|
$metadata: deserializeMetadata(output),
|
|
5941
|
-
|
|
5942
|
-
id: undefined,
|
|
5943
|
-
};
|
|
6013
|
+
});
|
|
5944
6014
|
_a = __expectNonNull;
|
|
5945
6015
|
_b = __expectObject;
|
|
5946
6016
|
return [4, parseBody(output.body, context)];
|
|
5947
6017
|
case 1:
|
|
5948
6018
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5949
|
-
if (data.arn
|
|
6019
|
+
if (data.arn != null) {
|
|
5950
6020
|
contents.arn = __expectString(data.arn);
|
|
5951
6021
|
}
|
|
5952
|
-
if (data.id
|
|
6022
|
+
if (data.id != null) {
|
|
5953
6023
|
contents.id = __expectString(data.id);
|
|
5954
6024
|
}
|
|
5955
|
-
return [2,
|
|
6025
|
+
return [2, contents];
|
|
5956
6026
|
}
|
|
5957
6027
|
});
|
|
5958
6028
|
}); };
|
|
5959
6029
|
var deserializeAws_restJson1UpdateFindingsFilterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5960
|
-
var parsedOutput, _a,
|
|
6030
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5961
6031
|
var _c;
|
|
5962
6032
|
return __generator(this, function (_d) {
|
|
5963
6033
|
switch (_d.label) {
|
|
@@ -6002,14 +6072,14 @@ var deserializeAws_restJson1UpdateFindingsFilterCommandError = function (output,
|
|
|
6002
6072
|
case 15: throw _d.sent();
|
|
6003
6073
|
case 16:
|
|
6004
6074
|
parsedBody = parsedOutput.body;
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
$metadata: $metadata,
|
|
6075
|
+
throwDefaultError({
|
|
6076
|
+
output: output,
|
|
6077
|
+
parsedBody: parsedBody,
|
|
6078
|
+
exceptionCtor: __BaseException,
|
|
6079
|
+
errorCode: errorCode,
|
|
6011
6080
|
});
|
|
6012
|
-
|
|
6081
|
+
_d.label = 17;
|
|
6082
|
+
case 17: return [2];
|
|
6013
6083
|
}
|
|
6014
6084
|
});
|
|
6015
6085
|
}); };
|
|
@@ -6021,18 +6091,18 @@ export var deserializeAws_restJson1UpdateMacieSessionCommand = function (output,
|
|
|
6021
6091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6022
6092
|
return [2, deserializeAws_restJson1UpdateMacieSessionCommandError(output, context)];
|
|
6023
6093
|
}
|
|
6024
|
-
contents = {
|
|
6094
|
+
contents = map({
|
|
6025
6095
|
$metadata: deserializeMetadata(output),
|
|
6026
|
-
};
|
|
6096
|
+
});
|
|
6027
6097
|
return [4, collectBody(output.body, context)];
|
|
6028
6098
|
case 1:
|
|
6029
6099
|
_a.sent();
|
|
6030
|
-
return [2,
|
|
6100
|
+
return [2, contents];
|
|
6031
6101
|
}
|
|
6032
6102
|
});
|
|
6033
6103
|
}); };
|
|
6034
6104
|
var deserializeAws_restJson1UpdateMacieSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6035
|
-
var parsedOutput, _a,
|
|
6105
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6036
6106
|
var _c;
|
|
6037
6107
|
return __generator(this, function (_d) {
|
|
6038
6108
|
switch (_d.label) {
|
|
@@ -6077,14 +6147,14 @@ var deserializeAws_restJson1UpdateMacieSessionCommandError = function (output, c
|
|
|
6077
6147
|
case 15: throw _d.sent();
|
|
6078
6148
|
case 16:
|
|
6079
6149
|
parsedBody = parsedOutput.body;
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
$metadata: $metadata,
|
|
6150
|
+
throwDefaultError({
|
|
6151
|
+
output: output,
|
|
6152
|
+
parsedBody: parsedBody,
|
|
6153
|
+
exceptionCtor: __BaseException,
|
|
6154
|
+
errorCode: errorCode,
|
|
6086
6155
|
});
|
|
6087
|
-
|
|
6156
|
+
_d.label = 17;
|
|
6157
|
+
case 17: return [2];
|
|
6088
6158
|
}
|
|
6089
6159
|
});
|
|
6090
6160
|
}); };
|
|
@@ -6096,18 +6166,18 @@ export var deserializeAws_restJson1UpdateMemberSessionCommand = function (output
|
|
|
6096
6166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6097
6167
|
return [2, deserializeAws_restJson1UpdateMemberSessionCommandError(output, context)];
|
|
6098
6168
|
}
|
|
6099
|
-
contents = {
|
|
6169
|
+
contents = map({
|
|
6100
6170
|
$metadata: deserializeMetadata(output),
|
|
6101
|
-
};
|
|
6171
|
+
});
|
|
6102
6172
|
return [4, collectBody(output.body, context)];
|
|
6103
6173
|
case 1:
|
|
6104
6174
|
_a.sent();
|
|
6105
|
-
return [2,
|
|
6175
|
+
return [2, contents];
|
|
6106
6176
|
}
|
|
6107
6177
|
});
|
|
6108
6178
|
}); };
|
|
6109
6179
|
var deserializeAws_restJson1UpdateMemberSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6110
|
-
var parsedOutput, _a,
|
|
6180
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6111
6181
|
var _c;
|
|
6112
6182
|
return __generator(this, function (_d) {
|
|
6113
6183
|
switch (_d.label) {
|
|
@@ -6152,14 +6222,14 @@ var deserializeAws_restJson1UpdateMemberSessionCommandError = function (output,
|
|
|
6152
6222
|
case 15: throw _d.sent();
|
|
6153
6223
|
case 16:
|
|
6154
6224
|
parsedBody = parsedOutput.body;
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
$metadata: $metadata,
|
|
6225
|
+
throwDefaultError({
|
|
6226
|
+
output: output,
|
|
6227
|
+
parsedBody: parsedBody,
|
|
6228
|
+
exceptionCtor: __BaseException,
|
|
6229
|
+
errorCode: errorCode,
|
|
6161
6230
|
});
|
|
6162
|
-
|
|
6231
|
+
_d.label = 17;
|
|
6232
|
+
case 17: return [2];
|
|
6163
6233
|
}
|
|
6164
6234
|
});
|
|
6165
6235
|
}); };
|
|
@@ -6171,18 +6241,18 @@ export var deserializeAws_restJson1UpdateOrganizationConfigurationCommand = func
|
|
|
6171
6241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6172
6242
|
return [2, deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context)];
|
|
6173
6243
|
}
|
|
6174
|
-
contents = {
|
|
6244
|
+
contents = map({
|
|
6175
6245
|
$metadata: deserializeMetadata(output),
|
|
6176
|
-
};
|
|
6246
|
+
});
|
|
6177
6247
|
return [4, collectBody(output.body, context)];
|
|
6178
6248
|
case 1:
|
|
6179
6249
|
_a.sent();
|
|
6180
|
-
return [2,
|
|
6250
|
+
return [2, contents];
|
|
6181
6251
|
}
|
|
6182
6252
|
});
|
|
6183
6253
|
}); };
|
|
6184
6254
|
var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6185
|
-
var parsedOutput, _a,
|
|
6255
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6186
6256
|
var _c;
|
|
6187
6257
|
return __generator(this, function (_d) {
|
|
6188
6258
|
switch (_d.label) {
|
|
@@ -6227,23 +6297,92 @@ var deserializeAws_restJson1UpdateOrganizationConfigurationCommandError = functi
|
|
|
6227
6297
|
case 15: throw _d.sent();
|
|
6228
6298
|
case 16:
|
|
6229
6299
|
parsedBody = parsedOutput.body;
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6300
|
+
throwDefaultError({
|
|
6301
|
+
output: output,
|
|
6302
|
+
parsedBody: parsedBody,
|
|
6303
|
+
exceptionCtor: __BaseException,
|
|
6304
|
+
errorCode: errorCode,
|
|
6305
|
+
});
|
|
6306
|
+
_d.label = 17;
|
|
6307
|
+
case 17: return [2];
|
|
6308
|
+
}
|
|
6309
|
+
});
|
|
6310
|
+
}); };
|
|
6311
|
+
export var deserializeAws_restJson1UpdateRevealConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6312
|
+
var contents, data, _a, _b;
|
|
6313
|
+
return __generator(this, function (_c) {
|
|
6314
|
+
switch (_c.label) {
|
|
6315
|
+
case 0:
|
|
6316
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6317
|
+
return [2, deserializeAws_restJson1UpdateRevealConfigurationCommandError(output, context)];
|
|
6318
|
+
}
|
|
6319
|
+
contents = map({
|
|
6320
|
+
$metadata: deserializeMetadata(output),
|
|
6321
|
+
});
|
|
6322
|
+
_a = __expectNonNull;
|
|
6323
|
+
_b = __expectObject;
|
|
6324
|
+
return [4, parseBody(output.body, context)];
|
|
6325
|
+
case 1:
|
|
6326
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6327
|
+
if (data.configuration != null) {
|
|
6328
|
+
contents.configuration = deserializeAws_restJson1RevealConfiguration(data.configuration, context);
|
|
6329
|
+
}
|
|
6330
|
+
return [2, contents];
|
|
6331
|
+
}
|
|
6332
|
+
});
|
|
6333
|
+
}); };
|
|
6334
|
+
var deserializeAws_restJson1UpdateRevealConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6335
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6336
|
+
var _c;
|
|
6337
|
+
return __generator(this, function (_d) {
|
|
6338
|
+
switch (_d.label) {
|
|
6339
|
+
case 0:
|
|
6340
|
+
_a = [__assign({}, output)];
|
|
6341
|
+
_c = {};
|
|
6342
|
+
return [4, parseBody(output.body, context)];
|
|
6343
|
+
case 1:
|
|
6344
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6345
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6346
|
+
_b = errorCode;
|
|
6347
|
+
switch (_b) {
|
|
6348
|
+
case "AccessDeniedException": return [3, 2];
|
|
6349
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
6350
|
+
case "InternalServerException": return [3, 4];
|
|
6351
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
6352
|
+
case "ThrottlingException": return [3, 6];
|
|
6353
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 6];
|
|
6354
|
+
case "ValidationException": return [3, 8];
|
|
6355
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 8];
|
|
6356
|
+
}
|
|
6357
|
+
return [3, 10];
|
|
6358
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6359
|
+
case 3: throw _d.sent();
|
|
6360
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6361
|
+
case 5: throw _d.sent();
|
|
6362
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6363
|
+
case 7: throw _d.sent();
|
|
6364
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6365
|
+
case 9: throw _d.sent();
|
|
6366
|
+
case 10:
|
|
6367
|
+
parsedBody = parsedOutput.body;
|
|
6368
|
+
throwDefaultError({
|
|
6369
|
+
output: output,
|
|
6370
|
+
parsedBody: parsedBody,
|
|
6371
|
+
exceptionCtor: __BaseException,
|
|
6372
|
+
errorCode: errorCode,
|
|
6236
6373
|
});
|
|
6237
|
-
|
|
6374
|
+
_d.label = 11;
|
|
6375
|
+
case 11: return [2];
|
|
6238
6376
|
}
|
|
6239
6377
|
});
|
|
6240
6378
|
}); };
|
|
6379
|
+
var map = __map;
|
|
6241
6380
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6242
6381
|
var contents, data, exception;
|
|
6243
6382
|
return __generator(this, function (_a) {
|
|
6244
|
-
contents = {};
|
|
6383
|
+
contents = map({});
|
|
6245
6384
|
data = parsedOutput.body;
|
|
6246
|
-
if (data.message
|
|
6385
|
+
if (data.message != null) {
|
|
6247
6386
|
contents.message = __expectString(data.message);
|
|
6248
6387
|
}
|
|
6249
6388
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6253,9 +6392,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
6253
6392
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6254
6393
|
var contents, data, exception;
|
|
6255
6394
|
return __generator(this, function (_a) {
|
|
6256
|
-
contents = {};
|
|
6395
|
+
contents = map({});
|
|
6257
6396
|
data = parsedOutput.body;
|
|
6258
|
-
if (data.message
|
|
6397
|
+
if (data.message != null) {
|
|
6259
6398
|
contents.message = __expectString(data.message);
|
|
6260
6399
|
}
|
|
6261
6400
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6265,9 +6404,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
6265
6404
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6266
6405
|
var contents, data, exception;
|
|
6267
6406
|
return __generator(this, function (_a) {
|
|
6268
|
-
contents = {};
|
|
6407
|
+
contents = map({});
|
|
6269
6408
|
data = parsedOutput.body;
|
|
6270
|
-
if (data.message
|
|
6409
|
+
if (data.message != null) {
|
|
6271
6410
|
contents.message = __expectString(data.message);
|
|
6272
6411
|
}
|
|
6273
6412
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6277,9 +6416,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
6277
6416
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6278
6417
|
var contents, data, exception;
|
|
6279
6418
|
return __generator(this, function (_a) {
|
|
6280
|
-
contents = {};
|
|
6419
|
+
contents = map({});
|
|
6281
6420
|
data = parsedOutput.body;
|
|
6282
|
-
if (data.message
|
|
6421
|
+
if (data.message != null) {
|
|
6283
6422
|
contents.message = __expectString(data.message);
|
|
6284
6423
|
}
|
|
6285
6424
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6289,9 +6428,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
6289
6428
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6290
6429
|
var contents, data, exception;
|
|
6291
6430
|
return __generator(this, function (_a) {
|
|
6292
|
-
contents = {};
|
|
6431
|
+
contents = map({});
|
|
6293
6432
|
data = parsedOutput.body;
|
|
6294
|
-
if (data.message
|
|
6433
|
+
if (data.message != null) {
|
|
6295
6434
|
contents.message = __expectString(data.message);
|
|
6296
6435
|
}
|
|
6297
6436
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6301,21 +6440,33 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
6301
6440
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6302
6441
|
var contents, data, exception;
|
|
6303
6442
|
return __generator(this, function (_a) {
|
|
6304
|
-
contents = {};
|
|
6443
|
+
contents = map({});
|
|
6305
6444
|
data = parsedOutput.body;
|
|
6306
|
-
if (data.message
|
|
6445
|
+
if (data.message != null) {
|
|
6307
6446
|
contents.message = __expectString(data.message);
|
|
6308
6447
|
}
|
|
6309
6448
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
6310
6449
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
6311
6450
|
});
|
|
6312
6451
|
}); };
|
|
6452
|
+
var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6453
|
+
var contents, data, exception;
|
|
6454
|
+
return __generator(this, function (_a) {
|
|
6455
|
+
contents = map({});
|
|
6456
|
+
data = parsedOutput.body;
|
|
6457
|
+
if (data.message != null) {
|
|
6458
|
+
contents.message = __expectString(data.message);
|
|
6459
|
+
}
|
|
6460
|
+
exception = new UnprocessableEntityException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
6461
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
6462
|
+
});
|
|
6463
|
+
}); };
|
|
6313
6464
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6314
6465
|
var contents, data, exception;
|
|
6315
6466
|
return __generator(this, function (_a) {
|
|
6316
|
-
contents = {};
|
|
6467
|
+
contents = map({});
|
|
6317
6468
|
data = parsedOutput.body;
|
|
6318
|
-
if (data.message
|
|
6469
|
+
if (data.message != null) {
|
|
6319
6470
|
contents.message = __expectString(data.message);
|
|
6320
6471
|
}
|
|
6321
6472
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6326,9 +6477,6 @@ var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
|
6326
6477
|
return input
|
|
6327
6478
|
.filter(function (e) { return e != null; })
|
|
6328
6479
|
.map(function (entry) {
|
|
6329
|
-
if (entry === null) {
|
|
6330
|
-
return null;
|
|
6331
|
-
}
|
|
6332
6480
|
return entry;
|
|
6333
6481
|
});
|
|
6334
6482
|
};
|
|
@@ -6336,9 +6484,6 @@ var serializeAws_restJson1__listOfCriteriaForJob = function (input, context) {
|
|
|
6336
6484
|
return input
|
|
6337
6485
|
.filter(function (e) { return e != null; })
|
|
6338
6486
|
.map(function (entry) {
|
|
6339
|
-
if (entry === null) {
|
|
6340
|
-
return null;
|
|
6341
|
-
}
|
|
6342
6487
|
return serializeAws_restJson1CriteriaForJob(entry, context);
|
|
6343
6488
|
});
|
|
6344
6489
|
};
|
|
@@ -6346,9 +6491,6 @@ var serializeAws_restJson1__listOfFindingType = function (input, context) {
|
|
|
6346
6491
|
return input
|
|
6347
6492
|
.filter(function (e) { return e != null; })
|
|
6348
6493
|
.map(function (entry) {
|
|
6349
|
-
if (entry === null) {
|
|
6350
|
-
return null;
|
|
6351
|
-
}
|
|
6352
6494
|
return entry;
|
|
6353
6495
|
});
|
|
6354
6496
|
};
|
|
@@ -6356,9 +6498,6 @@ var serializeAws_restJson1__listOfJobScopeTerm = function (input, context) {
|
|
|
6356
6498
|
return input
|
|
6357
6499
|
.filter(function (e) { return e != null; })
|
|
6358
6500
|
.map(function (entry) {
|
|
6359
|
-
if (entry === null) {
|
|
6360
|
-
return null;
|
|
6361
|
-
}
|
|
6362
6501
|
return serializeAws_restJson1JobScopeTerm(entry, context);
|
|
6363
6502
|
});
|
|
6364
6503
|
};
|
|
@@ -6366,9 +6505,6 @@ var serializeAws_restJson1__listOfListJobsFilterTerm = function (input, context)
|
|
|
6366
6505
|
return input
|
|
6367
6506
|
.filter(function (e) { return e != null; })
|
|
6368
6507
|
.map(function (entry) {
|
|
6369
|
-
if (entry === null) {
|
|
6370
|
-
return null;
|
|
6371
|
-
}
|
|
6372
6508
|
return serializeAws_restJson1ListJobsFilterTerm(entry, context);
|
|
6373
6509
|
});
|
|
6374
6510
|
};
|
|
@@ -6376,9 +6512,6 @@ var serializeAws_restJson1__listOfS3BucketDefinitionForJob = function (input, co
|
|
|
6376
6512
|
return input
|
|
6377
6513
|
.filter(function (e) { return e != null; })
|
|
6378
6514
|
.map(function (entry) {
|
|
6379
|
-
if (entry === null) {
|
|
6380
|
-
return null;
|
|
6381
|
-
}
|
|
6382
6515
|
return serializeAws_restJson1S3BucketDefinitionForJob(entry, context);
|
|
6383
6516
|
});
|
|
6384
6517
|
};
|
|
@@ -6386,9 +6519,6 @@ var serializeAws_restJson1__listOfSearchResourcesCriteria = function (input, con
|
|
|
6386
6519
|
return input
|
|
6387
6520
|
.filter(function (e) { return e != null; })
|
|
6388
6521
|
.map(function (entry) {
|
|
6389
|
-
if (entry === null) {
|
|
6390
|
-
return null;
|
|
6391
|
-
}
|
|
6392
6522
|
return serializeAws_restJson1SearchResourcesCriteria(entry, context);
|
|
6393
6523
|
});
|
|
6394
6524
|
};
|
|
@@ -6396,9 +6526,6 @@ var serializeAws_restJson1__listOfSearchResourcesTagCriterionPair = function (in
|
|
|
6396
6526
|
return input
|
|
6397
6527
|
.filter(function (e) { return e != null; })
|
|
6398
6528
|
.map(function (entry) {
|
|
6399
|
-
if (entry === null) {
|
|
6400
|
-
return null;
|
|
6401
|
-
}
|
|
6402
6529
|
return serializeAws_restJson1SearchResourcesTagCriterionPair(entry, context);
|
|
6403
6530
|
});
|
|
6404
6531
|
};
|
|
@@ -6406,9 +6533,6 @@ var serializeAws_restJson1__listOfTagCriterionPairForJob = function (input, cont
|
|
|
6406
6533
|
return input
|
|
6407
6534
|
.filter(function (e) { return e != null; })
|
|
6408
6535
|
.map(function (entry) {
|
|
6409
|
-
if (entry === null) {
|
|
6410
|
-
return null;
|
|
6411
|
-
}
|
|
6412
6536
|
return serializeAws_restJson1TagCriterionPairForJob(entry, context);
|
|
6413
6537
|
});
|
|
6414
6538
|
};
|
|
@@ -6416,9 +6540,6 @@ var serializeAws_restJson1__listOfTagValuePair = function (input, context) {
|
|
|
6416
6540
|
return input
|
|
6417
6541
|
.filter(function (e) { return e != null; })
|
|
6418
6542
|
.map(function (entry) {
|
|
6419
|
-
if (entry === null) {
|
|
6420
|
-
return null;
|
|
6421
|
-
}
|
|
6422
6543
|
return serializeAws_restJson1TagValuePair(entry, context);
|
|
6423
6544
|
});
|
|
6424
6545
|
};
|
|
@@ -6426,9 +6547,6 @@ var serializeAws_restJson1__listOfUsageStatisticsFilter = function (input, conte
|
|
|
6426
6547
|
return input
|
|
6427
6548
|
.filter(function (e) { return e != null; })
|
|
6428
6549
|
.map(function (entry) {
|
|
6429
|
-
if (entry === null) {
|
|
6430
|
-
return null;
|
|
6431
|
-
}
|
|
6432
6550
|
return serializeAws_restJson1UsageStatisticsFilter(entry, context);
|
|
6433
6551
|
});
|
|
6434
6552
|
};
|
|
@@ -6525,6 +6643,9 @@ var serializeAws_restJson1ListJobsSortCriteria = function (input, context) {
|
|
|
6525
6643
|
var serializeAws_restJson1MonthlySchedule = function (input, context) {
|
|
6526
6644
|
return __assign({}, (input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }));
|
|
6527
6645
|
};
|
|
6646
|
+
var serializeAws_restJson1RevealConfiguration = function (input, context) {
|
|
6647
|
+
return __assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.status != null && { status: input.status }));
|
|
6648
|
+
};
|
|
6528
6649
|
var serializeAws_restJson1S3BucketCriteriaForJob = function (input, context) {
|
|
6529
6650
|
return __assign(__assign({}, (input.excludes != null && { excludes: serializeAws_restJson1CriteriaBlockForJob(input.excludes, context) })), (input.includes != null && { includes: serializeAws_restJson1CriteriaBlockForJob(input.includes, context) }));
|
|
6530
6651
|
};
|
|
@@ -6587,9 +6708,6 @@ var serializeAws_restJson1SeverityLevelList = function (input, context) {
|
|
|
6587
6708
|
return input
|
|
6588
6709
|
.filter(function (e) { return e != null; })
|
|
6589
6710
|
.map(function (entry) {
|
|
6590
|
-
if (entry === null) {
|
|
6591
|
-
return null;
|
|
6592
|
-
}
|
|
6593
6711
|
return serializeAws_restJson1SeverityLevel(entry, context);
|
|
6594
6712
|
});
|
|
6595
6713
|
};
|
|
@@ -6701,6 +6819,17 @@ var deserializeAws_restJson1__listOfCustomDataIdentifierSummary = function (outp
|
|
|
6701
6819
|
});
|
|
6702
6820
|
return retVal;
|
|
6703
6821
|
};
|
|
6822
|
+
var deserializeAws_restJson1__listOfDetectedDataDetails = function (output, context) {
|
|
6823
|
+
var retVal = (output || [])
|
|
6824
|
+
.filter(function (e) { return e != null; })
|
|
6825
|
+
.map(function (entry) {
|
|
6826
|
+
if (entry === null) {
|
|
6827
|
+
return null;
|
|
6828
|
+
}
|
|
6829
|
+
return deserializeAws_restJson1DetectedDataDetails(entry, context);
|
|
6830
|
+
});
|
|
6831
|
+
return retVal;
|
|
6832
|
+
};
|
|
6704
6833
|
var deserializeAws_restJson1__listOfFinding = function (output, context) {
|
|
6705
6834
|
var retVal = (output || [])
|
|
6706
6835
|
.filter(function (e) { return e != null; })
|
|
@@ -6844,6 +6973,17 @@ var deserializeAws_restJson1__listOfTagValuePair = function (output, context) {
|
|
|
6844
6973
|
});
|
|
6845
6974
|
return retVal;
|
|
6846
6975
|
};
|
|
6976
|
+
var deserializeAws_restJson1__listOfUnavailabilityReasonCode = function (output, context) {
|
|
6977
|
+
var retVal = (output || [])
|
|
6978
|
+
.filter(function (e) { return e != null; })
|
|
6979
|
+
.map(function (entry) {
|
|
6980
|
+
if (entry === null) {
|
|
6981
|
+
return null;
|
|
6982
|
+
}
|
|
6983
|
+
return __expectString(entry);
|
|
6984
|
+
});
|
|
6985
|
+
return retVal;
|
|
6986
|
+
};
|
|
6847
6987
|
var deserializeAws_restJson1__listOfUnprocessedAccount = function (output, context) {
|
|
6848
6988
|
var retVal = (output || [])
|
|
6849
6989
|
.filter(function (e) { return e != null; })
|
|
@@ -7209,6 +7349,11 @@ var deserializeAws_restJson1DefaultDetections = function (output, context) {
|
|
|
7209
7349
|
});
|
|
7210
7350
|
return retVal;
|
|
7211
7351
|
};
|
|
7352
|
+
var deserializeAws_restJson1DetectedDataDetails = function (output, context) {
|
|
7353
|
+
return {
|
|
7354
|
+
value: __expectString(output.value),
|
|
7355
|
+
};
|
|
7356
|
+
};
|
|
7212
7357
|
var deserializeAws_restJson1DomainDetails = function (output, context) {
|
|
7213
7358
|
return {
|
|
7214
7359
|
domainName: __expectString(output.domainName),
|
|
@@ -7566,6 +7711,12 @@ var deserializeAws_restJson1ResourcesAffected = function (output, context) {
|
|
|
7566
7711
|
s3Object: output.s3Object != null ? deserializeAws_restJson1S3Object(output.s3Object, context) : undefined,
|
|
7567
7712
|
};
|
|
7568
7713
|
};
|
|
7714
|
+
var deserializeAws_restJson1RevealConfiguration = function (output, context) {
|
|
7715
|
+
return {
|
|
7716
|
+
kmsKeyId: __expectString(output.kmsKeyId),
|
|
7717
|
+
status: __expectString(output.status),
|
|
7718
|
+
};
|
|
7719
|
+
};
|
|
7569
7720
|
var deserializeAws_restJson1S3Bucket = function (output, context) {
|
|
7570
7721
|
return {
|
|
7571
7722
|
allowsUnencryptedObjectUploads: __expectString(output.allowsUnencryptedObjectUploads),
|
|
@@ -7666,6 +7817,16 @@ var deserializeAws_restJson1SensitiveDataItem = function (output, context) {
|
|
|
7666
7817
|
totalCount: __expectLong(output.totalCount),
|
|
7667
7818
|
};
|
|
7668
7819
|
};
|
|
7820
|
+
var deserializeAws_restJson1SensitiveDataOccurrences = function (output, context) {
|
|
7821
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
7822
|
+
var _b;
|
|
7823
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
7824
|
+
if (value === null) {
|
|
7825
|
+
return acc;
|
|
7826
|
+
}
|
|
7827
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1__listOfDetectedDataDetails(value, context), _b));
|
|
7828
|
+
}, {});
|
|
7829
|
+
};
|
|
7669
7830
|
var deserializeAws_restJson1ServerSideEncryption = function (output, context) {
|
|
7670
7831
|
return {
|
|
7671
7832
|
encryptionType: __expectString(output.encryptionType),
|