class Awspec::Type::NatGateway

Constants

STATES

Public Instance Methods

has_eip?(ip_address = nil) click to toggle source
# File lib/awspec/type/nat_gateway.rb, line 23
def has_eip?(ip_address = nil)
  resource_via_client.nat_gateway_addresses.find do |address|
    return address.public_ip == ip_address
  end
end
id() click to toggle source
# File lib/awspec/type/nat_gateway.rb, line 9
def id
  @id ||= resource_via_client.nat_gateway_id if resource_via_client
end
resource_via_client() click to toggle source
# File lib/awspec/type/nat_gateway.rb, line 5
def resource_via_client
  @resource_via_client ||= find_nat_gateway(@display_name)
end