@aws-sdk/client-macie2 3.160.0 → 3.163.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/Macie2.js +75 -0
- package/dist-cjs/commands/CreateAllowListCommand.js +36 -0
- package/dist-cjs/commands/DeleteAllowListCommand.js +36 -0
- package/dist-cjs/commands/GetAllowListCommand.js +36 -0
- package/dist-cjs/commands/ListAllowListsCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +2 -1
- package/dist-cjs/commands/UpdateAllowListCommand.js +36 -0
- package/dist-cjs/commands/UpdateClassificationJobCommand.js +3 -3
- package/dist-cjs/commands/UpdateFindingsFilterCommand.js +3 -3
- package/dist-cjs/commands/UpdateMacieSessionCommand.js +3 -3
- package/dist-cjs/commands/UpdateMemberSessionCommand.js +3 -3
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateRevealConfigurationCommand.js +3 -3
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +65 -58
- package/dist-cjs/models/models_1.js +63 -0
- package/dist-cjs/protocols/Aws_restJson1.js +432 -3
- package/dist-es/Macie2.js +75 -0
- package/dist-es/commands/CreateAllowListCommand.js +39 -0
- package/dist-es/commands/DeleteAllowListCommand.js +39 -0
- package/dist-es/commands/GetAllowListCommand.js +39 -0
- package/dist-es/commands/ListAllowListsCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +2 -1
- package/dist-es/commands/UpdateAllowListCommand.js +39 -0
- package/dist-es/commands/UpdateClassificationJobCommand.js +1 -1
- package/dist-es/commands/UpdateFindingsFilterCommand.js +1 -1
- package/dist-es/commands/UpdateMacieSessionCommand.js +1 -1
- package/dist-es/commands/UpdateMemberSessionCommand.js +1 -1
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +1 -1
- package/dist-es/commands/UpdateRevealConfigurationCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +23 -13
- package/dist-es/models/models_1.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +567 -1
- package/dist-types/Macie2.d.ts +42 -7
- package/dist-types/Macie2Client.d.ts +7 -2
- package/dist-types/commands/CreateAllowListCommand.d.ts +35 -0
- package/dist-types/commands/DeleteAllowListCommand.d.ts +35 -0
- package/dist-types/commands/GetAllowListCommand.d.ts +35 -0
- package/dist-types/commands/GetRevealConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetSensitiveDataOccurrencesAvailabilityCommand.d.ts +1 -1
- package/dist-types/commands/GetSensitiveDataOccurrencesCommand.d.ts +1 -1
- package/dist-types/commands/ListAllowListsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -2
- package/dist-types/commands/UpdateAllowListCommand.d.ts +35 -0
- package/dist-types/commands/UpdateClassificationJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFindingsFilterCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMacieSessionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMemberSessionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRevealConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +268 -176
- package/dist-types/models/models_1.d.ts +187 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Macie2.d.ts +25 -0
- package/dist-types/ts3.4/Macie2Client.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAllowListsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UpdateAllowListCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateClassificationJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFindingsFilterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMacieSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMemberSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateRevealConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +136 -88
- package/dist-types/ts3.4/models/models_1.d.ts +109 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +27 -27
|
@@ -52,6 +52,31 @@ export var serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = function
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
}); };
|
|
55
|
+
export var serializeAws_restJson1CreateAllowListCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
57
|
+
var _c;
|
|
58
|
+
return __generator(this, function (_d) {
|
|
59
|
+
switch (_d.label) {
|
|
60
|
+
case 0: return [4, context.endpoint()];
|
|
61
|
+
case 1:
|
|
62
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
63
|
+
headers = {
|
|
64
|
+
"content-type": "application/json",
|
|
65
|
+
};
|
|
66
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/allow-lists";
|
|
67
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.criteria != null && { criteria: serializeAws_restJson1AllowListCriteria(input.criteria, context) })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
68
|
+
return [2, new __HttpRequest({
|
|
69
|
+
protocol: protocol,
|
|
70
|
+
hostname: hostname,
|
|
71
|
+
port: port,
|
|
72
|
+
method: "POST",
|
|
73
|
+
headers: headers,
|
|
74
|
+
path: resolvedPath,
|
|
75
|
+
body: body,
|
|
76
|
+
})];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}); };
|
|
55
80
|
export var serializeAws_restJson1CreateClassificationJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
81
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
57
82
|
var _c;
|
|
@@ -64,7 +89,9 @@ export var serializeAws_restJson1CreateClassificationJobCommand = function (inpu
|
|
|
64
89
|
"content-type": "application/json",
|
|
65
90
|
};
|
|
66
91
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
|
|
67
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(
|
|
92
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allowListIds != null && {
|
|
93
|
+
allowListIds: serializeAws_restJson1__listOf__string(input.allowListIds, context),
|
|
94
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.customDataIdentifierIds != null && {
|
|
68
95
|
customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
|
|
69
96
|
})), (input.description != null && { description: input.description })), (input.initialRun != null && { initialRun: input.initialRun })), (input.jobType != null && { jobType: input.jobType })), (input.managedDataIdentifierIds != null && {
|
|
70
97
|
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
@@ -241,6 +268,32 @@ export var serializeAws_restJson1DeclineInvitationsCommand = function (input, co
|
|
|
241
268
|
}
|
|
242
269
|
});
|
|
243
270
|
}); };
|
|
271
|
+
export var serializeAws_restJson1DeleteAllowListCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
273
|
+
return __generator(this, function (_c) {
|
|
274
|
+
switch (_c.label) {
|
|
275
|
+
case 0: return [4, context.endpoint()];
|
|
276
|
+
case 1:
|
|
277
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
278
|
+
headers = {};
|
|
279
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/allow-lists/{id}";
|
|
280
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
281
|
+
query = map({
|
|
282
|
+
ignoreJobChecks: [, input.ignoreJobChecks],
|
|
283
|
+
});
|
|
284
|
+
return [2, new __HttpRequest({
|
|
285
|
+
protocol: protocol,
|
|
286
|
+
hostname: hostname,
|
|
287
|
+
port: port,
|
|
288
|
+
method: "DELETE",
|
|
289
|
+
headers: headers,
|
|
290
|
+
path: resolvedPath,
|
|
291
|
+
query: query,
|
|
292
|
+
body: body,
|
|
293
|
+
})];
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
}); };
|
|
244
297
|
export var serializeAws_restJson1DeleteCustomDataIdentifierCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
245
298
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
246
299
|
return __generator(this, function (_c) {
|
|
@@ -596,6 +649,28 @@ export var serializeAws_restJson1GetAdministratorAccountCommand = function (inpu
|
|
|
596
649
|
}
|
|
597
650
|
});
|
|
598
651
|
}); };
|
|
652
|
+
export var serializeAws_restJson1GetAllowListCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
653
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
654
|
+
return __generator(this, function (_c) {
|
|
655
|
+
switch (_c.label) {
|
|
656
|
+
case 0: return [4, context.endpoint()];
|
|
657
|
+
case 1:
|
|
658
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
659
|
+
headers = {};
|
|
660
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/allow-lists/{id}";
|
|
661
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
662
|
+
return [2, new __HttpRequest({
|
|
663
|
+
protocol: protocol,
|
|
664
|
+
hostname: hostname,
|
|
665
|
+
port: port,
|
|
666
|
+
method: "GET",
|
|
667
|
+
headers: headers,
|
|
668
|
+
path: resolvedPath,
|
|
669
|
+
body: body,
|
|
670
|
+
})];
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
}); };
|
|
599
674
|
export var serializeAws_restJson1GetBucketStatisticsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
600
675
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
601
676
|
return __generator(this, function (_c) {
|
|
@@ -979,6 +1054,32 @@ export var serializeAws_restJson1GetUsageTotalsCommand = function (input, contex
|
|
|
979
1054
|
}
|
|
980
1055
|
});
|
|
981
1056
|
}); };
|
|
1057
|
+
export var serializeAws_restJson1ListAllowListsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1058
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1059
|
+
return __generator(this, function (_c) {
|
|
1060
|
+
switch (_c.label) {
|
|
1061
|
+
case 0: return [4, context.endpoint()];
|
|
1062
|
+
case 1:
|
|
1063
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1064
|
+
headers = {};
|
|
1065
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/allow-lists";
|
|
1066
|
+
query = map({
|
|
1067
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
1068
|
+
nextToken: [, input.nextToken],
|
|
1069
|
+
});
|
|
1070
|
+
return [2, new __HttpRequest({
|
|
1071
|
+
protocol: protocol,
|
|
1072
|
+
hostname: hostname,
|
|
1073
|
+
port: port,
|
|
1074
|
+
method: "GET",
|
|
1075
|
+
headers: headers,
|
|
1076
|
+
path: resolvedPath,
|
|
1077
|
+
query: query,
|
|
1078
|
+
body: body,
|
|
1079
|
+
})];
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
}); };
|
|
982
1083
|
export var serializeAws_restJson1ListClassificationJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
983
1084
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
984
1085
|
return __generator(this, function (_c) {
|
|
@@ -1368,6 +1469,31 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1368
1469
|
}
|
|
1369
1470
|
});
|
|
1370
1471
|
}); };
|
|
1472
|
+
export var serializeAws_restJson1UpdateAllowListCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1473
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1474
|
+
return __generator(this, function (_c) {
|
|
1475
|
+
switch (_c.label) {
|
|
1476
|
+
case 0: return [4, context.endpoint()];
|
|
1477
|
+
case 1:
|
|
1478
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1479
|
+
headers = {
|
|
1480
|
+
"content-type": "application/json",
|
|
1481
|
+
};
|
|
1482
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/allow-lists/{id}";
|
|
1483
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
1484
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.criteria != null && { criteria: serializeAws_restJson1AllowListCriteria(input.criteria, context) })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
1485
|
+
return [2, new __HttpRequest({
|
|
1486
|
+
protocol: protocol,
|
|
1487
|
+
hostname: hostname,
|
|
1488
|
+
port: port,
|
|
1489
|
+
method: "PUT",
|
|
1490
|
+
headers: headers,
|
|
1491
|
+
path: resolvedPath,
|
|
1492
|
+
body: body,
|
|
1493
|
+
})];
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}); };
|
|
1371
1497
|
export var serializeAws_restJson1UpdateClassificationJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1372
1498
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1373
1499
|
return __generator(this, function (_c) {
|
|
@@ -1678,6 +1804,89 @@ var deserializeAws_restJson1BatchGetCustomDataIdentifiersCommandError = function
|
|
|
1678
1804
|
}
|
|
1679
1805
|
});
|
|
1680
1806
|
}); };
|
|
1807
|
+
export var deserializeAws_restJson1CreateAllowListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1808
|
+
var contents, data, _a, _b;
|
|
1809
|
+
return __generator(this, function (_c) {
|
|
1810
|
+
switch (_c.label) {
|
|
1811
|
+
case 0:
|
|
1812
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1813
|
+
return [2, deserializeAws_restJson1CreateAllowListCommandError(output, context)];
|
|
1814
|
+
}
|
|
1815
|
+
contents = map({
|
|
1816
|
+
$metadata: deserializeMetadata(output),
|
|
1817
|
+
});
|
|
1818
|
+
_a = __expectNonNull;
|
|
1819
|
+
_b = __expectObject;
|
|
1820
|
+
return [4, parseBody(output.body, context)];
|
|
1821
|
+
case 1:
|
|
1822
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1823
|
+
if (data.arn != null) {
|
|
1824
|
+
contents.arn = __expectString(data.arn);
|
|
1825
|
+
}
|
|
1826
|
+
if (data.id != null) {
|
|
1827
|
+
contents.id = __expectString(data.id);
|
|
1828
|
+
}
|
|
1829
|
+
return [2, contents];
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
}); };
|
|
1833
|
+
var deserializeAws_restJson1CreateAllowListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1835
|
+
var _c;
|
|
1836
|
+
return __generator(this, function (_d) {
|
|
1837
|
+
switch (_d.label) {
|
|
1838
|
+
case 0:
|
|
1839
|
+
_a = [__assign({}, output)];
|
|
1840
|
+
_c = {};
|
|
1841
|
+
return [4, parseBody(output.body, context)];
|
|
1842
|
+
case 1:
|
|
1843
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1844
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
_b = errorCode;
|
|
1846
|
+
switch (_b) {
|
|
1847
|
+
case "AccessDeniedException": return [3, 2];
|
|
1848
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
1849
|
+
case "ConflictException": return [3, 4];
|
|
1850
|
+
case "com.amazonaws.macie2#ConflictException": return [3, 4];
|
|
1851
|
+
case "InternalServerException": return [3, 6];
|
|
1852
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 6];
|
|
1853
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1854
|
+
case "com.amazonaws.macie2#ResourceNotFoundException": return [3, 8];
|
|
1855
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1856
|
+
case "com.amazonaws.macie2#ServiceQuotaExceededException": return [3, 10];
|
|
1857
|
+
case "ThrottlingException": return [3, 12];
|
|
1858
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 12];
|
|
1859
|
+
case "ValidationException": return [3, 14];
|
|
1860
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 14];
|
|
1861
|
+
}
|
|
1862
|
+
return [3, 16];
|
|
1863
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 3: throw _d.sent();
|
|
1865
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1866
|
+
case 5: throw _d.sent();
|
|
1867
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1868
|
+
case 7: throw _d.sent();
|
|
1869
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1870
|
+
case 9: throw _d.sent();
|
|
1871
|
+
case 10: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1872
|
+
case 11: throw _d.sent();
|
|
1873
|
+
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1874
|
+
case 13: throw _d.sent();
|
|
1875
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1876
|
+
case 15: throw _d.sent();
|
|
1877
|
+
case 16:
|
|
1878
|
+
parsedBody = parsedOutput.body;
|
|
1879
|
+
throwDefaultError({
|
|
1880
|
+
output: output,
|
|
1881
|
+
parsedBody: parsedBody,
|
|
1882
|
+
exceptionCtor: __BaseException,
|
|
1883
|
+
errorCode: errorCode,
|
|
1884
|
+
});
|
|
1885
|
+
_d.label = 17;
|
|
1886
|
+
case 17: return [2];
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
}); };
|
|
1681
1890
|
export var deserializeAws_restJson1CreateClassificationJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1682
1891
|
var contents, data, _a, _b;
|
|
1683
1892
|
return __generator(this, function (_c) {
|
|
@@ -2239,6 +2448,73 @@ var deserializeAws_restJson1DeclineInvitationsCommandError = function (output, c
|
|
|
2239
2448
|
}
|
|
2240
2449
|
});
|
|
2241
2450
|
}); };
|
|
2451
|
+
export var deserializeAws_restJson1DeleteAllowListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2452
|
+
var contents;
|
|
2453
|
+
return __generator(this, function (_a) {
|
|
2454
|
+
switch (_a.label) {
|
|
2455
|
+
case 0:
|
|
2456
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2457
|
+
return [2, deserializeAws_restJson1DeleteAllowListCommandError(output, context)];
|
|
2458
|
+
}
|
|
2459
|
+
contents = map({
|
|
2460
|
+
$metadata: deserializeMetadata(output),
|
|
2461
|
+
});
|
|
2462
|
+
return [4, collectBody(output.body, context)];
|
|
2463
|
+
case 1:
|
|
2464
|
+
_a.sent();
|
|
2465
|
+
return [2, contents];
|
|
2466
|
+
}
|
|
2467
|
+
});
|
|
2468
|
+
}); };
|
|
2469
|
+
var deserializeAws_restJson1DeleteAllowListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2470
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2471
|
+
var _c;
|
|
2472
|
+
return __generator(this, function (_d) {
|
|
2473
|
+
switch (_d.label) {
|
|
2474
|
+
case 0:
|
|
2475
|
+
_a = [__assign({}, output)];
|
|
2476
|
+
_c = {};
|
|
2477
|
+
return [4, parseBody(output.body, context)];
|
|
2478
|
+
case 1:
|
|
2479
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2480
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2481
|
+
_b = errorCode;
|
|
2482
|
+
switch (_b) {
|
|
2483
|
+
case "AccessDeniedException": return [3, 2];
|
|
2484
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
2485
|
+
case "InternalServerException": return [3, 4];
|
|
2486
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
2487
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2488
|
+
case "com.amazonaws.macie2#ResourceNotFoundException": return [3, 6];
|
|
2489
|
+
case "ThrottlingException": return [3, 8];
|
|
2490
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 8];
|
|
2491
|
+
case "ValidationException": return [3, 10];
|
|
2492
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 10];
|
|
2493
|
+
}
|
|
2494
|
+
return [3, 12];
|
|
2495
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2496
|
+
case 3: throw _d.sent();
|
|
2497
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2498
|
+
case 5: throw _d.sent();
|
|
2499
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2500
|
+
case 7: throw _d.sent();
|
|
2501
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2502
|
+
case 9: throw _d.sent();
|
|
2503
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2504
|
+
case 11: throw _d.sent();
|
|
2505
|
+
case 12:
|
|
2506
|
+
parsedBody = parsedOutput.body;
|
|
2507
|
+
throwDefaultError({
|
|
2508
|
+
output: output,
|
|
2509
|
+
parsedBody: parsedBody,
|
|
2510
|
+
exceptionCtor: __BaseException,
|
|
2511
|
+
errorCode: errorCode,
|
|
2512
|
+
});
|
|
2513
|
+
_d.label = 13;
|
|
2514
|
+
case 13: return [2];
|
|
2515
|
+
}
|
|
2516
|
+
});
|
|
2517
|
+
}); };
|
|
2242
2518
|
export var deserializeAws_restJson1DeleteCustomDataIdentifierCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2243
2519
|
var contents;
|
|
2244
2520
|
return __generator(this, function (_a) {
|
|
@@ -2643,6 +2919,9 @@ export var deserializeAws_restJson1DescribeClassificationJobCommand = function (
|
|
|
2643
2919
|
return [4, parseBody(output.body, context)];
|
|
2644
2920
|
case 1:
|
|
2645
2921
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2922
|
+
if (data.allowListIds != null) {
|
|
2923
|
+
contents.allowListIds = deserializeAws_restJson1__listOf__string(data.allowListIds, context);
|
|
2924
|
+
}
|
|
2646
2925
|
if (data.clientToken != null) {
|
|
2647
2926
|
contents.clientToken = __expectString(data.clientToken);
|
|
2648
2927
|
}
|
|
@@ -3452,6 +3731,102 @@ var deserializeAws_restJson1GetAdministratorAccountCommandError = function (outp
|
|
|
3452
3731
|
}
|
|
3453
3732
|
});
|
|
3454
3733
|
}); };
|
|
3734
|
+
export var deserializeAws_restJson1GetAllowListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3735
|
+
var contents, data, _a, _b;
|
|
3736
|
+
return __generator(this, function (_c) {
|
|
3737
|
+
switch (_c.label) {
|
|
3738
|
+
case 0:
|
|
3739
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3740
|
+
return [2, deserializeAws_restJson1GetAllowListCommandError(output, context)];
|
|
3741
|
+
}
|
|
3742
|
+
contents = map({
|
|
3743
|
+
$metadata: deserializeMetadata(output),
|
|
3744
|
+
});
|
|
3745
|
+
_a = __expectNonNull;
|
|
3746
|
+
_b = __expectObject;
|
|
3747
|
+
return [4, parseBody(output.body, context)];
|
|
3748
|
+
case 1:
|
|
3749
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3750
|
+
if (data.arn != null) {
|
|
3751
|
+
contents.arn = __expectString(data.arn);
|
|
3752
|
+
}
|
|
3753
|
+
if (data.createdAt != null) {
|
|
3754
|
+
contents.createdAt = __expectNonNull(__parseRfc3339DateTime(data.createdAt));
|
|
3755
|
+
}
|
|
3756
|
+
if (data.criteria != null) {
|
|
3757
|
+
contents.criteria = deserializeAws_restJson1AllowListCriteria(data.criteria, context);
|
|
3758
|
+
}
|
|
3759
|
+
if (data.description != null) {
|
|
3760
|
+
contents.description = __expectString(data.description);
|
|
3761
|
+
}
|
|
3762
|
+
if (data.id != null) {
|
|
3763
|
+
contents.id = __expectString(data.id);
|
|
3764
|
+
}
|
|
3765
|
+
if (data.name != null) {
|
|
3766
|
+
contents.name = __expectString(data.name);
|
|
3767
|
+
}
|
|
3768
|
+
if (data.status != null) {
|
|
3769
|
+
contents.status = deserializeAws_restJson1AllowListStatus(data.status, context);
|
|
3770
|
+
}
|
|
3771
|
+
if (data.tags != null) {
|
|
3772
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3773
|
+
}
|
|
3774
|
+
if (data.updatedAt != null) {
|
|
3775
|
+
contents.updatedAt = __expectNonNull(__parseRfc3339DateTime(data.updatedAt));
|
|
3776
|
+
}
|
|
3777
|
+
return [2, contents];
|
|
3778
|
+
}
|
|
3779
|
+
});
|
|
3780
|
+
}); };
|
|
3781
|
+
var deserializeAws_restJson1GetAllowListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3782
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3783
|
+
var _c;
|
|
3784
|
+
return __generator(this, function (_d) {
|
|
3785
|
+
switch (_d.label) {
|
|
3786
|
+
case 0:
|
|
3787
|
+
_a = [__assign({}, output)];
|
|
3788
|
+
_c = {};
|
|
3789
|
+
return [4, parseBody(output.body, context)];
|
|
3790
|
+
case 1:
|
|
3791
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3792
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3793
|
+
_b = errorCode;
|
|
3794
|
+
switch (_b) {
|
|
3795
|
+
case "AccessDeniedException": return [3, 2];
|
|
3796
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
3797
|
+
case "InternalServerException": return [3, 4];
|
|
3798
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
3799
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3800
|
+
case "com.amazonaws.macie2#ResourceNotFoundException": return [3, 6];
|
|
3801
|
+
case "ThrottlingException": return [3, 8];
|
|
3802
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 8];
|
|
3803
|
+
case "ValidationException": return [3, 10];
|
|
3804
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 10];
|
|
3805
|
+
}
|
|
3806
|
+
return [3, 12];
|
|
3807
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3808
|
+
case 3: throw _d.sent();
|
|
3809
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3810
|
+
case 5: throw _d.sent();
|
|
3811
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3812
|
+
case 7: throw _d.sent();
|
|
3813
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3814
|
+
case 9: throw _d.sent();
|
|
3815
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
3816
|
+
case 11: throw _d.sent();
|
|
3817
|
+
case 12:
|
|
3818
|
+
parsedBody = parsedOutput.body;
|
|
3819
|
+
throwDefaultError({
|
|
3820
|
+
output: output,
|
|
3821
|
+
parsedBody: parsedBody,
|
|
3822
|
+
exceptionCtor: __BaseException,
|
|
3823
|
+
errorCode: errorCode,
|
|
3824
|
+
});
|
|
3825
|
+
_d.label = 13;
|
|
3826
|
+
case 13: return [2];
|
|
3827
|
+
}
|
|
3828
|
+
});
|
|
3829
|
+
}); };
|
|
3455
3830
|
export var deserializeAws_restJson1GetBucketStatisticsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3456
3831
|
var contents, data, _a, _b;
|
|
3457
3832
|
return __generator(this, function (_c) {
|
|
@@ -4849,6 +5224,77 @@ var deserializeAws_restJson1GetUsageTotalsCommandError = function (output, conte
|
|
|
4849
5224
|
}
|
|
4850
5225
|
});
|
|
4851
5226
|
}); };
|
|
5227
|
+
export var deserializeAws_restJson1ListAllowListsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5228
|
+
var contents, data, _a, _b;
|
|
5229
|
+
return __generator(this, function (_c) {
|
|
5230
|
+
switch (_c.label) {
|
|
5231
|
+
case 0:
|
|
5232
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5233
|
+
return [2, deserializeAws_restJson1ListAllowListsCommandError(output, context)];
|
|
5234
|
+
}
|
|
5235
|
+
contents = map({
|
|
5236
|
+
$metadata: deserializeMetadata(output),
|
|
5237
|
+
});
|
|
5238
|
+
_a = __expectNonNull;
|
|
5239
|
+
_b = __expectObject;
|
|
5240
|
+
return [4, parseBody(output.body, context)];
|
|
5241
|
+
case 1:
|
|
5242
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5243
|
+
if (data.allowLists != null) {
|
|
5244
|
+
contents.allowLists = deserializeAws_restJson1__listOfAllowListSummary(data.allowLists, context);
|
|
5245
|
+
}
|
|
5246
|
+
if (data.nextToken != null) {
|
|
5247
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
5248
|
+
}
|
|
5249
|
+
return [2, contents];
|
|
5250
|
+
}
|
|
5251
|
+
});
|
|
5252
|
+
}); };
|
|
5253
|
+
var deserializeAws_restJson1ListAllowListsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5254
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5255
|
+
var _c;
|
|
5256
|
+
return __generator(this, function (_d) {
|
|
5257
|
+
switch (_d.label) {
|
|
5258
|
+
case 0:
|
|
5259
|
+
_a = [__assign({}, output)];
|
|
5260
|
+
_c = {};
|
|
5261
|
+
return [4, parseBody(output.body, context)];
|
|
5262
|
+
case 1:
|
|
5263
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5264
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5265
|
+
_b = errorCode;
|
|
5266
|
+
switch (_b) {
|
|
5267
|
+
case "AccessDeniedException": return [3, 2];
|
|
5268
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
5269
|
+
case "InternalServerException": return [3, 4];
|
|
5270
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
5271
|
+
case "ThrottlingException": return [3, 6];
|
|
5272
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 6];
|
|
5273
|
+
case "ValidationException": return [3, 8];
|
|
5274
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 8];
|
|
5275
|
+
}
|
|
5276
|
+
return [3, 10];
|
|
5277
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
5278
|
+
case 3: throw _d.sent();
|
|
5279
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
5280
|
+
case 5: throw _d.sent();
|
|
5281
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
5282
|
+
case 7: throw _d.sent();
|
|
5283
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
5284
|
+
case 9: throw _d.sent();
|
|
5285
|
+
case 10:
|
|
5286
|
+
parsedBody = parsedOutput.body;
|
|
5287
|
+
throwDefaultError({
|
|
5288
|
+
output: output,
|
|
5289
|
+
parsedBody: parsedBody,
|
|
5290
|
+
exceptionCtor: __BaseException,
|
|
5291
|
+
errorCode: errorCode,
|
|
5292
|
+
});
|
|
5293
|
+
_d.label = 11;
|
|
5294
|
+
case 11: return [2];
|
|
5295
|
+
}
|
|
5296
|
+
});
|
|
5297
|
+
}); };
|
|
4852
5298
|
export var deserializeAws_restJson1ListClassificationJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4853
5299
|
var contents, data, _a, _b;
|
|
4854
5300
|
return __generator(this, function (_c) {
|
|
@@ -5925,6 +6371,81 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5925
6371
|
}
|
|
5926
6372
|
});
|
|
5927
6373
|
}); };
|
|
6374
|
+
export var deserializeAws_restJson1UpdateAllowListCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6375
|
+
var contents, data, _a, _b;
|
|
6376
|
+
return __generator(this, function (_c) {
|
|
6377
|
+
switch (_c.label) {
|
|
6378
|
+
case 0:
|
|
6379
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6380
|
+
return [2, deserializeAws_restJson1UpdateAllowListCommandError(output, context)];
|
|
6381
|
+
}
|
|
6382
|
+
contents = map({
|
|
6383
|
+
$metadata: deserializeMetadata(output),
|
|
6384
|
+
});
|
|
6385
|
+
_a = __expectNonNull;
|
|
6386
|
+
_b = __expectObject;
|
|
6387
|
+
return [4, parseBody(output.body, context)];
|
|
6388
|
+
case 1:
|
|
6389
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6390
|
+
if (data.arn != null) {
|
|
6391
|
+
contents.arn = __expectString(data.arn);
|
|
6392
|
+
}
|
|
6393
|
+
if (data.id != null) {
|
|
6394
|
+
contents.id = __expectString(data.id);
|
|
6395
|
+
}
|
|
6396
|
+
return [2, contents];
|
|
6397
|
+
}
|
|
6398
|
+
});
|
|
6399
|
+
}); };
|
|
6400
|
+
var deserializeAws_restJson1UpdateAllowListCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6401
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6402
|
+
var _c;
|
|
6403
|
+
return __generator(this, function (_d) {
|
|
6404
|
+
switch (_d.label) {
|
|
6405
|
+
case 0:
|
|
6406
|
+
_a = [__assign({}, output)];
|
|
6407
|
+
_c = {};
|
|
6408
|
+
return [4, parseBody(output.body, context)];
|
|
6409
|
+
case 1:
|
|
6410
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6411
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6412
|
+
_b = errorCode;
|
|
6413
|
+
switch (_b) {
|
|
6414
|
+
case "AccessDeniedException": return [3, 2];
|
|
6415
|
+
case "com.amazonaws.macie2#AccessDeniedException": return [3, 2];
|
|
6416
|
+
case "InternalServerException": return [3, 4];
|
|
6417
|
+
case "com.amazonaws.macie2#InternalServerException": return [3, 4];
|
|
6418
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6419
|
+
case "com.amazonaws.macie2#ResourceNotFoundException": return [3, 6];
|
|
6420
|
+
case "ThrottlingException": return [3, 8];
|
|
6421
|
+
case "com.amazonaws.macie2#ThrottlingException": return [3, 8];
|
|
6422
|
+
case "ValidationException": return [3, 10];
|
|
6423
|
+
case "com.amazonaws.macie2#ValidationException": return [3, 10];
|
|
6424
|
+
}
|
|
6425
|
+
return [3, 12];
|
|
6426
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6427
|
+
case 3: throw _d.sent();
|
|
6428
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6429
|
+
case 5: throw _d.sent();
|
|
6430
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6431
|
+
case 7: throw _d.sent();
|
|
6432
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6433
|
+
case 9: throw _d.sent();
|
|
6434
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6435
|
+
case 11: throw _d.sent();
|
|
6436
|
+
case 12:
|
|
6437
|
+
parsedBody = parsedOutput.body;
|
|
6438
|
+
throwDefaultError({
|
|
6439
|
+
output: output,
|
|
6440
|
+
parsedBody: parsedBody,
|
|
6441
|
+
exceptionCtor: __BaseException,
|
|
6442
|
+
errorCode: errorCode,
|
|
6443
|
+
});
|
|
6444
|
+
_d.label = 13;
|
|
6445
|
+
case 13: return [2];
|
|
6446
|
+
}
|
|
6447
|
+
});
|
|
6448
|
+
}); };
|
|
5928
6449
|
export var deserializeAws_restJson1UpdateClassificationJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5929
6450
|
var contents;
|
|
5930
6451
|
return __generator(this, function (_a) {
|
|
@@ -6553,6 +7074,9 @@ var serializeAws_restJson1__listOfUsageStatisticsFilter = function (input, conte
|
|
|
6553
7074
|
var serializeAws_restJson1AccountDetail = function (input, context) {
|
|
6554
7075
|
return __assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.email != null && { email: input.email }));
|
|
6555
7076
|
};
|
|
7077
|
+
var serializeAws_restJson1AllowListCriteria = function (input, context) {
|
|
7078
|
+
return __assign(__assign({}, (input.regex != null && { regex: input.regex })), (input.s3WordsList != null && { s3WordsList: serializeAws_restJson1S3WordsList(input.s3WordsList, context) }));
|
|
7079
|
+
};
|
|
6556
7080
|
var serializeAws_restJson1BucketCriteria = function (input, context) {
|
|
6557
7081
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
6558
7082
|
var _b;
|
|
@@ -6662,6 +7186,9 @@ var serializeAws_restJson1S3JobDefinition = function (input, context) {
|
|
|
6662
7186
|
bucketDefinitions: serializeAws_restJson1__listOfS3BucketDefinitionForJob(input.bucketDefinitions, context),
|
|
6663
7187
|
})), (input.scoping != null && { scoping: serializeAws_restJson1Scoping(input.scoping, context) }));
|
|
6664
7188
|
};
|
|
7189
|
+
var serializeAws_restJson1S3WordsList = function (input, context) {
|
|
7190
|
+
return __assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.objectKey != null && { objectKey: input.objectKey }));
|
|
7191
|
+
};
|
|
6665
7192
|
var serializeAws_restJson1Scoping = function (input, context) {
|
|
6666
7193
|
return __assign(__assign({}, (input.excludes != null && { excludes: serializeAws_restJson1JobScopingBlock(input.excludes, context) })), (input.includes != null && { includes: serializeAws_restJson1JobScopingBlock(input.includes, context) }));
|
|
6667
7194
|
};
|
|
@@ -6775,6 +7302,17 @@ var deserializeAws_restJson1__listOfAdminAccount = function (output, context) {
|
|
|
6775
7302
|
});
|
|
6776
7303
|
return retVal;
|
|
6777
7304
|
};
|
|
7305
|
+
var deserializeAws_restJson1__listOfAllowListSummary = function (output, context) {
|
|
7306
|
+
var retVal = (output || [])
|
|
7307
|
+
.filter(function (e) { return e != null; })
|
|
7308
|
+
.map(function (entry) {
|
|
7309
|
+
if (entry === null) {
|
|
7310
|
+
return null;
|
|
7311
|
+
}
|
|
7312
|
+
return deserializeAws_restJson1AllowListSummary(entry, context);
|
|
7313
|
+
});
|
|
7314
|
+
return retVal;
|
|
7315
|
+
};
|
|
6778
7316
|
var deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary = function (output, context) {
|
|
6779
7317
|
var retVal = (output || [])
|
|
6780
7318
|
.filter(function (e) { return e != null; })
|
|
@@ -7047,6 +7585,28 @@ var deserializeAws_restJson1AdminAccount = function (output, context) {
|
|
|
7047
7585
|
status: __expectString(output.status),
|
|
7048
7586
|
};
|
|
7049
7587
|
};
|
|
7588
|
+
var deserializeAws_restJson1AllowListCriteria = function (output, context) {
|
|
7589
|
+
return {
|
|
7590
|
+
regex: __expectString(output.regex),
|
|
7591
|
+
s3WordsList: output.s3WordsList != null ? deserializeAws_restJson1S3WordsList(output.s3WordsList, context) : undefined,
|
|
7592
|
+
};
|
|
7593
|
+
};
|
|
7594
|
+
var deserializeAws_restJson1AllowListStatus = function (output, context) {
|
|
7595
|
+
return {
|
|
7596
|
+
code: __expectString(output.code),
|
|
7597
|
+
description: __expectString(output.description),
|
|
7598
|
+
};
|
|
7599
|
+
};
|
|
7600
|
+
var deserializeAws_restJson1AllowListSummary = function (output, context) {
|
|
7601
|
+
return {
|
|
7602
|
+
arn: __expectString(output.arn),
|
|
7603
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
|
|
7604
|
+
description: __expectString(output.description),
|
|
7605
|
+
id: __expectString(output.id),
|
|
7606
|
+
name: __expectString(output.name),
|
|
7607
|
+
updatedAt: output.updatedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.updatedAt)) : undefined,
|
|
7608
|
+
};
|
|
7609
|
+
};
|
|
7050
7610
|
var deserializeAws_restJson1ApiCallDetails = function (output, context) {
|
|
7051
7611
|
return {
|
|
7052
7612
|
api: __expectString(output.api),
|
|
@@ -7787,6 +8347,12 @@ var deserializeAws_restJson1S3Object = function (output, context) {
|
|
|
7787
8347
|
versionId: __expectString(output.versionId),
|
|
7788
8348
|
};
|
|
7789
8349
|
};
|
|
8350
|
+
var deserializeAws_restJson1S3WordsList = function (output, context) {
|
|
8351
|
+
return {
|
|
8352
|
+
bucketName: __expectString(output.bucketName),
|
|
8353
|
+
objectKey: __expectString(output.objectKey),
|
|
8354
|
+
};
|
|
8355
|
+
};
|
|
7790
8356
|
var deserializeAws_restJson1Scoping = function (output, context) {
|
|
7791
8357
|
return {
|
|
7792
8358
|
excludes: output.excludes != null ? deserializeAws_restJson1JobScopingBlock(output.excludes, context) : undefined,
|