class AWS::EC2::ElasticIp

def exists?

Returns:
  • (Boolean) - Returns true the elastic ip address exists in
def exists?
  begin
    get_resource
    true
  rescue Errors::InvalidAddress::NotFound
    false
  end
end