@aws-sdk/client-guardduty 3.128.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 +31 -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 +666 -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 +699 -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 +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateThreatIntelSetCommand = exports.deserializeAws_restJson1UpdatePublishingDestinationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberDetectorsCommand = exports.deserializeAws_restJson1UpdateIPSetCommand = exports.deserializeAws_restJson1UpdateFindingsFeedbackCommand = exports.deserializeAws_restJson1UpdateFilterCommand = exports.deserializeAws_restJson1UpdateDetectorCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnarchiveFindingsCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopMonitoringMembersCommand = exports.deserializeAws_restJson1StartMonitoringMembersCommand = exports.deserializeAws_restJson1ListThreatIntelSetsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListPublishingDestinationsCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListIPSetsCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListFiltersCommand = exports.deserializeAws_restJson1ListDetectorsCommand = exports.deserializeAws_restJson1InviteMembersCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListPublishingDestinationsCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListIPSetsCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListFiltersCommand = exports.serializeAws_restJson1ListDetectorsCommand = exports.serializeAws_restJson1InviteMembersCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetThreatIntelSetCommand = exports.serializeAws_restJson1GetRemainingFreeTrialDaysCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1GetMemberDetectorsCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetMalwareScanSettingsCommand = exports.serializeAws_restJson1GetIPSetCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetFindingsStatisticsCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetFilterCommand = exports.serializeAws_restJson1GetDetectorCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisassociateMembersCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DescribePublishingDestinationCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeMalwareScansCommand = exports.serializeAws_restJson1DeleteThreatIntelSetCommand = exports.serializeAws_restJson1DeletePublishingDestinationCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteIPSetCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteFilterCommand = exports.serializeAws_restJson1DeleteDetectorCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateThreatIntelSetCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreatePublishingDestinationCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateIPSetCommand = exports.serializeAws_restJson1CreateFilterCommand = exports.serializeAws_restJson1CreateDetectorCommand = exports.serializeAws_restJson1ArchiveFindingsCommand = exports.serializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1AcceptAdministratorInvitationCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMalwareScanSettingsCommand = exports.deserializeAws_restJson1GetIPSetCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetFindingsStatisticsCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetFilterCommand = exports.deserializeAws_restJson1GetDetectorCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisassociateMembersCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DescribePublishingDestinationCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeMalwareScansCommand = exports.deserializeAws_restJson1DeleteThreatIntelSetCommand = exports.deserializeAws_restJson1DeletePublishingDestinationCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteIPSetCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteFilterCommand = exports.deserializeAws_restJson1DeleteDetectorCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateThreatIntelSetCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreatePublishingDestinationCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateIPSetCommand = exports.deserializeAws_restJson1CreateFilterCommand = exports.deserializeAws_restJson1CreateDetectorCommand = exports.deserializeAws_restJson1ArchiveFindingsCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.deserializeAws_restJson1AcceptAdministratorInvitationCommand = exports.serializeAws_restJson1UpdateThreatIntelSetCommand = exports.serializeAws_restJson1UpdatePublishingDestinationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberDetectorsCommand = exports.serializeAws_restJson1UpdateMalwareScanSettingsCommand = exports.serializeAws_restJson1UpdateIPSetCommand = exports.serializeAws_restJson1UpdateFindingsFeedbackCommand = exports.serializeAws_restJson1UpdateFilterCommand = exports.serializeAws_restJson1UpdateDetectorCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnarchiveFindingsCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopMonitoringMembersCommand = exports.serializeAws_restJson1StartMonitoringMembersCommand = exports.serializeAws_restJson1ListThreatIntelSetsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateThreatIntelSetCommand = exports.deserializeAws_restJson1UpdatePublishingDestinationCommand = exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberDetectorsCommand = exports.deserializeAws_restJson1UpdateMalwareScanSettingsCommand = exports.deserializeAws_restJson1UpdateIPSetCommand = exports.deserializeAws_restJson1UpdateFindingsFeedbackCommand = exports.deserializeAws_restJson1UpdateFilterCommand = exports.deserializeAws_restJson1UpdateDetectorCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnarchiveFindingsCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopMonitoringMembersCommand = exports.deserializeAws_restJson1StartMonitoringMembersCommand = exports.deserializeAws_restJson1ListThreatIntelSetsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListPublishingDestinationsCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListIPSetsCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListFiltersCommand = exports.deserializeAws_restJson1ListDetectorsCommand = exports.deserializeAws_restJson1InviteMembersCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetThreatIntelSetCommand = exports.deserializeAws_restJson1GetRemainingFreeTrialDaysCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1GetMemberDetectorsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -594,6 +594,44 @@ const serializeAws_restJson1DeleteThreatIntelSetCommand = async (input, context)
|
|
|
594
594
|
});
|
|
595
595
|
};
|
|
596
596
|
exports.serializeAws_restJson1DeleteThreatIntelSetCommand = serializeAws_restJson1DeleteThreatIntelSetCommand;
|
|
597
|
+
const serializeAws_restJson1DescribeMalwareScansCommand = async (input, context) => {
|
|
598
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
599
|
+
const headers = {
|
|
600
|
+
"content-type": "application/json",
|
|
601
|
+
};
|
|
602
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/malware-scans";
|
|
603
|
+
if (input.DetectorId !== undefined) {
|
|
604
|
+
const labelValue = input.DetectorId;
|
|
605
|
+
if (labelValue.length <= 0) {
|
|
606
|
+
throw new Error("Empty value provided for input HTTP label: DetectorId.");
|
|
607
|
+
}
|
|
608
|
+
resolvedPath = resolvedPath.replace("{DetectorId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
609
|
+
}
|
|
610
|
+
else {
|
|
611
|
+
throw new Error("No value provided for input HTTP label: DetectorId.");
|
|
612
|
+
}
|
|
613
|
+
let body;
|
|
614
|
+
body = JSON.stringify({
|
|
615
|
+
...(input.FilterCriteria != null && {
|
|
616
|
+
filterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
617
|
+
}),
|
|
618
|
+
...(input.MaxResults != null && { maxResults: input.MaxResults }),
|
|
619
|
+
...(input.NextToken != null && { nextToken: input.NextToken }),
|
|
620
|
+
...(input.SortCriteria != null && {
|
|
621
|
+
sortCriteria: serializeAws_restJson1SortCriteria(input.SortCriteria, context),
|
|
622
|
+
}),
|
|
623
|
+
});
|
|
624
|
+
return new protocol_http_1.HttpRequest({
|
|
625
|
+
protocol,
|
|
626
|
+
hostname,
|
|
627
|
+
port,
|
|
628
|
+
method: "POST",
|
|
629
|
+
headers,
|
|
630
|
+
path: resolvedPath,
|
|
631
|
+
body,
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
exports.serializeAws_restJson1DescribeMalwareScansCommand = serializeAws_restJson1DescribeMalwareScansCommand;
|
|
597
635
|
const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (input, context) => {
|
|
598
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
599
637
|
const headers = {};
|
|
@@ -1000,6 +1038,33 @@ const serializeAws_restJson1GetIPSetCommand = async (input, context) => {
|
|
|
1000
1038
|
});
|
|
1001
1039
|
};
|
|
1002
1040
|
exports.serializeAws_restJson1GetIPSetCommand = serializeAws_restJson1GetIPSetCommand;
|
|
1041
|
+
const serializeAws_restJson1GetMalwareScanSettingsCommand = async (input, context) => {
|
|
1042
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1043
|
+
const headers = {};
|
|
1044
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1045
|
+
"/detector/{DetectorId}/malware-scan-settings";
|
|
1046
|
+
if (input.DetectorId !== undefined) {
|
|
1047
|
+
const labelValue = input.DetectorId;
|
|
1048
|
+
if (labelValue.length <= 0) {
|
|
1049
|
+
throw new Error("Empty value provided for input HTTP label: DetectorId.");
|
|
1050
|
+
}
|
|
1051
|
+
resolvedPath = resolvedPath.replace("{DetectorId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1052
|
+
}
|
|
1053
|
+
else {
|
|
1054
|
+
throw new Error("No value provided for input HTTP label: DetectorId.");
|
|
1055
|
+
}
|
|
1056
|
+
let body;
|
|
1057
|
+
return new protocol_http_1.HttpRequest({
|
|
1058
|
+
protocol,
|
|
1059
|
+
hostname,
|
|
1060
|
+
port,
|
|
1061
|
+
method: "GET",
|
|
1062
|
+
headers,
|
|
1063
|
+
path: resolvedPath,
|
|
1064
|
+
body,
|
|
1065
|
+
});
|
|
1066
|
+
};
|
|
1067
|
+
exports.serializeAws_restJson1GetMalwareScanSettingsCommand = serializeAws_restJson1GetMalwareScanSettingsCommand;
|
|
1003
1068
|
const serializeAws_restJson1GetMasterAccountCommand = async (input, context) => {
|
|
1004
1069
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1005
1070
|
const headers = {};
|
|
@@ -1824,6 +1889,41 @@ const serializeAws_restJson1UpdateIPSetCommand = async (input, context) => {
|
|
|
1824
1889
|
});
|
|
1825
1890
|
};
|
|
1826
1891
|
exports.serializeAws_restJson1UpdateIPSetCommand = serializeAws_restJson1UpdateIPSetCommand;
|
|
1892
|
+
const serializeAws_restJson1UpdateMalwareScanSettingsCommand = async (input, context) => {
|
|
1893
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1894
|
+
const headers = {
|
|
1895
|
+
"content-type": "application/json",
|
|
1896
|
+
};
|
|
1897
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1898
|
+
"/detector/{DetectorId}/malware-scan-settings";
|
|
1899
|
+
if (input.DetectorId !== undefined) {
|
|
1900
|
+
const labelValue = input.DetectorId;
|
|
1901
|
+
if (labelValue.length <= 0) {
|
|
1902
|
+
throw new Error("Empty value provided for input HTTP label: DetectorId.");
|
|
1903
|
+
}
|
|
1904
|
+
resolvedPath = resolvedPath.replace("{DetectorId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1905
|
+
}
|
|
1906
|
+
else {
|
|
1907
|
+
throw new Error("No value provided for input HTTP label: DetectorId.");
|
|
1908
|
+
}
|
|
1909
|
+
let body;
|
|
1910
|
+
body = JSON.stringify({
|
|
1911
|
+
...(input.EbsSnapshotPreservation != null && { ebsSnapshotPreservation: input.EbsSnapshotPreservation }),
|
|
1912
|
+
...(input.ScanResourceCriteria != null && {
|
|
1913
|
+
scanResourceCriteria: serializeAws_restJson1ScanResourceCriteria(input.ScanResourceCriteria, context),
|
|
1914
|
+
}),
|
|
1915
|
+
});
|
|
1916
|
+
return new protocol_http_1.HttpRequest({
|
|
1917
|
+
protocol,
|
|
1918
|
+
hostname,
|
|
1919
|
+
port,
|
|
1920
|
+
method: "POST",
|
|
1921
|
+
headers,
|
|
1922
|
+
path: resolvedPath,
|
|
1923
|
+
body,
|
|
1924
|
+
});
|
|
1925
|
+
};
|
|
1926
|
+
exports.serializeAws_restJson1UpdateMalwareScanSettingsCommand = serializeAws_restJson1UpdateMalwareScanSettingsCommand;
|
|
1827
1927
|
const serializeAws_restJson1UpdateMemberDetectorsCommand = async (input, context) => {
|
|
1828
1928
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1829
1929
|
const headers = {
|
|
@@ -2683,6 +2783,51 @@ const deserializeAws_restJson1DeleteThreatIntelSetCommandError = async (output,
|
|
|
2683
2783
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2684
2784
|
}
|
|
2685
2785
|
};
|
|
2786
|
+
const deserializeAws_restJson1DescribeMalwareScansCommand = async (output, context) => {
|
|
2787
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2788
|
+
return deserializeAws_restJson1DescribeMalwareScansCommandError(output, context);
|
|
2789
|
+
}
|
|
2790
|
+
const contents = {
|
|
2791
|
+
$metadata: deserializeMetadata(output),
|
|
2792
|
+
NextToken: undefined,
|
|
2793
|
+
Scans: undefined,
|
|
2794
|
+
};
|
|
2795
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2796
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2797
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2798
|
+
}
|
|
2799
|
+
if (data.scans !== undefined && data.scans !== null) {
|
|
2800
|
+
contents.Scans = deserializeAws_restJson1Scans(data.scans, context);
|
|
2801
|
+
}
|
|
2802
|
+
return Promise.resolve(contents);
|
|
2803
|
+
};
|
|
2804
|
+
exports.deserializeAws_restJson1DescribeMalwareScansCommand = deserializeAws_restJson1DescribeMalwareScansCommand;
|
|
2805
|
+
const deserializeAws_restJson1DescribeMalwareScansCommandError = async (output, context) => {
|
|
2806
|
+
const parsedOutput = {
|
|
2807
|
+
...output,
|
|
2808
|
+
body: await parseBody(output.body, context),
|
|
2809
|
+
};
|
|
2810
|
+
let response;
|
|
2811
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2812
|
+
switch (errorCode) {
|
|
2813
|
+
case "BadRequestException":
|
|
2814
|
+
case "com.amazonaws.guardduty#BadRequestException":
|
|
2815
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2816
|
+
case "InternalServerErrorException":
|
|
2817
|
+
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
2818
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2819
|
+
default:
|
|
2820
|
+
const parsedBody = parsedOutput.body;
|
|
2821
|
+
const $metadata = deserializeMetadata(output);
|
|
2822
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2823
|
+
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
2824
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2825
|
+
$fault: "client",
|
|
2826
|
+
$metadata,
|
|
2827
|
+
});
|
|
2828
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2829
|
+
}
|
|
2830
|
+
};
|
|
2686
2831
|
const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (output, context) => {
|
|
2687
2832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2688
2833
|
return deserializeAws_restJson1DescribeOrganizationConfigurationCommandError(output, context);
|
|
@@ -3325,6 +3470,51 @@ const deserializeAws_restJson1GetIPSetCommandError = async (output, context) =>
|
|
|
3325
3470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3326
3471
|
}
|
|
3327
3472
|
};
|
|
3473
|
+
const deserializeAws_restJson1GetMalwareScanSettingsCommand = async (output, context) => {
|
|
3474
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3475
|
+
return deserializeAws_restJson1GetMalwareScanSettingsCommandError(output, context);
|
|
3476
|
+
}
|
|
3477
|
+
const contents = {
|
|
3478
|
+
$metadata: deserializeMetadata(output),
|
|
3479
|
+
EbsSnapshotPreservation: undefined,
|
|
3480
|
+
ScanResourceCriteria: undefined,
|
|
3481
|
+
};
|
|
3482
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3483
|
+
if (data.ebsSnapshotPreservation !== undefined && data.ebsSnapshotPreservation !== null) {
|
|
3484
|
+
contents.EbsSnapshotPreservation = (0, smithy_client_1.expectString)(data.ebsSnapshotPreservation);
|
|
3485
|
+
}
|
|
3486
|
+
if (data.scanResourceCriteria !== undefined && data.scanResourceCriteria !== null) {
|
|
3487
|
+
contents.ScanResourceCriteria = deserializeAws_restJson1ScanResourceCriteria(data.scanResourceCriteria, context);
|
|
3488
|
+
}
|
|
3489
|
+
return Promise.resolve(contents);
|
|
3490
|
+
};
|
|
3491
|
+
exports.deserializeAws_restJson1GetMalwareScanSettingsCommand = deserializeAws_restJson1GetMalwareScanSettingsCommand;
|
|
3492
|
+
const deserializeAws_restJson1GetMalwareScanSettingsCommandError = async (output, context) => {
|
|
3493
|
+
const parsedOutput = {
|
|
3494
|
+
...output,
|
|
3495
|
+
body: await parseBody(output.body, context),
|
|
3496
|
+
};
|
|
3497
|
+
let response;
|
|
3498
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3499
|
+
switch (errorCode) {
|
|
3500
|
+
case "BadRequestException":
|
|
3501
|
+
case "com.amazonaws.guardduty#BadRequestException":
|
|
3502
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3503
|
+
case "InternalServerErrorException":
|
|
3504
|
+
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
3505
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3506
|
+
default:
|
|
3507
|
+
const parsedBody = parsedOutput.body;
|
|
3508
|
+
const $metadata = deserializeMetadata(output);
|
|
3509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3510
|
+
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
3511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3512
|
+
$fault: "client",
|
|
3513
|
+
$metadata,
|
|
3514
|
+
});
|
|
3515
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3516
|
+
}
|
|
3517
|
+
};
|
|
3328
3518
|
const deserializeAws_restJson1GetMasterAccountCommand = async (output, context) => {
|
|
3329
3519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3330
3520
|
return deserializeAws_restJson1GetMasterAccountCommandError(output, context);
|
|
@@ -4435,6 +4625,43 @@ const deserializeAws_restJson1UpdateIPSetCommandError = async (output, context)
|
|
|
4435
4625
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4436
4626
|
}
|
|
4437
4627
|
};
|
|
4628
|
+
const deserializeAws_restJson1UpdateMalwareScanSettingsCommand = async (output, context) => {
|
|
4629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4630
|
+
return deserializeAws_restJson1UpdateMalwareScanSettingsCommandError(output, context);
|
|
4631
|
+
}
|
|
4632
|
+
const contents = {
|
|
4633
|
+
$metadata: deserializeMetadata(output),
|
|
4634
|
+
};
|
|
4635
|
+
await collectBody(output.body, context);
|
|
4636
|
+
return Promise.resolve(contents);
|
|
4637
|
+
};
|
|
4638
|
+
exports.deserializeAws_restJson1UpdateMalwareScanSettingsCommand = deserializeAws_restJson1UpdateMalwareScanSettingsCommand;
|
|
4639
|
+
const deserializeAws_restJson1UpdateMalwareScanSettingsCommandError = async (output, context) => {
|
|
4640
|
+
const parsedOutput = {
|
|
4641
|
+
...output,
|
|
4642
|
+
body: await parseBody(output.body, context),
|
|
4643
|
+
};
|
|
4644
|
+
let response;
|
|
4645
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4646
|
+
switch (errorCode) {
|
|
4647
|
+
case "BadRequestException":
|
|
4648
|
+
case "com.amazonaws.guardduty#BadRequestException":
|
|
4649
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
4650
|
+
case "InternalServerErrorException":
|
|
4651
|
+
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
4652
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
4653
|
+
default:
|
|
4654
|
+
const parsedBody = parsedOutput.body;
|
|
4655
|
+
const $metadata = deserializeMetadata(output);
|
|
4656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4657
|
+
response = new GuardDutyServiceException_1.GuardDutyServiceException({
|
|
4658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4659
|
+
$fault: "client",
|
|
4660
|
+
$metadata,
|
|
4661
|
+
});
|
|
4662
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4663
|
+
}
|
|
4664
|
+
};
|
|
4438
4665
|
const deserializeAws_restJson1UpdateMemberDetectorsCommand = async (output, context) => {
|
|
4439
4666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4440
4667
|
return deserializeAws_restJson1UpdateMemberDetectorsCommandError(output, context);
|
|
@@ -4675,6 +4902,9 @@ const serializeAws_restJson1DataSourceConfigurations = (input, context) => {
|
|
|
4675
4902
|
...(input.Kubernetes != null && {
|
|
4676
4903
|
kubernetes: serializeAws_restJson1KubernetesConfiguration(input.Kubernetes, context),
|
|
4677
4904
|
}),
|
|
4905
|
+
...(input.MalwareProtection != null && {
|
|
4906
|
+
malwareProtection: serializeAws_restJson1MalwareProtectionConfiguration(input.MalwareProtection, context),
|
|
4907
|
+
}),
|
|
4678
4908
|
...(input.S3Logs != null && { s3Logs: serializeAws_restJson1S3LogsConfiguration(input.S3Logs, context) }),
|
|
4679
4909
|
};
|
|
4680
4910
|
};
|
|
@@ -4714,6 +4944,38 @@ const serializeAws_restJson1Equals = (input, context) => {
|
|
|
4714
4944
|
return entry;
|
|
4715
4945
|
});
|
|
4716
4946
|
};
|
|
4947
|
+
const serializeAws_restJson1FilterCondition = (input, context) => {
|
|
4948
|
+
return {
|
|
4949
|
+
...(input.EqualsValue != null && { equalsValue: input.EqualsValue }),
|
|
4950
|
+
...(input.GreaterThan != null && { greaterThan: input.GreaterThan }),
|
|
4951
|
+
...(input.LessThan != null && { lessThan: input.LessThan }),
|
|
4952
|
+
};
|
|
4953
|
+
};
|
|
4954
|
+
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
4955
|
+
return {
|
|
4956
|
+
...(input.FilterCriterion != null && {
|
|
4957
|
+
filterCriterion: serializeAws_restJson1FilterCriterionList(input.FilterCriterion, context),
|
|
4958
|
+
}),
|
|
4959
|
+
};
|
|
4960
|
+
};
|
|
4961
|
+
const serializeAws_restJson1FilterCriterion = (input, context) => {
|
|
4962
|
+
return {
|
|
4963
|
+
...(input.CriterionKey != null && { criterionKey: input.CriterionKey }),
|
|
4964
|
+
...(input.FilterCondition != null && {
|
|
4965
|
+
filterCondition: serializeAws_restJson1FilterCondition(input.FilterCondition, context),
|
|
4966
|
+
}),
|
|
4967
|
+
};
|
|
4968
|
+
};
|
|
4969
|
+
const serializeAws_restJson1FilterCriterionList = (input, context) => {
|
|
4970
|
+
return input
|
|
4971
|
+
.filter((e) => e != null)
|
|
4972
|
+
.map((entry) => {
|
|
4973
|
+
if (entry === null) {
|
|
4974
|
+
return null;
|
|
4975
|
+
}
|
|
4976
|
+
return serializeAws_restJson1FilterCriterion(entry, context);
|
|
4977
|
+
});
|
|
4978
|
+
};
|
|
4717
4979
|
const serializeAws_restJson1FindingCriteria = (input, context) => {
|
|
4718
4980
|
return {
|
|
4719
4981
|
...(input.Criterion != null && { criterion: serializeAws_restJson1Criterion(input.Criterion, context) }),
|
|
@@ -4761,6 +5023,23 @@ const serializeAws_restJson1KubernetesConfiguration = (input, context) => {
|
|
|
4761
5023
|
}),
|
|
4762
5024
|
};
|
|
4763
5025
|
};
|
|
5026
|
+
const serializeAws_restJson1MalwareProtectionConfiguration = (input, context) => {
|
|
5027
|
+
return {
|
|
5028
|
+
...(input.ScanEc2InstanceWithFindings != null && {
|
|
5029
|
+
scanEc2InstanceWithFindings: serializeAws_restJson1ScanEc2InstanceWithFindings(input.ScanEc2InstanceWithFindings, context),
|
|
5030
|
+
}),
|
|
5031
|
+
};
|
|
5032
|
+
};
|
|
5033
|
+
const serializeAws_restJson1MapEquals = (input, context) => {
|
|
5034
|
+
return input
|
|
5035
|
+
.filter((e) => e != null)
|
|
5036
|
+
.map((entry) => {
|
|
5037
|
+
if (entry === null) {
|
|
5038
|
+
return null;
|
|
5039
|
+
}
|
|
5040
|
+
return serializeAws_restJson1ScanConditionPair(entry, context);
|
|
5041
|
+
});
|
|
5042
|
+
};
|
|
4764
5043
|
const serializeAws_restJson1Neq = (input, context) => {
|
|
4765
5044
|
return input
|
|
4766
5045
|
.filter((e) => e != null)
|
|
@@ -4786,11 +5065,19 @@ const serializeAws_restJson1OrganizationDataSourceConfigurations = (input, conte
|
|
|
4786
5065
|
...(input.Kubernetes != null && {
|
|
4787
5066
|
kubernetes: serializeAws_restJson1OrganizationKubernetesConfiguration(input.Kubernetes, context),
|
|
4788
5067
|
}),
|
|
5068
|
+
...(input.MalwareProtection != null && {
|
|
5069
|
+
malwareProtection: serializeAws_restJson1OrganizationMalwareProtectionConfiguration(input.MalwareProtection, context),
|
|
5070
|
+
}),
|
|
4789
5071
|
...(input.S3Logs != null && {
|
|
4790
5072
|
s3Logs: serializeAws_restJson1OrganizationS3LogsConfiguration(input.S3Logs, context),
|
|
4791
5073
|
}),
|
|
4792
5074
|
};
|
|
4793
5075
|
};
|
|
5076
|
+
const serializeAws_restJson1OrganizationEbsVolumes = (input, context) => {
|
|
5077
|
+
return {
|
|
5078
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
5079
|
+
};
|
|
5080
|
+
};
|
|
4794
5081
|
const serializeAws_restJson1OrganizationKubernetesAuditLogsConfiguration = (input, context) => {
|
|
4795
5082
|
return {
|
|
4796
5083
|
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
@@ -4803,11 +5090,25 @@ const serializeAws_restJson1OrganizationKubernetesConfiguration = (input, contex
|
|
|
4803
5090
|
}),
|
|
4804
5091
|
};
|
|
4805
5092
|
};
|
|
5093
|
+
const serializeAws_restJson1OrganizationMalwareProtectionConfiguration = (input, context) => {
|
|
5094
|
+
return {
|
|
5095
|
+
...(input.ScanEc2InstanceWithFindings != null && {
|
|
5096
|
+
scanEc2InstanceWithFindings: serializeAws_restJson1OrganizationScanEc2InstanceWithFindings(input.ScanEc2InstanceWithFindings, context),
|
|
5097
|
+
}),
|
|
5098
|
+
};
|
|
5099
|
+
};
|
|
4806
5100
|
const serializeAws_restJson1OrganizationS3LogsConfiguration = (input, context) => {
|
|
4807
5101
|
return {
|
|
4808
5102
|
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4809
5103
|
};
|
|
4810
5104
|
};
|
|
5105
|
+
const serializeAws_restJson1OrganizationScanEc2InstanceWithFindings = (input, context) => {
|
|
5106
|
+
return {
|
|
5107
|
+
...(input.EbsVolumes != null && {
|
|
5108
|
+
ebsVolumes: serializeAws_restJson1OrganizationEbsVolumes(input.EbsVolumes, context),
|
|
5109
|
+
}),
|
|
5110
|
+
};
|
|
5111
|
+
};
|
|
4811
5112
|
const serializeAws_restJson1ResourceList = (input, context) => {
|
|
4812
5113
|
return input
|
|
4813
5114
|
.filter((e) => e != null)
|
|
@@ -4823,6 +5124,39 @@ const serializeAws_restJson1S3LogsConfiguration = (input, context) => {
|
|
|
4823
5124
|
...(input.Enable != null && { enable: input.Enable }),
|
|
4824
5125
|
};
|
|
4825
5126
|
};
|
|
5127
|
+
const serializeAws_restJson1ScanCondition = (input, context) => {
|
|
5128
|
+
return {
|
|
5129
|
+
...(input.MapEquals != null && { mapEquals: serializeAws_restJson1MapEquals(input.MapEquals, context) }),
|
|
5130
|
+
};
|
|
5131
|
+
};
|
|
5132
|
+
const serializeAws_restJson1ScanConditionPair = (input, context) => {
|
|
5133
|
+
return {
|
|
5134
|
+
...(input.Key != null && { key: input.Key }),
|
|
5135
|
+
...(input.Value != null && { value: input.Value }),
|
|
5136
|
+
};
|
|
5137
|
+
};
|
|
5138
|
+
const serializeAws_restJson1ScanCriterion = (input, context) => {
|
|
5139
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
5140
|
+
if (value === null) {
|
|
5141
|
+
return acc;
|
|
5142
|
+
}
|
|
5143
|
+
return {
|
|
5144
|
+
...acc,
|
|
5145
|
+
[key]: serializeAws_restJson1ScanCondition(value, context),
|
|
5146
|
+
};
|
|
5147
|
+
}, {});
|
|
5148
|
+
};
|
|
5149
|
+
const serializeAws_restJson1ScanEc2InstanceWithFindings = (input, context) => {
|
|
5150
|
+
return {
|
|
5151
|
+
...(input.EbsVolumes != null && { ebsVolumes: input.EbsVolumes }),
|
|
5152
|
+
};
|
|
5153
|
+
};
|
|
5154
|
+
const serializeAws_restJson1ScanResourceCriteria = (input, context) => {
|
|
5155
|
+
return {
|
|
5156
|
+
...(input.Exclude != null && { exclude: serializeAws_restJson1ScanCriterion(input.Exclude, context) }),
|
|
5157
|
+
...(input.Include != null && { include: serializeAws_restJson1ScanCriterion(input.Include, context) }),
|
|
5158
|
+
};
|
|
5159
|
+
};
|
|
4826
5160
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
4827
5161
|
return {
|
|
4828
5162
|
...(input.AttributeName != null && { attributeName: input.AttributeName }),
|
|
@@ -5077,6 +5411,9 @@ const deserializeAws_restJson1DataSourceConfigurationsResult = (output, context)
|
|
|
5077
5411
|
Kubernetes: output.kubernetes != null
|
|
5078
5412
|
? deserializeAws_restJson1KubernetesConfigurationResult(output.kubernetes, context)
|
|
5079
5413
|
: undefined,
|
|
5414
|
+
MalwareProtection: output.malwareProtection != null
|
|
5415
|
+
? deserializeAws_restJson1MalwareProtectionConfigurationResult(output.malwareProtection, context)
|
|
5416
|
+
: undefined,
|
|
5080
5417
|
S3Logs: output.s3Logs != null ? deserializeAws_restJson1S3LogsConfigurationResult(output.s3Logs, context) : undefined,
|
|
5081
5418
|
};
|
|
5082
5419
|
};
|
|
@@ -5093,6 +5430,9 @@ const deserializeAws_restJson1DataSourcesFreeTrial = (output, context) => {
|
|
|
5093
5430
|
Kubernetes: output.kubernetes != null
|
|
5094
5431
|
? deserializeAws_restJson1KubernetesDataSourceFreeTrial(output.kubernetes, context)
|
|
5095
5432
|
: undefined,
|
|
5433
|
+
MalwareProtection: output.malwareProtection != null
|
|
5434
|
+
? deserializeAws_restJson1MalwareProtectionDataSourceFreeTrial(output.malwareProtection, context)
|
|
5435
|
+
: undefined,
|
|
5096
5436
|
S3Logs: output.s3Logs != null ? deserializeAws_restJson1DataSourceFreeTrial(output.s3Logs, context) : undefined,
|
|
5097
5437
|
};
|
|
5098
5438
|
};
|
|
@@ -5154,6 +5494,63 @@ const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
|
5154
5494
|
Domain: (0, smithy_client_1.expectString)(output.domain),
|
|
5155
5495
|
};
|
|
5156
5496
|
};
|
|
5497
|
+
const deserializeAws_restJson1EbsVolumeDetails = (output, context) => {
|
|
5498
|
+
return {
|
|
5499
|
+
ScannedVolumeDetails: output.scannedVolumeDetails != null
|
|
5500
|
+
? deserializeAws_restJson1VolumeDetails(output.scannedVolumeDetails, context)
|
|
5501
|
+
: undefined,
|
|
5502
|
+
SkippedVolumeDetails: output.skippedVolumeDetails != null
|
|
5503
|
+
? deserializeAws_restJson1VolumeDetails(output.skippedVolumeDetails, context)
|
|
5504
|
+
: undefined,
|
|
5505
|
+
};
|
|
5506
|
+
};
|
|
5507
|
+
const deserializeAws_restJson1EbsVolumeScanDetails = (output, context) => {
|
|
5508
|
+
return {
|
|
5509
|
+
ScanCompletedAt: output.scanCompletedAt != null
|
|
5510
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.scanCompletedAt)))
|
|
5511
|
+
: undefined,
|
|
5512
|
+
ScanDetections: output.scanDetections != null
|
|
5513
|
+
? deserializeAws_restJson1ScanDetections(output.scanDetections, context)
|
|
5514
|
+
: undefined,
|
|
5515
|
+
ScanId: (0, smithy_client_1.expectString)(output.scanId),
|
|
5516
|
+
ScanStartedAt: output.scanStartedAt != null
|
|
5517
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.scanStartedAt)))
|
|
5518
|
+
: undefined,
|
|
5519
|
+
Sources: output.sources != null ? deserializeAws_restJson1Sources(output.sources, context) : undefined,
|
|
5520
|
+
TriggerFindingId: (0, smithy_client_1.expectString)(output.triggerFindingId),
|
|
5521
|
+
};
|
|
5522
|
+
};
|
|
5523
|
+
const deserializeAws_restJson1EbsVolumesResult = (output, context) => {
|
|
5524
|
+
return {
|
|
5525
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5526
|
+
};
|
|
5527
|
+
};
|
|
5528
|
+
const deserializeAws_restJson1EcsClusterDetails = (output, context) => {
|
|
5529
|
+
return {
|
|
5530
|
+
ActiveServicesCount: (0, smithy_client_1.expectInt32)(output.activeServicesCount),
|
|
5531
|
+
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5532
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5533
|
+
RegisteredContainerInstancesCount: (0, smithy_client_1.expectInt32)(output.registeredContainerInstancesCount),
|
|
5534
|
+
RunningTasksCount: (0, smithy_client_1.expectInt32)(output.runningTasksCount),
|
|
5535
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5536
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5537
|
+
TaskDetails: output.taskDetails != null ? deserializeAws_restJson1EcsTaskDetails(output.taskDetails, context) : undefined,
|
|
5538
|
+
};
|
|
5539
|
+
};
|
|
5540
|
+
const deserializeAws_restJson1EcsTaskDetails = (output, context) => {
|
|
5541
|
+
return {
|
|
5542
|
+
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5543
|
+
Containers: output.containers != null ? deserializeAws_restJson1Containers(output.containers, context) : undefined,
|
|
5544
|
+
DefinitionArn: (0, smithy_client_1.expectString)(output.definitionArn),
|
|
5545
|
+
Group: (0, smithy_client_1.expectString)(output.group),
|
|
5546
|
+
StartedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
|
|
5547
|
+
StartedBy: (0, smithy_client_1.expectString)(output.startedBy),
|
|
5548
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
5549
|
+
TaskCreatedAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
5550
|
+
Version: (0, smithy_client_1.expectString)(output.version),
|
|
5551
|
+
Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
5552
|
+
};
|
|
5553
|
+
};
|
|
5157
5554
|
const deserializeAws_restJson1EksClusterDetails = (output, context) => {
|
|
5158
5555
|
return {
|
|
5159
5556
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -5193,6 +5590,17 @@ const deserializeAws_restJson1Evidence = (output, context) => {
|
|
|
5193
5590
|
: undefined,
|
|
5194
5591
|
};
|
|
5195
5592
|
};
|
|
5593
|
+
const deserializeAws_restJson1FilePaths = (output, context) => {
|
|
5594
|
+
const retVal = (output || [])
|
|
5595
|
+
.filter((e) => e != null)
|
|
5596
|
+
.map((entry) => {
|
|
5597
|
+
if (entry === null) {
|
|
5598
|
+
return null;
|
|
5599
|
+
}
|
|
5600
|
+
return deserializeAws_restJson1ScanFilePath(entry, context);
|
|
5601
|
+
});
|
|
5602
|
+
return retVal;
|
|
5603
|
+
};
|
|
5196
5604
|
const deserializeAws_restJson1FilterNames = (output, context) => {
|
|
5197
5605
|
const retVal = (output || [])
|
|
5198
5606
|
.filter((e) => e != null)
|
|
@@ -5279,6 +5687,13 @@ const deserializeAws_restJson1Groups = (output, context) => {
|
|
|
5279
5687
|
});
|
|
5280
5688
|
return retVal;
|
|
5281
5689
|
};
|
|
5690
|
+
const deserializeAws_restJson1HighestSeverityThreatDetails = (output, context) => {
|
|
5691
|
+
return {
|
|
5692
|
+
Count: (0, smithy_client_1.expectInt32)(output.count),
|
|
5693
|
+
Severity: (0, smithy_client_1.expectString)(output.severity),
|
|
5694
|
+
ThreatName: (0, smithy_client_1.expectString)(output.threatName),
|
|
5695
|
+
};
|
|
5696
|
+
};
|
|
5282
5697
|
const deserializeAws_restJson1HostPath = (output, context) => {
|
|
5283
5698
|
return {
|
|
5284
5699
|
Path: (0, smithy_client_1.expectString)(output.path),
|
|
@@ -5421,6 +5836,32 @@ const deserializeAws_restJson1LocalPortDetails = (output, context) => {
|
|
|
5421
5836
|
PortName: (0, smithy_client_1.expectString)(output.portName),
|
|
5422
5837
|
};
|
|
5423
5838
|
};
|
|
5839
|
+
const deserializeAws_restJson1MalwareProtectionConfigurationResult = (output, context) => {
|
|
5840
|
+
return {
|
|
5841
|
+
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
5842
|
+
? deserializeAws_restJson1ScanEc2InstanceWithFindingsResult(output.scanEc2InstanceWithFindings, context)
|
|
5843
|
+
: undefined,
|
|
5844
|
+
ServiceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
5845
|
+
};
|
|
5846
|
+
};
|
|
5847
|
+
const deserializeAws_restJson1MalwareProtectionDataSourceFreeTrial = (output, context) => {
|
|
5848
|
+
return {
|
|
5849
|
+
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
5850
|
+
? deserializeAws_restJson1DataSourceFreeTrial(output.scanEc2InstanceWithFindings, context)
|
|
5851
|
+
: undefined,
|
|
5852
|
+
};
|
|
5853
|
+
};
|
|
5854
|
+
const deserializeAws_restJson1MapEquals = (output, context) => {
|
|
5855
|
+
const retVal = (output || [])
|
|
5856
|
+
.filter((e) => e != null)
|
|
5857
|
+
.map((entry) => {
|
|
5858
|
+
if (entry === null) {
|
|
5859
|
+
return null;
|
|
5860
|
+
}
|
|
5861
|
+
return deserializeAws_restJson1ScanConditionPair(entry, context);
|
|
5862
|
+
});
|
|
5863
|
+
return retVal;
|
|
5864
|
+
};
|
|
5424
5865
|
const deserializeAws_restJson1Master = (output, context) => {
|
|
5425
5866
|
return {
|
|
5426
5867
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
@@ -5554,11 +5995,19 @@ const deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = (outp
|
|
|
5554
5995
|
Kubernetes: output.kubernetes != null
|
|
5555
5996
|
? deserializeAws_restJson1OrganizationKubernetesConfigurationResult(output.kubernetes, context)
|
|
5556
5997
|
: undefined,
|
|
5998
|
+
MalwareProtection: output.malwareProtection != null
|
|
5999
|
+
? deserializeAws_restJson1OrganizationMalwareProtectionConfigurationResult(output.malwareProtection, context)
|
|
6000
|
+
: undefined,
|
|
5557
6001
|
S3Logs: output.s3Logs != null
|
|
5558
6002
|
? deserializeAws_restJson1OrganizationS3LogsConfigurationResult(output.s3Logs, context)
|
|
5559
6003
|
: undefined,
|
|
5560
6004
|
};
|
|
5561
6005
|
};
|
|
6006
|
+
const deserializeAws_restJson1OrganizationEbsVolumesResult = (output, context) => {
|
|
6007
|
+
return {
|
|
6008
|
+
AutoEnable: (0, smithy_client_1.expectBoolean)(output.autoEnable),
|
|
6009
|
+
};
|
|
6010
|
+
};
|
|
5562
6011
|
const deserializeAws_restJson1OrganizationKubernetesAuditLogsConfigurationResult = (output, context) => {
|
|
5563
6012
|
return {
|
|
5564
6013
|
AutoEnable: (0, smithy_client_1.expectBoolean)(output.autoEnable),
|
|
@@ -5571,11 +6020,25 @@ const deserializeAws_restJson1OrganizationKubernetesConfigurationResult = (outpu
|
|
|
5571
6020
|
: undefined,
|
|
5572
6021
|
};
|
|
5573
6022
|
};
|
|
6023
|
+
const deserializeAws_restJson1OrganizationMalwareProtectionConfigurationResult = (output, context) => {
|
|
6024
|
+
return {
|
|
6025
|
+
ScanEc2InstanceWithFindings: output.scanEc2InstanceWithFindings != null
|
|
6026
|
+
? deserializeAws_restJson1OrganizationScanEc2InstanceWithFindingsResult(output.scanEc2InstanceWithFindings, context)
|
|
6027
|
+
: undefined,
|
|
6028
|
+
};
|
|
6029
|
+
};
|
|
5574
6030
|
const deserializeAws_restJson1OrganizationS3LogsConfigurationResult = (output, context) => {
|
|
5575
6031
|
return {
|
|
5576
6032
|
AutoEnable: (0, smithy_client_1.expectBoolean)(output.autoEnable),
|
|
5577
6033
|
};
|
|
5578
6034
|
};
|
|
6035
|
+
const deserializeAws_restJson1OrganizationScanEc2InstanceWithFindingsResult = (output, context) => {
|
|
6036
|
+
return {
|
|
6037
|
+
EbsVolumes: output.ebsVolumes != null
|
|
6038
|
+
? deserializeAws_restJson1OrganizationEbsVolumesResult(output.ebsVolumes, context)
|
|
6039
|
+
: undefined,
|
|
6040
|
+
};
|
|
6041
|
+
};
|
|
5579
6042
|
const deserializeAws_restJson1Owner = (output, context) => {
|
|
5580
6043
|
return {
|
|
5581
6044
|
Id: (0, smithy_client_1.expectString)(output.id),
|
|
@@ -5691,6 +6154,13 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
5691
6154
|
AccessKeyDetails: output.accessKeyDetails != null
|
|
5692
6155
|
? deserializeAws_restJson1AccessKeyDetails(output.accessKeyDetails, context)
|
|
5693
6156
|
: undefined,
|
|
6157
|
+
ContainerDetails: output.containerDetails != null ? deserializeAws_restJson1Container(output.containerDetails, context) : undefined,
|
|
6158
|
+
EbsVolumeDetails: output.ebsVolumeDetails != null
|
|
6159
|
+
? deserializeAws_restJson1EbsVolumeDetails(output.ebsVolumeDetails, context)
|
|
6160
|
+
: undefined,
|
|
6161
|
+
EcsClusterDetails: output.ecsClusterDetails != null
|
|
6162
|
+
? deserializeAws_restJson1EcsClusterDetails(output.ecsClusterDetails, context)
|
|
6163
|
+
: undefined,
|
|
5694
6164
|
EksClusterDetails: output.eksClusterDetails != null
|
|
5695
6165
|
? deserializeAws_restJson1EksClusterDetails(output.eksClusterDetails, context)
|
|
5696
6166
|
: undefined,
|
|
@@ -5706,6 +6176,11 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
5706
6176
|
: undefined,
|
|
5707
6177
|
};
|
|
5708
6178
|
};
|
|
6179
|
+
const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
6180
|
+
return {
|
|
6181
|
+
InstanceArn: (0, smithy_client_1.expectString)(output.instanceArn),
|
|
6182
|
+
};
|
|
6183
|
+
};
|
|
5709
6184
|
const deserializeAws_restJson1S3BucketDetail = (output, context) => {
|
|
5710
6185
|
return {
|
|
5711
6186
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -5736,6 +6211,135 @@ const deserializeAws_restJson1S3LogsConfigurationResult = (output, context) => {
|
|
|
5736
6211
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5737
6212
|
};
|
|
5738
6213
|
};
|
|
6214
|
+
const deserializeAws_restJson1Scan = (output, context) => {
|
|
6215
|
+
return {
|
|
6216
|
+
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
6217
|
+
AdminDetectorId: (0, smithy_client_1.expectString)(output.adminDetectorId),
|
|
6218
|
+
AttachedVolumes: output.attachedVolumes != null
|
|
6219
|
+
? deserializeAws_restJson1VolumeDetails(output.attachedVolumes, context)
|
|
6220
|
+
: undefined,
|
|
6221
|
+
DetectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
6222
|
+
FailureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
6223
|
+
FileCount: (0, smithy_client_1.expectLong)(output.fileCount),
|
|
6224
|
+
ResourceDetails: output.resourceDetails != null
|
|
6225
|
+
? deserializeAws_restJson1ResourceDetails(output.resourceDetails, context)
|
|
6226
|
+
: undefined,
|
|
6227
|
+
ScanEndTime: output.scanEndTime != null
|
|
6228
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.scanEndTime)))
|
|
6229
|
+
: undefined,
|
|
6230
|
+
ScanId: (0, smithy_client_1.expectString)(output.scanId),
|
|
6231
|
+
ScanResultDetails: output.scanResultDetails != null
|
|
6232
|
+
? deserializeAws_restJson1ScanResultDetails(output.scanResultDetails, context)
|
|
6233
|
+
: undefined,
|
|
6234
|
+
ScanStartTime: output.scanStartTime != null
|
|
6235
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.scanStartTime)))
|
|
6236
|
+
: undefined,
|
|
6237
|
+
ScanStatus: (0, smithy_client_1.expectString)(output.scanStatus),
|
|
6238
|
+
TotalBytes: (0, smithy_client_1.expectLong)(output.totalBytes),
|
|
6239
|
+
TriggerDetails: output.triggerDetails != null
|
|
6240
|
+
? deserializeAws_restJson1TriggerDetails(output.triggerDetails, context)
|
|
6241
|
+
: undefined,
|
|
6242
|
+
};
|
|
6243
|
+
};
|
|
6244
|
+
const deserializeAws_restJson1ScanCondition = (output, context) => {
|
|
6245
|
+
return {
|
|
6246
|
+
MapEquals: output.mapEquals != null ? deserializeAws_restJson1MapEquals(output.mapEquals, context) : undefined,
|
|
6247
|
+
};
|
|
6248
|
+
};
|
|
6249
|
+
const deserializeAws_restJson1ScanConditionPair = (output, context) => {
|
|
6250
|
+
return {
|
|
6251
|
+
Key: (0, smithy_client_1.expectString)(output.key),
|
|
6252
|
+
Value: (0, smithy_client_1.expectString)(output.value),
|
|
6253
|
+
};
|
|
6254
|
+
};
|
|
6255
|
+
const deserializeAws_restJson1ScanCriterion = (output, context) => {
|
|
6256
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
6257
|
+
if (value === null) {
|
|
6258
|
+
return acc;
|
|
6259
|
+
}
|
|
6260
|
+
return {
|
|
6261
|
+
...acc,
|
|
6262
|
+
[key]: deserializeAws_restJson1ScanCondition(value, context),
|
|
6263
|
+
};
|
|
6264
|
+
}, {});
|
|
6265
|
+
};
|
|
6266
|
+
const deserializeAws_restJson1ScanDetections = (output, context) => {
|
|
6267
|
+
return {
|
|
6268
|
+
HighestSeverityThreatDetails: output.highestSeverityThreatDetails != null
|
|
6269
|
+
? deserializeAws_restJson1HighestSeverityThreatDetails(output.highestSeverityThreatDetails, context)
|
|
6270
|
+
: undefined,
|
|
6271
|
+
ScannedItemCount: output.scannedItemCount != null
|
|
6272
|
+
? deserializeAws_restJson1ScannedItemCount(output.scannedItemCount, context)
|
|
6273
|
+
: undefined,
|
|
6274
|
+
ThreatDetectedByName: output.threatDetectedByName != null
|
|
6275
|
+
? deserializeAws_restJson1ThreatDetectedByName(output.threatDetectedByName, context)
|
|
6276
|
+
: undefined,
|
|
6277
|
+
ThreatsDetectedItemCount: output.threatsDetectedItemCount != null
|
|
6278
|
+
? deserializeAws_restJson1ThreatsDetectedItemCount(output.threatsDetectedItemCount, context)
|
|
6279
|
+
: undefined,
|
|
6280
|
+
};
|
|
6281
|
+
};
|
|
6282
|
+
const deserializeAws_restJson1ScanEc2InstanceWithFindingsResult = (output, context) => {
|
|
6283
|
+
return {
|
|
6284
|
+
EbsVolumes: output.ebsVolumes != null ? deserializeAws_restJson1EbsVolumesResult(output.ebsVolumes, context) : undefined,
|
|
6285
|
+
};
|
|
6286
|
+
};
|
|
6287
|
+
const deserializeAws_restJson1ScanFilePath = (output, context) => {
|
|
6288
|
+
return {
|
|
6289
|
+
FileName: (0, smithy_client_1.expectString)(output.fileName),
|
|
6290
|
+
FilePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
6291
|
+
Hash: (0, smithy_client_1.expectString)(output.hash),
|
|
6292
|
+
VolumeArn: (0, smithy_client_1.expectString)(output.volumeArn),
|
|
6293
|
+
};
|
|
6294
|
+
};
|
|
6295
|
+
const deserializeAws_restJson1ScannedItemCount = (output, context) => {
|
|
6296
|
+
return {
|
|
6297
|
+
Files: (0, smithy_client_1.expectInt32)(output.files),
|
|
6298
|
+
TotalGb: (0, smithy_client_1.expectInt32)(output.totalGb),
|
|
6299
|
+
Volumes: (0, smithy_client_1.expectInt32)(output.volumes),
|
|
6300
|
+
};
|
|
6301
|
+
};
|
|
6302
|
+
const deserializeAws_restJson1ScanResourceCriteria = (output, context) => {
|
|
6303
|
+
return {
|
|
6304
|
+
Exclude: output.exclude != null ? deserializeAws_restJson1ScanCriterion(output.exclude, context) : undefined,
|
|
6305
|
+
Include: output.include != null ? deserializeAws_restJson1ScanCriterion(output.include, context) : undefined,
|
|
6306
|
+
};
|
|
6307
|
+
};
|
|
6308
|
+
const deserializeAws_restJson1ScanResultDetails = (output, context) => {
|
|
6309
|
+
return {
|
|
6310
|
+
ScanResult: (0, smithy_client_1.expectString)(output.scanResult),
|
|
6311
|
+
};
|
|
6312
|
+
};
|
|
6313
|
+
const deserializeAws_restJson1Scans = (output, context) => {
|
|
6314
|
+
const retVal = (output || [])
|
|
6315
|
+
.filter((e) => e != null)
|
|
6316
|
+
.map((entry) => {
|
|
6317
|
+
if (entry === null) {
|
|
6318
|
+
return null;
|
|
6319
|
+
}
|
|
6320
|
+
return deserializeAws_restJson1Scan(entry, context);
|
|
6321
|
+
});
|
|
6322
|
+
return retVal;
|
|
6323
|
+
};
|
|
6324
|
+
const deserializeAws_restJson1ScanThreatName = (output, context) => {
|
|
6325
|
+
return {
|
|
6326
|
+
FilePaths: output.filePaths != null ? deserializeAws_restJson1FilePaths(output.filePaths, context) : undefined,
|
|
6327
|
+
ItemCount: (0, smithy_client_1.expectInt32)(output.itemCount),
|
|
6328
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
6329
|
+
Severity: (0, smithy_client_1.expectString)(output.severity),
|
|
6330
|
+
};
|
|
6331
|
+
};
|
|
6332
|
+
const deserializeAws_restJson1ScanThreatNames = (output, context) => {
|
|
6333
|
+
const retVal = (output || [])
|
|
6334
|
+
.filter((e) => e != null)
|
|
6335
|
+
.map((entry) => {
|
|
6336
|
+
if (entry === null) {
|
|
6337
|
+
return null;
|
|
6338
|
+
}
|
|
6339
|
+
return deserializeAws_restJson1ScanThreatName(entry, context);
|
|
6340
|
+
});
|
|
6341
|
+
return retVal;
|
|
6342
|
+
};
|
|
5739
6343
|
const deserializeAws_restJson1SecurityContext = (output, context) => {
|
|
5740
6344
|
return {
|
|
5741
6345
|
Privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
|
|
@@ -5767,9 +6371,13 @@ const deserializeAws_restJson1Service = (output, context) => {
|
|
|
5767
6371
|
Archived: (0, smithy_client_1.expectBoolean)(output.archived),
|
|
5768
6372
|
Count: (0, smithy_client_1.expectInt32)(output.count),
|
|
5769
6373
|
DetectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
6374
|
+
EbsVolumeScanDetails: output.ebsVolumeScanDetails != null
|
|
6375
|
+
? deserializeAws_restJson1EbsVolumeScanDetails(output.ebsVolumeScanDetails, context)
|
|
6376
|
+
: undefined,
|
|
5770
6377
|
EventFirstSeen: (0, smithy_client_1.expectString)(output.eventFirstSeen),
|
|
5771
6378
|
EventLastSeen: (0, smithy_client_1.expectString)(output.eventLastSeen),
|
|
5772
6379
|
Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
|
|
6380
|
+
FeatureName: (0, smithy_client_1.expectString)(output.featureName),
|
|
5773
6381
|
ResourceRole: (0, smithy_client_1.expectString)(output.resourceRole),
|
|
5774
6382
|
ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
5775
6383
|
UserFeedback: (0, smithy_client_1.expectString)(output.userFeedback),
|
|
@@ -5792,6 +6400,17 @@ const deserializeAws_restJson1SourceIps = (output, context) => {
|
|
|
5792
6400
|
});
|
|
5793
6401
|
return retVal;
|
|
5794
6402
|
};
|
|
6403
|
+
const deserializeAws_restJson1Sources = (output, context) => {
|
|
6404
|
+
const retVal = (output || [])
|
|
6405
|
+
.filter((e) => e != null)
|
|
6406
|
+
.map((entry) => {
|
|
6407
|
+
if (entry === null) {
|
|
6408
|
+
return null;
|
|
6409
|
+
}
|
|
6410
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
6411
|
+
});
|
|
6412
|
+
return retVal;
|
|
6413
|
+
};
|
|
5795
6414
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
5796
6415
|
return {
|
|
5797
6416
|
Key: (0, smithy_client_1.expectString)(output.key),
|
|
@@ -5820,6 +6439,14 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
5820
6439
|
});
|
|
5821
6440
|
return retVal;
|
|
5822
6441
|
};
|
|
6442
|
+
const deserializeAws_restJson1ThreatDetectedByName = (output, context) => {
|
|
6443
|
+
return {
|
|
6444
|
+
ItemCount: (0, smithy_client_1.expectInt32)(output.itemCount),
|
|
6445
|
+
Shortened: (0, smithy_client_1.expectBoolean)(output.shortened),
|
|
6446
|
+
ThreatNames: output.threatNames != null ? deserializeAws_restJson1ScanThreatNames(output.threatNames, context) : undefined,
|
|
6447
|
+
UniqueThreatNameCount: (0, smithy_client_1.expectInt32)(output.uniqueThreatNameCount),
|
|
6448
|
+
};
|
|
6449
|
+
};
|
|
5823
6450
|
const deserializeAws_restJson1ThreatIntelligenceDetail = (output, context) => {
|
|
5824
6451
|
return {
|
|
5825
6452
|
ThreatListName: (0, smithy_client_1.expectString)(output.threatListName),
|
|
@@ -5859,12 +6486,23 @@ const deserializeAws_restJson1ThreatNames = (output, context) => {
|
|
|
5859
6486
|
});
|
|
5860
6487
|
return retVal;
|
|
5861
6488
|
};
|
|
6489
|
+
const deserializeAws_restJson1ThreatsDetectedItemCount = (output, context) => {
|
|
6490
|
+
return {
|
|
6491
|
+
Files: (0, smithy_client_1.expectInt32)(output.files),
|
|
6492
|
+
};
|
|
6493
|
+
};
|
|
5862
6494
|
const deserializeAws_restJson1Total = (output, context) => {
|
|
5863
6495
|
return {
|
|
5864
6496
|
Amount: (0, smithy_client_1.expectString)(output.amount),
|
|
5865
6497
|
Unit: (0, smithy_client_1.expectString)(output.unit),
|
|
5866
6498
|
};
|
|
5867
6499
|
};
|
|
6500
|
+
const deserializeAws_restJson1TriggerDetails = (output, context) => {
|
|
6501
|
+
return {
|
|
6502
|
+
Description: (0, smithy_client_1.expectString)(output.description),
|
|
6503
|
+
GuardDutyFindingId: (0, smithy_client_1.expectString)(output.guardDutyFindingId),
|
|
6504
|
+
};
|
|
6505
|
+
};
|
|
5868
6506
|
const deserializeAws_restJson1UnprocessedAccount = (output, context) => {
|
|
5869
6507
|
return {
|
|
5870
6508
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
@@ -5955,6 +6593,28 @@ const deserializeAws_restJson1Volume = (output, context) => {
|
|
|
5955
6593
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5956
6594
|
};
|
|
5957
6595
|
};
|
|
6596
|
+
const deserializeAws_restJson1VolumeDetail = (output, context) => {
|
|
6597
|
+
return {
|
|
6598
|
+
DeviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
6599
|
+
EncryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|
|
6600
|
+
KmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
6601
|
+
SnapshotArn: (0, smithy_client_1.expectString)(output.snapshotArn),
|
|
6602
|
+
VolumeArn: (0, smithy_client_1.expectString)(output.volumeArn),
|
|
6603
|
+
VolumeSizeInGB: (0, smithy_client_1.expectInt32)(output.volumeSizeInGB),
|
|
6604
|
+
VolumeType: (0, smithy_client_1.expectString)(output.volumeType),
|
|
6605
|
+
};
|
|
6606
|
+
};
|
|
6607
|
+
const deserializeAws_restJson1VolumeDetails = (output, context) => {
|
|
6608
|
+
const retVal = (output || [])
|
|
6609
|
+
.filter((e) => e != null)
|
|
6610
|
+
.map((entry) => {
|
|
6611
|
+
if (entry === null) {
|
|
6612
|
+
return null;
|
|
6613
|
+
}
|
|
6614
|
+
return deserializeAws_restJson1VolumeDetail(entry, context);
|
|
6615
|
+
});
|
|
6616
|
+
return retVal;
|
|
6617
|
+
};
|
|
5958
6618
|
const deserializeAws_restJson1VolumeMount = (output, context) => {
|
|
5959
6619
|
return {
|
|
5960
6620
|
MountPath: (0, smithy_client_1.expectString)(output.mountPath),
|
|
@@ -6014,6 +6674,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6014
6674
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6015
6675
|
const sanitizeErrorCode = (rawValue) => {
|
|
6016
6676
|
let cleanValue = rawValue;
|
|
6677
|
+
if (typeof cleanValue === "number") {
|
|
6678
|
+
cleanValue = cleanValue.toString();
|
|
6679
|
+
}
|
|
6017
6680
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6018
6681
|
cleanValue = cleanValue.split(":")[0];
|
|
6019
6682
|
}
|