Class: AWSCDK::Directconnect::CfnDirectConnectGatewayProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
directconnect/cfn_direct_connect_gateway_props.rb

Overview

Properties for defining a CfnDirectConnectGateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(direct_connect_gateway_name:, amazon_side_asn: nil, tags: nil) ⇒ CfnDirectConnectGatewayProps

Returns a new instance of CfnDirectConnectGatewayProps.

Parameters:

  • direct_connect_gateway_name (String)

    The name of the Direct Connect gateway.

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

    The autonomous system number (ASN) for the Amazon side of the connection.

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

    The tags associated with the Direct Connect gateway.



12
13
14
15
16
17
18
19
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 12

def initialize(direct_connect_gateway_name:, amazon_side_asn: nil, tags: nil)
  @direct_connect_gateway_name = direct_connect_gateway_name
  Jsii::Type.check_type(@direct_connect_gateway_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "directConnectGatewayName")
  @amazon_side_asn = amazon_side_asn
  Jsii::Type.check_type(@amazon_side_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "amazonSideAsn") unless @amazon_side_asn.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

#amazon_side_asnString? (readonly)

The autonomous system number (ASN) for the Amazon side of the connection.



30
31
32
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 30

def amazon_side_asn
  @amazon_side_asn
end

#direct_connect_gateway_nameString (readonly)

The name of the Direct Connect gateway.



25
26
27
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 25

def direct_connect_gateway_name
  @direct_connect_gateway_name
end

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

The tags associated with the Direct Connect gateway.



35
36
37
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 35

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 37

def self.jsii_properties
  {
    :direct_connect_gateway_name => "directConnectGatewayName",
    :amazon_side_asn => "amazonSideAsn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'directconnect/cfn_direct_connect_gateway_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "directConnectGatewayName" => @direct_connect_gateway_name,
    "amazonSideAsn" => @amazon_side_asn,
    "tags" => @tags,
  })
  result.compact
end