# File lib/aws/ec2/vpn_gateway_collection.rb, line 38
      def create options = {}

        client_opts = {}
        client_opts[:type] = options[:vpn_type] || 'ipsec.1'

        if az = options[:availability_zone]
          az = az.name if az.is_a?(AvailabilityZone)
          client_opts[:availability_zone] = az
        end

        resp = client.create_vpn_gateway(client_opts)

        VPNGateway.new_from(:create_vpn_gateway, resp.vpn_gateway,
          resp.vpn_gateway.vpn_gateway_id, :config => config)

      end