Class: AWSCDK::ControlTower::CfnEnabledControlProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ControlTower::CfnEnabledControlProps
- Defined in:
- control_tower/cfn_enabled_control_props.rb
Overview
Properties for defining a CfnEnabledControl.
Instance Attribute Summary collapse
-
#control_identifier ⇒ String
readonly
The ARN of the control.
-
#parameters ⇒ AWSCDK::IResolvable, ...
readonly
Array of
EnabledControlParameterobjects. -
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A set of tags to assign to the enabled control.
-
#target_identifier ⇒ String
readonly
The ARN of the organizational unit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(control_identifier:, target_identifier:, parameters: nil, tags: nil) ⇒ CfnEnabledControlProps
constructor
A new instance of CfnEnabledControlProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(control_identifier:, target_identifier:, parameters: nil, tags: nil) ⇒ CfnEnabledControlProps
Returns a new instance of CfnEnabledControlProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#control_identifier ⇒ String (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 |
#parameters ⇒ AWSCDK::IResolvable, ... (readonly)
Array of EnabledControlParameter objects.
42 43 44 |
# File 'control_tower/cfn_enabled_control_props.rb', line 42 def parameters @parameters end |
#tags ⇒ Array<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 end |
#target_identifier ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |