---
type: resource-type
title: CustomerGateway
description: aws resource type AWS::EC2::CustomerGateway
name: CustomerGateway
lexicon: aws
resource_type: AWS::EC2::CustomerGateway
---
`AWS::EC2::CustomerGateway`, a resource type of the aws lexicon.

## Properties

- `IpAddress` (`string`, required): The IP address for the customer gateway device's outside interface. The address must be static. If ``OutsideIpAddressType`` in your VPN connection options is set to ``PrivateIpv4``, you can use an RFC6598 or RFC1918 private IPv4 address. If ``OutsideIpAddressType`` is set to ``Ipv6``, you can use an IPv6 address.
- `Type` (`string`, required): The type of VPN connection that this customer gateway supports (``ipsec.1``).
- `BgpAsn` (`number`, optional): For customer gateway devices that support BGP, specify the device's ASN. You must specify either ``BgpAsn`` or ``BgpAsnExtended`` when creating the customer gateway. If the ASN is larger than ``2,147,483,647``, you must use ``BgpAsnExtended``. Default: 65000 Valid values: ``1`` to ``2,147,483,647``
- `BgpAsnExtended` (`number`, optional): For customer gateway devices that support BGP, specify the device's ASN. You must specify either ``BgpAsn`` or ``BgpAsnExtended`` when creating the customer gateway. If the ASN is larger than ``2,147,483,647``, you must use ``BgpAsnExtended``. Valid values: ``2,147,483,648`` to ``4,294,967,295``
- `CertificateArn` (`string`, optional): The Amazon Resource Name (ARN) for the customer gateway certificate.
- `CustomerGatewayId` (`string`, optional)
- `DeviceName` (`string`, optional): The name of customer gateway device.
- `Tags` (`CustomerGateway_Tag[]`, optional): One or more tags for the customer gateway.

## Attributes

- `CustomerGatewayId`
