Class: AWSCDK::EC2::VpnConnectionAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::VpnConnectionAttributes
- Defined in:
- ec2/vpn_connection_attributes.rb
Overview
Attributes of an imported VpnConnection.
Instance Attribute Summary collapse
-
#customer_gateway_asn ⇒ Numeric
readonly
The ASN of the customer gateway.
-
#customer_gateway_id ⇒ String
readonly
The id of the customer gateway.
-
#customer_gateway_ip ⇒ String
readonly
The ip address of the customer gateway.
-
#vpn_id ⇒ String
readonly
The id of the VPN connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(customer_gateway_asn:, customer_gateway_id:, customer_gateway_ip:, vpn_id:) ⇒ VpnConnectionAttributes
constructor
A new instance of VpnConnectionAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(customer_gateway_asn:, customer_gateway_id:, customer_gateway_ip:, vpn_id:) ⇒ VpnConnectionAttributes
Returns a new instance of VpnConnectionAttributes.
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_asn ⇒ Numeric (readonly)
The ASN of the customer gateway.
25 26 27 |
# File 'ec2/vpn_connection_attributes.rb', line 25 def customer_gateway_asn @customer_gateway_asn end |
#customer_gateway_id ⇒ String (readonly)
The id of the customer gateway.
29 30 31 |
# File 'ec2/vpn_connection_attributes.rb', line 29 def customer_gateway_id @customer_gateway_id end |
#customer_gateway_ip ⇒ String (readonly)
The ip address of the customer gateway.
33 34 35 |
# File 'ec2/vpn_connection_attributes.rb', line 33 def customer_gateway_ip @customer_gateway_ip end |
#vpn_id ⇒ String (readonly)
The id of the VPN connection.
37 38 39 |
# File 'ec2/vpn_connection_attributes.rb', line 37 def vpn_id @vpn_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |