@aws-sdk/client-guardduty 3.301.0 → 3.303.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/README.md +25 -10
- package/dist-cjs/GuardDuty.js +30 -0
- package/dist-cjs/commands/GetCoverageStatisticsCommand.js +45 -0
- package/dist-cjs/commands/ListCoverageCommand.js +45 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +205 -198
- package/dist-cjs/pagination/ListCoveragePaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +462 -3
- package/dist-es/GuardDuty.js +30 -0
- package/dist-es/commands/GetCoverageStatisticsCommand.js +41 -0
- package/dist-es/commands/ListCoverageCommand.js +41 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +204 -197
- package/dist-es/pagination/ListCoveragePaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +455 -0
- package/dist-types/GuardDuty.d.ts +75 -47
- package/dist-types/GuardDutyClient.d.ts +13 -12
- package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +2 -1
- package/dist-types/commands/ArchiveFindingsCommand.d.ts +2 -2
- package/dist-types/commands/CreateDetectorCommand.d.ts +7 -1
- package/dist-types/commands/CreateMembersCommand.d.ts +3 -3
- package/dist-types/commands/CreateThreatIntelSetCommand.d.ts +2 -2
- package/dist-types/commands/DeclineInvitationsCommand.d.ts +2 -2
- package/dist-types/commands/DeleteInvitationsCommand.d.ts +2 -2
- package/dist-types/commands/DeleteMembersCommand.d.ts +5 -4
- package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +3 -2
- package/dist-types/commands/DisassociateMembersCommand.d.ts +5 -3
- package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +90 -0
- package/dist-types/commands/GetMembersCommand.d.ts +2 -2
- package/dist-types/commands/GetRemainingFreeTrialDaysCommand.d.ts +2 -1
- package/dist-types/commands/InviteMembersCommand.d.ts +2 -2
- package/dist-types/commands/ListCoverageCommand.d.ts +93 -0
- package/dist-types/commands/ListIPSetsCommand.d.ts +2 -2
- package/dist-types/commands/ListMembersCommand.d.ts +2 -1
- package/dist-types/commands/ListThreatIntelSetsCommand.d.ts +2 -2
- package/dist-types/commands/StartMonitoringMembersCommand.d.ts +1 -2
- package/dist-types/commands/StopMonitoringMembersCommand.d.ts +3 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDetectorCommand.d.ts +8 -2
- package/dist-types/commands/UpdateFilterCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateIPSetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMemberDetectorsCommand.d.ts +8 -2
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -4
- package/dist-types/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThreatIntelSetCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1105 -691
- package/dist-types/models/models_1.d.ts +472 -0
- package/dist-types/pagination/ListCoveragePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/GuardDuty.d.ts +34 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetCoverageStatisticsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDetectorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMemberDetectorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateThreatIntelSetCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +396 -272
- package/dist-types/ts3.4/models/models_1.d.ts +133 -0
- package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +34 -34
|
@@ -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_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;
|
|
3
|
+
exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListIPSetsCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListFiltersCommand = exports.serializeAws_restJson1ListDetectorsCommand = exports.serializeAws_restJson1ListCoverageCommand = 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_restJson1GetCoverageStatisticsCommand = 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_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetFindingsStatisticsCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetFilterCommand = exports.deserializeAws_restJson1GetDetectorCommand = exports.deserializeAws_restJson1GetCoverageStatisticsCommand = 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 = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListPublishingDestinationsCommand = 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_restJson1ListCoverageCommand = exports.deserializeAws_restJson1InviteMembersCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetThreatIntelSetCommand = exports.deserializeAws_restJson1GetRemainingFreeTrialDaysCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1GetMemberDetectorsCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMalwareScanSettingsCommand = exports.deserializeAws_restJson1GetIPSetCommand = 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");
|
|
@@ -609,6 +609,34 @@ const serializeAws_restJson1GetAdministratorAccountCommand = async (input, conte
|
|
|
609
609
|
});
|
|
610
610
|
};
|
|
611
611
|
exports.serializeAws_restJson1GetAdministratorAccountCommand = serializeAws_restJson1GetAdministratorAccountCommand;
|
|
612
|
+
const serializeAws_restJson1GetCoverageStatisticsCommand = async (input, context) => {
|
|
613
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
614
|
+
const headers = {
|
|
615
|
+
"content-type": "application/json",
|
|
616
|
+
};
|
|
617
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
618
|
+
"/detector/{DetectorId}/coverage/statistics";
|
|
619
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
620
|
+
let body;
|
|
621
|
+
body = JSON.stringify({
|
|
622
|
+
...(input.FilterCriteria != null && {
|
|
623
|
+
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.FilterCriteria, context),
|
|
624
|
+
}),
|
|
625
|
+
...(input.StatisticsType != null && {
|
|
626
|
+
statisticsType: serializeAws_restJson1CoverageStatisticsTypeList(input.StatisticsType, context),
|
|
627
|
+
}),
|
|
628
|
+
});
|
|
629
|
+
return new protocol_http_1.HttpRequest({
|
|
630
|
+
protocol,
|
|
631
|
+
hostname,
|
|
632
|
+
port,
|
|
633
|
+
method: "POST",
|
|
634
|
+
headers,
|
|
635
|
+
path: resolvedPath,
|
|
636
|
+
body,
|
|
637
|
+
});
|
|
638
|
+
};
|
|
639
|
+
exports.serializeAws_restJson1GetCoverageStatisticsCommand = serializeAws_restJson1GetCoverageStatisticsCommand;
|
|
612
640
|
const serializeAws_restJson1GetDetectorCommand = async (input, context) => {
|
|
613
641
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
614
642
|
const headers = {};
|
|
@@ -909,6 +937,35 @@ const serializeAws_restJson1InviteMembersCommand = async (input, context) => {
|
|
|
909
937
|
});
|
|
910
938
|
};
|
|
911
939
|
exports.serializeAws_restJson1InviteMembersCommand = serializeAws_restJson1InviteMembersCommand;
|
|
940
|
+
const serializeAws_restJson1ListCoverageCommand = async (input, context) => {
|
|
941
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
942
|
+
const headers = {
|
|
943
|
+
"content-type": "application/json",
|
|
944
|
+
};
|
|
945
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/coverage";
|
|
946
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
|
|
947
|
+
let body;
|
|
948
|
+
body = JSON.stringify({
|
|
949
|
+
...(input.FilterCriteria != null && {
|
|
950
|
+
filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.FilterCriteria, context),
|
|
951
|
+
}),
|
|
952
|
+
...(input.MaxResults != null && { maxResults: input.MaxResults }),
|
|
953
|
+
...(input.NextToken != null && { nextToken: input.NextToken }),
|
|
954
|
+
...(input.SortCriteria != null && {
|
|
955
|
+
sortCriteria: serializeAws_restJson1CoverageSortCriteria(input.SortCriteria, context),
|
|
956
|
+
}),
|
|
957
|
+
});
|
|
958
|
+
return new protocol_http_1.HttpRequest({
|
|
959
|
+
protocol,
|
|
960
|
+
hostname,
|
|
961
|
+
port,
|
|
962
|
+
method: "POST",
|
|
963
|
+
headers,
|
|
964
|
+
path: resolvedPath,
|
|
965
|
+
body,
|
|
966
|
+
});
|
|
967
|
+
};
|
|
968
|
+
exports.serializeAws_restJson1ListCoverageCommand = serializeAws_restJson1ListCoverageCommand;
|
|
912
969
|
const serializeAws_restJson1ListDetectorsCommand = async (input, context) => {
|
|
913
970
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
971
|
const headers = {};
|
|
@@ -2480,6 +2537,43 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
|
|
|
2480
2537
|
});
|
|
2481
2538
|
}
|
|
2482
2539
|
};
|
|
2540
|
+
const deserializeAws_restJson1GetCoverageStatisticsCommand = async (output, context) => {
|
|
2541
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2542
|
+
return deserializeAws_restJson1GetCoverageStatisticsCommandError(output, context);
|
|
2543
|
+
}
|
|
2544
|
+
const contents = map({
|
|
2545
|
+
$metadata: deserializeMetadata(output),
|
|
2546
|
+
});
|
|
2547
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2548
|
+
if (data.coverageStatistics != null) {
|
|
2549
|
+
contents.CoverageStatistics = deserializeAws_restJson1CoverageStatistics(data.coverageStatistics, context);
|
|
2550
|
+
}
|
|
2551
|
+
return contents;
|
|
2552
|
+
};
|
|
2553
|
+
exports.deserializeAws_restJson1GetCoverageStatisticsCommand = deserializeAws_restJson1GetCoverageStatisticsCommand;
|
|
2554
|
+
const deserializeAws_restJson1GetCoverageStatisticsCommandError = async (output, context) => {
|
|
2555
|
+
const parsedOutput = {
|
|
2556
|
+
...output,
|
|
2557
|
+
body: await parseErrorBody(output.body, context),
|
|
2558
|
+
};
|
|
2559
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
|
+
switch (errorCode) {
|
|
2561
|
+
case "BadRequestException":
|
|
2562
|
+
case "com.amazonaws.guardduty#BadRequestException":
|
|
2563
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2564
|
+
case "InternalServerErrorException":
|
|
2565
|
+
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
2566
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
2567
|
+
default:
|
|
2568
|
+
const parsedBody = parsedOutput.body;
|
|
2569
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2570
|
+
output,
|
|
2571
|
+
parsedBody,
|
|
2572
|
+
exceptionCtor: GuardDutyServiceException_1.GuardDutyServiceException,
|
|
2573
|
+
errorCode,
|
|
2574
|
+
});
|
|
2575
|
+
}
|
|
2576
|
+
};
|
|
2483
2577
|
const deserializeAws_restJson1GetDetectorCommand = async (output, context) => {
|
|
2484
2578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2485
2579
|
return deserializeAws_restJson1GetDetectorCommandError(output, context);
|
|
@@ -3073,6 +3167,46 @@ const deserializeAws_restJson1InviteMembersCommandError = async (output, context
|
|
|
3073
3167
|
});
|
|
3074
3168
|
}
|
|
3075
3169
|
};
|
|
3170
|
+
const deserializeAws_restJson1ListCoverageCommand = async (output, context) => {
|
|
3171
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3172
|
+
return deserializeAws_restJson1ListCoverageCommandError(output, context);
|
|
3173
|
+
}
|
|
3174
|
+
const contents = map({
|
|
3175
|
+
$metadata: deserializeMetadata(output),
|
|
3176
|
+
});
|
|
3177
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3178
|
+
if (data.nextToken != null) {
|
|
3179
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
3180
|
+
}
|
|
3181
|
+
if (data.resources != null) {
|
|
3182
|
+
contents.Resources = deserializeAws_restJson1CoverageResources(data.resources, context);
|
|
3183
|
+
}
|
|
3184
|
+
return contents;
|
|
3185
|
+
};
|
|
3186
|
+
exports.deserializeAws_restJson1ListCoverageCommand = deserializeAws_restJson1ListCoverageCommand;
|
|
3187
|
+
const deserializeAws_restJson1ListCoverageCommandError = async (output, context) => {
|
|
3188
|
+
const parsedOutput = {
|
|
3189
|
+
...output,
|
|
3190
|
+
body: await parseErrorBody(output.body, context),
|
|
3191
|
+
};
|
|
3192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3193
|
+
switch (errorCode) {
|
|
3194
|
+
case "BadRequestException":
|
|
3195
|
+
case "com.amazonaws.guardduty#BadRequestException":
|
|
3196
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3197
|
+
case "InternalServerErrorException":
|
|
3198
|
+
case "com.amazonaws.guardduty#InternalServerErrorException":
|
|
3199
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
3200
|
+
default:
|
|
3201
|
+
const parsedBody = parsedOutput.body;
|
|
3202
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3203
|
+
output,
|
|
3204
|
+
parsedBody,
|
|
3205
|
+
exceptionCtor: GuardDutyServiceException_1.GuardDutyServiceException,
|
|
3206
|
+
errorCode,
|
|
3207
|
+
});
|
|
3208
|
+
}
|
|
3209
|
+
};
|
|
3076
3210
|
const deserializeAws_restJson1ListDetectorsCommand = async (output, context) => {
|
|
3077
3211
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3078
3212
|
return deserializeAws_restJson1ListDetectorsCommandError(output, context);
|
|
@@ -4025,6 +4159,47 @@ const serializeAws_restJson1Condition = (input, context) => {
|
|
|
4025
4159
|
...(input.NotEquals != null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }),
|
|
4026
4160
|
};
|
|
4027
4161
|
};
|
|
4162
|
+
const serializeAws_restJson1CoverageFilterCondition = (input, context) => {
|
|
4163
|
+
return {
|
|
4164
|
+
...(input.Equals != null && { equals: serializeAws_restJson1Equals(input.Equals, context) }),
|
|
4165
|
+
...(input.NotEquals != null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }),
|
|
4166
|
+
};
|
|
4167
|
+
};
|
|
4168
|
+
const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
|
|
4169
|
+
return {
|
|
4170
|
+
...(input.FilterCriterion != null && {
|
|
4171
|
+
filterCriterion: serializeAws_restJson1CoverageFilterCriterionList(input.FilterCriterion, context),
|
|
4172
|
+
}),
|
|
4173
|
+
};
|
|
4174
|
+
};
|
|
4175
|
+
const serializeAws_restJson1CoverageFilterCriterion = (input, context) => {
|
|
4176
|
+
return {
|
|
4177
|
+
...(input.CriterionKey != null && { criterionKey: input.CriterionKey }),
|
|
4178
|
+
...(input.FilterCondition != null && {
|
|
4179
|
+
filterCondition: serializeAws_restJson1CoverageFilterCondition(input.FilterCondition, context),
|
|
4180
|
+
}),
|
|
4181
|
+
};
|
|
4182
|
+
};
|
|
4183
|
+
const serializeAws_restJson1CoverageFilterCriterionList = (input, context) => {
|
|
4184
|
+
return input
|
|
4185
|
+
.filter((e) => e != null)
|
|
4186
|
+
.map((entry) => {
|
|
4187
|
+
return serializeAws_restJson1CoverageFilterCriterion(entry, context);
|
|
4188
|
+
});
|
|
4189
|
+
};
|
|
4190
|
+
const serializeAws_restJson1CoverageSortCriteria = (input, context) => {
|
|
4191
|
+
return {
|
|
4192
|
+
...(input.AttributeName != null && { attributeName: input.AttributeName }),
|
|
4193
|
+
...(input.OrderBy != null && { orderBy: input.OrderBy }),
|
|
4194
|
+
};
|
|
4195
|
+
};
|
|
4196
|
+
const serializeAws_restJson1CoverageStatisticsTypeList = (input, context) => {
|
|
4197
|
+
return input
|
|
4198
|
+
.filter((e) => e != null)
|
|
4199
|
+
.map((entry) => {
|
|
4200
|
+
return entry;
|
|
4201
|
+
});
|
|
4202
|
+
};
|
|
4028
4203
|
const serializeAws_restJson1Criterion = (input, context) => {
|
|
4029
4204
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4030
4205
|
if (value === null) {
|
|
@@ -4058,8 +4233,24 @@ const serializeAws_restJson1DestinationProperties = (input, context) => {
|
|
|
4058
4233
|
...(input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }),
|
|
4059
4234
|
};
|
|
4060
4235
|
};
|
|
4236
|
+
const serializeAws_restJson1DetectorAdditionalConfiguration = (input, context) => {
|
|
4237
|
+
return {
|
|
4238
|
+
...(input.Name != null && { name: input.Name }),
|
|
4239
|
+
...(input.Status != null && { status: input.Status }),
|
|
4240
|
+
};
|
|
4241
|
+
};
|
|
4242
|
+
const serializeAws_restJson1DetectorAdditionalConfigurations = (input, context) => {
|
|
4243
|
+
return input
|
|
4244
|
+
.filter((e) => e != null)
|
|
4245
|
+
.map((entry) => {
|
|
4246
|
+
return serializeAws_restJson1DetectorAdditionalConfiguration(entry, context);
|
|
4247
|
+
});
|
|
4248
|
+
};
|
|
4061
4249
|
const serializeAws_restJson1DetectorFeatureConfiguration = (input, context) => {
|
|
4062
4250
|
return {
|
|
4251
|
+
...(input.AdditionalConfiguration != null && {
|
|
4252
|
+
additionalConfiguration: serializeAws_restJson1DetectorAdditionalConfigurations(input.AdditionalConfiguration, context),
|
|
4253
|
+
}),
|
|
4063
4254
|
...(input.Name != null && { name: input.Name }),
|
|
4064
4255
|
...(input.Status != null && { status: input.Status }),
|
|
4065
4256
|
};
|
|
@@ -4166,8 +4357,24 @@ const serializeAws_restJson1MapEquals = (input, context) => {
|
|
|
4166
4357
|
return serializeAws_restJson1ScanConditionPair(entry, context);
|
|
4167
4358
|
});
|
|
4168
4359
|
};
|
|
4360
|
+
const serializeAws_restJson1MemberAdditionalConfiguration = (input, context) => {
|
|
4361
|
+
return {
|
|
4362
|
+
...(input.Name != null && { name: input.Name }),
|
|
4363
|
+
...(input.Status != null && { status: input.Status }),
|
|
4364
|
+
};
|
|
4365
|
+
};
|
|
4366
|
+
const serializeAws_restJson1MemberAdditionalConfigurations = (input, context) => {
|
|
4367
|
+
return input
|
|
4368
|
+
.filter((e) => e != null)
|
|
4369
|
+
.map((entry) => {
|
|
4370
|
+
return serializeAws_restJson1MemberAdditionalConfiguration(entry, context);
|
|
4371
|
+
});
|
|
4372
|
+
};
|
|
4169
4373
|
const serializeAws_restJson1MemberFeaturesConfiguration = (input, context) => {
|
|
4170
4374
|
return {
|
|
4375
|
+
...(input.AdditionalConfiguration != null && {
|
|
4376
|
+
additionalConfiguration: serializeAws_restJson1MemberAdditionalConfigurations(input.AdditionalConfiguration, context),
|
|
4377
|
+
}),
|
|
4171
4378
|
...(input.Name != null && { name: input.Name }),
|
|
4172
4379
|
...(input.Status != null && { status: input.Status }),
|
|
4173
4380
|
};
|
|
@@ -4193,6 +4400,19 @@ const serializeAws_restJson1NotEquals = (input, context) => {
|
|
|
4193
4400
|
return entry;
|
|
4194
4401
|
});
|
|
4195
4402
|
};
|
|
4403
|
+
const serializeAws_restJson1OrganizationAdditionalConfiguration = (input, context) => {
|
|
4404
|
+
return {
|
|
4405
|
+
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4406
|
+
...(input.Name != null && { name: input.Name }),
|
|
4407
|
+
};
|
|
4408
|
+
};
|
|
4409
|
+
const serializeAws_restJson1OrganizationAdditionalConfigurations = (input, context) => {
|
|
4410
|
+
return input
|
|
4411
|
+
.filter((e) => e != null)
|
|
4412
|
+
.map((entry) => {
|
|
4413
|
+
return serializeAws_restJson1OrganizationAdditionalConfiguration(entry, context);
|
|
4414
|
+
});
|
|
4415
|
+
};
|
|
4196
4416
|
const serializeAws_restJson1OrganizationDataSourceConfigurations = (input, context) => {
|
|
4197
4417
|
return {
|
|
4198
4418
|
...(input.Kubernetes != null && {
|
|
@@ -4213,6 +4433,9 @@ const serializeAws_restJson1OrganizationEbsVolumes = (input, context) => {
|
|
|
4213
4433
|
};
|
|
4214
4434
|
const serializeAws_restJson1OrganizationFeatureConfiguration = (input, context) => {
|
|
4215
4435
|
return {
|
|
4436
|
+
...(input.AdditionalConfiguration != null && {
|
|
4437
|
+
additionalConfiguration: serializeAws_restJson1OrganizationAdditionalConfigurations(input.AdditionalConfiguration, context),
|
|
4438
|
+
}),
|
|
4216
4439
|
...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
|
|
4217
4440
|
...(input.Name != null && { name: input.Name }),
|
|
4218
4441
|
};
|
|
@@ -4394,6 +4617,12 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
4394
4617
|
: undefined,
|
|
4395
4618
|
};
|
|
4396
4619
|
};
|
|
4620
|
+
const deserializeAws_restJson1AddonDetails = (output, context) => {
|
|
4621
|
+
return {
|
|
4622
|
+
AddonStatus: (0, smithy_client_1.expectString)(output.addonStatus),
|
|
4623
|
+
AddonVersion: (0, smithy_client_1.expectString)(output.addonVersion),
|
|
4624
|
+
};
|
|
4625
|
+
};
|
|
4397
4626
|
const deserializeAws_restJson1AdminAccount = (output, context) => {
|
|
4398
4627
|
return {
|
|
4399
4628
|
AdminAccountId: (0, smithy_client_1.expectString)(output.adminAccountId),
|
|
@@ -4522,6 +4751,24 @@ const deserializeAws_restJson1Containers = (output, context) => {
|
|
|
4522
4751
|
});
|
|
4523
4752
|
return retVal;
|
|
4524
4753
|
};
|
|
4754
|
+
const deserializeAws_restJson1CountByCoverageStatus = (output, context) => {
|
|
4755
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4756
|
+
if (value === null) {
|
|
4757
|
+
return acc;
|
|
4758
|
+
}
|
|
4759
|
+
acc[key] = (0, smithy_client_1.expectLong)(value);
|
|
4760
|
+
return acc;
|
|
4761
|
+
}, {});
|
|
4762
|
+
};
|
|
4763
|
+
const deserializeAws_restJson1CountByResourceType = (output, context) => {
|
|
4764
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4765
|
+
if (value === null) {
|
|
4766
|
+
return acc;
|
|
4767
|
+
}
|
|
4768
|
+
acc[key] = (0, smithy_client_1.expectLong)(value);
|
|
4769
|
+
return acc;
|
|
4770
|
+
}, {});
|
|
4771
|
+
};
|
|
4525
4772
|
const deserializeAws_restJson1CountBySeverity = (output, context) => {
|
|
4526
4773
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4527
4774
|
if (value === null) {
|
|
@@ -4537,6 +4784,56 @@ const deserializeAws_restJson1Country = (output, context) => {
|
|
|
4537
4784
|
CountryName: (0, smithy_client_1.expectString)(output.countryName),
|
|
4538
4785
|
};
|
|
4539
4786
|
};
|
|
4787
|
+
const deserializeAws_restJson1CoverageEksClusterDetails = (output, context) => {
|
|
4788
|
+
return {
|
|
4789
|
+
AddonDetails: output.addonDetails != null ? deserializeAws_restJson1AddonDetails(output.addonDetails, context) : undefined,
|
|
4790
|
+
ClusterName: (0, smithy_client_1.expectString)(output.clusterName),
|
|
4791
|
+
CompatibleNodes: (0, smithy_client_1.expectLong)(output.compatibleNodes),
|
|
4792
|
+
CoveredNodes: (0, smithy_client_1.expectLong)(output.coveredNodes),
|
|
4793
|
+
};
|
|
4794
|
+
};
|
|
4795
|
+
const deserializeAws_restJson1CoverageResource = (output, context) => {
|
|
4796
|
+
return {
|
|
4797
|
+
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
4798
|
+
CoverageStatus: (0, smithy_client_1.expectString)(output.coverageStatus),
|
|
4799
|
+
DetectorId: (0, smithy_client_1.expectString)(output.detectorId),
|
|
4800
|
+
Issue: (0, smithy_client_1.expectString)(output.issue),
|
|
4801
|
+
ResourceDetails: output.resourceDetails != null
|
|
4802
|
+
? deserializeAws_restJson1CoverageResourceDetails(output.resourceDetails, context)
|
|
4803
|
+
: undefined,
|
|
4804
|
+
ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
4805
|
+
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
const deserializeAws_restJson1CoverageResourceDetails = (output, context) => {
|
|
4809
|
+
return {
|
|
4810
|
+
EksClusterDetails: output.eksClusterDetails != null
|
|
4811
|
+
? deserializeAws_restJson1CoverageEksClusterDetails(output.eksClusterDetails, context)
|
|
4812
|
+
: undefined,
|
|
4813
|
+
ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
4814
|
+
};
|
|
4815
|
+
};
|
|
4816
|
+
const deserializeAws_restJson1CoverageResources = (output, context) => {
|
|
4817
|
+
const retVal = (output || [])
|
|
4818
|
+
.filter((e) => e != null)
|
|
4819
|
+
.map((entry) => {
|
|
4820
|
+
if (entry === null) {
|
|
4821
|
+
return null;
|
|
4822
|
+
}
|
|
4823
|
+
return deserializeAws_restJson1CoverageResource(entry, context);
|
|
4824
|
+
});
|
|
4825
|
+
return retVal;
|
|
4826
|
+
};
|
|
4827
|
+
const deserializeAws_restJson1CoverageStatistics = (output, context) => {
|
|
4828
|
+
return {
|
|
4829
|
+
CountByCoverageStatus: output.countByCoverageStatus != null
|
|
4830
|
+
? deserializeAws_restJson1CountByCoverageStatus(output.countByCoverageStatus, context)
|
|
4831
|
+
: undefined,
|
|
4832
|
+
CountByResourceType: output.countByResourceType != null
|
|
4833
|
+
? deserializeAws_restJson1CountByResourceType(output.countByResourceType, context)
|
|
4834
|
+
: undefined,
|
|
4835
|
+
};
|
|
4836
|
+
};
|
|
4540
4837
|
const deserializeAws_restJson1Criterion = (output, context) => {
|
|
4541
4838
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4542
4839
|
if (value === null) {
|
|
@@ -4613,8 +4910,29 @@ const deserializeAws_restJson1Destinations = (output, context) => {
|
|
|
4613
4910
|
});
|
|
4614
4911
|
return retVal;
|
|
4615
4912
|
};
|
|
4913
|
+
const deserializeAws_restJson1DetectorAdditionalConfigurationResult = (output, context) => {
|
|
4914
|
+
return {
|
|
4915
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4916
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
4917
|
+
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
4918
|
+
};
|
|
4919
|
+
};
|
|
4920
|
+
const deserializeAws_restJson1DetectorAdditionalConfigurationResults = (output, context) => {
|
|
4921
|
+
const retVal = (output || [])
|
|
4922
|
+
.filter((e) => e != null)
|
|
4923
|
+
.map((entry) => {
|
|
4924
|
+
if (entry === null) {
|
|
4925
|
+
return null;
|
|
4926
|
+
}
|
|
4927
|
+
return deserializeAws_restJson1DetectorAdditionalConfigurationResult(entry, context);
|
|
4928
|
+
});
|
|
4929
|
+
return retVal;
|
|
4930
|
+
};
|
|
4616
4931
|
const deserializeAws_restJson1DetectorFeatureConfigurationResult = (output, context) => {
|
|
4617
4932
|
return {
|
|
4933
|
+
AdditionalConfiguration: output.additionalConfiguration != null
|
|
4934
|
+
? deserializeAws_restJson1DetectorAdditionalConfigurationResults(output.additionalConfiguration, context)
|
|
4935
|
+
: undefined,
|
|
4618
4936
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4619
4937
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
4620
4938
|
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
@@ -4831,6 +5149,17 @@ const deserializeAws_restJson1FindingStatistics = (output, context) => {
|
|
|
4831
5149
|
: undefined,
|
|
4832
5150
|
};
|
|
4833
5151
|
};
|
|
5152
|
+
const deserializeAws_restJson1FlagsList = (output, context) => {
|
|
5153
|
+
const retVal = (output || [])
|
|
5154
|
+
.filter((e) => e != null)
|
|
5155
|
+
.map((entry) => {
|
|
5156
|
+
if (entry === null) {
|
|
5157
|
+
return null;
|
|
5158
|
+
}
|
|
5159
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5160
|
+
});
|
|
5161
|
+
return retVal;
|
|
5162
|
+
};
|
|
4834
5163
|
const deserializeAws_restJson1FlowLogsConfigurationResult = (output, context) => {
|
|
4835
5164
|
return {
|
|
4836
5165
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -5008,6 +5337,30 @@ const deserializeAws_restJson1KubernetesWorkloadDetails = (output, context) => {
|
|
|
5008
5337
|
Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
5009
5338
|
};
|
|
5010
5339
|
};
|
|
5340
|
+
const deserializeAws_restJson1Lineage = (output, context) => {
|
|
5341
|
+
const retVal = (output || [])
|
|
5342
|
+
.filter((e) => e != null)
|
|
5343
|
+
.map((entry) => {
|
|
5344
|
+
if (entry === null) {
|
|
5345
|
+
return null;
|
|
5346
|
+
}
|
|
5347
|
+
return deserializeAws_restJson1LineageObject(entry, context);
|
|
5348
|
+
});
|
|
5349
|
+
return retVal;
|
|
5350
|
+
};
|
|
5351
|
+
const deserializeAws_restJson1LineageObject = (output, context) => {
|
|
5352
|
+
return {
|
|
5353
|
+
Euid: (0, smithy_client_1.expectInt32)(output.euid),
|
|
5354
|
+
ExecutablePath: (0, smithy_client_1.expectString)(output.executablePath),
|
|
5355
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5356
|
+
NamespacePid: (0, smithy_client_1.expectInt32)(output.namespacePid),
|
|
5357
|
+
ParentUuid: (0, smithy_client_1.expectString)(output.parentUuid),
|
|
5358
|
+
Pid: (0, smithy_client_1.expectInt32)(output.pid),
|
|
5359
|
+
StartTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
5360
|
+
UserId: (0, smithy_client_1.expectInt32)(output.userId),
|
|
5361
|
+
Uuid: (0, smithy_client_1.expectString)(output.uuid),
|
|
5362
|
+
};
|
|
5363
|
+
};
|
|
5011
5364
|
const deserializeAws_restJson1LocalIpDetails = (output, context) => {
|
|
5012
5365
|
return {
|
|
5013
5366
|
IpAddressV4: (0, smithy_client_1.expectString)(output.ipAddressV4),
|
|
@@ -5084,6 +5437,24 @@ const deserializeAws_restJson1Member = (output, context) => {
|
|
|
5084
5437
|
UpdatedAt: (0, smithy_client_1.expectString)(output.updatedAt),
|
|
5085
5438
|
};
|
|
5086
5439
|
};
|
|
5440
|
+
const deserializeAws_restJson1MemberAdditionalConfigurationResult = (output, context) => {
|
|
5441
|
+
return {
|
|
5442
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5443
|
+
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5444
|
+
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
5445
|
+
};
|
|
5446
|
+
};
|
|
5447
|
+
const deserializeAws_restJson1MemberAdditionalConfigurationResults = (output, context) => {
|
|
5448
|
+
const retVal = (output || [])
|
|
5449
|
+
.filter((e) => e != null)
|
|
5450
|
+
.map((entry) => {
|
|
5451
|
+
if (entry === null) {
|
|
5452
|
+
return null;
|
|
5453
|
+
}
|
|
5454
|
+
return deserializeAws_restJson1MemberAdditionalConfigurationResult(entry, context);
|
|
5455
|
+
});
|
|
5456
|
+
return retVal;
|
|
5457
|
+
};
|
|
5087
5458
|
const deserializeAws_restJson1MemberDataSourceConfiguration = (output, context) => {
|
|
5088
5459
|
return {
|
|
5089
5460
|
AccountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
@@ -5108,6 +5479,9 @@ const deserializeAws_restJson1MemberDataSourceConfigurations = (output, context)
|
|
|
5108
5479
|
};
|
|
5109
5480
|
const deserializeAws_restJson1MemberFeaturesConfigurationResult = (output, context) => {
|
|
5110
5481
|
return {
|
|
5482
|
+
AdditionalConfiguration: output.additionalConfiguration != null
|
|
5483
|
+
? deserializeAws_restJson1MemberAdditionalConfigurationResults(output.additionalConfiguration, context)
|
|
5484
|
+
: undefined,
|
|
5111
5485
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5112
5486
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
5113
5487
|
UpdatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
@@ -5135,6 +5509,17 @@ const deserializeAws_restJson1Members = (output, context) => {
|
|
|
5135
5509
|
});
|
|
5136
5510
|
return retVal;
|
|
5137
5511
|
};
|
|
5512
|
+
const deserializeAws_restJson1MemoryRegionsList = (output, context) => {
|
|
5513
|
+
const retVal = (output || [])
|
|
5514
|
+
.filter((e) => e != null)
|
|
5515
|
+
.map((entry) => {
|
|
5516
|
+
if (entry === null) {
|
|
5517
|
+
return null;
|
|
5518
|
+
}
|
|
5519
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5520
|
+
});
|
|
5521
|
+
return retVal;
|
|
5522
|
+
};
|
|
5138
5523
|
const deserializeAws_restJson1Neq = (output, context) => {
|
|
5139
5524
|
const retVal = (output || [])
|
|
5140
5525
|
.filter((e) => e != null)
|
|
@@ -5213,6 +5598,23 @@ const deserializeAws_restJson1Organization = (output, context) => {
|
|
|
5213
5598
|
Org: (0, smithy_client_1.expectString)(output.org),
|
|
5214
5599
|
};
|
|
5215
5600
|
};
|
|
5601
|
+
const deserializeAws_restJson1OrganizationAdditionalConfigurationResult = (output, context) => {
|
|
5602
|
+
return {
|
|
5603
|
+
AutoEnable: (0, smithy_client_1.expectString)(output.autoEnable),
|
|
5604
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5605
|
+
};
|
|
5606
|
+
};
|
|
5607
|
+
const deserializeAws_restJson1OrganizationAdditionalConfigurationResults = (output, context) => {
|
|
5608
|
+
const retVal = (output || [])
|
|
5609
|
+
.filter((e) => e != null)
|
|
5610
|
+
.map((entry) => {
|
|
5611
|
+
if (entry === null) {
|
|
5612
|
+
return null;
|
|
5613
|
+
}
|
|
5614
|
+
return deserializeAws_restJson1OrganizationAdditionalConfigurationResult(entry, context);
|
|
5615
|
+
});
|
|
5616
|
+
return retVal;
|
|
5617
|
+
};
|
|
5216
5618
|
const deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = (output, context) => {
|
|
5217
5619
|
return {
|
|
5218
5620
|
Kubernetes: output.kubernetes != null
|
|
@@ -5233,6 +5635,9 @@ const deserializeAws_restJson1OrganizationEbsVolumesResult = (output, context) =
|
|
|
5233
5635
|
};
|
|
5234
5636
|
const deserializeAws_restJson1OrganizationFeatureConfigurationResult = (output, context) => {
|
|
5235
5637
|
return {
|
|
5638
|
+
AdditionalConfiguration: output.additionalConfiguration != null
|
|
5639
|
+
? deserializeAws_restJson1OrganizationAdditionalConfigurationResults(output.additionalConfiguration, context)
|
|
5640
|
+
: undefined,
|
|
5236
5641
|
AutoEnable: (0, smithy_client_1.expectString)(output.autoEnable),
|
|
5237
5642
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5238
5643
|
};
|
|
@@ -5343,6 +5748,23 @@ const deserializeAws_restJson1PrivateIpAddresses = (output, context) => {
|
|
|
5343
5748
|
});
|
|
5344
5749
|
return retVal;
|
|
5345
5750
|
};
|
|
5751
|
+
const deserializeAws_restJson1ProcessDetails = (output, context) => {
|
|
5752
|
+
return {
|
|
5753
|
+
Euid: (0, smithy_client_1.expectInt32)(output.euid),
|
|
5754
|
+
ExecutablePath: (0, smithy_client_1.expectString)(output.executablePath),
|
|
5755
|
+
ExecutableSha256: (0, smithy_client_1.expectString)(output.executableSha256),
|
|
5756
|
+
Lineage: output.lineage != null ? deserializeAws_restJson1Lineage(output.lineage, context) : undefined,
|
|
5757
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
5758
|
+
NamespacePid: (0, smithy_client_1.expectInt32)(output.namespacePid),
|
|
5759
|
+
ParentUuid: (0, smithy_client_1.expectString)(output.parentUuid),
|
|
5760
|
+
Pid: (0, smithy_client_1.expectInt32)(output.pid),
|
|
5761
|
+
Pwd: (0, smithy_client_1.expectString)(output.pwd),
|
|
5762
|
+
StartTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
5763
|
+
User: (0, smithy_client_1.expectString)(output.user),
|
|
5764
|
+
UserId: (0, smithy_client_1.expectInt32)(output.userId),
|
|
5765
|
+
Uuid: (0, smithy_client_1.expectString)(output.uuid),
|
|
5766
|
+
};
|
|
5767
|
+
};
|
|
5346
5768
|
const deserializeAws_restJson1ProductCode = (output, context) => {
|
|
5347
5769
|
return {
|
|
5348
5770
|
Code: (0, smithy_client_1.expectString)(output.productCodeId),
|
|
@@ -5456,6 +5878,40 @@ const deserializeAws_restJson1ResourceDetails = (output, context) => {
|
|
|
5456
5878
|
InstanceArn: (0, smithy_client_1.expectString)(output.instanceArn),
|
|
5457
5879
|
};
|
|
5458
5880
|
};
|
|
5881
|
+
const deserializeAws_restJson1RuntimeContext = (output, context) => {
|
|
5882
|
+
return {
|
|
5883
|
+
AddressFamily: (0, smithy_client_1.expectString)(output.addressFamily),
|
|
5884
|
+
FileSystemType: (0, smithy_client_1.expectString)(output.fileSystemType),
|
|
5885
|
+
Flags: output.flags != null ? deserializeAws_restJson1FlagsList(output.flags, context) : undefined,
|
|
5886
|
+
IanaProtocolNumber: (0, smithy_client_1.expectInt32)(output.ianaProtocolNumber),
|
|
5887
|
+
LdPreloadValue: (0, smithy_client_1.expectString)(output.ldPreloadValue),
|
|
5888
|
+
LibraryPath: (0, smithy_client_1.expectString)(output.libraryPath),
|
|
5889
|
+
MemoryRegions: output.memoryRegions != null
|
|
5890
|
+
? deserializeAws_restJson1MemoryRegionsList(output.memoryRegions, context)
|
|
5891
|
+
: undefined,
|
|
5892
|
+
ModifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.modifiedAt))) : undefined,
|
|
5893
|
+
ModifyingProcess: output.modifyingProcess != null
|
|
5894
|
+
? deserializeAws_restJson1ProcessDetails(output.modifyingProcess, context)
|
|
5895
|
+
: undefined,
|
|
5896
|
+
ModuleFilePath: (0, smithy_client_1.expectString)(output.moduleFilePath),
|
|
5897
|
+
ModuleName: (0, smithy_client_1.expectString)(output.moduleName),
|
|
5898
|
+
ModuleSha256: (0, smithy_client_1.expectString)(output.moduleSha256),
|
|
5899
|
+
MountSource: (0, smithy_client_1.expectString)(output.mountSource),
|
|
5900
|
+
MountTarget: (0, smithy_client_1.expectString)(output.mountTarget),
|
|
5901
|
+
ReleaseAgentPath: (0, smithy_client_1.expectString)(output.releaseAgentPath),
|
|
5902
|
+
RuncBinaryPath: (0, smithy_client_1.expectString)(output.runcBinaryPath),
|
|
5903
|
+
ScriptPath: (0, smithy_client_1.expectString)(output.scriptPath),
|
|
5904
|
+
ShellHistoryFilePath: (0, smithy_client_1.expectString)(output.shellHistoryFilePath),
|
|
5905
|
+
SocketPath: (0, smithy_client_1.expectString)(output.socketPath),
|
|
5906
|
+
TargetProcess: output.targetProcess != null ? deserializeAws_restJson1ProcessDetails(output.targetProcess, context) : undefined,
|
|
5907
|
+
};
|
|
5908
|
+
};
|
|
5909
|
+
const deserializeAws_restJson1RuntimeDetails = (output, context) => {
|
|
5910
|
+
return {
|
|
5911
|
+
Context: output.context != null ? deserializeAws_restJson1RuntimeContext(output.context, context) : undefined,
|
|
5912
|
+
Process: output.process != null ? deserializeAws_restJson1ProcessDetails(output.process, context) : undefined,
|
|
5913
|
+
};
|
|
5914
|
+
};
|
|
5459
5915
|
const deserializeAws_restJson1S3BucketDetail = (output, context) => {
|
|
5460
5916
|
return {
|
|
5461
5917
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -5652,6 +6108,9 @@ const deserializeAws_restJson1Service = (output, context) => {
|
|
|
5652
6108
|
Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
|
|
5653
6109
|
FeatureName: (0, smithy_client_1.expectString)(output.featureName),
|
|
5654
6110
|
ResourceRole: (0, smithy_client_1.expectString)(output.resourceRole),
|
|
6111
|
+
RuntimeDetails: output.runtimeDetails != null
|
|
6112
|
+
? deserializeAws_restJson1RuntimeDetails(output.runtimeDetails, context)
|
|
6113
|
+
: undefined,
|
|
5655
6114
|
ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
|
|
5656
6115
|
UserFeedback: (0, smithy_client_1.expectString)(output.userFeedback),
|
|
5657
6116
|
};
|