interface ConfigureNatOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.ConfigureNatOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#ConfigureNatOptions |
Java | software.amazon.awscdk.services.ec2.ConfigureNatOptions |
Python | aws_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
Name | Type | Description |
---|---|---|
nat | Public [] | The public subnets where the NAT providers need to be placed. |
private | Private [] | The private subnets that need to route through the NAT providers. |
vpc | Vpc | The VPC we're configuring NAT for. |
natSubnets
Type:
Public
[]
The public subnets where the NAT providers need to be placed.
privateSubnets
Type:
Private
[]
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.