Class: AWSCDK::Route53RecoveryControl::CfnClusterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53RecoveryControl::CfnClusterProps
- Defined in:
- route53_recovery_control/cfn_cluster_props.rb
Overview
Properties for defining a CfnCluster.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name of the cluster.
-
#network_type ⇒ String?
readonly
The network-type can either be IPV4 or DUALSTACK.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags associated with the cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, network_type: nil, tags: nil) ⇒ CfnClusterProps
constructor
A new instance of CfnClusterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, network_type: nil, tags: nil) ⇒ CfnClusterProps
Returns a new instance of CfnClusterProps.
12 13 14 15 16 17 18 19 |
# File 'route53_recovery_control/cfn_cluster_props.rb', line 12 def initialize(name:, network_type: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @network_type = network_type Jsii::Type.check_type(@network_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkType") unless @network_type.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
#name ⇒ String (readonly)
Name of the cluster.
You can use any non-white space character in the name except the following: & > < ' (single quote) " (double quote) ; (semicolon).
27 28 29 |
# File 'route53_recovery_control/cfn_cluster_props.rb', line 27 def name @name end |
#network_type ⇒ String? (readonly)
The network-type can either be IPV4 or DUALSTACK.
32 33 34 |
# File 'route53_recovery_control/cfn_cluster_props.rb', line 32 def network_type @network_type end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags associated with the cluster.
37 38 39 |
# File 'route53_recovery_control/cfn_cluster_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_cluster_props.rb', line 39 def self.jsii_properties { :name => "name", :network_type => "networkType", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'route53_recovery_control/cfn_cluster_props.rb', line 47 def to_jsii result = {} result.merge!({ "name" => @name, "networkType" => @network_type, "tags" => @tags, }) result.compact end |