class AWS::EC2::ElasticIpCollection

def [] public_ip

Returns:
  • (ElasticIp) - The elastic IP with the given address.

Parameters:
  • public_ip (String) -- The public IP address of an elastic ip.
def [] public_ip
  super
end

def create

def create 
  response = client.allocate_address
  ElasticIp.new(response.public_ip, :config => config)
end

def each &block

Other tags:
    Yieldparam: elastic_ip -

Other tags:
    Yield: -
def each &block
  response = filtered_request(:describe_addresses)
  response.addresses_set.each do |address|
    options = {}
    options[:config] = config
    options[:instance_id] = address.instance_id
    elastic_ip = ElasticIp.new(address.public_ip, options)
    yield(elastic_ip)
  end
end

def member_class

def member_class
  ElasticIp
end