class Awspec::Type::InternetGateway
Public Instance Methods
Source
# File lib/awspec/type/internet_gateway.rb, line 16 def attached_to?(vpc) resource_via_client.attachments.find do |a| a.vpc_id == find_vpc(vpc).vpc_id && a.state == 'available' end end
Source
# File lib/awspec/type/internet_gateway.rb, line 12 def id @id ||= resource_via_client.internet_gateway_id if resource_via_client end
Source
# File lib/awspec/type/internet_gateway.rb, line 8 def resource_via_client @resource_via_client ||= find_internet_gateway(@display_name) end