Class: AWSCDK::SecurityHub::CfnHubV2Props

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

Overview

Properties for defining a CfnHubV2.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags: nil) ⇒ CfnHubV2Props

Returns a new instance of CfnHubV2Props.

Parameters:

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

    The tags to add to the hub V2 resource when you enable Security Hub CSPM.



10
11
12
13
# File 'security_hub/cfn_hub_v2_props.rb', line 10

def initialize(tags: nil)
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

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

The tags to add to the hub V2 resource when you enable Security Hub CSPM.



19
20
21
# File 'security_hub/cfn_hub_v2_props.rb', line 19

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'security_hub/cfn_hub_v2_props.rb', line 21

def self.jsii_properties
  {
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'security_hub/cfn_hub_v2_props.rb', line 27

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