Class: AWSCDK::SecurityHub::CfnAggregatorV2Props

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_aggregator_v2_props.rb

Overview

Properties for defining a CfnAggregatorV2.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(linked_regions:, region_linking_mode:, tags: nil) ⇒ CfnAggregatorV2Props

Returns a new instance of CfnAggregatorV2Props.

Parameters:

  • linked_regions (Array<String>)

    The list of Regions that are linked to the aggregation Region.

  • region_linking_mode (String)

    Determines how Regions are linked to an Aggregator V2.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    A list of key-value pairs to be applied to the AggregatorV2.



12
13
14
15
16
17
18
19
# File 'security_hub/cfn_aggregator_v2_props.rb', line 12

def initialize(linked_regions:, region_linking_mode:, tags: nil)
  @linked_regions = linked_regions
  Jsii::Type.check_type(@linked_regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "linkedRegions")
  @region_linking_mode = region_linking_mode
  Jsii::Type.check_type(@region_linking_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regionLinkingMode")
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#linked_regionsArray<String> (readonly)

The list of Regions that are linked to the aggregation Region.



25
26
27
# File 'security_hub/cfn_aggregator_v2_props.rb', line 25

def linked_regions
  @linked_regions
end

#region_linking_modeString (readonly)

Determines how Regions are linked to an Aggregator V2.



30
31
32
# File 'security_hub/cfn_aggregator_v2_props.rb', line 30

def region_linking_mode
  @region_linking_mode
end

#tagsHash{String => String}? (readonly)

A list of key-value pairs to be applied to the AggregatorV2.



35
36
37
# File 'security_hub/cfn_aggregator_v2_props.rb', line 35

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'security_hub/cfn_aggregator_v2_props.rb', line 37

def self.jsii_properties
  {
    :linked_regions => "linkedRegions",
    :region_linking_mode => "regionLinkingMode",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'security_hub/cfn_aggregator_v2_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "linkedRegions" => @linked_regions,
    "regionLinkingMode" => @region_linking_mode,
    "tags" => @tags,
  })
  result.compact
end