# File lib/ec2/right_ec2_vpc.rb, line 302
    def create_vpn_gateway(type, availability_zone=nil)
      request_hash = { 'Type' => type }
      request_hash['AvailabilityZone'] = availability_zone unless availability_zone.blank?
      link = generate_request("CreateVpnGateway", request_hash )
      request_info(link, QEc2DescribeVpnGatewaysParser.new(:logger => @logger)).first
    rescue Exception
      on_exception
    end