aws-sdk-securityhub 1.144.0 → 1.146.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.
data/sig/client.rbs CHANGED
@@ -5215,7 +5215,7 @@ module Aws
5215
5215
  {
5216
5216
  string_filters: Array[
5217
5217
  {
5218
- field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name")?,
5218
+ field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name" | "databucket.encryption_details.algorithm" | "databucket.encryption_details.key_uid" | "databucket.file.data_classifications.classifier_details.type" | "evidences.actor.user.account.uid" | "evidences.api.operation" | "evidences.api.response.error_message" | "evidences.api.service.name" | "evidences.connection_info.direction" | "evidences.connection_info.protocol_name" | "evidences.dst_endpoint.autonomous_system.name" | "evidences.dst_endpoint.location.city" | "evidences.dst_endpoint.location.country" | "evidences.src_endpoint.autonomous_system.name" | "evidences.src_endpoint.hostname" | "evidences.src_endpoint.location.city" | "evidences.src_endpoint.location.country" | "finding_info.analytic.name" | "malware.name" | "malware_scan_info.uid" | "malware.severity" | "resources.cloud_function.layers.uid_alt" | "resources.cloud_function.runtime" | "resources.cloud_function.user.uid" | "resources.device.encryption_details.key_uid" | "resources.device.image.uid" | "resources.image.architecture" | "resources.image.registry_uid" | "resources.image.repository_name" | "resources.image.uid" | "resources.subnet_info.uid" | "resources.vpc_uid" | "vulnerabilities.affected_code.file.path" | "vulnerabilities.affected_packages.name" | "vulnerabilities.cve.epss.score" | "vulnerabilities.cve.uid" | "vulnerabilities.related_vulnerabilities" | "cloud.account.name")?,
5219
5219
  filter: {
5220
5220
  value: ::String?,
5221
5221
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
@@ -5224,7 +5224,7 @@ module Aws
5224
5224
  ]?,
5225
5225
  date_filters: Array[
5226
5226
  {
5227
- field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt")?,
5227
+ field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt" | "resources.image.created_time_dt" | "resources.image.last_used_time_dt" | "resources.modified_time_dt")?,
5228
5228
  filter: {
5229
5229
  start: ::String?,
5230
5230
  end: ::String?,
@@ -5245,7 +5245,7 @@ module Aws
5245
5245
  ]?,
5246
5246
  number_filters: Array[
5247
5247
  {
5248
- field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count")?,
5248
+ field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count" | "evidences.api.response.code" | "evidences.dst_endpoint.autonomous_system.number" | "evidences.dst_endpoint.port" | "evidences.src_endpoint.autonomous_system.number" | "evidences.src_endpoint.port" | "resources.image.in_use_count")?,
5249
5249
  filter: {
5250
5250
  gte: ::Float?,
5251
5251
  lte: ::Float?,
@@ -5257,7 +5257,7 @@ module Aws
5257
5257
  ]?,
5258
5258
  map_filters: Array[
5259
5259
  {
5260
- field_name: ("resources.tags")?,
5260
+ field_name: ("resources.tags" | "compliance.control_parameters" | "databucket.tags" | "finding_info.tags")?,
5261
5261
  filter: {
5262
5262
  key: ::String?,
5263
5263
  value: ::String?,
@@ -5265,6 +5265,15 @@ module Aws
5265
5265
  }?
5266
5266
  },
5267
5267
  ]?,
5268
+ ip_filters: Array[
5269
+ {
5270
+ field_name: ("evidences.dst_endpoint.ip" | "evidences.src_endpoint.ip")?,
5271
+ filter: {
5272
+ cidr: ::String?
5273
+ }?
5274
+ },
5275
+ ]?,
5276
+ nested_composite_filters: untyped?,
5268
5277
  operator: ("AND" | "OR")?
5269
5278
  },
5270
5279
  ]?,
@@ -6558,7 +6567,7 @@ module Aws
6558
6567
  {
6559
6568
  string_filters: Array[
6560
6569
  {
6561
- field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name")?,
6570
+ field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name" | "databucket.encryption_details.algorithm" | "databucket.encryption_details.key_uid" | "databucket.file.data_classifications.classifier_details.type" | "evidences.actor.user.account.uid" | "evidences.api.operation" | "evidences.api.response.error_message" | "evidences.api.service.name" | "evidences.connection_info.direction" | "evidences.connection_info.protocol_name" | "evidences.dst_endpoint.autonomous_system.name" | "evidences.dst_endpoint.location.city" | "evidences.dst_endpoint.location.country" | "evidences.src_endpoint.autonomous_system.name" | "evidences.src_endpoint.hostname" | "evidences.src_endpoint.location.city" | "evidences.src_endpoint.location.country" | "finding_info.analytic.name" | "malware.name" | "malware_scan_info.uid" | "malware.severity" | "resources.cloud_function.layers.uid_alt" | "resources.cloud_function.runtime" | "resources.cloud_function.user.uid" | "resources.device.encryption_details.key_uid" | "resources.device.image.uid" | "resources.image.architecture" | "resources.image.registry_uid" | "resources.image.repository_name" | "resources.image.uid" | "resources.subnet_info.uid" | "resources.vpc_uid" | "vulnerabilities.affected_code.file.path" | "vulnerabilities.affected_packages.name" | "vulnerabilities.cve.epss.score" | "vulnerabilities.cve.uid" | "vulnerabilities.related_vulnerabilities" | "cloud.account.name")?,
6562
6571
  filter: {
6563
6572
  value: ::String?,
6564
6573
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
@@ -6567,7 +6576,7 @@ module Aws
6567
6576
  ]?,
6568
6577
  date_filters: Array[
6569
6578
  {
6570
- field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt")?,
6579
+ field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt" | "resources.image.created_time_dt" | "resources.image.last_used_time_dt" | "resources.modified_time_dt")?,
6571
6580
  filter: {
6572
6581
  start: ::String?,
6573
6582
  end: ::String?,
@@ -6588,7 +6597,7 @@ module Aws
6588
6597
  ]?,
6589
6598
  number_filters: Array[
6590
6599
  {
6591
- field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count")?,
6600
+ field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count" | "evidences.api.response.code" | "evidences.dst_endpoint.autonomous_system.number" | "evidences.dst_endpoint.port" | "evidences.src_endpoint.autonomous_system.number" | "evidences.src_endpoint.port" | "resources.image.in_use_count")?,
6592
6601
  filter: {
6593
6602
  gte: ::Float?,
6594
6603
  lte: ::Float?,
@@ -6600,7 +6609,7 @@ module Aws
6600
6609
  ]?,
6601
6610
  map_filters: Array[
6602
6611
  {
6603
- field_name: ("resources.tags")?,
6612
+ field_name: ("resources.tags" | "compliance.control_parameters" | "databucket.tags" | "finding_info.tags")?,
6604
6613
  filter: {
6605
6614
  key: ::String?,
6606
6615
  value: ::String?,
@@ -6608,12 +6617,21 @@ module Aws
6608
6617
  }?
6609
6618
  },
6610
6619
  ]?,
6620
+ ip_filters: Array[
6621
+ {
6622
+ field_name: ("evidences.dst_endpoint.ip" | "evidences.src_endpoint.ip")?,
6623
+ filter: {
6624
+ cidr: ::String?
6625
+ }?
6626
+ },
6627
+ ]?,
6628
+ nested_composite_filters: untyped?,
6611
6629
  operator: ("AND" | "OR")?
6612
6630
  },
6613
6631
  ]?,
6614
6632
  composite_operator: ("AND" | "OR")?
6615
6633
  }?,
6616
- group_by_field: ("activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.name" | "compliance.status" | "compliance.control" | "finding_info.title" | "finding_info.types" | "metadata.product.name" | "metadata.product.uid" | "resources.type" | "resources.uid" | "severity" | "status" | "vulnerabilities.fix_coverage" | "class_name")
6634
+ group_by_field: ("activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.name" | "compliance.status" | "compliance.control" | "finding_info.title" | "finding_info.types" | "metadata.product.name" | "metadata.product.uid" | "resources.type" | "resources.uid" | "severity" | "status" | "vulnerabilities.fix_coverage" | "class_name" | "vulnerabilities.affected_packages.name" | "finding_info.analytic.name" | "compliance.standards" | "cloud.account.name")
6617
6635
  },
6618
6636
  ],
6619
6637
  ?sort_order: ("asc" | "desc"),
@@ -7335,6 +7353,39 @@ module Aws
7335
7353
  ) -> _GetFindingsResponseSuccess
7336
7354
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingsResponseSuccess
7337
7355
 
7356
+ interface _GetFindingsTrendsV2ResponseSuccess
7357
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingsTrendsV2Response]
7358
+ def granularity: () -> ("Daily" | "Weekly" | "Monthly")
7359
+ def trends_metrics: () -> ::Array[Types::TrendsMetricsResult]
7360
+ def next_token: () -> ::String
7361
+ end
7362
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_findings_trends_v2-instance_method
7363
+ def get_findings_trends_v2: (
7364
+ ?filters: {
7365
+ composite_filters: Array[
7366
+ {
7367
+ string_filters: Array[
7368
+ {
7369
+ field_name: ("account_id" | "region" | "finding_types" | "finding_status" | "finding_cve_ids" | "finding_compliance_status" | "finding_control_id" | "finding_class_name" | "finding_provider" | "finding_activity_name")?,
7370
+ filter: {
7371
+ value: ::String?,
7372
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
7373
+ }?
7374
+ },
7375
+ ]?,
7376
+ nested_composite_filters: untyped?,
7377
+ operator: ("AND" | "OR")?
7378
+ },
7379
+ ]?,
7380
+ composite_operator: ("AND" | "OR")?
7381
+ },
7382
+ start_time: ::Time,
7383
+ end_time: ::Time,
7384
+ ?next_token: ::String,
7385
+ ?max_results: ::Integer
7386
+ ) -> _GetFindingsTrendsV2ResponseSuccess
7387
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFindingsTrendsV2ResponseSuccess
7388
+
7338
7389
  interface _GetFindingsV2ResponseSuccess
7339
7390
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingsV2Response]
7340
7391
  def findings: () -> ::Array[untyped]
@@ -7347,7 +7398,7 @@ module Aws
7347
7398
  {
7348
7399
  string_filters: Array[
7349
7400
  {
7350
- field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name")?,
7401
+ field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name" | "databucket.encryption_details.algorithm" | "databucket.encryption_details.key_uid" | "databucket.file.data_classifications.classifier_details.type" | "evidences.actor.user.account.uid" | "evidences.api.operation" | "evidences.api.response.error_message" | "evidences.api.service.name" | "evidences.connection_info.direction" | "evidences.connection_info.protocol_name" | "evidences.dst_endpoint.autonomous_system.name" | "evidences.dst_endpoint.location.city" | "evidences.dst_endpoint.location.country" | "evidences.src_endpoint.autonomous_system.name" | "evidences.src_endpoint.hostname" | "evidences.src_endpoint.location.city" | "evidences.src_endpoint.location.country" | "finding_info.analytic.name" | "malware.name" | "malware_scan_info.uid" | "malware.severity" | "resources.cloud_function.layers.uid_alt" | "resources.cloud_function.runtime" | "resources.cloud_function.user.uid" | "resources.device.encryption_details.key_uid" | "resources.device.image.uid" | "resources.image.architecture" | "resources.image.registry_uid" | "resources.image.repository_name" | "resources.image.uid" | "resources.subnet_info.uid" | "resources.vpc_uid" | "vulnerabilities.affected_code.file.path" | "vulnerabilities.affected_packages.name" | "vulnerabilities.cve.epss.score" | "vulnerabilities.cve.uid" | "vulnerabilities.related_vulnerabilities" | "cloud.account.name")?,
7351
7402
  filter: {
7352
7403
  value: ::String?,
7353
7404
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
@@ -7356,7 +7407,7 @@ module Aws
7356
7407
  ]?,
7357
7408
  date_filters: Array[
7358
7409
  {
7359
- field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt")?,
7410
+ field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt" | "resources.image.created_time_dt" | "resources.image.last_used_time_dt" | "resources.modified_time_dt")?,
7360
7411
  filter: {
7361
7412
  start: ::String?,
7362
7413
  end: ::String?,
@@ -7377,7 +7428,7 @@ module Aws
7377
7428
  ]?,
7378
7429
  number_filters: Array[
7379
7430
  {
7380
- field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count")?,
7431
+ field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count" | "evidences.api.response.code" | "evidences.dst_endpoint.autonomous_system.number" | "evidences.dst_endpoint.port" | "evidences.src_endpoint.autonomous_system.number" | "evidences.src_endpoint.port" | "resources.image.in_use_count")?,
7381
7432
  filter: {
7382
7433
  gte: ::Float?,
7383
7434
  lte: ::Float?,
@@ -7389,7 +7440,7 @@ module Aws
7389
7440
  ]?,
7390
7441
  map_filters: Array[
7391
7442
  {
7392
- field_name: ("resources.tags")?,
7443
+ field_name: ("resources.tags" | "compliance.control_parameters" | "databucket.tags" | "finding_info.tags")?,
7393
7444
  filter: {
7394
7445
  key: ::String?,
7395
7446
  value: ::String?,
@@ -7397,6 +7448,15 @@ module Aws
7397
7448
  }?
7398
7449
  },
7399
7450
  ]?,
7451
+ ip_filters: Array[
7452
+ {
7453
+ field_name: ("evidences.dst_endpoint.ip" | "evidences.src_endpoint.ip")?,
7454
+ filter: {
7455
+ cidr: ::String?
7456
+ }?
7457
+ },
7458
+ ]?,
7459
+ nested_composite_filters: untyped?,
7400
7460
  operator: ("AND" | "OR")?
7401
7461
  },
7402
7462
  ]?,
@@ -7473,13 +7533,13 @@ module Aws
7473
7533
  def get_resources_statistics_v2: (
7474
7534
  group_by_rules: Array[
7475
7535
  {
7476
- group_by_field: ("account_id" | "region" | "resource_category" | "resource_type" | "resource_name" | "findings_summary.finding_type"),
7536
+ group_by_field: ("AccountId" | "Region" | "ResourceCategory" | "ResourceType" | "ResourceName" | "FindingsSummary.FindingType"),
7477
7537
  filters: {
7478
7538
  composite_filters: Array[
7479
7539
  {
7480
7540
  string_filters: Array[
7481
7541
  {
7482
- field_name: ("resource_arn" | "resource_id" | "account_id" | "region" | "resource_category" | "resource_type" | "resource_name" | "findings_summary.finding_type" | "findings_summary.product_name")?,
7542
+ field_name: ("ResourceGuid" | "ResourceId" | "AccountId" | "Region" | "ResourceCategory" | "ResourceType" | "ResourceName" | "FindingsSummary.FindingType" | "FindingsSummary.ProductName")?,
7483
7543
  filter: {
7484
7544
  value: ::String?,
7485
7545
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
@@ -7488,7 +7548,7 @@ module Aws
7488
7548
  ]?,
7489
7549
  date_filters: Array[
7490
7550
  {
7491
- field_name: ("resource_detail_capture_time_dt" | "resource_creation_time_dt")?,
7551
+ field_name: ("ResourceDetailCaptureTime" | "ResourceCreationTime")?,
7492
7552
  filter: {
7493
7553
  start: ::String?,
7494
7554
  end: ::String?,
@@ -7501,7 +7561,7 @@ module Aws
7501
7561
  ]?,
7502
7562
  number_filters: Array[
7503
7563
  {
7504
- field_name: ("findings_summary.total_findings" | "findings_summary.severities.other" | "findings_summary.severities.fatal" | "findings_summary.severities.critical" | "findings_summary.severities.high" | "findings_summary.severities.medium" | "findings_summary.severities.low" | "findings_summary.severities.informational" | "findings_summary.severities.unknown")?,
7564
+ field_name: ("FindingsSummary.TotalFindings" | "FindingsSummary.Severities.Other" | "FindingsSummary.Severities.Fatal" | "FindingsSummary.Severities.Critical" | "FindingsSummary.Severities.High" | "FindingsSummary.Severities.Medium" | "FindingsSummary.Severities.Low" | "FindingsSummary.Severities.Informational" | "FindingsSummary.Severities.Unknown")?,
7505
7565
  filter: {
7506
7566
  gte: ::Float?,
7507
7567
  lte: ::Float?,
@@ -7513,7 +7573,7 @@ module Aws
7513
7573
  ]?,
7514
7574
  map_filters: Array[
7515
7575
  {
7516
- field_name: ("tags")?,
7576
+ field_name: ("ResourceTags")?,
7517
7577
  filter: {
7518
7578
  key: ::String?,
7519
7579
  value: ::String?,
@@ -7521,6 +7581,7 @@ module Aws
7521
7581
  }?
7522
7582
  },
7523
7583
  ]?,
7584
+ nested_composite_filters: untyped?,
7524
7585
  operator: ("AND" | "OR")?
7525
7586
  },
7526
7587
  ]?,
@@ -7533,6 +7594,39 @@ module Aws
7533
7594
  ) -> _GetResourcesStatisticsV2ResponseSuccess
7534
7595
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcesStatisticsV2ResponseSuccess
7535
7596
 
7597
+ interface _GetResourcesTrendsV2ResponseSuccess
7598
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcesTrendsV2Response]
7599
+ def granularity: () -> ("Daily" | "Weekly" | "Monthly")
7600
+ def trends_metrics: () -> ::Array[Types::ResourcesTrendsMetricsResult]
7601
+ def next_token: () -> ::String
7602
+ end
7603
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_resources_trends_v2-instance_method
7604
+ def get_resources_trends_v2: (
7605
+ ?filters: {
7606
+ composite_filters: Array[
7607
+ {
7608
+ string_filters: Array[
7609
+ {
7610
+ field_name: ("account_id" | "region" | "resource_type" | "resource_category")?,
7611
+ filter: {
7612
+ value: ::String?,
7613
+ comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
7614
+ }?
7615
+ },
7616
+ ]?,
7617
+ nested_composite_filters: untyped?,
7618
+ operator: ("AND" | "OR")?
7619
+ },
7620
+ ]?,
7621
+ composite_operator: ("AND" | "OR")?
7622
+ },
7623
+ start_time: ::Time,
7624
+ end_time: ::Time,
7625
+ ?next_token: ::String,
7626
+ ?max_results: ::Integer
7627
+ ) -> _GetResourcesTrendsV2ResponseSuccess
7628
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcesTrendsV2ResponseSuccess
7629
+
7536
7630
  interface _GetResourcesV2ResponseSuccess
7537
7631
  include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcesV2Response]
7538
7632
  def resources: () -> ::Array[Types::ResourceResult]
@@ -7545,7 +7639,7 @@ module Aws
7545
7639
  {
7546
7640
  string_filters: Array[
7547
7641
  {
7548
- field_name: ("resource_arn" | "resource_id" | "account_id" | "region" | "resource_category" | "resource_type" | "resource_name" | "findings_summary.finding_type" | "findings_summary.product_name")?,
7642
+ field_name: ("ResourceGuid" | "ResourceId" | "AccountId" | "Region" | "ResourceCategory" | "ResourceType" | "ResourceName" | "FindingsSummary.FindingType" | "FindingsSummary.ProductName")?,
7549
7643
  filter: {
7550
7644
  value: ::String?,
7551
7645
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
@@ -7554,7 +7648,7 @@ module Aws
7554
7648
  ]?,
7555
7649
  date_filters: Array[
7556
7650
  {
7557
- field_name: ("resource_detail_capture_time_dt" | "resource_creation_time_dt")?,
7651
+ field_name: ("ResourceDetailCaptureTime" | "ResourceCreationTime")?,
7558
7652
  filter: {
7559
7653
  start: ::String?,
7560
7654
  end: ::String?,
@@ -7567,7 +7661,7 @@ module Aws
7567
7661
  ]?,
7568
7662
  number_filters: Array[
7569
7663
  {
7570
- field_name: ("findings_summary.total_findings" | "findings_summary.severities.other" | "findings_summary.severities.fatal" | "findings_summary.severities.critical" | "findings_summary.severities.high" | "findings_summary.severities.medium" | "findings_summary.severities.low" | "findings_summary.severities.informational" | "findings_summary.severities.unknown")?,
7664
+ field_name: ("FindingsSummary.TotalFindings" | "FindingsSummary.Severities.Other" | "FindingsSummary.Severities.Fatal" | "FindingsSummary.Severities.Critical" | "FindingsSummary.Severities.High" | "FindingsSummary.Severities.Medium" | "FindingsSummary.Severities.Low" | "FindingsSummary.Severities.Informational" | "FindingsSummary.Severities.Unknown")?,
7571
7665
  filter: {
7572
7666
  gte: ::Float?,
7573
7667
  lte: ::Float?,
@@ -7579,7 +7673,7 @@ module Aws
7579
7673
  ]?,
7580
7674
  map_filters: Array[
7581
7675
  {
7582
- field_name: ("tags")?,
7676
+ field_name: ("ResourceTags")?,
7583
7677
  filter: {
7584
7678
  key: ::String?,
7585
7679
  value: ::String?,
@@ -7587,6 +7681,7 @@ module Aws
7587
7681
  }?
7588
7682
  },
7589
7683
  ]?,
7684
+ nested_composite_filters: untyped?,
7590
7685
  operator: ("AND" | "OR")?
7591
7686
  },
7592
7687
  ]?,
@@ -7898,7 +7993,7 @@ module Aws
7898
7993
  {
7899
7994
  string_filters: Array[
7900
7995
  {
7901
- field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name")?,
7996
+ field_name: ("metadata.uid" | "activity_name" | "cloud.account.uid" | "cloud.provider" | "cloud.region" | "compliance.assessments.category" | "compliance.assessments.name" | "compliance.control" | "compliance.status" | "compliance.standards" | "finding_info.desc" | "finding_info.src_url" | "finding_info.title" | "finding_info.types" | "finding_info.uid" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.region" | "resources.type" | "resources.uid" | "severity" | "status" | "comment" | "vulnerabilities.fix_coverage" | "class_name" | "databucket.encryption_details.algorithm" | "databucket.encryption_details.key_uid" | "databucket.file.data_classifications.classifier_details.type" | "evidences.actor.user.account.uid" | "evidences.api.operation" | "evidences.api.response.error_message" | "evidences.api.service.name" | "evidences.connection_info.direction" | "evidences.connection_info.protocol_name" | "evidences.dst_endpoint.autonomous_system.name" | "evidences.dst_endpoint.location.city" | "evidences.dst_endpoint.location.country" | "evidences.src_endpoint.autonomous_system.name" | "evidences.src_endpoint.hostname" | "evidences.src_endpoint.location.city" | "evidences.src_endpoint.location.country" | "finding_info.analytic.name" | "malware.name" | "malware_scan_info.uid" | "malware.severity" | "resources.cloud_function.layers.uid_alt" | "resources.cloud_function.runtime" | "resources.cloud_function.user.uid" | "resources.device.encryption_details.key_uid" | "resources.device.image.uid" | "resources.image.architecture" | "resources.image.registry_uid" | "resources.image.repository_name" | "resources.image.uid" | "resources.subnet_info.uid" | "resources.vpc_uid" | "vulnerabilities.affected_code.file.path" | "vulnerabilities.affected_packages.name" | "vulnerabilities.cve.epss.score" | "vulnerabilities.cve.uid" | "vulnerabilities.related_vulnerabilities" | "cloud.account.name")?,
7902
7997
  filter: {
7903
7998
  value: ::String?,
7904
7999
  comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
@@ -7907,7 +8002,7 @@ module Aws
7907
8002
  ]?,
7908
8003
  date_filters: Array[
7909
8004
  {
7910
- field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt")?,
8005
+ field_name: ("finding_info.created_time_dt" | "finding_info.first_seen_time_dt" | "finding_info.last_seen_time_dt" | "finding_info.modified_time_dt" | "resources.image.created_time_dt" | "resources.image.last_used_time_dt" | "resources.modified_time_dt")?,
7911
8006
  filter: {
7912
8007
  start: ::String?,
7913
8008
  end: ::String?,
@@ -7928,7 +8023,7 @@ module Aws
7928
8023
  ]?,
7929
8024
  number_filters: Array[
7930
8025
  {
7931
- field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count")?,
8026
+ field_name: ("activity_id" | "compliance.status_id" | "confidence_score" | "severity_id" | "status_id" | "finding_info.related_events_count" | "evidences.api.response.code" | "evidences.dst_endpoint.autonomous_system.number" | "evidences.dst_endpoint.port" | "evidences.src_endpoint.autonomous_system.number" | "evidences.src_endpoint.port" | "resources.image.in_use_count")?,
7932
8027
  filter: {
7933
8028
  gte: ::Float?,
7934
8029
  lte: ::Float?,
@@ -7940,7 +8035,7 @@ module Aws
7940
8035
  ]?,
7941
8036
  map_filters: Array[
7942
8037
  {
7943
- field_name: ("resources.tags")?,
8038
+ field_name: ("resources.tags" | "compliance.control_parameters" | "databucket.tags" | "finding_info.tags")?,
7944
8039
  filter: {
7945
8040
  key: ::String?,
7946
8041
  value: ::String?,
@@ -7948,6 +8043,15 @@ module Aws
7948
8043
  }?
7949
8044
  },
7950
8045
  ]?,
8046
+ ip_filters: Array[
8047
+ {
8048
+ field_name: ("evidences.dst_endpoint.ip" | "evidences.src_endpoint.ip")?,
8049
+ filter: {
8050
+ cidr: ::String?
8051
+ }?
8052
+ },
8053
+ ]?,
8054
+ nested_composite_filters: untyped?,
7951
8055
  operator: ("AND" | "OR")?
7952
8056
  },
7953
8057
  ]?,