Interface IConfigureNatOptions
Options passed by the VPC when NAT needs to be configured.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IConfigureNatOptions
Syntax (vb)
Public Interface IConfigureNatOptions
Remarks
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
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. |
Properties
NatSubnets
The public subnets where the NAT providers need to be placed.
PublicSubnet[] NatSubnets { get; }
Property Value
PrivateSubnets
The private subnets that need to route through the NAT providers.
PrivateSubnet[] PrivateSubnets { get; }
Property Value
Remarks
There may be more private subnets than public subnets with NAT providers.