Class: AWSCDK::Route53RecoveryReadiness::CfnRecoveryGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53RecoveryReadiness::CfnRecoveryGroupProps
- Defined in:
- route53_recovery_readiness/cfn_recovery_group_props.rb
Overview
Properties for defining a CfnRecoveryGroup.
Instance Attribute Summary collapse
-
#cells ⇒ Array<String>?
readonly
A list of the cell Amazon Resource Names (ARNs) in the recovery group.
-
#recovery_group_name ⇒ String?
readonly
The name of the recovery group to create.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A collection of tags associated with a resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cells: nil, recovery_group_name: nil, tags: nil) ⇒ CfnRecoveryGroupProps
constructor
A new instance of CfnRecoveryGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cells: nil, recovery_group_name: nil, tags: nil) ⇒ CfnRecoveryGroupProps
Returns a new instance of CfnRecoveryGroupProps.
12 13 14 15 16 17 18 19 |
# File 'route53_recovery_readiness/cfn_recovery_group_props.rb', line 12 def initialize(cells: nil, recovery_group_name: nil, tags: nil) @cells = cells Jsii::Type.check_type(@cells, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cells") unless @cells.nil? @recovery_group_name = recovery_group_name Jsii::Type.check_type(@recovery_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recoveryGroupName") unless @recovery_group_name.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
#cells ⇒ Array<String>? (readonly)
A list of the cell Amazon Resource Names (ARNs) in the recovery group.
25 26 27 |
# File 'route53_recovery_readiness/cfn_recovery_group_props.rb', line 25 def cells @cells end |
#recovery_group_name ⇒ String? (readonly)
The name of the recovery group to create.
30 31 32 |
# File 'route53_recovery_readiness/cfn_recovery_group_props.rb', line 30 def recovery_group_name @recovery_group_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A collection of tags associated with a resource.
35 36 37 |
# File 'route53_recovery_readiness/cfn_recovery_group_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'route53_recovery_readiness/cfn_recovery_group_props.rb', line 37 def self.jsii_properties { :cells => "cells", :recovery_group_name => "recoveryGroupName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'route53_recovery_readiness/cfn_recovery_group_props.rb', line 45 def to_jsii result = {} result.merge!({ "cells" => @cells, "recoveryGroupName" => @recovery_group_name, "tags" => @tags, }) result.compact end |