class AWS::EC2::ElasticIpCollection
def [] public_ip
-
(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 options = {}
-
(ElasticIp)
-
Options Hash:
(**options)
-
:vpc
(Boolean
) -- When true, the elastic ip
Parameters:
-
options
(Hash
) --
def create options = {} client_opts = {} client_opts[:domain] = 'vpc' if options[:vpc] response = client.allocate_address(client_opts) ElasticIp.new(response.public_ip, :config => config) end
def each &block
- Yieldparam: elastic_ip -
Other tags:
- Yield: -
def each &block response = filtered_request(:describe_addresses) response.addresses_set.each do |address| elastic_ip = ElasticIp.new_from( :describe_addresses, address, address.public_ip, :config => config) yield(elastic_ip) end end
def member_class
def member_class ElasticIp end