NatGatewayProps
Properties for defining a NatGateway.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-natgateway
Initializer
import com.aliyun.ros.cdk.vpc.NatGatewayProps;
NatGatewayProps.builder()
.vpcId(java.lang.String)
.vpcId(IResolvable)
.vSwitchId(java.lang.String)
.vSwitchId(IResolvable)
// .autoPay(java.lang.Boolean)
// .autoPay(IResolvable)
// .deletionForce(java.lang.Boolean)
// .deletionForce(IResolvable)
// .deletionProtection(java.lang.Boolean)
// .deletionProtection(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .duration(java.lang.Number)
// .duration(IResolvable)
// .eipBindMode(java.lang.String)
// .eipBindMode(IResolvable)
// .icmpReplyEnabled(java.lang.Boolean)
// .icmpReplyEnabled(IResolvable)
// .instanceChargeType(java.lang.String)
// .instanceChargeType(IResolvable)
// .internetChargeType(java.lang.String)
// .internetChargeType(IResolvable)
// .natGatewayName(java.lang.String)
// .natGatewayName(IResolvable)
// .natType(java.lang.String)
// .natType(IResolvable)
// .networkType(java.lang.String)
// .networkType(IResolvable)
// .pricingCycle(java.lang.String)
// .pricingCycle(IResolvable)
// .securityProtectionEnabled(java.lang.Boolean)
// .securityProtectionEnabled(IResolvable)
// .tags(java.util.List<TagsProperty>)
.build();
Properties
| Name | Type | Description |
|---|---|---|
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The VPC id to create NAT gateway. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The VSwitch id to create NAT gateway. |
autoPay |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property autoPay: Specifies whether to enable automatic payment. |
deletionForce |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deletionForce: Whether force delete the relative snat and dnat entries in the net gateway and unbind eips. |
deletionProtection |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deletionProtection: Whether to enable deletion protection. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: Description of the NAT gateway, [2, 256] characters. |
duration |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property duration: The subscription duration. |
eipBindMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property eipBindMode: The mode in which the EIP is associated with the NAT gateway. |
icmpReplyEnabled |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature. |
instanceChargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceChargeType: The billing method. |
internetChargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property internetChargeType: The billing method for the NAT gateway. |
natGatewayName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
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 |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property natType: The type of the NAT gateway. |
networkType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property networkType: The type of the created NAT gateway. |
pricingCycle |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property pricingCycle: Price cycle of the resource. |
securityProtectionEnabled |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property securityProtectionEnabled: Specifies whether to enable the firewall feature. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to natgateway. |
vpcIdRequired
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The VPC id to create NAT gateway.
vSwitchIdRequired
public java.lang.Object getVSwitchId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The VSwitch id to create NAT gateway.
autoPayOptional
public java.lang.Object getAutoPay();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoPay: Specifies whether to enable automatic payment.
Default is true.
deletionForceOptional
public java.lang.Object getDeletionForce();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionForce: Whether force delete the relative snat and dnat entries in the net gateway and unbind eips.
Default value is false.
deletionProtectionOptional
public java.lang.Object getDeletionProtection();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionProtection: Whether to enable deletion protection.
Default to False.
descriptionOptional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Description of the NAT gateway, [2, 256] characters.
Do not fill or empty, the default is empty.
durationOptional
public java.lang.Object getDuration();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
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
public java.lang.Object getEipBindMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
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 java.lang.Object getIcmpReplyEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature.
Default: True
instanceChargeTypeOptional
public java.lang.Object getInstanceChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceChargeType: The billing method.
The default value is PostPaid (which means pay-as-you-go).
internetChargeTypeOptional
public java.lang.Object getInternetChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property internetChargeType: The billing method for the NAT gateway.
Valid values: PayBySpec: billed on a pay-by-specification basis.
natGatewayNameOptional
public java.lang.Object getNatGatewayName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
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
public java.lang.Object getNatType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property natType: The type of the NAT gateway.
Valid values:
- Enhanced: enhanced NAT gateway.
networkTypeOptional
public java.lang.Object getNetworkType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property networkType: The type of the created NAT gateway.
Internet: public network NAT gateway. Intranet: VPC NAT gateway.
pricingCycleOptional
public java.lang.Object getPricingCycle();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property pricingCycle: Price cycle of the resource.
This property has no default value.
securityProtectionEnabledOptional
public java.lang.Object getSecurityProtectionEnabled();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property securityProtectionEnabled: Specifies whether to enable the firewall feature.
Default: False
tagsOptional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<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.