class AWS::EC2::ElasticIp

def delete

Returns:
  • (nil) -
def delete
  if vpc?
    client.release_address(:allocation_id => allocation_id)
  else
    client.release_address(:public_ip => public_ip)
  end
  nil
end