Class: AWSCDK::Route53RecoveryReadiness::CfnRecoveryGroupProps

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

Overview

Properties for defining a CfnRecoveryGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cells: nil, recovery_group_name: nil, tags: nil) ⇒ CfnRecoveryGroupProps

Returns a new instance of CfnRecoveryGroupProps.

Parameters:

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

    A list of the cell Amazon Resource Names (ARNs) in the recovery group.

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

    The name of the recovery group to create.

  • 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_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 = 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

#cellsArray<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_nameString? (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

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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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