Class: AWSCDK::Interfaces::AWSEC2::VPNGatewayReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsec2/vpn_gateway_reference.rb

Overview

A reference to a VPNGateway resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpn_gateway_id:) ⇒ VPNGatewayReference

Returns a new instance of VPNGatewayReference.

Parameters:

  • vpn_gateway_id (String)

    The VPNGatewayId of the VPNGateway resource.



8
9
10
11
# File 'interfaces/awsec2/vpn_gateway_reference.rb', line 8

def initialize(vpn_gateway_id:)
  @vpn_gateway_id = vpn_gateway_id
  Jsii::Type.check_type(@vpn_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpnGatewayId")
end

Instance Attribute Details

#vpn_gateway_idString (readonly)

The VPNGatewayId of the VPNGateway resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/awsec2/vpn_gateway_reference.rb', line 16

def vpn_gateway_id
  @vpn_gateway_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/awsec2/vpn_gateway_reference.rb', line 18

def self.jsii_properties
  {
    :vpn_gateway_id => "vpnGatewayId",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/awsec2/vpn_gateway_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "vpnGatewayId" => @vpn_gateway_id,
  })
  result.compact
end