Class: AWSCDK::ControlTower::CfnEnabledControl::EnabledControlParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ EnabledControlParameterProperty

Returns a new instance of EnabledControlParameterProperty.

Parameters:

  • key (String)

    The key of a key/value pair.

  • value (Object)

    The value of a key/value pair.



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

#keyString (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

#valueObject (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_propertiesObject



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_jsiiObject



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