Class: AWSCDK::ControlTower::CfnEnabledControlProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
control_tower/cfn_enabled_control_props.rb

Overview

Properties for defining a CfnEnabledControl.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(control_identifier:, target_identifier:, parameters: nil, tags: nil) ⇒ CfnEnabledControlProps

Returns a new instance of CfnEnabledControlProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'control_tower/cfn_enabled_control_props.rb', line 13

def initialize(control_identifier:, target_identifier:, parameters: nil, tags: nil)
  @control_identifier = control_identifier
  Jsii::Type.check_type(@control_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "controlIdentifier")
  @target_identifier = target_identifier
  Jsii::Type.check_type(@target_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetIdentifier")
  @parameters = parameters
  Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29udHJvbHRvd2VyLkNmbkVuYWJsZWRDb250cm9sLkVuYWJsZWRDb250cm9sUGFyYW1ldGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "parameters") unless @parameters.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#control_identifierString (readonly)

The ARN of the control.

Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny control. For information on how to find the control_identifier , see the overview page .



30
31
32
# File 'control_tower/cfn_enabled_control_props.rb', line 30

def control_identifier
  @control_identifier
end

#parametersAWSCDK::IResolvable, ... (readonly)

Array of EnabledControlParameter objects.



42
43
44
# File 'control_tower/cfn_enabled_control_props.rb', line 42

def parameters
  @parameters
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A set of tags to assign to the enabled control.



47
48
49
# File 'control_tower/cfn_enabled_control_props.rb', line 47

def tags
  @tags
end

#target_identifierString (readonly)

The ARN of the organizational unit.

For information on how to find the target_identifier , see the overview page .



37
38
39
# File 'control_tower/cfn_enabled_control_props.rb', line 37

def target_identifier
  @target_identifier
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'control_tower/cfn_enabled_control_props.rb', line 49

def self.jsii_properties
  {
    :control_identifier => "controlIdentifier",
    :target_identifier => "targetIdentifier",
    :parameters => "parameters",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'control_tower/cfn_enabled_control_props.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "controlIdentifier" => @control_identifier,
    "targetIdentifier" => @target_identifier,
    "parameters" => @parameters,
    "tags" => @tags,
  })
  result.compact
end