# NatGatewayProps

Properties for a NAT gateway.

Extends: NatGatewayProps
Used as props by: NatGatewayProvider

- Source: [`aws-ec2/lib/nat.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/nat.ts#L174)
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const natGatewayProps: ec2.NatGatewayProps = {
  eipAllocationIds: ['eipAllocationIds'],
  maxDrainDuration: cdk.Duration.minutes(30),
};
```

## Properties

- `eipAllocationIds`: string[] — EIP allocation IDs for the NAT gateways.

  **Default:** No fixed EIPs allocated for the NAT gateways

- `maxDrainDuration`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(350) — Maximum amount of time to wait before forcibly releasing IP addresses if connections are still in progress.
