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
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
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
ExampleMetadata: fixture=_generated
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
ExampleMetadata: fixture=_generated