Skip to content

NatGatewayProps

Properties for defining a NatGateway.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc"
&alicloudroscdkvpc.NatGatewayProps {
    VpcId: interface{},
    VSwitchId: interface{},
    AccessMode: interface{},
    AvailabilityMode: interface{},
    DeletionForce: interface{},
    DeletionProtection: interface{},
    Description: interface{},
    EipBindMode: interface{},
    IcmpReplyEnabled: interface{},
    InstanceChargeType: interface{},
    InternetChargeType: interface{},
    Ipv4Prefix: interface{},
    NatGatewayName: interface{},
    NatIp: interface{},
    NatType: interface{},
    NetworkType: interface{},
    PrivateLinkEnabled: interface{},
    SecurityProtectionEnabled: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkvpc.RosNatGateway.TagsProperty,
}

Properties

Name Type Description
VpcId interface{} Property vpcId: The VPC id to create NAT gateway.
VSwitchId interface{} Property vSwitchId: The VSwitch id to create NAT gateway.
AccessMode interface{} Property accessMode: Reverse access mode to the VPC NAT gateway.
AvailabilityMode interface{} Property availabilityMode: The availability mode of the NAT gateway.
DeletionForce interface{} Property deletionForce: Whether force delete the relative snat and dnat entries in the net gateway and unbind eips.
DeletionProtection interface{} Property deletionProtection: Whether to enable deletion protection.
Description interface{} Property description: Description of the NAT gateway, [2, 256] characters.
EipBindMode interface{} Property eipBindMode: The mode in which the EIP is associated with the NAT gateway.
IcmpReplyEnabled interface{} Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature.
InstanceChargeType interface{} Property instanceChargeType: The billing method.
InternetChargeType interface{} Property internetChargeType: The billing method for the NAT gateway.
Ipv4Prefix interface{} Property ipv4Prefix: The IPv4 prefix.
NatGatewayName interface{} 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 interface{} Property natIp: The NAT IP address.
NatType interface{} Property natType: The type of the NAT gateway.
NetworkType interface{} Property networkType: The type of the created NAT gateway.
PrivateLinkEnabled interface{} Property privateLinkEnabled: Whether to support private network connection.
SecurityProtectionEnabled interface{} Property securityProtectionEnabled: Specifies whether to enable the firewall feature.
Tags *[]TagsProperty Property tags: Tags to attach to natgateway.

VpcIdRequired

VpcId interface{}
  • Type: interface{}

Property vpcId: The VPC id to create NAT gateway.


VSwitchIdRequired

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The VSwitch id to create NAT gateway.


AccessModeOptional

AccessMode interface{}
  • Type: interface{}

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


AvailabilityModeOptional

AvailabilityMode interface{}
  • Type: interface{}

Property availabilityMode: The availability mode of the NAT gateway.

Valid values: CrossAZ, SingleAZ


DeletionForceOptional

DeletionForce interface{}
  • Type: interface{}

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

Default value is false.


DeletionProtectionOptional

DeletionProtection interface{}
  • Type: interface{}

Property deletionProtection: Whether to enable deletion protection.

Default to False.


DescriptionOptional

Description interface{}
  • Type: interface{}

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

Do not fill or empty, the default is empty.


EipBindModeOptional

EipBindMode interface{}
  • Type: interface{}

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

IcmpReplyEnabled interface{}
  • Type: interface{}

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

Default: True


InstanceChargeTypeOptional

InstanceChargeType interface{}
  • Type: interface{}

Property instanceChargeType: The billing method.

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


InternetChargeTypeOptional

InternetChargeType interface{}
  • Type: interface{}

Property internetChargeType: The billing method for the NAT gateway.

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


Ipv4PrefixOptional

Ipv4Prefix interface{}
  • Type: interface{}

Property ipv4Prefix: The IPv4 prefix.


NatGatewayNameOptional

NatGatewayName interface{}
  • Type: interface{}

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

NatIp interface{}
  • Type: interface{}

Property natIp: The NAT IP address.


NatTypeOptional

NatType interface{}
  • Type: interface{}

Property natType: The type of the NAT gateway.

Valid values:

  • Enhanced: enhanced NAT gateway.

NetworkTypeOptional

NetworkType interface{}
  • Type: interface{}

Property networkType: The type of the created NAT gateway.

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


PrivateLinkEnabledOptional

PrivateLinkEnabled interface{}
  • Type: interface{}

Property privateLinkEnabled: Whether to support private network connection.


SecurityProtectionEnabledOptional

SecurityProtectionEnabled interface{}
  • Type: interface{}

Property securityProtectionEnabled: Specifies whether to enable the firewall feature.

Default: False


TagsOptional

Tags *[]TagsProperty

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.