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