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{},
AutoPay: interface{},
DeletionForce: interface{},
DeletionProtection: interface{},
Description: interface{},
Duration: interface{},
EipBindMode: interface{},
IcmpReplyEnabled: interface{},
InstanceChargeType: interface{},
InternetChargeType: interface{},
NatGatewayName: interface{},
NatType: interface{},
NetworkType: interface{},
PricingCycle: 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. |
AutoPay |
interface{} |
Property autoPay: Specifies whether to enable automatic payment. |
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. |
Duration |
interface{} |
Property duration: The subscription duration. |
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. |
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 '.', '-'. |
NatType |
interface{} |
Property natType: The type of the NAT gateway. |
NetworkType |
interface{} |
Property networkType: The type of the created NAT gateway. |
PricingCycle |
interface{} |
Property pricingCycle: Price cycle of the resource. |
SecurityProtectionEnabled |
interface{} |
Property securityProtectionEnabled: Specifies whether to enable the firewall feature. |
Tags |
*[]TagsProperty |
Property tags: Tags to attach to natgateway. |
VpcId
Required
VpcId interface{}
- Type: interface{}
Property vpcId: The VPC id to create NAT gateway.
VSwitchId
Required
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The VSwitch id to create NAT gateway.
AutoPay
Optional
AutoPay interface{}
- Type: interface{}
Property autoPay: Specifies whether to enable automatic payment.
Default is true.
DeletionForce
Optional
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.
DeletionProtection
Optional
DeletionProtection interface{}
- Type: interface{}
Property deletionProtection: Whether to enable deletion protection.
Default to False.
Description
Optional
Description interface{}
- Type: interface{}
Property description: Description of the NAT gateway, [2, 256] characters.
Do not fill or empty, the default is empty.
Duration
Optional
Duration interface{}
- Type: interface{}
Property duration: The subscription duration.
While choose by pay by month, it could be from 1 to 9 or 12, 24, 36. While choose pay by year, it could be from 1 to 3.
EipBindMode
Optional
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.
IcmpReplyEnabled
Optional
IcmpReplyEnabled interface{}
- Type: interface{}
Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature.
Default: True
InstanceChargeType
Optional
InstanceChargeType interface{}
- Type: interface{}
Property instanceChargeType: The billing method.
The default value is PostPaid (which means pay-as-you-go).
InternetChargeType
Optional
InternetChargeType interface{}
- Type: interface{}
Property internetChargeType: The billing method for the NAT gateway.
Valid values: PayBySpec: billed on a pay-by-specification basis.
NatGatewayName
Optional
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 '.', '-'.
NatType
Optional
NatType interface{}
- Type: interface{}
Property natType: The type of the NAT gateway.
Valid values:
- Enhanced: enhanced NAT gateway.
NetworkType
Optional
NetworkType interface{}
- Type: interface{}
Property networkType: The type of the created NAT gateway.
Internet: public network NAT gateway. Intranet: VPC NAT gateway.
PricingCycle
Optional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: Price cycle of the resource.
This property has no default value.
SecurityProtectionEnabled
Optional
SecurityProtectionEnabled interface{}
- Type: interface{}
Property securityProtectionEnabled: Specifies whether to enable the firewall feature.
Default: False
Tags
Optional
Tags *[]TagsProperty
- Type: *[]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.