# CfnCustomerGatewayProps

Properties for defining a `CfnCustomerGateway`.

Extends: CfnCustomerGatewayProps
Used as props by: CfnCustomerGateway

- Source: Generated code
- Type last changed: v2.145.0 · 7 Jun 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnCustomerGatewayProps: ec2.CfnCustomerGatewayProps = {
  ipAddress: 'ipAddress',
  type: 'type',

  // the properties below are optional
  bgpAsn: 123,
  bgpAsnExtended: 123,
  certificateArn: 'certificateArn',
  deviceName: 'deviceName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `bgpAsn`: number = 65000 — 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 — 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 — The Amazon Resource Name (ARN) for the customer gateway certificate.

- `deviceName`: string — The name of customer gateway device.

- `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.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — One or more tags for the customer gateway.

- `type`: string (required) — The type of VPN connection that this customer gateway supports ( `ipsec.1` ).
