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. |
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.
AutoPayOptional
AutoPay interface{}
- Type: interface{}
Property autoPay: Specifies whether to enable automatic payment.
Default is true.
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.
DurationOptional
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.
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.
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 '.', '-'.
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.
PricingCycleOptional
PricingCycle interface{}
- Type: interface{}
Property pricingCycle: Price cycle of the resource.
This property has no default value.
SecurityProtectionEnabledOptional
SecurityProtectionEnabled interface{}
- Type: interface{}
Property securityProtectionEnabled: Specifies whether to enable the firewall feature.
Default: False
TagsOptional
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.