Class ConfigureNatOptions
Options passed by the VPC when NAT needs to be configured.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ConfigureNatOptions : IConfigureNatOptions
Syntax (vb)
Public Class ConfigureNatOptions Implements IConfigureNatOptions
Remarks
Don't use this directly, the VPC will pass it automatically.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
PrivateSubnet privateSubnet;
PublicSubnet publicSubnet;
Vpc vpc;
var configureNatOptions = new ConfigureNatOptions {
NatSubnets = new [] { publicSubnet },
PrivateSubnets = new [] { privateSubnet },
Vpc = vpc
};
Synopsis
Constructors
| ConfigureNatOptions() | Options passed by the VPC when NAT needs to be configured. |
Properties
| NatSubnets | The public subnets where the NAT providers need to be placed. |
| PrivateSubnets | The private subnets that need to route through the NAT providers. |
| Vpc | The VPC we're configuring NAT for. |
Constructors
ConfigureNatOptions()
Options passed by the VPC when NAT needs to be configured.
public ConfigureNatOptions()
Remarks
Don't use this directly, the VPC will pass it automatically.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
PrivateSubnet privateSubnet;
PublicSubnet publicSubnet;
Vpc vpc;
var configureNatOptions = new ConfigureNatOptions {
NatSubnets = new [] { publicSubnet },
PrivateSubnets = new [] { privateSubnet },
Vpc = vpc
};
Properties
NatSubnets
The public subnets where the NAT providers need to be placed.
public PublicSubnet[] NatSubnets { get; set; }
Property Value
Remarks
For Regional NAT Gateways, this should be an empty array as they don't require public subnets.
PrivateSubnets
The private subnets that need to route through the NAT providers.
public PrivateSubnet[] PrivateSubnets { get; set; }
Property Value
Remarks
There may be more private subnets than public subnets with NAT providers.
Vpc
The VPC we're configuring NAT for.
public Vpc Vpc { get; set; }
Property Value
Remarks
Don't use this directly, the VPC will pass it automatically.
ExampleMetadata: fixture=_generated