class Awspec::Type::InternetGateway

Public Instance Methods

attached_to?(vpc) click to toggle source
# File lib/awspec/type/internet_gateway.rb, line 14
def attached_to?(vpc)
  resource_via_client.attachments.find do |a|
    a.vpc_id == find_vpc(vpc).vpc_id && a.state == 'available'
  end
end
id() click to toggle source
# File lib/awspec/type/internet_gateway.rb, line 10
def id
  @id ||= resource_via_client.internet_gateway_id if resource_via_client
end
resource_via_client() click to toggle source
# File lib/awspec/type/internet_gateway.rb, line 6
def resource_via_client
  @resource_via_client ||= find_internet_gateway(@display_name)
end