Class: AWSCDK::SecurityHub::CfnFindingAggregatorProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnFindingAggregatorProps
- Defined in:
- security_hub/cfn_finding_aggregator_props.rb
Overview
Properties for defining a CfnFindingAggregator.
Instance Attribute Summary collapse
-
#region_linking_mode ⇒ String
readonly
Indicates whether to aggregate findings from all of the available Regions in the current partition.
-
#regions ⇒ Array<String>?
readonly
If
RegionLinkingModeisALL_REGIONS_EXCEPT_SPECIFIED, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(region_linking_mode:, regions: nil) ⇒ CfnFindingAggregatorProps
constructor
A new instance of CfnFindingAggregatorProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(region_linking_mode:, regions: nil) ⇒ CfnFindingAggregatorProps
Returns a new instance of CfnFindingAggregatorProps.
11 12 13 14 15 16 |
# File 'security_hub/cfn_finding_aggregator_props.rb', line 11 def initialize(region_linking_mode:, regions: nil) @region_linking_mode = region_linking_mode Jsii::Type.check_type(@region_linking_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regionLinkingMode") @regions = regions Jsii::Type.check_type(@regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") unless @regions.nil? end |
Instance Attribute Details
#region_linking_mode ⇒ String (readonly)
Indicates whether to aggregate findings from all of the available Regions in the current partition.
Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
In CloudFormation , the options for this property are as follows:
ALL_REGIONS- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.ALL_REGIONS_EXCEPT_SPECIFIED- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegionsparameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.SPECIFIED_REGIONS- Indicates to aggregate findings only from the Regions listed in theRegionsparameter. Security Hub does not automatically aggregate findings from new Regions.
32 33 34 |
# File 'security_hub/cfn_finding_aggregator_props.rb', line 32 def region_linking_mode @region_linking_mode end |
#regions ⇒ Array<String>? (readonly)
If RegionLinkingMode is ALL_REGIONS_EXCEPT_SPECIFIED , then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
If RegionLinkingMode is SPECIFIED_REGIONS , then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
39 40 41 |
# File 'security_hub/cfn_finding_aggregator_props.rb', line 39 def regions @regions end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 |
# File 'security_hub/cfn_finding_aggregator_props.rb', line 41 def self.jsii_properties { :region_linking_mode => "regionLinkingMode", :regions => "regions", } end |
Instance Method Details
#to_jsii ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'security_hub/cfn_finding_aggregator_props.rb', line 48 def to_jsii result = {} result.merge!({ "regionLinkingMode" => @region_linking_mode, "regions" => @regions, }) result.compact end |