@aws-sdk/client-guardduty 3.131.0 → 3.137.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 +12 -0
- package/dist-cjs/GuardDuty.js +45 -0
- package/dist-cjs/commands/AcceptAdministratorInvitationCommand.js +2 -2
- package/dist-cjs/commands/AcceptInvitationCommand.js +2 -2
- package/dist-cjs/commands/ArchiveFindingsCommand.js +2 -2
- package/dist-cjs/commands/CreateDetectorCommand.js +2 -2
- package/dist-cjs/commands/CreateFilterCommand.js +2 -2
- package/dist-cjs/commands/CreateIPSetCommand.js +2 -2
- package/dist-cjs/commands/CreateMembersCommand.js +2 -2
- package/dist-cjs/commands/CreatePublishingDestinationCommand.js +2 -2
- package/dist-cjs/commands/CreateSampleFindingsCommand.js +2 -2
- package/dist-cjs/commands/CreateThreatIntelSetCommand.js +2 -2
- package/dist-cjs/commands/DeclineInvitationsCommand.js +2 -2
- package/dist-cjs/commands/DeleteDetectorCommand.js +2 -2
- package/dist-cjs/commands/DeleteFilterCommand.js +2 -2
- package/dist-cjs/commands/DeleteIPSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteInvitationsCommand.js +2 -2
- package/dist-cjs/commands/DeleteMembersCommand.js +2 -2
- package/dist-cjs/commands/DeletePublishingDestinationCommand.js +2 -2
- package/dist-cjs/commands/DeleteThreatIntelSetCommand.js +2 -2
- package/dist-cjs/commands/DescribeMalwareScansCommand.js +36 -0
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribePublishingDestinationCommand.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/DisassociateMembersCommand.js +2 -2
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +2 -2
- package/dist-cjs/commands/GetAdministratorAccountCommand.js +2 -2
- package/dist-cjs/commands/GetDetectorCommand.js +2 -2
- package/dist-cjs/commands/GetFilterCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsStatisticsCommand.js +2 -2
- package/dist-cjs/commands/GetIPSetCommand.js +2 -2
- package/dist-cjs/commands/GetInvitationsCountCommand.js +2 -2
- package/dist-cjs/commands/GetMalwareScanSettingsCommand.js +36 -0
- package/dist-cjs/commands/GetMasterAccountCommand.js +2 -2
- package/dist-cjs/commands/GetMemberDetectorsCommand.js +2 -2
- package/dist-cjs/commands/GetMembersCommand.js +2 -2
- package/dist-cjs/commands/GetRemainingFreeTrialDaysCommand.js +2 -2
- package/dist-cjs/commands/GetThreatIntelSetCommand.js +2 -2
- package/dist-cjs/commands/GetUsageStatisticsCommand.js +2 -2
- package/dist-cjs/commands/InviteMembersCommand.js +2 -2
- package/dist-cjs/commands/ListDetectorsCommand.js +2 -2
- package/dist-cjs/commands/ListFiltersCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListIPSetsCommand.js +2 -2
- package/dist-cjs/commands/ListInvitationsCommand.js +2 -2
- package/dist-cjs/commands/ListMembersCommand.js +2 -2
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListPublishingDestinationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListThreatIntelSetsCommand.js +2 -2
- package/dist-cjs/commands/StartMonitoringMembersCommand.js +2 -2
- package/dist-cjs/commands/StopMonitoringMembersCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UnarchiveFindingsCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDetectorCommand.js +2 -2
- package/dist-cjs/commands/UpdateFilterCommand.js +2 -2
- package/dist-cjs/commands/UpdateFindingsFeedbackCommand.js +2 -2
- package/dist-cjs/commands/UpdateIPSetCommand.js +2 -2
- package/dist-cjs/commands/UpdateMalwareScanSettingsCommand.js +36 -0
- package/dist-cjs/commands/UpdateMemberDetectorsCommand.js +2 -2
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdatePublishingDestinationCommand.js +2 -2
- package/dist-cjs/commands/UpdateThreatIntelSetCommand.js +2 -2
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +1069 -1312
- package/dist-cjs/pagination/DescribeMalwareScansPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +663 -3
- package/dist-es/GuardDuty.js +45 -0
- package/dist-es/commands/AcceptAdministratorInvitationCommand.js +3 -3
- package/dist-es/commands/AcceptInvitationCommand.js +3 -3
- package/dist-es/commands/ArchiveFindingsCommand.js +3 -3
- package/dist-es/commands/CreateDetectorCommand.js +3 -3
- package/dist-es/commands/CreateFilterCommand.js +3 -3
- package/dist-es/commands/CreateIPSetCommand.js +3 -3
- package/dist-es/commands/CreateMembersCommand.js +3 -3
- package/dist-es/commands/CreatePublishingDestinationCommand.js +3 -3
- package/dist-es/commands/CreateSampleFindingsCommand.js +3 -3
- package/dist-es/commands/CreateThreatIntelSetCommand.js +3 -3
- package/dist-es/commands/DeclineInvitationsCommand.js +3 -3
- package/dist-es/commands/DeleteDetectorCommand.js +3 -3
- package/dist-es/commands/DeleteFilterCommand.js +3 -3
- package/dist-es/commands/DeleteIPSetCommand.js +3 -3
- package/dist-es/commands/DeleteInvitationsCommand.js +3 -3
- package/dist-es/commands/DeleteMembersCommand.js +3 -3
- package/dist-es/commands/DeletePublishingDestinationCommand.js +3 -3
- package/dist-es/commands/DeleteThreatIntelSetCommand.js +3 -3
- package/dist-es/commands/DescribeMalwareScansCommand.js +39 -0
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribePublishingDestinationCommand.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/DisassociateMembersCommand.js +3 -3
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -3
- package/dist-es/commands/GetAdministratorAccountCommand.js +3 -3
- package/dist-es/commands/GetDetectorCommand.js +3 -3
- package/dist-es/commands/GetFilterCommand.js +3 -3
- package/dist-es/commands/GetFindingsCommand.js +3 -3
- package/dist-es/commands/GetFindingsStatisticsCommand.js +3 -3
- package/dist-es/commands/GetIPSetCommand.js +3 -3
- package/dist-es/commands/GetInvitationsCountCommand.js +3 -3
- package/dist-es/commands/GetMalwareScanSettingsCommand.js +39 -0
- package/dist-es/commands/GetMasterAccountCommand.js +3 -3
- package/dist-es/commands/GetMemberDetectorsCommand.js +3 -3
- package/dist-es/commands/GetMembersCommand.js +3 -3
- package/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +3 -3
- package/dist-es/commands/GetThreatIntelSetCommand.js +3 -3
- package/dist-es/commands/GetUsageStatisticsCommand.js +3 -3
- package/dist-es/commands/InviteMembersCommand.js +3 -3
- package/dist-es/commands/ListDetectorsCommand.js +3 -3
- package/dist-es/commands/ListFiltersCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListIPSetsCommand.js +3 -3
- package/dist-es/commands/ListInvitationsCommand.js +3 -3
- package/dist-es/commands/ListMembersCommand.js +3 -3
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-es/commands/ListPublishingDestinationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListThreatIntelSetsCommand.js +3 -3
- package/dist-es/commands/StartMonitoringMembersCommand.js +3 -3
- package/dist-es/commands/StopMonitoringMembersCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UnarchiveFindingsCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDetectorCommand.js +3 -3
- package/dist-es/commands/UpdateFilterCommand.js +3 -3
- package/dist-es/commands/UpdateFindingsFeedbackCommand.js +3 -3
- package/dist-es/commands/UpdateIPSetCommand.js +3 -3
- package/dist-es/commands/UpdateMalwareScanSettingsCommand.js +39 -0
- package/dist-es/commands/UpdateMemberDetectorsCommand.js +3 -3
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdatePublishingDestinationCommand.js +3 -3
- package/dist-es/commands/UpdateThreatIntelSetCommand.js +3 -3
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +292 -873
- package/dist-es/pagination/DescribeMalwareScansPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +696 -2
- package/dist-types/GuardDuty.d.ts +21 -0
- package/dist-types/GuardDutyClient.d.ts +5 -2
- package/dist-types/commands/DescribeMalwareScansCommand.d.ts +35 -0
- package/dist-types/commands/GetMalwareScanSettingsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateMalwareScanSettingsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +1729 -1297
- package/dist-types/pagination/DescribeMalwareScansPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/GuardDuty.d.ts +15 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/DescribeMalwareScansCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMalwareScanSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateMalwareScanSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +925 -898
- package/dist-types/ts3.4/pagination/DescribeMalwareScansPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +6 -6
|
@@ -630,6 +630,44 @@ export var serializeAws_restJson1DeleteThreatIntelSetCommand = function (input,
|
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
}); };
|
|
633
|
+
export var serializeAws_restJson1DescribeMalwareScansCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
634
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
635
|
+
return __generator(this, function (_c) {
|
|
636
|
+
switch (_c.label) {
|
|
637
|
+
case 0: return [4, context.endpoint()];
|
|
638
|
+
case 1:
|
|
639
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
640
|
+
headers = {
|
|
641
|
+
"content-type": "application/json",
|
|
642
|
+
};
|
|
643
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector/{DetectorId}/malware-scans";
|
|
644
|
+
if (input.DetectorId !== undefined) {
|
|
645
|
+
labelValue = input.DetectorId;
|
|
646
|
+
if (labelValue.length <= 0) {
|
|
647
|
+
throw new Error("Empty value provided for input HTTP label: DetectorId.");
|
|
648
|
+
}
|
|
649
|
+
resolvedPath = resolvedPath.replace("{DetectorId}", __extendedEncodeURIComponent(labelValue));
|
|
650
|
+
}
|
|
651
|
+
else {
|
|
652
|
+
throw new Error("No value provided for input HTTP label: DetectorId.");
|
|
653
|
+
}
|
|
654
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FilterCriteria != null && {
|
|
655
|
+
filterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
656
|
+
})), (input.MaxResults != null && { maxResults: input.MaxResults })), (input.NextToken != null && { nextToken: input.NextToken })), (input.SortCriteria != null && {
|
|
657
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context),
|
|
658
|
+
})));
|
|
659
|
+
return [2, new __HttpRequest({
|
|
660
|
+
protocol: protocol,
|
|
661
|
+
hostname: hostname,
|
|
662
|
+
port: port,
|
|
663
|
+
method: "POST",
|
|
664
|
+
headers: headers,
|
|
665
|
+
path: resolvedPath,
|
|
666
|
+
body: body,
|
|
667
|
+
})];
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
}); };
|
|
633
671
|
export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
634
672
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
635
673
|
return __generator(this, function (_c) {
|
|
@@ -1094,6 +1132,38 @@ export var serializeAws_restJson1GetIPSetCommand = function (input, context) { r
|
|
|
1094
1132
|
}
|
|
1095
1133
|
});
|
|
1096
1134
|
}); };
|
|
1135
|
+
export var serializeAws_restJson1GetMalwareScanSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1136
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1137
|
+
return __generator(this, function (_c) {
|
|
1138
|
+
switch (_c.label) {
|
|
1139
|
+
case 0: return [4, context.endpoint()];
|
|
1140
|
+
case 1:
|
|
1141
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1142
|
+
headers = {};
|
|
1143
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1144
|
+
"/detector/{DetectorId}/malware-scan-settings";
|
|
1145
|
+
if (input.DetectorId !== undefined) {
|
|
1146
|
+
labelValue = input.DetectorId;
|
|
1147
|
+
if (labelValue.length <= 0) {
|
|
1148
|
+
throw new Error("Empty value provided for input HTTP label: DetectorId.");
|
|
1149
|
+
}
|
|
1150
|
+
resolvedPath = resolvedPath.replace("{DetectorId}", __extendedEncodeURIComponent(labelValue));
|
|
1151
|
+
}
|
|
1152
|
+
else {
|
|
1153
|
+
throw new Error("No value provided for input HTTP label: DetectorId.");
|
|
1154
|
+
}
|
|
1155
|
+
return [2, new __HttpRequest({
|
|
1156
|
+
protocol: protocol,
|
|
1157
|
+
hostname: hostname,
|
|
1158
|
+
port: port,
|
|
1159
|
+
method: "GET",
|
|
1160
|
+
headers: headers,
|
|
1161
|
+
path: resolvedPath,
|
|
1162
|
+
body: body,
|
|
1163
|
+
})];
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}); };
|
|
1097
1167
|
export var serializeAws_restJson1GetMasterAccountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1098
1168
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1099
1169
|
return __generator(this, function (_c) {
|
|
@@ -1975,6 +2045,43 @@ export var serializeAws_restJson1UpdateIPSetCommand = function (input, context)
|
|
|
1975
2045
|
}
|
|
1976
2046
|
});
|
|
1977
2047
|
}); };
|
|
2048
|
+
export var serializeAws_restJson1UpdateMalwareScanSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2049
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
2050
|
+
return __generator(this, function (_c) {
|
|
2051
|
+
switch (_c.label) {
|
|
2052
|
+
case 0: return [4, context.endpoint()];
|
|
2053
|
+
case 1:
|
|
2054
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2055
|
+
headers = {
|
|
2056
|
+
"content-type": "application/json",
|
|
2057
|
+
};
|
|
2058
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2059
|
+
"/detector/{DetectorId}/malware-scan-settings";
|
|
2060
|
+
if (input.DetectorId !== undefined) {
|
|
2061
|
+
labelValue = input.DetectorId;
|
|
2062
|
+
if (labelValue.length <= 0) {
|
|
2063
|
+
throw new Error("Empty value provided for input HTTP label: DetectorId.");
|
|
2064
|
+
}
|
|
2065
|
+
resolvedPath = resolvedPath.replace("{DetectorId}", __extendedEncodeURIComponent(labelValue));
|
|
2066
|
+
}
|
|
2067
|
+
else {
|
|
2068
|
+
throw new Error("No value provided for input HTTP label: DetectorId.");
|
|
2069
|
+
}
|
|
2070
|
+
body = JSON.stringify(__assign(__assign({}, (input.EbsSnapshotPreservation != null && { ebsSnapshotPreservation: input.EbsSnapshotPreservation })), (input.ScanResourceCriteria != null && {
|
|
2071
|
+
scanResourceCriteria: serializeAws_restJson1ScanResourceCriteria(input.ScanResourceCriteria, context),
|
|
2072
|
+
})));
|
|
2073
|
+
return [2, new __HttpRequest({
|
|
2074
|
+
protocol: protocol,
|
|
2075
|
+
hostname: hostname,
|
|
2076
|
+
port: port,
|
|
2077
|
+
method: "POST",
|
|
2078
|
+
headers: headers,
|
|
2079
|
+
path: resolvedPath,
|
|
2080
|
+
body: body,
|
|
2081
|
+
})];
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
}); };
|
|
1978
2085
|
export var serializeAws_restJson1UpdateMemberDetectorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1979
2086
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1980
2087
|
return __generator(this, function (_c) {
|
|
@@ -3184,6 +3291,71 @@ var deserializeAws_restJson1DeleteThreatIntelSetCommandError = function (output,
|
|
|
3184
3291
|
}
|
|
3185
3292
|
});
|
|
3186
3293
|
}); };
|
|
3294
|
+
export var deserializeAws_restJson1DescribeMalwareScansCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3295
|
+
var contents, data, _a, _b;
|
|
3296
|
+
return __generator(this, function (_c) {
|
|
3297
|
+
switch (_c.label) {
|
|
3298
|
+
case 0:
|
|
3299
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3300
|
+
return [2, deserializeAws_restJson1DescribeMalwareScansCommandError(output, context)];
|
|
3301
|
+
}
|
|
3302
|
+
contents = {
|
|
3303
|
+
$metadata: deserializeMetadata(output),
|
|
3304
|
+
NextToken: undefined,
|
|
3305
|
+
Scans: undefined,
|
|
3306
|
+
};
|
|
3307
|
+
_a = __expectNonNull;
|
|
3308
|
+
_b = __expectObject;
|
|
3309
|
+
return [4, parseBody(output.body, context)];
|
|
3310
|
+
case 1:
|
|
3311
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3312
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
3313
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
3314
|
+
}
|
|
3315
|
+
if (data.scans !== undefined && data.scans !== null) {
|
|
3316
|
+
contents.Scans = deserializeAws_restJson1Scans(data.scans, context);
|
|
3317
|
+
}
|
|
3318
|
+
return [2, Promise.resolve(contents)];
|
|
3319
|
+
}
|
|
3320
|
+
});
|
|
3321
|
+
}); };
|
|
3322
|
+
var deserializeAws_restJson1DescribeMalwareScansCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3323
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3324
|
+
var _c;
|
|
3325
|
+
return __generator(this, function (_d) {
|
|
3326
|
+
switch (_d.label) {
|
|
3327
|
+
case 0:
|
|
3328
|
+
_a = [__assign({}, output)];
|
|
3329
|
+
_c = {};
|
|
3330
|
+
return [4, parseBody(output.body, context)];
|
|
3331
|
+
case 1:
|
|
3332
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3333
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3334
|
+
_b = errorCode;
|
|
3335
|
+
switch (_b) {
|
|
3336
|
+
case "BadRequestException": return [3, 2];
|
|
3337
|
+
case "com.amazonaws.guardduty#BadRequestException": return [3, 2];
|
|
3338
|
+
case "InternalServerErrorException": return [3, 4];
|
|
3339
|
+
case "com.amazonaws.guardduty#InternalServerErrorException": return [3, 4];
|
|
3340
|
+
}
|
|
3341
|
+
return [3, 6];
|
|
3342
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3343
|
+
case 3: throw _d.sent();
|
|
3344
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
3345
|
+
case 5: throw _d.sent();
|
|
3346
|
+
case 6:
|
|
3347
|
+
parsedBody = parsedOutput.body;
|
|
3348
|
+
$metadata = deserializeMetadata(output);
|
|
3349
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3350
|
+
response = new __BaseException({
|
|
3351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3352
|
+
$fault: "client",
|
|
3353
|
+
$metadata: $metadata,
|
|
3354
|
+
});
|
|
3355
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3356
|
+
}
|
|
3357
|
+
});
|
|
3358
|
+
}); };
|
|
3187
3359
|
export var deserializeAws_restJson1DescribeOrganizationConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3188
3360
|
var contents, data, _a, _b;
|
|
3189
3361
|
return __generator(this, function (_c) {
|
|
@@ -4098,6 +4270,71 @@ var deserializeAws_restJson1GetIPSetCommandError = function (output, context) {
|
|
|
4098
4270
|
}
|
|
4099
4271
|
});
|
|
4100
4272
|
}); };
|
|
4273
|
+
export var deserializeAws_restJson1GetMalwareScanSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4274
|
+
var contents, data, _a, _b;
|
|
4275
|
+
return __generator(this, function (_c) {
|
|
4276
|
+
switch (_c.label) {
|
|
4277
|
+
case 0:
|
|
4278
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4279
|
+
return [2, deserializeAws_restJson1GetMalwareScanSettingsCommandError(output, context)];
|
|
4280
|
+
}
|
|
4281
|
+
contents = {
|
|
4282
|
+
$metadata: deserializeMetadata(output),
|
|
4283
|
+
EbsSnapshotPreservation: undefined,
|
|
4284
|
+
ScanResourceCriteria: undefined,
|
|
4285
|
+
};
|
|
4286
|
+
_a = __expectNonNull;
|
|
4287
|
+
_b = __expectObject;
|
|
4288
|
+
return [4, parseBody(output.body, context)];
|
|
4289
|
+
case 1:
|
|
4290
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4291
|
+
if (data.ebsSnapshotPreservation !== undefined && data.ebsSnapshotPreservation !== null) {
|
|
4292
|
+
contents.EbsSnapshotPreservation = __expectString(data.ebsSnapshotPreservation);
|
|
4293
|
+
}
|
|
4294
|
+
if (data.scanResourceCriteria !== undefined && data.scanResourceCriteria !== null) {
|
|
4295
|
+
contents.ScanResourceCriteria = deserializeAws_restJson1ScanResourceCriteria(data.scanResourceCriteria, context);
|
|
4296
|
+
}
|
|
4297
|
+
return [2, Promise.resolve(contents)];
|
|
4298
|
+
}
|
|
4299
|
+
});
|
|
4300
|
+
}); };
|
|
4301
|
+
var deserializeAws_restJson1GetMalwareScanSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4302
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4303
|
+
var _c;
|
|
4304
|
+
return __generator(this, function (_d) {
|
|
4305
|
+
switch (_d.label) {
|
|
4306
|
+
case 0:
|
|
4307
|
+
_a = [__assign({}, output)];
|
|
4308
|
+
_c = {};
|
|
4309
|
+
return [4, parseBody(output.body, context)];
|
|
4310
|
+
case 1:
|
|
4311
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4312
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4313
|
+
_b = errorCode;
|
|
4314
|
+
switch (_b) {
|
|
4315
|
+
case "BadRequestException": return [3, 2];
|
|
4316
|
+
case "com.amazonaws.guardduty#BadRequestException": return [3, 2];
|
|
4317
|
+
case "InternalServerErrorException": return [3, 4];
|
|
4318
|
+
case "com.amazonaws.guardduty#InternalServerErrorException": return [3, 4];
|
|
4319
|
+
}
|
|
4320
|
+
return [3, 6];
|
|
4321
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4322
|
+
case 3: throw _d.sent();
|
|
4323
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
4324
|
+
case 5: throw _d.sent();
|
|
4325
|
+
case 6:
|
|
4326
|
+
parsedBody = parsedOutput.body;
|
|
4327
|
+
$metadata = deserializeMetadata(output);
|
|
4328
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4329
|
+
response = new __BaseException({
|
|
4330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4331
|
+
$fault: "client",
|
|
4332
|
+
$metadata: $metadata,
|
|
4333
|
+
});
|
|
4334
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4335
|
+
}
|
|
4336
|
+
});
|
|
4337
|
+
}); };
|
|
4101
4338
|
export var deserializeAws_restJson1GetMasterAccountCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4102
4339
|
var contents, data, _a, _b;
|
|
4103
4340
|
return __generator(this, function (_c) {
|
|
@@ -5716,6 +5953,61 @@ var deserializeAws_restJson1UpdateIPSetCommandError = function (output, context)
|
|
|
5716
5953
|
}
|
|
5717
5954
|
});
|
|
5718
5955
|
}); };
|
|
5956
|
+
export var deserializeAws_restJson1UpdateMalwareScanSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5957
|
+
var contents;
|
|
5958
|
+
return __generator(this, function (_a) {
|
|
5959
|
+
switch (_a.label) {
|
|
5960
|
+
case 0:
|
|
5961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5962
|
+
return [2, deserializeAws_restJson1UpdateMalwareScanSettingsCommandError(output, context)];
|
|
5963
|
+
}
|
|
5964
|
+
contents = {
|
|
5965
|
+
$metadata: deserializeMetadata(output),
|
|
5966
|
+
};
|
|
5967
|
+
return [4, collectBody(output.body, context)];
|
|
5968
|
+
case 1:
|
|
5969
|
+
_a.sent();
|
|
5970
|
+
return [2, Promise.resolve(contents)];
|
|
5971
|
+
}
|
|
5972
|
+
});
|
|
5973
|
+
}); };
|
|
5974
|
+
var deserializeAws_restJson1UpdateMalwareScanSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5975
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5976
|
+
var _c;
|
|
5977
|
+
return __generator(this, function (_d) {
|
|
5978
|
+
switch (_d.label) {
|
|
5979
|
+
case 0:
|
|
5980
|
+
_a = [__assign({}, output)];
|
|
5981
|
+
_c = {};
|
|
5982
|
+
return [4, parseBody(output.body, context)];
|
|
5983
|
+
case 1:
|
|
5984
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5985
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5986
|
+
_b = errorCode;
|
|
5987
|
+
switch (_b) {
|
|
5988
|
+
case "BadRequestException": return [3, 2];
|
|
5989
|
+
case "com.amazonaws.guardduty#BadRequestException": return [3, 2];
|
|
5990
|
+
case "InternalServerErrorException": return [3, 4];
|
|
5991
|
+
case "com.amazonaws.guardduty#InternalServerErrorException": return [3, 4];
|
|
5992
|
+
}
|
|
5993
|
+
return [3, 6];
|
|
5994
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
5995
|
+
case 3: throw _d.sent();
|
|
5996
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
5997
|
+
case 5: throw _d.sent();
|
|
5998
|
+
case 6:
|
|
5999
|
+
parsedBody = parsedOutput.body;
|
|
6000
|
+
$metadata = deserializeMetadata(output);
|
|
6001
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6002
|
+
response = new __BaseException({
|
|
6003
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6004
|
+
$fault: "client",
|
|
6005
|
+
$metadata: $metadata,
|
|
6006
|
+
});
|
|
6007
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6008
|
+
}
|
|
6009
|
+
});
|
|
6010
|
+
}); };
|
|
5719
6011
|
export var deserializeAws_restJson1UpdateMemberDetectorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5720
6012
|
var contents, data, _a, _b;
|
|
5721
6013
|
return __generator(this, function (_c) {
|
|
@@ -6009,8 +6301,10 @@ var serializeAws_restJson1Criterion = function (input, context) {
|
|
|
6009
6301
|
}, {});
|
|
6010
6302
|
};
|
|
6011
6303
|
var serializeAws_restJson1DataSourceConfigurations = function (input, context) {
|
|
6012
|
-
return __assign(__assign({}, (input.Kubernetes != null && {
|
|
6304
|
+
return __assign(__assign(__assign({}, (input.Kubernetes != null && {
|
|
6013
6305
|
kubernetes: serializeAws_restJson1KubernetesConfiguration(input.Kubernetes, context),
|
|
6306
|
+
})), (input.MalwareProtection != null && {
|
|
6307
|
+
malwareProtection: serializeAws_restJson1MalwareProtectionConfiguration(input.MalwareProtection, context),
|
|
6014
6308
|
})), (input.S3Logs != null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }));
|
|
6015
6309
|
};
|
|
6016
6310
|
var serializeAws_restJson1DataSourceList = function (input, context) {
|
|
@@ -6046,6 +6340,29 @@ var serializeAws_restJson1Equals = function (input, context) {
|
|
|
6046
6340
|
return entry;
|
|
6047
6341
|
});
|
|
6048
6342
|
};
|
|
6343
|
+
var serializeAws_restJson1FilterCondition = function (input, context) {
|
|
6344
|
+
return __assign(__assign(__assign({}, (input.EqualsValue != null && { equalsValue: input.EqualsValue })), (input.GreaterThan != null && { greaterThan: input.GreaterThan })), (input.LessThan != null && { lessThan: input.LessThan }));
|
|
6345
|
+
};
|
|
6346
|
+
var serializeAws_restJson1FilterCriteria = function (input, context) {
|
|
6347
|
+
return __assign({}, (input.FilterCriterion != null && {
|
|
6348
|
+
filterCriterion: serializeAws_restJson1FilterCriterionList(input.FilterCriterion, context),
|
|
6349
|
+
}));
|
|
6350
|
+
};
|
|
6351
|
+
var serializeAws_restJson1FilterCriterion = function (input, context) {
|
|
6352
|
+
return __assign(__assign({}, (input.CriterionKey != null && { criterionKey: input.CriterionKey })), (input.FilterCondition != null && {
|
|
6353
|
+
filterCondition: serializeAws_restJson1FilterCondition(input.FilterCondition, context),
|
|
6354
|
+
}));
|
|
6355
|
+
};
|
|
6356
|
+
var serializeAws_restJson1FilterCriterionList = function (input, context) {
|
|
6357
|
+
return input
|
|
6358
|
+
.filter(function (e) { return e != null; })
|
|
6359
|
+
.map(function (entry) {
|
|
6360
|
+
if (entry === null) {
|
|
6361
|
+
return null;
|
|
6362
|
+
}
|
|
6363
|
+
return serializeAws_restJson1FilterCriterion(entry, context);
|
|
6364
|
+
});
|
|
6365
|
+
};
|
|
6049
6366
|
var serializeAws_restJson1FindingCriteria = function (input, context) {
|
|
6050
6367
|
return __assign({}, (input.Criterion != null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }));
|
|
6051
6368
|
};
|
|
@@ -6087,6 +6404,21 @@ var serializeAws_restJson1KubernetesConfiguration = function (input, context) {
|
|
|
6087
6404
|
auditLogs: serializeAws_restJson1KubernetesAuditLogsConfiguration(input.AuditLogs, context),
|
|
6088
6405
|
}));
|
|
6089
6406
|
};
|
|
6407
|
+
var serializeAws_restJson1MalwareProtectionConfiguration = function (input, context) {
|
|
6408
|
+
return __assign({}, (input.ScanEc2InstanceWithFindings != null && {
|
|
6409
|
+
scanEc2InstanceWithFindings: serializeAws_restJson1ScanEc2InstanceWithFindings(input.ScanEc2InstanceWithFindings, context),
|
|
6410
|
+
}));
|
|
6411
|
+
};
|
|
6412
|
+
var serializeAws_restJson1MapEquals = function (input, context) {
|
|
6413
|
+
return input
|
|
6414
|
+
.filter(function (e) { return e != null; })
|
|
6415
|
+
.map(function (entry) {
|
|
6416
|
+
if (entry === null) {
|
|
6417
|
+
return null;
|
|
6418
|
+
}
|
|
6419
|
+
return serializeAws_restJson1ScanConditionPair(entry, context);
|
|
6420
|
+
});
|
|
6421
|
+
};
|
|
6090
6422
|
var serializeAws_restJson1Neq = function (input, context) {
|
|
6091
6423
|
return input
|
|
6092
6424
|
.filter(function (e) { return e != null; })
|
|
@@ -6108,12 +6440,17 @@ var serializeAws_restJson1NotEquals = function (input, context) {
|
|
|
6108
6440
|
});
|
|
6109
6441
|
};
|
|
6110
6442
|
var serializeAws_restJson1OrganizationDataSourceConfigurations = function (input, context) {
|
|
6111
|
-
return __assign(__assign({}, (input.Kubernetes != null && {
|
|
6443
|
+
return __assign(__assign(__assign({}, (input.Kubernetes != null && {
|
|
6112
6444
|
kubernetes: serializeAws_restJson1OrganizationKubernetesConfiguration(input.Kubernetes, context),
|
|
6445
|
+
})), (input.MalwareProtection != null && {
|
|
6446
|
+
malwareProtection: serializeAws_restJson1OrganizationMalwareProtectionConfiguration(input.MalwareProtection, context),
|
|
6113
6447
|
})), (input.S3Logs != null && {
|
|
6114
6448
|
s3Logs: serializeAws_restJson1OrganizationS3LogsConfiguration(input.S3Logs, context),
|
|
6115
6449
|
}));
|
|
6116
6450
|
};
|
|
6451
|
+
var serializeAws_restJson1OrganizationEbsVolumes = function (input, context) {
|
|
6452
|
+
return __assign({}, (input.AutoEnable != null && { autoEnable: input.AutoEnable }));
|
|
6453
|
+
};
|
|
6117
6454
|
var serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = function (input, context) {
|
|
6118
6455
|
return __assign({}, (input.AutoEnable != null && { autoEnable: input.AutoEnable }));
|
|
6119
6456
|
};
|
|
@@ -6122,9 +6459,19 @@ var serializeAws_restJson1OrganizationKubernetesConfiguration = function (input,
|
|
|
6122
6459
|
auditLogs: serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration(input.AuditLogs, context),
|
|
6123
6460
|
}));
|
|
6124
6461
|
};
|
|
6462
|
+
var serializeAws_restJson1OrganizationMalwareProtectionConfiguration = function (input, context) {
|
|
6463
|
+
return __assign({}, (input.ScanEc2InstanceWithFindings != null && {
|
|
6464
|
+
scanEc2InstanceWithFindings: serializeAws_restJson1OrganizationScanEc2InstanceWithFindings(input.ScanEc2InstanceWithFindings, context),
|
|
6465
|
+
}));
|
|
6466
|
+
};
|
|
6125
6467
|
var serializeAws_restJson1OrganizationS3LogsConfiguration = function (input, context) {
|
|
6126
6468
|
return __assign({}, (input.AutoEnable != null && { autoEnable: input.AutoEnable }));
|
|
6127
6469
|
};
|
|
6470
|
+
var serializeAws_restJson1OrganizationScanEc2InstanceWithFindings = function (input, context) {
|
|
6471
|
+
return __assign({}, (input.EbsVolumes != null && {
|
|
6472
|
+
ebsVolumes: serializeAws_restJson1OrganizationEbsVolumes(input.EbsVolumes, context),
|
|
6473
|
+
}));
|
|
6474
|
+
};
|
|
6128
6475
|
var serializeAws_restJson1ResourceList = function (input, context) {
|
|
6129
6476
|
return input
|
|
6130
6477
|
.filter(function (e) { return e != null; })
|
|
@@ -6138,6 +6485,28 @@ var serializeAws_restJson1ResourceList = function (input, context) {
|
|
|
6138
6485
|
var serializeAws_restJson1S3LogsConfiguration = function (input, context) {
|
|
6139
6486
|
return __assign({}, (input.Enable != null && { enable: input.Enable }));
|
|
6140
6487
|
};
|
|
6488
|
+
var serializeAws_restJson1ScanCondition = function (input, context) {
|
|
6489
|
+
return __assign({}, (input.MapEquals != null && { mapEquals: serializeAws_restJson1MapEquals(input.MapEquals, context) }));
|
|
6490
|
+
};
|
|
6491
|
+
var serializeAws_restJson1ScanConditionPair = function (input, context) {
|
|
6492
|
+
return __assign(__assign({}, (input.Key != null && { key: input.Key })), (input.Value != null && { value: input.Value }));
|
|
6493
|
+
};
|
|
6494
|
+
var serializeAws_restJson1ScanCriterion = function (input, context) {
|
|
6495
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
6496
|
+
var _b;
|
|
6497
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
6498
|
+
if (value === null) {
|
|
6499
|
+
return acc;
|
|
6500
|
+
}
|
|
6501
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ScanCondition(value, context), _b));
|
|
6502
|
+
}, {});
|
|
6503
|
+
};
|
|
6504
|
+
var serializeAws_restJson1ScanEc2InstanceWithFindings = function (input, context) {
|
|
6505
|
+
return __assign({}, (input.EbsVolumes != null && { ebsVolumes: input.EbsVolumes }));
|
|
6506
|
+
};
|
|
6507
|
+
var serializeAws_restJson1ScanResourceCriteria = function (input, context) {
|
|
6508
|
+
return __assign(__assign({}, (input.Exclude != null && { exclude: serializeAws_restJson1ScanCriterion(input.Exclude, context) })), (input.Include != null && { include: serializeAws_restJson1ScanCriterion(input.Include, context) }));
|
|
6509
|
+
};
|
|
6141
6510
|
var serializeAws_restJson1SortCriteria = function (input, context) {
|
|
6142
6511
|
return __assign(__assign({}, (input.AttributeName != null && { attributeName: input.AttributeName })), (input.OrderBy != null && { orderBy: input.OrderBy }));
|
|
6143
6512
|
};
|
|
@@ -6381,6 +6750,9 @@ var deserializeAws_restJson1DataSourceConfigurationsResult = function (output, c
|
|
|
6381
6750
|
Kubernetes: output.kubernetes != null
|
|
6382
6751
|
? deserializeAws_restJson1KubernetesConfigurationResult(output.kubernetes, context)
|
|
6383
6752
|
: undefined,
|
|
6753
|
+
MalwareProtection: output.malwareProtection != null
|
|
6754
|
+
? deserializeAws_restJson1MalwareProtectionConfigurationResult(output.malwareProtection, context)
|
|
6755
|
+
: undefined,
|
|
6384
6756
|
S3Logs: output.s3Logs != null ? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context) : undefined,
|
|
6385
6757
|
};
|
|
6386
6758
|
};
|
|
@@ -6397,6 +6769,9 @@ var deserializeAws_restJson1DataSourcesFreeTrial = function (output, context) {
|
|
|
6397
6769
|
Kubernetes: output.kubernetes != null
|
|
6398
6770
|
? deserializeAws_restJson1KubernetesDataSourceFreeTrial(output.kubernetes, context)
|
|
6399
6771
|
: undefined,
|
|
6772
|
+
MalwareProtection: output.malwareProtection != null
|
|
6773
|
+
? deserializeAws_restJson1MalwareProtectionDataSourceFreeTrial(output.malwareProtection, context)
|
|
6774
|
+
: undefined,
|
|
6400
6775
|
S3Logs: output.s3Logs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context) : undefined,
|
|
6401
6776
|
};
|
|
6402
6777
|
};
|
|
@@ -6458,6 +6833,63 @@ var deserializeAws_restJson1DomainDetails = function (output, context) {
|
|
|
6458
6833
|
Domain: __expectString(output.domain),
|
|
6459
6834
|
};
|
|
6460
6835
|
};
|
|
6836
|
+
var deserializeAws_restJson1EbsVolumeDetails = function (output, context) {
|
|
6837
|
+
return {
|
|
6838
|
+
ScannedVolumeDetails: output.scannedVolumeDetails != null
|
|
6839
|
+
? deserializeAws_restJson1VolumeDetails(output.scannedVolumeDetails, context)
|
|
6840
|
+
: undefined,
|
|
6841
|
+
SkippedVolumeDetails: output.skippedVolumeDetails != null
|
|
6842
|
+
? deserializeAws_restJson1VolumeDetails(output.skippedVolumeDetails, context)
|
|
6843
|
+
: undefined,
|
|
6844
|
+
};
|
|
6845
|
+
};
|
|
6846
|
+
var deserializeAws_restJson1EbsVolumeScanDetails = function (output, context) {
|
|
6847
|
+
return {
|
|
6848
|
+
ScanCompletedAt: output.scanCompletedAt != null
|
|
6849
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scanCompletedAt)))
|
|
6850
|
+
: undefined,
|
|
6851
|
+
ScanDetections: output.scanDetections != null
|
|
6852
|
+
? deserializeAws_restJson1ScanDetections(output.scanDetections, context)
|
|
6853
|
+
: undefined,
|
|
6854
|
+
ScanId: __expectString(output.scanId),
|
|
6855
|
+
ScanStartedAt: output.scanStartedAt != null
|
|
6856
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scanStartedAt)))
|
|
6857
|
+
: undefined,
|
|
6858
|
+
Sources: output.sources != null ? deserializeAws_restJson1Sources(output.sources, context) : undefined,
|
|
6859
|
+
TriggerFindingId: __expectString(output.triggerFindingId),
|
|
6860
|
+
};
|
|
6861
|
+
};
|
|
6862
|
+
var deserializeAws_restJson1EbsVolumesResult = function (output, context) {
|
|
6863
|
+
return {
|
|
6864
|
+
Status: __expectString(output.status),
|
|
6865
|
+
};
|
|
6866
|
+
};
|
|
6867
|
+
var deserializeAws_restJson1EcsClusterDetails = function (output, context) {
|
|
6868
|
+
return {
|
|
6869
|
+
ActiveServicesCount: __expectInt32(output.activeServicesCount),
|
|
6870
|
+
Arn: __expectString(output.arn),
|
|
6871
|
+
Name: __expectString(output.name),
|
|
6872
|
+
RegisteredContainerInstancesCount: __expectInt32(output.registeredContainerInstancesCount),
|
|
6873
|
+
RunningTasksCount: __expectInt32(output.runningTasksCount),
|
|
6874
|
+
Status: __expectString(output.status),
|
|
6875
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
6876
|
+
TaskDetails: output.taskDetails != null ? deserializeAws_restJson1EcsTaskDetails(output.taskDetails, context) : undefined,
|
|
6877
|
+
};
|
|
6878
|
+
};
|
|
6879
|
+
var deserializeAws_restJson1EcsTaskDetails = function (output, context) {
|
|
6880
|
+
return {
|
|
6881
|
+
Arn: __expectString(output.arn),
|
|
6882
|
+
Containers: output.containers != null ? deserializeAws_restJson1Containers(output.containers, context) : undefined,
|
|
6883
|
+
DefinitionArn: __expectString(output.definitionArn),
|
|
6884
|
+
Group: __expectString(output.group),
|
|
6885
|
+
StartedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
6886
|
+
StartedBy: __expectString(output.startedBy),
|
|
6887
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
6888
|
+
TaskCreatedAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
6889
|
+
Version: __expectString(output.version),
|
|
6890
|
+
Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
6891
|
+
};
|
|
6892
|
+
};
|
|
6461
6893
|
var deserializeAws_restJson1EksClusterDetails = function (output, context) {
|
|
6462
6894
|
return {
|
|
6463
6895
|
Arn: __expectString(output.arn),
|
|
@@ -6497,6 +6929,17 @@ var deserializeAws_restJson1Evidence = function (output, context) {
|
|
|
6497
6929
|
: undefined,
|
|
6498
6930
|
};
|
|
6499
6931
|
};
|
|
6932
|
+
var deserializeAws_restJson1FilePaths = function (output, context) {
|
|
6933
|
+
var retVal = (output || [])
|
|
6934
|
+
.filter(function (e) { return e != null; })
|
|
6935
|
+
.map(function (entry) {
|
|
6936
|
+
if (entry === null) {
|
|
6937
|
+
return null;
|
|
6938
|
+
}
|
|
6939
|
+
return deserializeAws_restJson1ScanFilePath(entry, context);
|
|
6940
|
+
});
|
|
6941
|
+
return retVal;
|
|
6942
|
+
};
|
|
6500
6943
|
var deserializeAws_restJson1FilterNames = function (output, context) {
|
|
6501
6944
|
var retVal = (output || [])
|
|
6502
6945
|
.filter(function (e) { return e != null; })
|
|
@@ -6583,6 +7026,13 @@ var deserializeAws_restJson1Groups = function (output, context) {
|
|
|
6583
7026
|
});
|
|
6584
7027
|
return retVal;
|
|
6585
7028
|
};
|
|
7029
|
+
var deserializeAws_restJson1HighestSeverityThreatDetails = function (output, context) {
|
|
7030
|
+
return {
|
|
7031
|
+
Count: __expectInt32(output.count),
|
|
7032
|
+
Severity: __expectString(output.severity),
|
|
7033
|
+
ThreatName: __expectString(output.threatName),
|
|
7034
|
+
};
|
|
7035
|
+
};
|
|
6586
7036
|
var deserializeAws_restJson1HostPath = function (output, context) {
|
|
6587
7037
|
return {
|
|
6588
7038
|
Path: __expectString(output.path),
|
|
@@ -6725,6 +7175,32 @@ var deserializeAws_restJson1LocalPortDetails = function (output, context) {
|
|
|
6725
7175
|
PortName: __expectString(output.portName),
|
|
6726
7176
|
};
|
|
6727
7177
|
};
|
|
7178
|
+
var deserializeAws_restJson1MalwareProtectionConfigurationResult = function (output, context) {
|
|
7179
|
+
return {
|
|
7180
|
+
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
7181
|
+
? deserializeAws_restJson1ScanEc2InstanceWithFindingsResult(output.scanEc2InstanceWithFindings, context)
|
|
7182
|
+
: undefined,
|
|
7183
|
+
ServiceRole: __expectString(output.serviceRole),
|
|
7184
|
+
};
|
|
7185
|
+
};
|
|
7186
|
+
var deserializeAws_restJson1MalwareProtectionDataSourceFreeTrial = function (output, context) {
|
|
7187
|
+
return {
|
|
7188
|
+
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
7189
|
+
? deserializeAws_restJson1DataSourceFreeTrial(output.scanEc2InstanceWithFindings, context)
|
|
7190
|
+
: undefined,
|
|
7191
|
+
};
|
|
7192
|
+
};
|
|
7193
|
+
var deserializeAws_restJson1MapEquals = function (output, context) {
|
|
7194
|
+
var retVal = (output || [])
|
|
7195
|
+
.filter(function (e) { return e != null; })
|
|
7196
|
+
.map(function (entry) {
|
|
7197
|
+
if (entry === null) {
|
|
7198
|
+
return null;
|
|
7199
|
+
}
|
|
7200
|
+
return deserializeAws_restJson1ScanConditionPair(entry, context);
|
|
7201
|
+
});
|
|
7202
|
+
return retVal;
|
|
7203
|
+
};
|
|
6728
7204
|
var deserializeAws_restJson1Master = function (output, context) {
|
|
6729
7205
|
return {
|
|
6730
7206
|
AccountId: __expectString(output.accountId),
|
|
@@ -6858,11 +7334,19 @@ var deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = functio
|
|
|
6858
7334
|
Kubernetes: output.kubernetes != null
|
|
6859
7335
|
? deserializeAws_restJson1OrganizationKubernetesConfigurationResult(output.kubernetes, context)
|
|
6860
7336
|
: undefined,
|
|
7337
|
+
MalwareProtection: output.malwareProtection != null
|
|
7338
|
+
? deserializeAws_restJson1OrganizationMalwareProtectionConfigurationResult(output.malwareProtection, context)
|
|
7339
|
+
: undefined,
|
|
6861
7340
|
S3Logs: output.s3Logs != null
|
|
6862
7341
|
? deserializeAws_restJson1OrganizationS3LogsConfigurationResult(output.s3Logs, context)
|
|
6863
7342
|
: undefined,
|
|
6864
7343
|
};
|
|
6865
7344
|
};
|
|
7345
|
+
var deserializeAws_restJson1OrganizationEbsVolumesResult = function (output, context) {
|
|
7346
|
+
return {
|
|
7347
|
+
AutoEnable: __expectBoolean(output.autoEnable),
|
|
7348
|
+
};
|
|
7349
|
+
};
|
|
6866
7350
|
var deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult = function (output, context) {
|
|
6867
7351
|
return {
|
|
6868
7352
|
AutoEnable: __expectBoolean(output.autoEnable),
|
|
@@ -6875,11 +7359,25 @@ var deserializeAws_restJson1OrganizationKubernetesConfigurationResult = function
|
|
|
6875
7359
|
: undefined,
|
|
6876
7360
|
};
|
|
6877
7361
|
};
|
|
7362
|
+
var deserializeAws_restJson1OrganizationMalwareProtectionConfigurationResult = function (output, context) {
|
|
7363
|
+
return {
|
|
7364
|
+
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
7365
|
+
? deserializeAws_restJson1OrganizationScanEc2InstanceWithFindingsResult(output.scanEc2InstanceWithFindings, context)
|
|
7366
|
+
: undefined,
|
|
7367
|
+
};
|
|
7368
|
+
};
|
|
6878
7369
|
var deserializeAws_restJson1OrganizationS3LogsConfigurationResult = function (output, context) {
|
|
6879
7370
|
return {
|
|
6880
7371
|
AutoEnable: __expectBoolean(output.autoEnable),
|
|
6881
7372
|
};
|
|
6882
7373
|
};
|
|
7374
|
+
var deserializeAws_restJson1OrganizationScanEc2InstanceWithFindingsResult = function (output, context) {
|
|
7375
|
+
return {
|
|
7376
|
+
EbsVolumes: output.ebsVolumes != null
|
|
7377
|
+
? deserializeAws_restJson1OrganizationEbsVolumesResult(output.ebsVolumes, context)
|
|
7378
|
+
: undefined,
|
|
7379
|
+
};
|
|
7380
|
+
};
|
|
6883
7381
|
var deserializeAws_restJson1Owner = function (output, context) {
|
|
6884
7382
|
return {
|
|
6885
7383
|
Id: __expectString(output.id),
|
|
@@ -6995,6 +7493,13 @@ var deserializeAws_restJson1Resource = function (output, context) {
|
|
|
6995
7493
|
AccessKeyDetails: output.accessKeyDetails != null
|
|
6996
7494
|
? deserializeAws_restJson1AccessKeyDetails(output.accessKeyDetails, context)
|
|
6997
7495
|
: undefined,
|
|
7496
|
+
ContainerDetails: output.containerDetails != null ? deserializeAws_restJson1Container(output.containerDetails, context) : undefined,
|
|
7497
|
+
EbsVolumeDetails: output.ebsVolumeDetails != null
|
|
7498
|
+
? deserializeAws_restJson1EbsVolumeDetails(output.ebsVolumeDetails, context)
|
|
7499
|
+
: undefined,
|
|
7500
|
+
EcsClusterDetails: output.ecsClusterDetails != null
|
|
7501
|
+
? deserializeAws_restJson1EcsClusterDetails(output.ecsClusterDetails, context)
|
|
7502
|
+
: undefined,
|
|
6998
7503
|
EksClusterDetails: output.eksClusterDetails != null
|
|
6999
7504
|
? deserializeAws_restJson1EksClusterDetails(output.eksClusterDetails, context)
|
|
7000
7505
|
: undefined,
|
|
@@ -7010,6 +7515,11 @@ var deserializeAws_restJson1Resource = function (output, context) {
|
|
|
7010
7515
|
: undefined,
|
|
7011
7516
|
};
|
|
7012
7517
|
};
|
|
7518
|
+
var deserializeAws_restJson1ResourceDetails = function (output, context) {
|
|
7519
|
+
return {
|
|
7520
|
+
InstanceArn: __expectString(output.instanceArn),
|
|
7521
|
+
};
|
|
7522
|
+
};
|
|
7013
7523
|
var deserializeAws_restJson1S3BucketDetail = function (output, context) {
|
|
7014
7524
|
return {
|
|
7015
7525
|
Arn: __expectString(output.arn),
|
|
@@ -7040,6 +7550,134 @@ var deserializeAws_restJson1S3LogsConfigurationResult = function (output, contex
|
|
|
7040
7550
|
Status: __expectString(output.status),
|
|
7041
7551
|
};
|
|
7042
7552
|
};
|
|
7553
|
+
var deserializeAws_restJson1Scan = function (output, context) {
|
|
7554
|
+
return {
|
|
7555
|
+
AccountId: __expectString(output.accountId),
|
|
7556
|
+
AdminDetectorId: __expectString(output.adminDetectorId),
|
|
7557
|
+
AttachedVolumes: output.attachedVolumes != null
|
|
7558
|
+
? deserializeAws_restJson1VolumeDetails(output.attachedVolumes, context)
|
|
7559
|
+
: undefined,
|
|
7560
|
+
DetectorId: __expectString(output.detectorId),
|
|
7561
|
+
FailureReason: __expectString(output.failureReason),
|
|
7562
|
+
FileCount: __expectLong(output.fileCount),
|
|
7563
|
+
ResourceDetails: output.resourceDetails != null
|
|
7564
|
+
? deserializeAws_restJson1ResourceDetails(output.resourceDetails, context)
|
|
7565
|
+
: undefined,
|
|
7566
|
+
ScanEndTime: output.scanEndTime != null
|
|
7567
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scanEndTime)))
|
|
7568
|
+
: undefined,
|
|
7569
|
+
ScanId: __expectString(output.scanId),
|
|
7570
|
+
ScanResultDetails: output.scanResultDetails != null
|
|
7571
|
+
? deserializeAws_restJson1ScanResultDetails(output.scanResultDetails, context)
|
|
7572
|
+
: undefined,
|
|
7573
|
+
ScanStartTime: output.scanStartTime != null
|
|
7574
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scanStartTime)))
|
|
7575
|
+
: undefined,
|
|
7576
|
+
ScanStatus: __expectString(output.scanStatus),
|
|
7577
|
+
TotalBytes: __expectLong(output.totalBytes),
|
|
7578
|
+
TriggerDetails: output.triggerDetails != null
|
|
7579
|
+
? deserializeAws_restJson1TriggerDetails(output.triggerDetails, context)
|
|
7580
|
+
: undefined,
|
|
7581
|
+
};
|
|
7582
|
+
};
|
|
7583
|
+
var deserializeAws_restJson1ScanCondition = function (output, context) {
|
|
7584
|
+
return {
|
|
7585
|
+
MapEquals: output.mapEquals != null ? deserializeAws_restJson1MapEquals(output.mapEquals, context) : undefined,
|
|
7586
|
+
};
|
|
7587
|
+
};
|
|
7588
|
+
var deserializeAws_restJson1ScanConditionPair = function (output, context) {
|
|
7589
|
+
return {
|
|
7590
|
+
Key: __expectString(output.key),
|
|
7591
|
+
Value: __expectString(output.value),
|
|
7592
|
+
};
|
|
7593
|
+
};
|
|
7594
|
+
var deserializeAws_restJson1ScanCriterion = function (output, context) {
|
|
7595
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
7596
|
+
var _b;
|
|
7597
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
7598
|
+
if (value === null) {
|
|
7599
|
+
return acc;
|
|
7600
|
+
}
|
|
7601
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ScanCondition(value, context), _b));
|
|
7602
|
+
}, {});
|
|
7603
|
+
};
|
|
7604
|
+
var deserializeAws_restJson1ScanDetections = function (output, context) {
|
|
7605
|
+
return {
|
|
7606
|
+
HighestSeverityThreatDetails: output.highestSeverityThreatDetails != null
|
|
7607
|
+
? deserializeAws_restJson1HighestSeverityThreatDetails(output.highestSeverityThreatDetails, context)
|
|
7608
|
+
: undefined,
|
|
7609
|
+
ScannedItemCount: output.scannedItemCount != null
|
|
7610
|
+
? deserializeAws_restJson1ScannedItemCount(output.scannedItemCount, context)
|
|
7611
|
+
: undefined,
|
|
7612
|
+
ThreatDetectedByName: output.threatDetectedByName != null
|
|
7613
|
+
? deserializeAws_restJson1ThreatDetectedByName(output.threatDetectedByName, context)
|
|
7614
|
+
: undefined,
|
|
7615
|
+
ThreatsDetectedItemCount: output.threatsDetectedItemCount != null
|
|
7616
|
+
? deserializeAws_restJson1ThreatsDetectedItemCount(output.threatsDetectedItemCount, context)
|
|
7617
|
+
: undefined,
|
|
7618
|
+
};
|
|
7619
|
+
};
|
|
7620
|
+
var deserializeAws_restJson1ScanEc2InstanceWithFindingsResult = function (output, context) {
|
|
7621
|
+
return {
|
|
7622
|
+
EbsVolumes: output.ebsVolumes != null ? deserializeAws_restJson1EbsVolumesResult(output.ebsVolumes, context) : undefined,
|
|
7623
|
+
};
|
|
7624
|
+
};
|
|
7625
|
+
var deserializeAws_restJson1ScanFilePath = function (output, context) {
|
|
7626
|
+
return {
|
|
7627
|
+
FileName: __expectString(output.fileName),
|
|
7628
|
+
FilePath: __expectString(output.filePath),
|
|
7629
|
+
Hash: __expectString(output.hash),
|
|
7630
|
+
VolumeArn: __expectString(output.volumeArn),
|
|
7631
|
+
};
|
|
7632
|
+
};
|
|
7633
|
+
var deserializeAws_restJson1ScannedItemCount = function (output, context) {
|
|
7634
|
+
return {
|
|
7635
|
+
Files: __expectInt32(output.files),
|
|
7636
|
+
TotalGb: __expectInt32(output.totalGb),
|
|
7637
|
+
Volumes: __expectInt32(output.volumes),
|
|
7638
|
+
};
|
|
7639
|
+
};
|
|
7640
|
+
var deserializeAws_restJson1ScanResourceCriteria = function (output, context) {
|
|
7641
|
+
return {
|
|
7642
|
+
Exclude: output.exclude != null ? deserializeAws_restJson1ScanCriterion(output.exclude, context) : undefined,
|
|
7643
|
+
Include: output.include != null ? deserializeAws_restJson1ScanCriterion(output.include, context) : undefined,
|
|
7644
|
+
};
|
|
7645
|
+
};
|
|
7646
|
+
var deserializeAws_restJson1ScanResultDetails = function (output, context) {
|
|
7647
|
+
return {
|
|
7648
|
+
ScanResult: __expectString(output.scanResult),
|
|
7649
|
+
};
|
|
7650
|
+
};
|
|
7651
|
+
var deserializeAws_restJson1Scans = function (output, context) {
|
|
7652
|
+
var retVal = (output || [])
|
|
7653
|
+
.filter(function (e) { return e != null; })
|
|
7654
|
+
.map(function (entry) {
|
|
7655
|
+
if (entry === null) {
|
|
7656
|
+
return null;
|
|
7657
|
+
}
|
|
7658
|
+
return deserializeAws_restJson1Scan(entry, context);
|
|
7659
|
+
});
|
|
7660
|
+
return retVal;
|
|
7661
|
+
};
|
|
7662
|
+
var deserializeAws_restJson1ScanThreatName = function (output, context) {
|
|
7663
|
+
return {
|
|
7664
|
+
FilePaths: output.filePaths != null ? deserializeAws_restJson1FilePaths(output.filePaths, context) : undefined,
|
|
7665
|
+
ItemCount: __expectInt32(output.itemCount),
|
|
7666
|
+
Name: __expectString(output.name),
|
|
7667
|
+
Severity: __expectString(output.severity),
|
|
7668
|
+
};
|
|
7669
|
+
};
|
|
7670
|
+
var deserializeAws_restJson1ScanThreatNames = function (output, context) {
|
|
7671
|
+
var retVal = (output || [])
|
|
7672
|
+
.filter(function (e) { return e != null; })
|
|
7673
|
+
.map(function (entry) {
|
|
7674
|
+
if (entry === null) {
|
|
7675
|
+
return null;
|
|
7676
|
+
}
|
|
7677
|
+
return deserializeAws_restJson1ScanThreatName(entry, context);
|
|
7678
|
+
});
|
|
7679
|
+
return retVal;
|
|
7680
|
+
};
|
|
7043
7681
|
var deserializeAws_restJson1SecurityContext = function (output, context) {
|
|
7044
7682
|
return {
|
|
7045
7683
|
Privileged: __expectBoolean(output.privileged),
|
|
@@ -7071,9 +7709,13 @@ var deserializeAws_restJson1Service = function (output, context) {
|
|
|
7071
7709
|
Archived: __expectBoolean(output.archived),
|
|
7072
7710
|
Count: __expectInt32(output.count),
|
|
7073
7711
|
DetectorId: __expectString(output.detectorId),
|
|
7712
|
+
EbsVolumeScanDetails: output.ebsVolumeScanDetails != null
|
|
7713
|
+
? deserializeAws_restJson1EbsVolumeScanDetails(output.ebsVolumeScanDetails, context)
|
|
7714
|
+
: undefined,
|
|
7074
7715
|
EventFirstSeen: __expectString(output.eventFirstSeen),
|
|
7075
7716
|
EventLastSeen: __expectString(output.eventLastSeen),
|
|
7076
7717
|
Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
|
|
7718
|
+
FeatureName: __expectString(output.featureName),
|
|
7077
7719
|
ResourceRole: __expectString(output.resourceRole),
|
|
7078
7720
|
ServiceName: __expectString(output.serviceName),
|
|
7079
7721
|
UserFeedback: __expectString(output.userFeedback),
|
|
@@ -7096,6 +7738,17 @@ var deserializeAws_restJson1SourceIps = function (output, context) {
|
|
|
7096
7738
|
});
|
|
7097
7739
|
return retVal;
|
|
7098
7740
|
};
|
|
7741
|
+
var deserializeAws_restJson1Sources = function (output, context) {
|
|
7742
|
+
var retVal = (output || [])
|
|
7743
|
+
.filter(function (e) { return e != null; })
|
|
7744
|
+
.map(function (entry) {
|
|
7745
|
+
if (entry === null) {
|
|
7746
|
+
return null;
|
|
7747
|
+
}
|
|
7748
|
+
return __expectString(entry);
|
|
7749
|
+
});
|
|
7750
|
+
return retVal;
|
|
7751
|
+
};
|
|
7099
7752
|
var deserializeAws_restJson1Tag = function (output, context) {
|
|
7100
7753
|
return {
|
|
7101
7754
|
Key: __expectString(output.key),
|
|
@@ -7123,6 +7776,14 @@ var deserializeAws_restJson1Tags = function (output, context) {
|
|
|
7123
7776
|
});
|
|
7124
7777
|
return retVal;
|
|
7125
7778
|
};
|
|
7779
|
+
var deserializeAws_restJson1ThreatDetectedByName = function (output, context) {
|
|
7780
|
+
return {
|
|
7781
|
+
ItemCount: __expectInt32(output.itemCount),
|
|
7782
|
+
Shortened: __expectBoolean(output.shortened),
|
|
7783
|
+
ThreatNames: output.threatNames != null ? deserializeAws_restJson1ScanThreatNames(output.threatNames, context) : undefined,
|
|
7784
|
+
UniqueThreatNameCount: __expectInt32(output.uniqueThreatNameCount),
|
|
7785
|
+
};
|
|
7786
|
+
};
|
|
7126
7787
|
var deserializeAws_restJson1ThreatIntelligenceDetail = function (output, context) {
|
|
7127
7788
|
return {
|
|
7128
7789
|
ThreatListName: __expectString(output.threatListName),
|
|
@@ -7162,12 +7823,23 @@ var deserializeAws_restJson1ThreatNames = function (output, context) {
|
|
|
7162
7823
|
});
|
|
7163
7824
|
return retVal;
|
|
7164
7825
|
};
|
|
7826
|
+
var deserializeAws_restJson1ThreatsDetectedItemCount = function (output, context) {
|
|
7827
|
+
return {
|
|
7828
|
+
Files: __expectInt32(output.files),
|
|
7829
|
+
};
|
|
7830
|
+
};
|
|
7165
7831
|
var deserializeAws_restJson1Total = function (output, context) {
|
|
7166
7832
|
return {
|
|
7167
7833
|
Amount: __expectString(output.amount),
|
|
7168
7834
|
Unit: __expectString(output.unit),
|
|
7169
7835
|
};
|
|
7170
7836
|
};
|
|
7837
|
+
var deserializeAws_restJson1TriggerDetails = function (output, context) {
|
|
7838
|
+
return {
|
|
7839
|
+
Description: __expectString(output.description),
|
|
7840
|
+
GuardDutyFindingId: __expectString(output.guardDutyFindingId),
|
|
7841
|
+
};
|
|
7842
|
+
};
|
|
7171
7843
|
var deserializeAws_restJson1UnprocessedAccount = function (output, context) {
|
|
7172
7844
|
return {
|
|
7173
7845
|
AccountId: __expectString(output.accountId),
|
|
@@ -7258,6 +7930,28 @@ var deserializeAws_restJson1Volume = function (output, context) {
|
|
|
7258
7930
|
Name: __expectString(output.name),
|
|
7259
7931
|
};
|
|
7260
7932
|
};
|
|
7933
|
+
var deserializeAws_restJson1VolumeDetail = function (output, context) {
|
|
7934
|
+
return {
|
|
7935
|
+
DeviceName: __expectString(output.deviceName),
|
|
7936
|
+
EncryptionType: __expectString(output.encryptionType),
|
|
7937
|
+
KmsKeyArn: __expectString(output.kmsKeyArn),
|
|
7938
|
+
SnapshotArn: __expectString(output.snapshotArn),
|
|
7939
|
+
VolumeArn: __expectString(output.volumeArn),
|
|
7940
|
+
VolumeSizeInGB: __expectInt32(output.volumeSizeInGB),
|
|
7941
|
+
VolumeType: __expectString(output.volumeType),
|
|
7942
|
+
};
|
|
7943
|
+
};
|
|
7944
|
+
var deserializeAws_restJson1VolumeDetails = function (output, context) {
|
|
7945
|
+
var retVal = (output || [])
|
|
7946
|
+
.filter(function (e) { return e != null; })
|
|
7947
|
+
.map(function (entry) {
|
|
7948
|
+
if (entry === null) {
|
|
7949
|
+
return null;
|
|
7950
|
+
}
|
|
7951
|
+
return deserializeAws_restJson1VolumeDetail(entry, context);
|
|
7952
|
+
});
|
|
7953
|
+
return retVal;
|
|
7954
|
+
};
|
|
7261
7955
|
var deserializeAws_restJson1VolumeMount = function (output, context) {
|
|
7262
7956
|
return {
|
|
7263
7957
|
MountPath: __expectString(output.mountPath),
|