Class CfnNatGatewayProps
Properties for defining a CfnNatGateway
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNatGatewayProps : Object, ICfnNatGatewayProps
Syntax (vb)
Public Class CfnNatGatewayProps
Inherits Object
Implements ICfnNatGatewayProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html
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;
var cfnNatGatewayProps = new CfnNatGatewayProps {
SubnetId = "subnetId",
// the properties below are optional
AllocationId = "allocationId",
ConnectivityType = "connectivityType",
MaxDrainDurationSeconds = 123,
PrivateIpAddress = "privateIpAddress",
SecondaryAllocationIds = new [] { "secondaryAllocationIds" },
SecondaryPrivateIpAddressCount = 123,
SecondaryPrivateIpAddresses = new [] { "secondaryPrivateIpAddresses" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnNatGatewayProps() |
Properties
AllocationId | [Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway. |
ConnectivityType | Indicates whether the NAT gateway supports public or private connectivity. |
MaxDrainDurationSeconds | The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress. |
PrivateIpAddress | The private IPv4 address to assign to the NAT gateway. |
SecondaryAllocationIds | Secondary EIP allocation IDs. |
SecondaryPrivateIpAddressCount | [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. |
SecondaryPrivateIpAddresses | Secondary private IPv4 addresses. |
SubnetId | The ID of the subnet in which the NAT gateway is located. |
Tags | The tags for the NAT gateway. |
Constructors
CfnNatGatewayProps()
public CfnNatGatewayProps()
Properties
AllocationId
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
public string AllocationId { get; set; }
Property Value
System.String
Remarks
This property is required for a public NAT gateway and cannot be specified with a private NAT gateway.
ConnectivityType
Indicates whether the NAT gateway supports public or private connectivity.
public string ConnectivityType { get; set; }
Property Value
System.String
Remarks
The default is public connectivity.
MaxDrainDurationSeconds
The maximum amount of time to wait (in seconds) before forcibly releasing the IP addresses if connections are still in progress.
public Nullable<double> MaxDrainDurationSeconds { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default value is 350 seconds.
PrivateIpAddress
The private IPv4 address to assign to the NAT gateway.
public string PrivateIpAddress { get; set; }
Property Value
System.String
Remarks
If you don't provide an address, a private IPv4 address will be automatically assigned.
SecondaryAllocationIds
Secondary EIP allocation IDs.
public string[] SecondaryAllocationIds { get; set; }
Property Value
System.String[]
Remarks
For more information, see Create a NAT gateway in the Amazon VPC User Guide .
SecondaryPrivateIpAddressCount
[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.
public Nullable<double> SecondaryPrivateIpAddressCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCount
and SecondaryPrivateIpAddresses
cannot be set at the same time.
SecondaryPrivateIpAddresses
Secondary private IPv4 addresses.
public string[] SecondaryPrivateIpAddresses { get; set; }
Property Value
System.String[]
Remarks
For more information about secondary addresses, see Create a NAT gateway in the Amazon Virtual Private Cloud User Guide .
SecondaryPrivateIpAddressCount
and SecondaryPrivateIpAddresses
cannot be set at the same time.
SubnetId
The ID of the subnet in which the NAT gateway is located.
public string SubnetId { get; set; }
Property Value
System.String