aws-cdk-lib.aws_ec2.NatGatewayProps

interface NatGatewayProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.NatGatewayProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#NatGatewayProps
Javasoftware.amazon.awscdk.services.ec2.NatGatewayProps
Pythonaws_cdk.aws_ec2.NatGatewayProps
TypeScript (source)aws-cdk-lib » aws_ec2 » NatGatewayProps

Properties for a NAT gateway.

Example

// 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 natGatewayProps: ec2.NatGatewayProps = {
  eipAllocationIds: ['eipAllocationIds'],
};

Properties

NameTypeDescription
eipAllocationIds?string[]EIP allocation IDs for the NAT gateways.

eipAllocationIds?

Type: string[] (optional, default: No fixed EIPs allocated for the NAT gateways)

EIP allocation IDs for the NAT gateways.