aws-cdk-lib.aws_ec2.ConfigureNatOptions

interface ConfigureNatOptions

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

Options passed by the VPC when NAT needs to be configured.

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';

declare const privateSubnet: ec2.PrivateSubnet;
declare const publicSubnet: ec2.PublicSubnet;
declare const vpc: ec2.Vpc;
const configureNatOptions: ec2.ConfigureNatOptions = {
  natSubnets: [publicSubnet],
  privateSubnets: [privateSubnet],
  vpc: vpc,
};

Properties

NameTypeDescription
natSubnetsPublicSubnet[]The public subnets where the NAT providers need to be placed.
privateSubnetsPrivateSubnet[]The private subnets that need to route through the NAT providers.
vpcVpcThe VPC we're configuring NAT for.

natSubnets

Type: PublicSubnet[]

The public subnets where the NAT providers need to be placed.


privateSubnets

Type: PrivateSubnet[]

The private subnets that need to route through the NAT providers.

There may be more private subnets than public subnets with NAT providers.


vpc

Type: Vpc

The VPC we're configuring NAT for.