Class NatInstanceProvider
(deprecated) NAT provider which uses NAT Instances.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NatInstanceProvider : NatProvider, IConnectable
Syntax (vb)
Public Class NatInstanceProvider
Inherits NatProvider
Implements IConnectable
Remarks
Stability: Deprecated
ExampleMetadata: infused
Examples
var natInstanceProvider = NatProvider.Instance(new NatInstanceProps {
InstanceType = InstanceType.Of(InstanceClass.T4G, InstanceSize.LARGE),
MachineImage = new AmazonLinuxImage(),
CreditSpecification = CpuCredits.UNLIMITED
});
new Vpc(this, "VPC", new VpcProps {
NatGatewayProvider = natInstanceProvider
});
Synopsis
Constructors
NatInstanceProvider(INatInstanceProps) | |
NatInstanceProvider(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NatInstanceProvider(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ConfiguredGateways | (deprecated) Return list of gateways spawned by the provider. |
Connections | (deprecated) Manage the Security Groups associated with the NAT instances. |
SecurityGroup | (deprecated) The Security Group associated with the NAT instances. |
Methods
ConfigureNat(IConfigureNatOptions) | (deprecated) Called by the VPC to configure NAT. |
ConfigureSubnet(PrivateSubnet) | (deprecated) Configures subnet with the gateway. |
Constructors
NatInstanceProvider(INatInstanceProps)
public NatInstanceProvider(INatInstanceProps props)
Parameters
- props INatInstanceProps
Remarks
Stability: Deprecated
NatInstanceProvider(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NatInstanceProvider(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NatInstanceProvider(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NatInstanceProvider(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ConfiguredGateways
(deprecated) Return list of gateways spawned by the provider.
public override IGatewayConfig[] ConfiguredGateways { get; }
Property Value
Overrides
Remarks
Stability: Deprecated
Connections
(deprecated) Manage the Security Groups associated with the NAT instances.
public virtual Connections_ Connections { get; }
Property Value
Remarks
Stability: Deprecated
SecurityGroup
(deprecated) The Security Group associated with the NAT instances.
public virtual ISecurityGroup SecurityGroup { get; }
Property Value
Remarks
Stability: Deprecated
Methods
ConfigureNat(IConfigureNatOptions)
(deprecated) Called by the VPC to configure NAT.
public override void ConfigureNat(IConfigureNatOptions options)
Parameters
- options IConfigureNatOptions
Overrides
Remarks
Don't call this directly, the VPC will call it automatically.
Stability: Deprecated
ConfigureSubnet(PrivateSubnet)
(deprecated) Configures subnet with the gateway.
public override void ConfigureSubnet(PrivateSubnet subnet)
Parameters
- subnet PrivateSubnet
Overrides
Remarks
Don't call this directly, the VPC will call it automatically.
Stability: Deprecated