Class: AWSCDK::Interfaces::AWSEC2::VPNGatewayReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEC2::VPNGatewayReference
- Defined in:
- interfaces/awsec2/vpn_gateway_reference.rb
Overview
A reference to a VPNGateway resource.
Instance Attribute Summary collapse
-
#vpn_gateway_id ⇒ String
readonly
The VPNGatewayId of the VPNGateway resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vpn_gateway_id:) ⇒ VPNGatewayReference
constructor
A new instance of VPNGatewayReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(vpn_gateway_id:) ⇒ VPNGatewayReference
Returns a new instance of VPNGatewayReference.
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_id ⇒ String (readonly)
The VPNGatewayId of the VPNGateway resource.
16 17 18 |
# File 'interfaces/awsec2/vpn_gateway_reference.rb', line 16 def vpn_gateway_id @vpn_gateway_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |