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