NatGatewayProps
Properties for defining a NatGateway
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-natgateway
Initializer
import { NatGatewayProps } from '@alicloud/ros-cdk-vpc'
const natGatewayProps: NatGatewayProps = { ... }
Properties
Name | Type | Description |
---|---|---|
vpcId |
string | @alicloud/ros-cdk-core.IResolvable |
Property vpcId: The VPC id to create NAT gateway. |
vSwitchId |
string | @alicloud/ros-cdk-core.IResolvable |
Property vSwitchId: The VSwitch id to create NAT gateway. |
autoPay |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property autoPay: Specifies whether to enable automatic payment. |
deletionForce |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property deletionForce: Whether force delete the relative snat and dnat entries in the net gateway and unbind eips. |
deletionProtection |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property deletionProtection: Whether to enable deletion protection. |
description |
string | @alicloud/ros-cdk-core.IResolvable |
Property description: Description of the NAT gateway, [2, 256] characters. |
duration |
number | @alicloud/ros-cdk-core.IResolvable |
Property duration: The subscription duration. |
eipBindMode |
string | @alicloud/ros-cdk-core.IResolvable |
Property eipBindMode: The mode in which the EIP is associated with the NAT gateway. |
icmpReplyEnabled |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature. |
instanceChargeType |
string | @alicloud/ros-cdk-core.IResolvable |
Property instanceChargeType: The billing method. |
internetChargeType |
string | @alicloud/ros-cdk-core.IResolvable |
Property internetChargeType: The billing method for the NAT gateway. |
natGatewayName |
string | @alicloud/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 |
string | @alicloud/ros-cdk-core.IResolvable |
Property natType: The type of the NAT gateway. |
networkType |
string | @alicloud/ros-cdk-core.IResolvable |
Property networkType: The type of the created NAT gateway. |
pricingCycle |
string | @alicloud/ros-cdk-core.IResolvable |
Property pricingCycle: Price cycle of the resource. |
securityProtectionEnabled |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property securityProtectionEnabled: Specifies whether to enable the firewall feature. |
tags |
TagsProperty[] |
Property tags: Tags to attach to natgateway. |
vpcId
Required
public readonly vpcId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property vpcId: The VPC id to create NAT gateway.
vSwitchId
Required
public readonly vSwitchId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property vSwitchId: The VSwitch id to create NAT gateway.
autoPay
Optional
public readonly autoPay: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property autoPay: Specifies whether to enable automatic payment.
Default is true.
deletionForce
Optional
public readonly deletionForce: boolean | IResolvable;
- Type: boolean | @alicloud/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.
deletionProtection
Optional
public readonly deletionProtection: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property deletionProtection: Whether to enable deletion protection.
Default to False.
description
Optional
public readonly description: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property description: Description of the NAT gateway, [2, 256] characters.
Do not fill or empty, the default is empty.
duration
Optional
public readonly duration: number | IResolvable;
- Type: number | @alicloud/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.
eipBindMode
Optional
public readonly eipBindMode: string | IResolvable;
- Type: string | @alicloud/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.
icmpReplyEnabled
Optional
public readonly icmpReplyEnabled: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property icmpReplyEnabled: Specifies whether to enable the ICMP non-retrieval feature.
Default: True
instanceChargeType
Optional
public readonly instanceChargeType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property instanceChargeType: The billing method.
The default value is PostPaid (which means pay-as-you-go).
internetChargeType
Optional
public readonly internetChargeType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property internetChargeType: The billing method for the NAT gateway.
Valid values: PayBySpec: billed on a pay-by-specification basis.
natGatewayName
Optional
public readonly natGatewayName: string | IResolvable;
- Type: string | @alicloud/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
Optional
public readonly natType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property natType: The type of the NAT gateway.
Valid values: - Enhanced: enhanced NAT gateway.
networkType
Optional
public readonly networkType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property networkType: The type of the created NAT gateway.
Internet: public network NAT gateway. Intranet: VPC NAT gateway.
pricingCycle
Optional
public readonly pricingCycle: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property pricingCycle: Price cycle of the resource.
This property has no default value.
securityProtectionEnabled
Optional
public readonly securityProtectionEnabled: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property securityProtectionEnabled: Specifies whether to enable the firewall feature.
Default: False
tags
Optional
public readonly 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.