Class: AWSCDK::SecurityHub::CfnHubV2Props
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnHubV2Props
- Defined in:
- security_hub/cfn_hub_v2_props.rb
Overview
Properties for defining a CfnHubV2.
Instance Attribute Summary collapse
-
#tags ⇒ Hash{String => String}?
readonly
The tags to add to the hub V2 resource when you enable Security Hub CSPM.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tags: nil) ⇒ CfnHubV2Props
constructor
A new instance of CfnHubV2Props.
- #to_jsii ⇒ Object
Constructor Details
#initialize(tags: nil) ⇒ CfnHubV2Props
Returns a new instance of CfnHubV2Props.
10 11 12 13 |
# File 'security_hub/cfn_hub_v2_props.rb', line 10 def initialize(tags: nil) @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#tags ⇒ Hash{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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |