Skip to content
v2.274.0

AddNatGatewayOptions Struct ​

Options for adding a NAT gateway to a public subnet.

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 addNatGatewayOptions: ec2.AddNatGatewayOptions = {
  maxDrainDuration: cdk.Duration.minutes(30),
};

Properties ​

maxDrainDurationDurationmax_drain_durationDurationmaxDrainDurationDurationMaxDrainDurationDurationMaxDrainDurationDuration= Duration.seconds(350)#
Maximum amount of time to wait before forcibly releasing the IP addresses if connections are still in progress.