@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.
Files changed (76) hide show
  1. package/README.md +25 -10
  2. package/dist-cjs/GuardDuty.js +30 -0
  3. package/dist-cjs/commands/GetCoverageStatisticsCommand.js +45 -0
  4. package/dist-cjs/commands/ListCoverageCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +205 -198
  7. package/dist-cjs/pagination/ListCoveragePaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +462 -3
  10. package/dist-es/GuardDuty.js +30 -0
  11. package/dist-es/commands/GetCoverageStatisticsCommand.js +41 -0
  12. package/dist-es/commands/ListCoverageCommand.js +41 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +204 -197
  15. package/dist-es/pagination/ListCoveragePaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +455 -0
  18. package/dist-types/GuardDuty.d.ts +75 -47
  19. package/dist-types/GuardDutyClient.d.ts +13 -12
  20. package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +2 -1
  21. package/dist-types/commands/ArchiveFindingsCommand.d.ts +2 -2
  22. package/dist-types/commands/CreateDetectorCommand.d.ts +7 -1
  23. package/dist-types/commands/CreateMembersCommand.d.ts +3 -3
  24. package/dist-types/commands/CreateThreatIntelSetCommand.d.ts +2 -2
  25. package/dist-types/commands/DeclineInvitationsCommand.d.ts +2 -2
  26. package/dist-types/commands/DeleteInvitationsCommand.d.ts +2 -2
  27. package/dist-types/commands/DeleteMembersCommand.d.ts +5 -4
  28. package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +3 -2
  29. package/dist-types/commands/DisassociateMembersCommand.d.ts +5 -3
  30. package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +90 -0
  31. package/dist-types/commands/GetMembersCommand.d.ts +2 -2
  32. package/dist-types/commands/GetRemainingFreeTrialDaysCommand.d.ts +2 -1
  33. package/dist-types/commands/InviteMembersCommand.d.ts +2 -2
  34. package/dist-types/commands/ListCoverageCommand.d.ts +93 -0
  35. package/dist-types/commands/ListIPSetsCommand.d.ts +2 -2
  36. package/dist-types/commands/ListMembersCommand.d.ts +2 -1
  37. package/dist-types/commands/ListThreatIntelSetsCommand.d.ts +2 -2
  38. package/dist-types/commands/StartMonitoringMembersCommand.d.ts +1 -2
  39. package/dist-types/commands/StopMonitoringMembersCommand.d.ts +3 -2
  40. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  41. package/dist-types/commands/UpdateDetectorCommand.d.ts +8 -2
  42. package/dist-types/commands/UpdateFilterCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateIPSetCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateMemberDetectorsCommand.d.ts +8 -2
  47. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -4
  48. package/dist-types/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateThreatIntelSetCommand.d.ts +1 -2
  50. package/dist-types/commands/index.d.ts +2 -0
  51. package/dist-types/models/models_0.d.ts +1105 -691
  52. package/dist-types/models/models_1.d.ts +472 -0
  53. package/dist-types/pagination/ListCoveragePaginator.d.ts +7 -0
  54. package/dist-types/pagination/index.d.ts +1 -0
  55. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  56. package/dist-types/ts3.4/GuardDuty.d.ts +34 -0
  57. package/dist-types/ts3.4/GuardDutyClient.d.ts +12 -0
  58. package/dist-types/ts3.4/commands/GetCoverageStatisticsCommand.d.ts +41 -0
  59. package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +34 -0
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/UpdateDetectorCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateMemberDetectorsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/UpdateThreatIntelSetCommand.d.ts +4 -2
  70. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  71. package/dist-types/ts3.4/models/models_0.d.ts +396 -272
  72. package/dist-types/ts3.4/models/models_1.d.ts +133 -0
  73. package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  76. package/package.json +34 -34
@@ -577,6 +577,33 @@ export const serializeAws_restJson1GetAdministratorAccountCommand = async (input
577
577
  body,
578
578
  });
579
579
  };
580
+ export const serializeAws_restJson1GetCoverageStatisticsCommand = async (input, context) => {
581
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
582
+ const headers = {
583
+ "content-type": "application/json",
584
+ };
585
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
586
+ "/detector/{DetectorId}/coverage/statistics";
587
+ resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
588
+ let body;
589
+ body = JSON.stringify({
590
+ ...(input.FilterCriteria != null && {
591
+ filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.FilterCriteria, context),
592
+ }),
593
+ ...(input.StatisticsType != null && {
594
+ statisticsType: serializeAws_restJson1CoverageStatisticsTypeList(input.StatisticsType, context),
595
+ }),
596
+ });
597
+ return new __HttpRequest({
598
+ protocol,
599
+ hostname,
600
+ port,
601
+ method: "POST",
602
+ headers,
603
+ path: resolvedPath,
604
+ body,
605
+ });
606
+ };
580
607
  export const serializeAws_restJson1GetDetectorCommand = async (input, context) => {
581
608
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
582
609
  const headers = {};
@@ -863,6 +890,34 @@ export const serializeAws_restJson1InviteMembersCommand = async (input, context)
863
890
  body,
864
891
  });
865
892
  };
893
+ export const serializeAws_restJson1ListCoverageCommand = async (input, context) => {
894
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
895
+ const headers = {
896
+ "content-type": "application/json",
897
+ };
898
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector/{DetectorId}/coverage";
899
+ resolvedPath = __resolvedPath(resolvedPath, input, "DetectorId", () => input.DetectorId, "{DetectorId}", false);
900
+ let body;
901
+ body = JSON.stringify({
902
+ ...(input.FilterCriteria != null && {
903
+ filterCriteria: serializeAws_restJson1CoverageFilterCriteria(input.FilterCriteria, context),
904
+ }),
905
+ ...(input.MaxResults != null && { maxResults: input.MaxResults }),
906
+ ...(input.NextToken != null && { nextToken: input.NextToken }),
907
+ ...(input.SortCriteria != null && {
908
+ sortCriteria: serializeAws_restJson1CoverageSortCriteria(input.SortCriteria, context),
909
+ }),
910
+ });
911
+ return new __HttpRequest({
912
+ protocol,
913
+ hostname,
914
+ port,
915
+ method: "POST",
916
+ headers,
917
+ path: resolvedPath,
918
+ body,
919
+ });
920
+ };
866
921
  export const serializeAws_restJson1ListDetectorsCommand = async (input, context) => {
867
922
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
923
  const headers = {};
@@ -2383,6 +2438,42 @@ const deserializeAws_restJson1GetAdministratorAccountCommandError = async (outpu
2383
2438
  });
2384
2439
  }
2385
2440
  };
2441
+ export const deserializeAws_restJson1GetCoverageStatisticsCommand = async (output, context) => {
2442
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2443
+ return deserializeAws_restJson1GetCoverageStatisticsCommandError(output, context);
2444
+ }
2445
+ const contents = map({
2446
+ $metadata: deserializeMetadata(output),
2447
+ });
2448
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2449
+ if (data.coverageStatistics != null) {
2450
+ contents.CoverageStatistics = deserializeAws_restJson1CoverageStatistics(data.coverageStatistics, context);
2451
+ }
2452
+ return contents;
2453
+ };
2454
+ const deserializeAws_restJson1GetCoverageStatisticsCommandError = async (output, context) => {
2455
+ const parsedOutput = {
2456
+ ...output,
2457
+ body: await parseErrorBody(output.body, context),
2458
+ };
2459
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2460
+ switch (errorCode) {
2461
+ case "BadRequestException":
2462
+ case "com.amazonaws.guardduty#BadRequestException":
2463
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2464
+ case "InternalServerErrorException":
2465
+ case "com.amazonaws.guardduty#InternalServerErrorException":
2466
+ throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
2467
+ default:
2468
+ const parsedBody = parsedOutput.body;
2469
+ throwDefaultError({
2470
+ output,
2471
+ parsedBody,
2472
+ exceptionCtor: __BaseException,
2473
+ errorCode,
2474
+ });
2475
+ }
2476
+ };
2386
2477
  export const deserializeAws_restJson1GetDetectorCommand = async (output, context) => {
2387
2478
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2388
2479
  return deserializeAws_restJson1GetDetectorCommandError(output, context);
@@ -2962,6 +3053,45 @@ const deserializeAws_restJson1InviteMembersCommandError = async (output, context
2962
3053
  });
2963
3054
  }
2964
3055
  };
3056
+ export const deserializeAws_restJson1ListCoverageCommand = async (output, context) => {
3057
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3058
+ return deserializeAws_restJson1ListCoverageCommandError(output, context);
3059
+ }
3060
+ const contents = map({
3061
+ $metadata: deserializeMetadata(output),
3062
+ });
3063
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3064
+ if (data.nextToken != null) {
3065
+ contents.NextToken = __expectString(data.nextToken);
3066
+ }
3067
+ if (data.resources != null) {
3068
+ contents.Resources = deserializeAws_restJson1CoverageResources(data.resources, context);
3069
+ }
3070
+ return contents;
3071
+ };
3072
+ const deserializeAws_restJson1ListCoverageCommandError = async (output, context) => {
3073
+ const parsedOutput = {
3074
+ ...output,
3075
+ body: await parseErrorBody(output.body, context),
3076
+ };
3077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3078
+ switch (errorCode) {
3079
+ case "BadRequestException":
3080
+ case "com.amazonaws.guardduty#BadRequestException":
3081
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
3082
+ case "InternalServerErrorException":
3083
+ case "com.amazonaws.guardduty#InternalServerErrorException":
3084
+ throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
3085
+ default:
3086
+ const parsedBody = parsedOutput.body;
3087
+ throwDefaultError({
3088
+ output,
3089
+ parsedBody,
3090
+ exceptionCtor: __BaseException,
3091
+ errorCode,
3092
+ });
3093
+ }
3094
+ };
2965
3095
  export const deserializeAws_restJson1ListDetectorsCommand = async (output, context) => {
2966
3096
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2967
3097
  return deserializeAws_restJson1ListDetectorsCommandError(output, context);
@@ -3890,6 +4020,47 @@ const serializeAws_restJson1Condition = (input, context) => {
3890
4020
  ...(input.NotEquals != null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }),
3891
4021
  };
3892
4022
  };
4023
+ const serializeAws_restJson1CoverageFilterCondition = (input, context) => {
4024
+ return {
4025
+ ...(input.Equals != null && { equals: serializeAws_restJson1Equals(input.Equals, context) }),
4026
+ ...(input.NotEquals != null && { notEquals: serializeAws_restJson1NotEquals(input.NotEquals, context) }),
4027
+ };
4028
+ };
4029
+ const serializeAws_restJson1CoverageFilterCriteria = (input, context) => {
4030
+ return {
4031
+ ...(input.FilterCriterion != null && {
4032
+ filterCriterion: serializeAws_restJson1CoverageFilterCriterionList(input.FilterCriterion, context),
4033
+ }),
4034
+ };
4035
+ };
4036
+ const serializeAws_restJson1CoverageFilterCriterion = (input, context) => {
4037
+ return {
4038
+ ...(input.CriterionKey != null && { criterionKey: input.CriterionKey }),
4039
+ ...(input.FilterCondition != null && {
4040
+ filterCondition: serializeAws_restJson1CoverageFilterCondition(input.FilterCondition, context),
4041
+ }),
4042
+ };
4043
+ };
4044
+ const serializeAws_restJson1CoverageFilterCriterionList = (input, context) => {
4045
+ return input
4046
+ .filter((e) => e != null)
4047
+ .map((entry) => {
4048
+ return serializeAws_restJson1CoverageFilterCriterion(entry, context);
4049
+ });
4050
+ };
4051
+ const serializeAws_restJson1CoverageSortCriteria = (input, context) => {
4052
+ return {
4053
+ ...(input.AttributeName != null && { attributeName: input.AttributeName }),
4054
+ ...(input.OrderBy != null && { orderBy: input.OrderBy }),
4055
+ };
4056
+ };
4057
+ const serializeAws_restJson1CoverageStatisticsTypeList = (input, context) => {
4058
+ return input
4059
+ .filter((e) => e != null)
4060
+ .map((entry) => {
4061
+ return entry;
4062
+ });
4063
+ };
3893
4064
  const serializeAws_restJson1Criterion = (input, context) => {
3894
4065
  return Object.entries(input).reduce((acc, [key, value]) => {
3895
4066
  if (value === null) {
@@ -3923,8 +4094,24 @@ const serializeAws_restJson1DestinationProperties = (input, context) => {
3923
4094
  ...(input.KmsKeyArn != null && { kmsKeyArn: input.KmsKeyArn }),
3924
4095
  };
3925
4096
  };
4097
+ const serializeAws_restJson1DetectorAdditionalConfiguration = (input, context) => {
4098
+ return {
4099
+ ...(input.Name != null && { name: input.Name }),
4100
+ ...(input.Status != null && { status: input.Status }),
4101
+ };
4102
+ };
4103
+ const serializeAws_restJson1DetectorAdditionalConfigurations = (input, context) => {
4104
+ return input
4105
+ .filter((e) => e != null)
4106
+ .map((entry) => {
4107
+ return serializeAws_restJson1DetectorAdditionalConfiguration(entry, context);
4108
+ });
4109
+ };
3926
4110
  const serializeAws_restJson1DetectorFeatureConfiguration = (input, context) => {
3927
4111
  return {
4112
+ ...(input.AdditionalConfiguration != null && {
4113
+ additionalConfiguration: serializeAws_restJson1DetectorAdditionalConfigurations(input.AdditionalConfiguration, context),
4114
+ }),
3928
4115
  ...(input.Name != null && { name: input.Name }),
3929
4116
  ...(input.Status != null && { status: input.Status }),
3930
4117
  };
@@ -4031,8 +4218,24 @@ const serializeAws_restJson1MapEquals = (input, context) => {
4031
4218
  return serializeAws_restJson1ScanConditionPair(entry, context);
4032
4219
  });
4033
4220
  };
4221
+ const serializeAws_restJson1MemberAdditionalConfiguration = (input, context) => {
4222
+ return {
4223
+ ...(input.Name != null && { name: input.Name }),
4224
+ ...(input.Status != null && { status: input.Status }),
4225
+ };
4226
+ };
4227
+ const serializeAws_restJson1MemberAdditionalConfigurations = (input, context) => {
4228
+ return input
4229
+ .filter((e) => e != null)
4230
+ .map((entry) => {
4231
+ return serializeAws_restJson1MemberAdditionalConfiguration(entry, context);
4232
+ });
4233
+ };
4034
4234
  const serializeAws_restJson1MemberFeaturesConfiguration = (input, context) => {
4035
4235
  return {
4236
+ ...(input.AdditionalConfiguration != null && {
4237
+ additionalConfiguration: serializeAws_restJson1MemberAdditionalConfigurations(input.AdditionalConfiguration, context),
4238
+ }),
4036
4239
  ...(input.Name != null && { name: input.Name }),
4037
4240
  ...(input.Status != null && { status: input.Status }),
4038
4241
  };
@@ -4058,6 +4261,19 @@ const serializeAws_restJson1NotEquals = (input, context) => {
4058
4261
  return entry;
4059
4262
  });
4060
4263
  };
4264
+ const serializeAws_restJson1OrganizationAdditionalConfiguration = (input, context) => {
4265
+ return {
4266
+ ...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
4267
+ ...(input.Name != null && { name: input.Name }),
4268
+ };
4269
+ };
4270
+ const serializeAws_restJson1OrganizationAdditionalConfigurations = (input, context) => {
4271
+ return input
4272
+ .filter((e) => e != null)
4273
+ .map((entry) => {
4274
+ return serializeAws_restJson1OrganizationAdditionalConfiguration(entry, context);
4275
+ });
4276
+ };
4061
4277
  const serializeAws_restJson1OrganizationDataSourceConfigurations = (input, context) => {
4062
4278
  return {
4063
4279
  ...(input.Kubernetes != null && {
@@ -4078,6 +4294,9 @@ const serializeAws_restJson1OrganizationEbsVolumes = (input, context) => {
4078
4294
  };
4079
4295
  const serializeAws_restJson1OrganizationFeatureConfiguration = (input, context) => {
4080
4296
  return {
4297
+ ...(input.AdditionalConfiguration != null && {
4298
+ additionalConfiguration: serializeAws_restJson1OrganizationAdditionalConfigurations(input.AdditionalConfiguration, context),
4299
+ }),
4081
4300
  ...(input.AutoEnable != null && { autoEnable: input.AutoEnable }),
4082
4301
  ...(input.Name != null && { name: input.Name }),
4083
4302
  };
@@ -4259,6 +4478,12 @@ const deserializeAws_restJson1Action = (output, context) => {
4259
4478
  : undefined,
4260
4479
  };
4261
4480
  };
4481
+ const deserializeAws_restJson1AddonDetails = (output, context) => {
4482
+ return {
4483
+ AddonStatus: __expectString(output.addonStatus),
4484
+ AddonVersion: __expectString(output.addonVersion),
4485
+ };
4486
+ };
4262
4487
  const deserializeAws_restJson1AdminAccount = (output, context) => {
4263
4488
  return {
4264
4489
  AdminAccountId: __expectString(output.adminAccountId),
@@ -4387,6 +4612,24 @@ const deserializeAws_restJson1Containers = (output, context) => {
4387
4612
  });
4388
4613
  return retVal;
4389
4614
  };
4615
+ const deserializeAws_restJson1CountByCoverageStatus = (output, context) => {
4616
+ return Object.entries(output).reduce((acc, [key, value]) => {
4617
+ if (value === null) {
4618
+ return acc;
4619
+ }
4620
+ acc[key] = __expectLong(value);
4621
+ return acc;
4622
+ }, {});
4623
+ };
4624
+ const deserializeAws_restJson1CountByResourceType = (output, context) => {
4625
+ return Object.entries(output).reduce((acc, [key, value]) => {
4626
+ if (value === null) {
4627
+ return acc;
4628
+ }
4629
+ acc[key] = __expectLong(value);
4630
+ return acc;
4631
+ }, {});
4632
+ };
4390
4633
  const deserializeAws_restJson1CountBySeverity = (output, context) => {
4391
4634
  return Object.entries(output).reduce((acc, [key, value]) => {
4392
4635
  if (value === null) {
@@ -4402,6 +4645,56 @@ const deserializeAws_restJson1Country = (output, context) => {
4402
4645
  CountryName: __expectString(output.countryName),
4403
4646
  };
4404
4647
  };
4648
+ const deserializeAws_restJson1CoverageEksClusterDetails = (output, context) => {
4649
+ return {
4650
+ AddonDetails: output.addonDetails != null ? deserializeAws_restJson1AddonDetails(output.addonDetails, context) : undefined,
4651
+ ClusterName: __expectString(output.clusterName),
4652
+ CompatibleNodes: __expectLong(output.compatibleNodes),
4653
+ CoveredNodes: __expectLong(output.coveredNodes),
4654
+ };
4655
+ };
4656
+ const deserializeAws_restJson1CoverageResource = (output, context) => {
4657
+ return {
4658
+ AccountId: __expectString(output.accountId),
4659
+ CoverageStatus: __expectString(output.coverageStatus),
4660
+ DetectorId: __expectString(output.detectorId),
4661
+ Issue: __expectString(output.issue),
4662
+ ResourceDetails: output.resourceDetails != null
4663
+ ? deserializeAws_restJson1CoverageResourceDetails(output.resourceDetails, context)
4664
+ : undefined,
4665
+ ResourceId: __expectString(output.resourceId),
4666
+ UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4667
+ };
4668
+ };
4669
+ const deserializeAws_restJson1CoverageResourceDetails = (output, context) => {
4670
+ return {
4671
+ EksClusterDetails: output.eksClusterDetails != null
4672
+ ? deserializeAws_restJson1CoverageEksClusterDetails(output.eksClusterDetails, context)
4673
+ : undefined,
4674
+ ResourceType: __expectString(output.resourceType),
4675
+ };
4676
+ };
4677
+ const deserializeAws_restJson1CoverageResources = (output, context) => {
4678
+ const retVal = (output || [])
4679
+ .filter((e) => e != null)
4680
+ .map((entry) => {
4681
+ if (entry === null) {
4682
+ return null;
4683
+ }
4684
+ return deserializeAws_restJson1CoverageResource(entry, context);
4685
+ });
4686
+ return retVal;
4687
+ };
4688
+ const deserializeAws_restJson1CoverageStatistics = (output, context) => {
4689
+ return {
4690
+ CountByCoverageStatus: output.countByCoverageStatus != null
4691
+ ? deserializeAws_restJson1CountByCoverageStatus(output.countByCoverageStatus, context)
4692
+ : undefined,
4693
+ CountByResourceType: output.countByResourceType != null
4694
+ ? deserializeAws_restJson1CountByResourceType(output.countByResourceType, context)
4695
+ : undefined,
4696
+ };
4697
+ };
4405
4698
  const deserializeAws_restJson1Criterion = (output, context) => {
4406
4699
  return Object.entries(output).reduce((acc, [key, value]) => {
4407
4700
  if (value === null) {
@@ -4478,8 +4771,29 @@ const deserializeAws_restJson1Destinations = (output, context) => {
4478
4771
  });
4479
4772
  return retVal;
4480
4773
  };
4774
+ const deserializeAws_restJson1DetectorAdditionalConfigurationResult = (output, context) => {
4775
+ return {
4776
+ Name: __expectString(output.name),
4777
+ Status: __expectString(output.status),
4778
+ UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
4779
+ };
4780
+ };
4781
+ const deserializeAws_restJson1DetectorAdditionalConfigurationResults = (output, context) => {
4782
+ const retVal = (output || [])
4783
+ .filter((e) => e != null)
4784
+ .map((entry) => {
4785
+ if (entry === null) {
4786
+ return null;
4787
+ }
4788
+ return deserializeAws_restJson1DetectorAdditionalConfigurationResult(entry, context);
4789
+ });
4790
+ return retVal;
4791
+ };
4481
4792
  const deserializeAws_restJson1DetectorFeatureConfigurationResult = (output, context) => {
4482
4793
  return {
4794
+ AdditionalConfiguration: output.additionalConfiguration != null
4795
+ ? deserializeAws_restJson1DetectorAdditionalConfigurationResults(output.additionalConfiguration, context)
4796
+ : undefined,
4483
4797
  Name: __expectString(output.name),
4484
4798
  Status: __expectString(output.status),
4485
4799
  UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
@@ -4696,6 +5010,17 @@ const deserializeAws_restJson1FindingStatistics = (output, context) => {
4696
5010
  : undefined,
4697
5011
  };
4698
5012
  };
5013
+ const deserializeAws_restJson1FlagsList = (output, context) => {
5014
+ const retVal = (output || [])
5015
+ .filter((e) => e != null)
5016
+ .map((entry) => {
5017
+ if (entry === null) {
5018
+ return null;
5019
+ }
5020
+ return __expectString(entry);
5021
+ });
5022
+ return retVal;
5023
+ };
4699
5024
  const deserializeAws_restJson1FlowLogsConfigurationResult = (output, context) => {
4700
5025
  return {
4701
5026
  Status: __expectString(output.status),
@@ -4873,6 +5198,30 @@ const deserializeAws_restJson1KubernetesWorkloadDetails = (output, context) => {
4873
5198
  Volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
4874
5199
  };
4875
5200
  };
5201
+ const deserializeAws_restJson1Lineage = (output, context) => {
5202
+ const retVal = (output || [])
5203
+ .filter((e) => e != null)
5204
+ .map((entry) => {
5205
+ if (entry === null) {
5206
+ return null;
5207
+ }
5208
+ return deserializeAws_restJson1LineageObject(entry, context);
5209
+ });
5210
+ return retVal;
5211
+ };
5212
+ const deserializeAws_restJson1LineageObject = (output, context) => {
5213
+ return {
5214
+ Euid: __expectInt32(output.euid),
5215
+ ExecutablePath: __expectString(output.executablePath),
5216
+ Name: __expectString(output.name),
5217
+ NamespacePid: __expectInt32(output.namespacePid),
5218
+ ParentUuid: __expectString(output.parentUuid),
5219
+ Pid: __expectInt32(output.pid),
5220
+ StartTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
5221
+ UserId: __expectInt32(output.userId),
5222
+ Uuid: __expectString(output.uuid),
5223
+ };
5224
+ };
4876
5225
  const deserializeAws_restJson1LocalIpDetails = (output, context) => {
4877
5226
  return {
4878
5227
  IpAddressV4: __expectString(output.ipAddressV4),
@@ -4949,6 +5298,24 @@ const deserializeAws_restJson1Member = (output, context) => {
4949
5298
  UpdatedAt: __expectString(output.updatedAt),
4950
5299
  };
4951
5300
  };
5301
+ const deserializeAws_restJson1MemberAdditionalConfigurationResult = (output, context) => {
5302
+ return {
5303
+ Name: __expectString(output.name),
5304
+ Status: __expectString(output.status),
5305
+ UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
5306
+ };
5307
+ };
5308
+ const deserializeAws_restJson1MemberAdditionalConfigurationResults = (output, context) => {
5309
+ const retVal = (output || [])
5310
+ .filter((e) => e != null)
5311
+ .map((entry) => {
5312
+ if (entry === null) {
5313
+ return null;
5314
+ }
5315
+ return deserializeAws_restJson1MemberAdditionalConfigurationResult(entry, context);
5316
+ });
5317
+ return retVal;
5318
+ };
4952
5319
  const deserializeAws_restJson1MemberDataSourceConfiguration = (output, context) => {
4953
5320
  return {
4954
5321
  AccountId: __expectString(output.accountId),
@@ -4973,6 +5340,9 @@ const deserializeAws_restJson1MemberDataSourceConfigurations = (output, context)
4973
5340
  };
4974
5341
  const deserializeAws_restJson1MemberFeaturesConfigurationResult = (output, context) => {
4975
5342
  return {
5343
+ AdditionalConfiguration: output.additionalConfiguration != null
5344
+ ? deserializeAws_restJson1MemberAdditionalConfigurationResults(output.additionalConfiguration, context)
5345
+ : undefined,
4976
5346
  Name: __expectString(output.name),
4977
5347
  Status: __expectString(output.status),
4978
5348
  UpdatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
@@ -5000,6 +5370,17 @@ const deserializeAws_restJson1Members = (output, context) => {
5000
5370
  });
5001
5371
  return retVal;
5002
5372
  };
5373
+ const deserializeAws_restJson1MemoryRegionsList = (output, context) => {
5374
+ const retVal = (output || [])
5375
+ .filter((e) => e != null)
5376
+ .map((entry) => {
5377
+ if (entry === null) {
5378
+ return null;
5379
+ }
5380
+ return __expectString(entry);
5381
+ });
5382
+ return retVal;
5383
+ };
5003
5384
  const deserializeAws_restJson1Neq = (output, context) => {
5004
5385
  const retVal = (output || [])
5005
5386
  .filter((e) => e != null)
@@ -5078,6 +5459,23 @@ const deserializeAws_restJson1Organization = (output, context) => {
5078
5459
  Org: __expectString(output.org),
5079
5460
  };
5080
5461
  };
5462
+ const deserializeAws_restJson1OrganizationAdditionalConfigurationResult = (output, context) => {
5463
+ return {
5464
+ AutoEnable: __expectString(output.autoEnable),
5465
+ Name: __expectString(output.name),
5466
+ };
5467
+ };
5468
+ const deserializeAws_restJson1OrganizationAdditionalConfigurationResults = (output, context) => {
5469
+ const retVal = (output || [])
5470
+ .filter((e) => e != null)
5471
+ .map((entry) => {
5472
+ if (entry === null) {
5473
+ return null;
5474
+ }
5475
+ return deserializeAws_restJson1OrganizationAdditionalConfigurationResult(entry, context);
5476
+ });
5477
+ return retVal;
5478
+ };
5081
5479
  const deserializeAws_restJson1OrganizationDataSourceConfigurationsResult = (output, context) => {
5082
5480
  return {
5083
5481
  Kubernetes: output.kubernetes != null
@@ -5098,6 +5496,9 @@ const deserializeAws_restJson1OrganizationEbsVolumesResult = (output, context) =
5098
5496
  };
5099
5497
  const deserializeAws_restJson1OrganizationFeatureConfigurationResult = (output, context) => {
5100
5498
  return {
5499
+ AdditionalConfiguration: output.additionalConfiguration != null
5500
+ ? deserializeAws_restJson1OrganizationAdditionalConfigurationResults(output.additionalConfiguration, context)
5501
+ : undefined,
5101
5502
  AutoEnable: __expectString(output.autoEnable),
5102
5503
  Name: __expectString(output.name),
5103
5504
  };
@@ -5208,6 +5609,23 @@ const deserializeAws_restJson1PrivateIpAddresses = (output, context) => {
5208
5609
  });
5209
5610
  return retVal;
5210
5611
  };
5612
+ const deserializeAws_restJson1ProcessDetails = (output, context) => {
5613
+ return {
5614
+ Euid: __expectInt32(output.euid),
5615
+ ExecutablePath: __expectString(output.executablePath),
5616
+ ExecutableSha256: __expectString(output.executableSha256),
5617
+ Lineage: output.lineage != null ? deserializeAws_restJson1Lineage(output.lineage, context) : undefined,
5618
+ Name: __expectString(output.name),
5619
+ NamespacePid: __expectInt32(output.namespacePid),
5620
+ ParentUuid: __expectString(output.parentUuid),
5621
+ Pid: __expectInt32(output.pid),
5622
+ Pwd: __expectString(output.pwd),
5623
+ StartTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
5624
+ User: __expectString(output.user),
5625
+ UserId: __expectInt32(output.userId),
5626
+ Uuid: __expectString(output.uuid),
5627
+ };
5628
+ };
5211
5629
  const deserializeAws_restJson1ProductCode = (output, context) => {
5212
5630
  return {
5213
5631
  Code: __expectString(output.productCodeId),
@@ -5321,6 +5739,40 @@ const deserializeAws_restJson1ResourceDetails = (output, context) => {
5321
5739
  InstanceArn: __expectString(output.instanceArn),
5322
5740
  };
5323
5741
  };
5742
+ const deserializeAws_restJson1RuntimeContext = (output, context) => {
5743
+ return {
5744
+ AddressFamily: __expectString(output.addressFamily),
5745
+ FileSystemType: __expectString(output.fileSystemType),
5746
+ Flags: output.flags != null ? deserializeAws_restJson1FlagsList(output.flags, context) : undefined,
5747
+ IanaProtocolNumber: __expectInt32(output.ianaProtocolNumber),
5748
+ LdPreloadValue: __expectString(output.ldPreloadValue),
5749
+ LibraryPath: __expectString(output.libraryPath),
5750
+ MemoryRegions: output.memoryRegions != null
5751
+ ? deserializeAws_restJson1MemoryRegionsList(output.memoryRegions, context)
5752
+ : undefined,
5753
+ ModifiedAt: output.modifiedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modifiedAt))) : undefined,
5754
+ ModifyingProcess: output.modifyingProcess != null
5755
+ ? deserializeAws_restJson1ProcessDetails(output.modifyingProcess, context)
5756
+ : undefined,
5757
+ ModuleFilePath: __expectString(output.moduleFilePath),
5758
+ ModuleName: __expectString(output.moduleName),
5759
+ ModuleSha256: __expectString(output.moduleSha256),
5760
+ MountSource: __expectString(output.mountSource),
5761
+ MountTarget: __expectString(output.mountTarget),
5762
+ ReleaseAgentPath: __expectString(output.releaseAgentPath),
5763
+ RuncBinaryPath: __expectString(output.runcBinaryPath),
5764
+ ScriptPath: __expectString(output.scriptPath),
5765
+ ShellHistoryFilePath: __expectString(output.shellHistoryFilePath),
5766
+ SocketPath: __expectString(output.socketPath),
5767
+ TargetProcess: output.targetProcess != null ? deserializeAws_restJson1ProcessDetails(output.targetProcess, context) : undefined,
5768
+ };
5769
+ };
5770
+ const deserializeAws_restJson1RuntimeDetails = (output, context) => {
5771
+ return {
5772
+ Context: output.context != null ? deserializeAws_restJson1RuntimeContext(output.context, context) : undefined,
5773
+ Process: output.process != null ? deserializeAws_restJson1ProcessDetails(output.process, context) : undefined,
5774
+ };
5775
+ };
5324
5776
  const deserializeAws_restJson1S3BucketDetail = (output, context) => {
5325
5777
  return {
5326
5778
  Arn: __expectString(output.arn),
@@ -5517,6 +5969,9 @@ const deserializeAws_restJson1Service = (output, context) => {
5517
5969
  Evidence: output.evidence != null ? deserializeAws_restJson1Evidence(output.evidence, context) : undefined,
5518
5970
  FeatureName: __expectString(output.featureName),
5519
5971
  ResourceRole: __expectString(output.resourceRole),
5972
+ RuntimeDetails: output.runtimeDetails != null
5973
+ ? deserializeAws_restJson1RuntimeDetails(output.runtimeDetails, context)
5974
+ : undefined,
5520
5975
  ServiceName: __expectString(output.serviceName),
5521
5976
  UserFeedback: __expectString(output.userFeedback),
5522
5977
  };