'Create a new Customer Gateway
:type type: str
:param type: Type of VPN Connection.  Only valid value currently is \'ipsec.1\'
:type ip_address: str
:param ip_address: Internet-routable IP address for customer\'s gateway.
Must be a static address.
:type bgp_asn: int
:param bgp_asn: Customer gateway\'s Border Gateway Protocol (BGP)
Autonomous System Number (ASN)
:type dry_run: bool
:param dry_run: Set to True if the operation should not actually run.
:rtype: The newly created CustomerGateway
:return: A :class:`boto.vpc.customergateway.CustomerGateway` object'

def create_customer_gateway(self, type, ip_address, bgp_asn, dry_run=False):

    params = {'Type': type, 'IpAddress': ip_address, 'BgpAsn': bgp_asn}
    if dry_run:
        params['DryRun'] = 'true'
    return self.get_object('CreateCustomerGateway', params, CustomerGateway)
