# File lib/ec2/right_ec2_vpc.rb, line 250
    def create_customer_gateway(type, ip_address, bgp_asn)
      link = generate_request("CreateCustomerGateway", 'Type'      => type,
                                                       'IpAddress' => ip_address,
                                                       'BgpAsn'    => bgp_asn )
      request_info(link, QEc2DescribeCustomerGatewaysParser.new(:logger => @logger)).first
    rescue Exception
      on_exception
    end