class AWS::EC2::ElasticIpCollection

def create options = {}

Returns:
  • (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