Class: AWSCDK::Route53RecoveryControl::CfnClusterProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_recovery_control/cfn_cluster_props.rb

Overview

Properties for defining a CfnCluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, network_type: nil, tags: nil) ⇒ CfnClusterProps

Returns a new instance of CfnClusterProps.

Parameters:

  • name (String)

    Name of the cluster.

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

    The network-type can either be IPV4 or DUALSTACK.

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

    The tags associated with the cluster.



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

#nameString (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_typeString? (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

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags associated with the cluster.



37
38
39
# File 'route53_recovery_control/cfn_cluster_props.rb', line 37

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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