Class ConfigureNatOptions
Options passed by the VPC when NAT needs to be configured.
Inheritance
System.Object
ConfigureNatOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ConfigureNatOptions : Object, IConfigureNatOptions
Syntax (vb)
Public Class ConfigureNatOptions
Inherits Object
Implements 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
Constructors
ConfigureNatOptions() |
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()
public ConfigureNatOptions()
Properties
NatSubnets
The public subnets where the NAT providers need to be placed.
public PublicSubnet[] NatSubnets { get; set; }
Property Value
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.