Class: AWSCDK::ControlTower::CfnEnabledBaselineProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ControlTower::CfnEnabledBaselineProps
- Defined in:
- control_tower/cfn_enabled_baseline_props.rb
Overview
Properties for defining a CfnEnabledBaseline.
Instance Attribute Summary collapse
-
#baseline_identifier ⇒ String
readonly
The specific
Baselineenabled as part of theEnabledBaselineresource. -
#baseline_version ⇒ String
readonly
The enabled version of the
Baseline. -
#parameters ⇒ AWSCDK::IResolvable, ...
readonly
Shows the parameters that are applied when enabling this
Baseline. - #tags ⇒ Array<AWSCDK::CfnTag>? readonly
-
#target_identifier ⇒ String
readonly
The target on which to enable the
Baseline.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(baseline_identifier:, baseline_version:, target_identifier:, parameters: nil, tags: nil) ⇒ CfnEnabledBaselineProps
constructor
A new instance of CfnEnabledBaselineProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(baseline_identifier:, baseline_version:, target_identifier:, parameters: nil, tags: nil) ⇒ CfnEnabledBaselineProps
Returns a new instance of CfnEnabledBaselineProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 14 def initialize(baseline_identifier:, baseline_version:, target_identifier:, parameters: nil, tags: nil) @baseline_identifier = baseline_identifier Jsii::Type.check_type(@baseline_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "baselineIdentifier") @baseline_version = baseline_version Jsii::Type.check_type(@baseline_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "baselineVersion") @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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29udHJvbHRvd2VyLkNmbkVuYWJsZWRCYXNlbGluZS5QYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "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
#baseline_identifier ⇒ String (readonly)
The specific Baseline enabled as part of the EnabledBaseline resource.
31 32 33 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 31 def baseline_identifier @baseline_identifier end |
#baseline_version ⇒ String (readonly)
The enabled version of the Baseline .
36 37 38 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 36 def baseline_version @baseline_version end |
#parameters ⇒ AWSCDK::IResolvable, ... (readonly)
Shows the parameters that are applied when enabling this Baseline .
46 47 48 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 46 def parameters @parameters end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
49 50 51 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 49 def @tags end |
#target_identifier ⇒ String (readonly)
The target on which to enable the Baseline .
41 42 43 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 41 def target_identifier @target_identifier end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 51 def self.jsii_properties { :baseline_identifier => "baselineIdentifier", :baseline_version => "baselineVersion", :target_identifier => "targetIdentifier", :parameters => "parameters", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'control_tower/cfn_enabled_baseline_props.rb', line 61 def to_jsii result = {} result.merge!({ "baselineIdentifier" => @baseline_identifier, "baselineVersion" => @baseline_version, "targetIdentifier" => @target_identifier, "parameters" => @parameters, "tags" => @tags, }) result.compact end |