Class: AWSCDK::ControlTower::CfnEnabledControl::EnabledControlParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ControlTower::CfnEnabledControl::EnabledControlParameterProperty
- Defined in:
- control_tower/cfn_enabled_control.rb
Overview
A set of parameters that configure the behavior of the enabled control.
Expressed as a key/value pair, where Key is of type String and Value is of type Document .
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key of a key/value pair.
-
#value ⇒ Object
readonly
The value of a key/value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ EnabledControlParameterProperty
constructor
A new instance of EnabledControlParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ EnabledControlParameterProperty
Returns a new instance of EnabledControlParameterProperty.
546 547 548 549 550 551 |
# File 'control_tower/cfn_enabled_control.rb', line 546 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
The key of a key/value pair.
It is of type string .
559 560 561 |
# File 'control_tower/cfn_enabled_control.rb', line 559 def key @key end |
#value ⇒ Object (readonly)
The value of a key/value pair.
It can be of type array , string , number , object , or boolean . [Note: The Type field that follows may show a single type such as Number, which is only one possible type.]
566 567 568 |
# File 'control_tower/cfn_enabled_control.rb', line 566 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
568 569 570 571 572 573 |
# File 'control_tower/cfn_enabled_control.rb', line 568 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
575 576 577 578 579 580 581 582 |
# File 'control_tower/cfn_enabled_control.rb', line 575 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |