class Awspec::Type::VpnGateway
Constants
- STATES
Public Class Methods
Source
# File lib/awspec/type/vpn_gateway.rb, line 7 def initialize(name) super @display_name = name end
Calls superclass method
Awspec::Type::ResourceBase::new
Public Instance Methods
Source
# File lib/awspec/type/vpn_gateway.rb, line 16 def id @id ||= resource_via_client.vpn_gateway_id if resource_via_client end
Source
# File lib/awspec/type/vpn_gateway.rb, line 12 def resource_via_client @resource_via_client ||= find_vpn_gateway(@display_name) end
Source
# File lib/awspec/type/vpn_gateway.rb, line 30 def vpc_id resource_via_client.vpc_attachments.first.vpc_id end