Skip to content

NatGatewayProps

Properties for defining a NatGateway.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-natgateway

Initializer

using AlibabaCloud.SDK.ROS.CDK.Vpc;
new NatGatewayProps {
    object VpcId,
    object VSwitchId,
    object AccessMode = null,
    object AvailabilityMode = null,
    object DeletionForce = null,
    object DeletionProtection = null,
    object Description = null,
    object EipBindMode = null,
    object IcmpReplyEnabled = null,
    object InstanceChargeType = null,
    object InternetChargeType = null,
    object Ipv4Prefix = null,
    object NatGatewayName = null,
    object NatIp = null,
    object NatType = null,
    object NetworkType = null,
    object PrivateLinkEnabled = null,
    object SecurityProtectionEnabled = null,
    TagsProperty[] Tags = null
};

Properties

Name Type Description
VpcId object Property vpcId: The VPC id to create NAT gateway.
VSwitchId object Property vSwitchId: The VSwitch id to create NAT gateway.
AccessMode object Property accessMode: Reverse access mode to the VPC NAT gateway.
AvailabilityMode object Property availabilityMode: The availability mode of the NAT gateway.
DeletionForce object Property deletionForce: Whether force delete the relative snat and dnat entries in the net gateway and unbind eips.
DeletionProtection object Property deletionProtection: Whether to enable deletion protection.
Description object Property description: Description of the NAT gateway, [2, 256] characters.
EipBindMode object Property eipBindMode: The mode in which the EIP is associated with the NAT gateway.
IcmpReplyEnabled object Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature.
InstanceChargeType object Property instanceChargeType: The billing method.
InternetChargeType object Property internetChargeType: The billing method for the NAT gateway.
Ipv4Prefix object Property ipv4Prefix: The IPv4 prefix.
NatGatewayName object Property natGatewayName: Display name of the NAT gateway, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
NatIp object Property natIp: The NAT IP address.
NatType object Property natType: The type of the NAT gateway.
NetworkType object Property networkType: The type of the created NAT gateway.
PrivateLinkEnabled object Property privateLinkEnabled: Whether to support private network connection.
SecurityProtectionEnabled object Property securityProtectionEnabled: Specifies whether to enable the firewall feature.
Tags TagsProperty[] Property tags: Tags to attach to natgateway.

VpcIdRequired

public object VpcId { get; set; }
  • Type: object

Property vpcId: The VPC id to create NAT gateway.


VSwitchIdRequired

public object VSwitchId { get; set; }
  • Type: object

Property vSwitchId: The VSwitch id to create NAT gateway.


AccessModeOptional

public object AccessMode { get; set; }
  • Type: object

Property accessMode: Reverse access mode to the VPC NAT gateway.


AvailabilityModeOptional

public object AvailabilityMode { get; set; }
  • Type: object

Property availabilityMode: The availability mode of the NAT gateway.

Valid values: CrossAZ, SingleAZ


DeletionForceOptional

public object DeletionForce { get; set; }
  • Type: object

Property deletionForce: Whether force delete the relative snat and dnat entries in the net gateway and unbind eips.

Default value is false.


DeletionProtectionOptional

public object DeletionProtection { get; set; }
  • Type: object

Property deletionProtection: Whether to enable deletion protection.

Default to False.


DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: Description of the NAT gateway, [2, 256] characters.

Do not fill or empty, the default is empty.


EipBindModeOptional

public object EipBindMode { get; set; }
  • Type: object

Property eipBindMode: The mode in which the EIP is associated with the NAT gateway.

Valid values:MULTI_BINDED (default): the multi-EIP-to-ENI mode. NAT: NAT mode. IPv4 gateways are supported. Note If the EIP is associated with the NAT gateway in NAT mode, the EIP occupies a private IP address of the vSwitch to which the NAT gateway belongs. Make sure that the vSwitch has sufficient private IP addresses. Otherwise, the EIP cannot be associated with the NAT gateway. In NAT mode, a maximum number of 50 EIPs can be associated with each NAT gateway.


IcmpReplyEnabledOptional

public object IcmpReplyEnabled { get; set; }
  • Type: object

Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature.

Default: True


InstanceChargeTypeOptional

public object InstanceChargeType { get; set; }
  • Type: object

Property instanceChargeType: The billing method.

The default value is PostPaid (which means pay-as-you-go).


InternetChargeTypeOptional

public object InternetChargeType { get; set; }
  • Type: object

Property internetChargeType: The billing method for the NAT gateway.

Valid values: PayBySpec: billed on a pay-by-specification basis.


Ipv4PrefixOptional

public object Ipv4Prefix { get; set; }
  • Type: object

Property ipv4Prefix: The IPv4 prefix.


NatGatewayNameOptional

public object NatGatewayName { get; set; }
  • Type: object

Property natGatewayName: Display name of the NAT gateway, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.


NatIpOptional

public object NatIp { get; set; }
  • Type: object

Property natIp: The NAT IP address.


NatTypeOptional

public object NatType { get; set; }
  • Type: object

Property natType: The type of the NAT gateway.

Valid values:

  • Enhanced: enhanced NAT gateway.

NetworkTypeOptional

public object NetworkType { get; set; }
  • Type: object

Property networkType: The type of the created NAT gateway.

Internet: public network NAT gateway. Intranet: VPC NAT gateway.


PrivateLinkEnabledOptional

public object PrivateLinkEnabled { get; set; }
  • Type: object

Property privateLinkEnabled: Whether to support private network connection.


SecurityProtectionEnabledOptional

public object SecurityProtectionEnabled { get; set; }
  • Type: object

Property securityProtectionEnabled: Specifies whether to enable the firewall feature.

Default: False


TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: Tags to attach to natgateway.

Max support 20 tags to add during create natgateway. Each tag with two properties Key and Value, and Key is required.