# File lib/aws/ec2/vpn_connection_collection.rb, line 38 def create options = {} client_opts = {} client_opts[:customer_gateway_id] = customer_gateway_id(options) client_opts[:vpn_gateway_id] = vpn_gateway_id(options) client_opts[:type] = options[:vpn_type] || 'ipsec.1' resp = client.create_vpn_connection(client_opts) VPNConnection.new_from(:create_vpn_connection, resp, resp.vpn_connection.vpn_connection_id, :config => config) end