Class: AWSCDK::Route53RecoveryControl::CfnControlPanelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53RecoveryControl::CfnControlPanelProps
- Defined in:
- route53_recovery_control/cfn_control_panel_props.rb
Overview
Properties for defining a CfnControlPanel.
Instance Attribute Summary collapse
-
#cluster_arn ⇒ String, ...
readonly
The Amazon Resource Name (ARN) of the cluster for the control panel.
-
#name ⇒ String
readonly
The name of the control panel.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags associated with the control panel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, cluster_arn: nil, tags: nil) ⇒ CfnControlPanelProps
constructor
A new instance of CfnControlPanelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, cluster_arn: nil, tags: nil) ⇒ CfnControlPanelProps
Returns a new instance of CfnControlPanelProps.
12 13 14 15 16 17 18 19 |
# File 'route53_recovery_control/cfn_control_panel_props.rb', line 12 def initialize(name:, cluster_arn: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @cluster_arn = cluster_arn Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yb3V0ZTUzcmVjb3Zlcnljb250cm9sLklDbHVzdGVyUmVmIn1dfX0=")), "clusterArn") unless @cluster_arn.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
#cluster_arn ⇒ String, ... (readonly)
The Amazon Resource Name (ARN) of the cluster for the control panel.
32 33 34 |
# File 'route53_recovery_control/cfn_control_panel_props.rb', line 32 def cluster_arn @cluster_arn end |
#name ⇒ String (readonly)
The name of the control panel.
You can use any non-white space character in the name.
27 28 29 |
# File 'route53_recovery_control/cfn_control_panel_props.rb', line 27 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags associated with the control panel.
37 38 39 |
# File 'route53_recovery_control/cfn_control_panel_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'route53_recovery_control/cfn_control_panel_props.rb', line 39 def self.jsii_properties { :name => "name", :cluster_arn => "clusterArn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'route53_recovery_control/cfn_control_panel_props.rb', line 47 def to_jsii result = {} result.merge!({ "name" => @name, "clusterArn" => @cluster_arn, "tags" => @tags, }) result.compact end |