Class: AWSCDK::Route53RecoveryReadiness::CfnCellProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53RecoveryReadiness::CfnCellProps
- Defined in:
- route53_recovery_readiness/cfn_cell_props.rb
Overview
Properties for defining a CfnCell.
Instance Attribute Summary collapse
-
#cell_name ⇒ String?
readonly
The name of the cell to create.
-
#cells ⇒ Array<String>?
readonly
A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A collection of tags associated with a resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cell_name: nil, cells: nil, tags: nil) ⇒ CfnCellProps
constructor
A new instance of CfnCellProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cell_name: nil, cells: nil, tags: nil) ⇒ CfnCellProps
Returns a new instance of CfnCellProps.
12 13 14 15 16 17 18 19 |
# File 'route53_recovery_readiness/cfn_cell_props.rb', line 12 def initialize(cell_name: nil, cells: nil, tags: nil) @cell_name = cell_name Jsii::Type.check_type(@cell_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cellName") unless @cell_name.nil? @cells = cells Jsii::Type.check_type(@cells, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cells") unless @cells.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
#cell_name ⇒ String? (readonly)
The name of the cell to create.
25 26 27 |
# File 'route53_recovery_readiness/cfn_cell_props.rb', line 25 def cell_name @cell_name end |
#cells ⇒ Array<String>? (readonly)
A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells.
For example, Availability Zones within specific AWS Regions .
32 33 34 |
# File 'route53_recovery_readiness/cfn_cell_props.rb', line 32 def cells @cells end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A collection of tags associated with a resource.
37 38 39 |
# File 'route53_recovery_readiness/cfn_cell_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'route53_recovery_readiness/cfn_cell_props.rb', line 39 def self.jsii_properties { :cell_name => "cellName", :cells => "cells", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'route53_recovery_readiness/cfn_cell_props.rb', line 47 def to_jsii result = {} result.merge!({ "cellName" => @cell_name, "cells" => @cells, "tags" => @tags, }) result.compact end |