# File lib/aws/ec2/customer_gateway_collection.rb, line 35 def create bgp_asn, ip_address, options = {} client_opts = {} client_opts[:bgp_asn] = bgp_asn client_opts[:public_ip] = ip_address client_opts[:type] = options[:vpn_type] || 'ipsec.1' resp = client.create_customer_gateway(client_opts) CustomerGateway.new_from(:create_customer_gateway, resp.customer_gateway, resp.customer_gateway.customer_gateway_id, :config => config) end