Class: AWSCDK::EC2::VpnConnectionAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/vpn_connection_attributes.rb

Overview

Attributes of an imported VpnConnection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_gateway_asn:, customer_gateway_id:, customer_gateway_ip:, vpn_id:) ⇒ VpnConnectionAttributes

Returns a new instance of VpnConnectionAttributes.

Parameters:

  • customer_gateway_asn (Numeric)

    The ASN of the customer gateway.

  • customer_gateway_id (String)

    The id of the customer gateway.

  • customer_gateway_ip (String)

    The ip address of the customer gateway.

  • vpn_id (String)

    The id of the VPN connection.



11
12
13
14
15
16
17
18
19
20
# File 'ec2/vpn_connection_attributes.rb', line 11

def initialize(customer_gateway_asn:, customer_gateway_id:, customer_gateway_ip:, vpn_id:)
  @customer_gateway_asn = customer_gateway_asn
  Jsii::Type.check_type(@customer_gateway_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "customerGatewayAsn")
  @customer_gateway_id = customer_gateway_id
  Jsii::Type.check_type(@customer_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerGatewayId")
  @customer_gateway_ip = customer_gateway_ip
  Jsii::Type.check_type(@customer_gateway_ip, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customerGatewayIp")
  @vpn_id = vpn_id
  Jsii::Type.check_type(@vpn_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpnId")
end

Instance Attribute Details

#customer_gateway_asnNumeric (readonly)

The ASN of the customer gateway.

Returns:

  • (Numeric)


25
26
27
# File 'ec2/vpn_connection_attributes.rb', line 25

def customer_gateway_asn
  @customer_gateway_asn
end

#customer_gateway_idString (readonly)

The id of the customer gateway.

Returns:

  • (String)


29
30
31
# File 'ec2/vpn_connection_attributes.rb', line 29

def customer_gateway_id
  @customer_gateway_id
end

#customer_gateway_ipString (readonly)

The ip address of the customer gateway.

Returns:

  • (String)


33
34
35
# File 'ec2/vpn_connection_attributes.rb', line 33

def customer_gateway_ip
  @customer_gateway_ip
end

#vpn_idString (readonly)

The id of the VPN connection.

Returns:

  • (String)


37
38
39
# File 'ec2/vpn_connection_attributes.rb', line 37

def vpn_id
  @vpn_id
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
46
# File 'ec2/vpn_connection_attributes.rb', line 39

def self.jsii_properties
  {
    :customer_gateway_asn => "customerGatewayAsn",
    :customer_gateway_id => "customerGatewayId",
    :customer_gateway_ip => "customerGatewayIp",
    :vpn_id => "vpnId",
  }
end

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'ec2/vpn_connection_attributes.rb', line 48

def to_jsii
  result = {}
  result.merge!({
    "customerGatewayAsn" => @customer_gateway_asn,
    "customerGatewayId" => @customer_gateway_id,
    "customerGatewayIp" => @customer_gateway_ip,
    "vpnId" => @vpn_id,
  })
  result.compact
end