Class: AWSCDK::Route53RecoveryReadiness::CfnCellProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_recovery_readiness/cfn_cell_props.rb

Overview

Properties for defining a CfnCell.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cell_name: nil, cells: nil, tags: nil) ⇒ CfnCellProps

Returns a new instance of CfnCellProps.

Parameters:

  • cell_name (String, nil) (defaults to: nil)

    The name of the cell to create.

  • cells (Array<String>, nil) (defaults to: nil)

    A list of cell Amazon Resource Names (ARNs) contained within this cell, for use in nested cells.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A collection of tags associated with a resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#cell_nameString? (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

#cellsArray<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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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