# File lib/ec2/right_ec2_vpc.rb, line 384 def create_vpn_connection(type, customer_gateway_id, vpn_gateway_id) link = generate_request("CreateVpnConnection", 'Type' => type, 'CustomerGatewayId' => customer_gateway_id, 'VpnGatewayId' => vpn_gateway_id ) request_info(link, QEc2DescribeVpnConnectionsParser.new(:logger => @logger)).first rescue Exception on_exception end