aws-sdk-securityhub 1.166.0 → 1.167.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
@@ -4109,6 +4109,17 @@ module Aws
4109
4109
  ) -> _BatchUpdateStandardsControlAssociationsResponseSuccess
4110
4110
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchUpdateStandardsControlAssociationsResponseSuccess
4111
4111
 
4112
+ interface _CancelExportJobV2ResponseSuccess
4113
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelExportJobV2Response]
4114
+ def export_job_id: () -> ::String
4115
+ def status: () -> ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED")
4116
+ end
4117
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#cancel_export_job_v2-instance_method
4118
+ def cancel_export_job_v2: (
4119
+ export_job_id: ::String
4120
+ ) -> _CancelExportJobV2ResponseSuccess
4121
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelExportJobV2ResponseSuccess
4122
+
4112
4123
  interface _CreateActionTargetResponseSuccess
4113
4124
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateActionTargetResponse]
4114
4125
  def action_target_arn: () -> ::String
@@ -4763,6 +4774,26 @@ module Aws
4763
4774
  ) -> _GetEnabledStandardsResponseSuccess
4764
4775
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnabledStandardsResponseSuccess
4765
4776
 
4777
+ interface _GetExportJobV2ResponseSuccess
4778
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetExportJobV2Response]
4779
+ def export_job_id: () -> ::String
4780
+ def name: () -> ::String
4781
+ def status: () -> ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED")
4782
+ def data_type: () -> ("FINDINGS")
4783
+ def output_configuration: () -> Types::ExportOutput
4784
+ def scopes: () -> Types::ExportScopes
4785
+ def destination: () -> Types::ExportDestination
4786
+ def failure_code: () -> ("ACCESS_DENIED" | "RESOURCE_NOT_FOUND" | "INTERNAL_ERROR")
4787
+ def failure_message: () -> ::String
4788
+ def started_at: () -> ::Time
4789
+ def ended_at: () -> ::Time
4790
+ end
4791
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_export_job_v2-instance_method
4792
+ def get_export_job_v2: (
4793
+ export_job_id: ::String
4794
+ ) -> _GetExportJobV2ResponseSuccess
4795
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetExportJobV2ResponseSuccess
4796
+
4766
4797
  interface _GetFindingAggregatorResponseSuccess
4767
4798
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFindingAggregatorResponse]
4768
4799
  def finding_aggregator_arn: () -> ::String
@@ -5184,6 +5215,20 @@ module Aws
5184
5215
  ) -> _ListEnabledProductsForImportResponseSuccess
5185
5216
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnabledProductsForImportResponseSuccess
5186
5217
 
5218
+ interface _ListExportJobsV2ResponseSuccess
5219
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListExportJobsV2Response]
5220
+ def items: () -> ::Array[Types::ExportSummary]
5221
+ def next_token: () -> ::String
5222
+ end
5223
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#list_export_jobs_v2-instance_method
5224
+ def list_export_jobs_v2: (
5225
+ ?status: ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED"),
5226
+ ?data_type: ("FINDINGS"),
5227
+ ?max_results: ::Integer,
5228
+ ?next_token: ::String
5229
+ ) -> _ListExportJobsV2ResponseSuccess
5230
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListExportJobsV2ResponseSuccess
5231
+
5187
5232
  interface _ListExposuresByRemediationV2ResponseSuccess
5188
5233
  include ::Seahorse::Client::_ResponseSuccess[Types::ListExposuresByRemediationV2Response]
5189
5234
  def items: () -> ::Array[Types::ExposureFinding]
@@ -5350,6 +5395,39 @@ module Aws
5350
5395
  ) -> _StartConfigurationPolicyDisassociationResponseSuccess
5351
5396
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartConfigurationPolicyDisassociationResponseSuccess
5352
5397
 
5398
+ interface _StartExportJobV2ResponseSuccess
5399
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartExportJobV2Response]
5400
+ def export_job_id: () -> ::String
5401
+ end
5402
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#start_export_job_v2-instance_method
5403
+ def start_export_job_v2: (
5404
+ ?name: ::String,
5405
+ destination: {
5406
+ s3: {
5407
+ bucket_arn: ::String,
5408
+ kms_key_arn: ::String,
5409
+ object_prefix: ::String?
5410
+ }?
5411
+ },
5412
+ output_configuration: {
5413
+ findings: {
5414
+ format: ("CSV" | "OCSF_JSON"),
5415
+ filters: Params::ocsf_finding_filters?,
5416
+ selected_fields: Array[("metadata.uid" | "activity_name" | "cloud.account.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.traits.category" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.feature.uid" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.name" | "resources.owner.account.uid" | "resources.owner.org.uid" | "resources.owner.account.name" | "resources.provider" | "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.cvss.vendor_name" | "vulnerabilities.cve.cvss.version" | "vulnerabilities.cve.epss.score" | "vulnerabilities.cve.uid" | "vulnerabilities.related_vulnerabilities" | "vendor_attributes.severity" | "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" | "vulnerabilities.cve.cvss.base_score" | "vendor_attributes.severity_id" | "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" | "compliance.assessments.meets_criteria" | "vulnerabilities.is_exploit_available" | "vulnerabilities.is_fix_available" | "resources.tags" | "compliance.control_parameters" | "databucket.tags" | "finding_info.tags" | "evidences.dst_endpoint.ip" | "evidences.src_endpoint.ip")]?
5417
+ }?
5418
+ },
5419
+ ?scopes: {
5420
+ aws_organizations: Array[
5421
+ {
5422
+ organization_id: ::String?,
5423
+ organizational_unit_id: ::String?
5424
+ }
5425
+ ]?
5426
+ },
5427
+ ?client_token: ::String
5428
+ ) -> _StartExportJobV2ResponseSuccess
5429
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartExportJobV2ResponseSuccess
5430
+
5353
5431
  interface _TagResourceResponseSuccess
5354
5432
  include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
5355
5433
  end
data/sig/types.rbs CHANGED
@@ -4917,6 +4917,17 @@ module Aws::SecurityHub
4917
4917
  SENSITIVE: []
4918
4918
  end
4919
4919
 
4920
+ class CancelExportJobV2Request
4921
+ attr_accessor export_job_id: ::String
4922
+ SENSITIVE: []
4923
+ end
4924
+
4925
+ class CancelExportJobV2Response
4926
+ attr_accessor export_job_id: ::String
4927
+ attr_accessor status: ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED")
4928
+ SENSITIVE: []
4929
+ end
4930
+
4920
4931
  class Cell
4921
4932
  attr_accessor column: ::Integer
4922
4933
  attr_accessor row: ::Integer
@@ -5711,6 +5722,59 @@ module Aws::SecurityHub
5711
5722
  SENSITIVE: []
5712
5723
  end
5713
5724
 
5725
+ class ExportDestination
5726
+ attr_accessor s3: Types::S3ExportDestination
5727
+ attr_accessor unknown: untyped
5728
+ SENSITIVE: []
5729
+
5730
+ class S3 < ExportDestination
5731
+ end
5732
+ class Unknown < ExportDestination
5733
+ end
5734
+ end
5735
+
5736
+ class ExportOutput
5737
+ attr_accessor findings: Types::FindingsOutput
5738
+ attr_accessor unknown: untyped
5739
+ SENSITIVE: []
5740
+
5741
+ class Findings < ExportOutput
5742
+ end
5743
+ class Unknown < ExportOutput
5744
+ end
5745
+ end
5746
+
5747
+ class ExportOutputSummary
5748
+ attr_accessor findings: Types::FindingsOutputSummary
5749
+ attr_accessor unknown: untyped
5750
+ SENSITIVE: []
5751
+
5752
+ class Findings < ExportOutputSummary
5753
+ end
5754
+ class Unknown < ExportOutputSummary
5755
+ end
5756
+ end
5757
+
5758
+ class ExportScopes
5759
+ attr_accessor aws_organizations: ::Array[Types::AwsOrganizationScope]
5760
+ SENSITIVE: []
5761
+ end
5762
+
5763
+ class ExportSummary
5764
+ attr_accessor export_job_id: ::String
5765
+ attr_accessor name: ::String
5766
+ attr_accessor status: ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED")
5767
+ attr_accessor data_type: ("FINDINGS")
5768
+ attr_accessor output_configuration: Types::ExportOutputSummary
5769
+ attr_accessor scopes: Types::ExportScopes
5770
+ attr_accessor destination: Types::ExportDestination
5771
+ attr_accessor failure_code: ("ACCESS_DENIED" | "RESOURCE_NOT_FOUND" | "INTERNAL_ERROR")
5772
+ attr_accessor failure_message: ::String
5773
+ attr_accessor started_at: ::Time
5774
+ attr_accessor ended_at: ::Time
5775
+ SENSITIVE: []
5776
+ end
5777
+
5714
5778
  class ExposureFinding
5715
5779
  attr_accessor metadata_uid: ::String
5716
5780
  attr_accessor title: ::String
@@ -5787,6 +5851,18 @@ module Aws::SecurityHub
5787
5851
  SENSITIVE: []
5788
5852
  end
5789
5853
 
5854
+ class FindingsOutput
5855
+ attr_accessor format: ("CSV" | "OCSF_JSON")
5856
+ attr_accessor filters: Types::OcsfFindingFilters
5857
+ attr_accessor selected_fields: ::Array[("metadata.uid" | "activity_name" | "cloud.account.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.traits.category" | "finding_info.related_events.uid" | "finding_info.related_events.product.uid" | "finding_info.related_events.title" | "metadata.product.feature.uid" | "metadata.product.name" | "metadata.product.uid" | "metadata.product.vendor_name" | "remediation.desc" | "remediation.references" | "resources.cloud_partition" | "resources.name" | "resources.owner.account.uid" | "resources.owner.org.uid" | "resources.owner.account.name" | "resources.provider" | "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.cvss.vendor_name" | "vulnerabilities.cve.cvss.version" | "vulnerabilities.cve.epss.score" | "vulnerabilities.cve.uid" | "vulnerabilities.related_vulnerabilities" | "vendor_attributes.severity" | "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" | "vulnerabilities.cve.cvss.base_score" | "vendor_attributes.severity_id" | "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" | "compliance.assessments.meets_criteria" | "vulnerabilities.is_exploit_available" | "vulnerabilities.is_fix_available" | "resources.tags" | "compliance.control_parameters" | "databucket.tags" | "finding_info.tags" | "evidences.dst_endpoint.ip" | "evidences.src_endpoint.ip")]
5858
+ SENSITIVE: []
5859
+ end
5860
+
5861
+ class FindingsOutputSummary
5862
+ attr_accessor format: ("CSV" | "OCSF_JSON")
5863
+ SENSITIVE: []
5864
+ end
5865
+
5790
5866
  class FindingsTrendsCompositeFilter
5791
5867
  attr_accessor string_filters: ::Array[Types::FindingsTrendsStringFilter]
5792
5868
  attr_accessor nested_composite_filters: ::Array[Types::FindingsTrendsCompositeFilter]
@@ -5986,6 +6062,26 @@ module Aws::SecurityHub
5986
6062
  SENSITIVE: []
5987
6063
  end
5988
6064
 
6065
+ class GetExportJobV2Request
6066
+ attr_accessor export_job_id: ::String
6067
+ SENSITIVE: []
6068
+ end
6069
+
6070
+ class GetExportJobV2Response
6071
+ attr_accessor export_job_id: ::String
6072
+ attr_accessor name: ::String
6073
+ attr_accessor status: ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED")
6074
+ attr_accessor data_type: ("FINDINGS")
6075
+ attr_accessor output_configuration: Types::ExportOutput
6076
+ attr_accessor scopes: Types::ExportScopes
6077
+ attr_accessor destination: Types::ExportDestination
6078
+ attr_accessor failure_code: ("ACCESS_DENIED" | "RESOURCE_NOT_FOUND" | "INTERNAL_ERROR")
6079
+ attr_accessor failure_message: ::String
6080
+ attr_accessor started_at: ::Time
6081
+ attr_accessor ended_at: ::Time
6082
+ SENSITIVE: []
6083
+ end
6084
+
5989
6085
  class GetFindingAggregatorRequest
5990
6086
  attr_accessor finding_aggregator_arn: ::String
5991
6087
  SENSITIVE: []
@@ -6500,6 +6596,20 @@ module Aws::SecurityHub
6500
6596
  SENSITIVE: []
6501
6597
  end
6502
6598
 
6599
+ class ListExportJobsV2Request
6600
+ attr_accessor status: ("RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED")
6601
+ attr_accessor data_type: ("FINDINGS")
6602
+ attr_accessor max_results: ::Integer
6603
+ attr_accessor next_token: ::String
6604
+ SENSITIVE: []
6605
+ end
6606
+
6607
+ class ListExportJobsV2Response
6608
+ attr_accessor items: ::Array[Types::ExportSummary]
6609
+ attr_accessor next_token: ::String
6610
+ SENSITIVE: []
6611
+ end
6612
+
6503
6613
  class ListExposuresByRemediationV2Request
6504
6614
  attr_accessor target_uid: ::String
6505
6615
  attr_accessor max_results: ::Integer
@@ -7673,6 +7783,13 @@ module Aws::SecurityHub
7673
7783
  SENSITIVE: []
7674
7784
  end
7675
7785
 
7786
+ class S3ExportDestination
7787
+ attr_accessor bucket_arn: ::String
7788
+ attr_accessor kms_key_arn: ::String
7789
+ attr_accessor object_prefix: ::String
7790
+ SENSITIVE: []
7791
+ end
7792
+
7676
7793
  class SecurityControl
7677
7794
  attr_accessor security_control_id: ::String
7678
7795
  attr_accessor security_control_arn: ::String
@@ -7960,6 +8077,20 @@ module Aws::SecurityHub
7960
8077
  class StartConfigurationPolicyDisassociationResponse < Aws::EmptyStructure
7961
8078
  end
7962
8079
 
8080
+ class StartExportJobV2Request
8081
+ attr_accessor name: ::String
8082
+ attr_accessor destination: Types::ExportDestination
8083
+ attr_accessor output_configuration: Types::ExportOutput
8084
+ attr_accessor scopes: Types::ExportScopes
8085
+ attr_accessor client_token: ::String
8086
+ SENSITIVE: []
8087
+ end
8088
+
8089
+ class StartExportJobV2Response
8090
+ attr_accessor export_job_id: ::String
8091
+ SENSITIVE: []
8092
+ end
8093
+
7963
8094
  class StatelessCustomActionDefinition
7964
8095
  attr_accessor publish_metric_action: Types::StatelessCustomPublishMetricAction
7965
8096
  SENSITIVE: []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-securityhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.166.0
4
+ version: 1.167.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services