alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.NatGateway

Import

Nat gateway can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/natGateway:NatGateway example <id>

Create NatGateway Resource

new NatGateway(name: string, args: NatGatewayArgs, opts?: CustomResourceOptions);
@overload
def NatGateway(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               deletion_protection: Optional[bool] = None,
               description: Optional[str] = None,
               dry_run: Optional[bool] = None,
               eip_bind_mode: Optional[str] = None,
               force: Optional[bool] = None,
               instance_charge_type: Optional[str] = None,
               internet_charge_type: Optional[str] = None,
               name: Optional[str] = None,
               nat_gateway_name: Optional[str] = None,
               nat_type: Optional[str] = None,
               network_type: Optional[str] = None,
               payment_type: Optional[str] = None,
               period: Optional[int] = None,
               specification: Optional[str] = None,
               tags: Optional[Mapping[str, Any]] = None,
               vpc_id: Optional[str] = None,
               vswitch_id: Optional[str] = None)
@overload
def NatGateway(resource_name: str,
               args: NatGatewayArgs,
               opts: Optional[ResourceOptions] = None)
func NewNatGateway(ctx *Context, name string, args NatGatewayArgs, opts ...ResourceOption) (*NatGateway, error)
public NatGateway(string name, NatGatewayArgs args, CustomResourceOptions? opts = null)
public NatGateway(String name, NatGatewayArgs args)
public NatGateway(String name, NatGatewayArgs args, CustomResourceOptions options)
type: alicloud:vpc:NatGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NatGatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args NatGatewayArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NatGatewayArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NatGatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NatGatewayArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NatGateway Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The NatGateway resource accepts the following input properties:

VpcId string

The VPC ID.

DeletionProtection bool

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
Description string

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

DryRun bool

Specifies whether to only precheck this request. Default value: false.

EipBindMode string

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

Force bool

Specifies whether to forcefully delete the NAT gateway.

InstanceChargeType string

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

InternetChargeType string

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

Name string

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

NatGatewayName string

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

NatType string

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

NetworkType string

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

PaymentType string

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

Period int
Specification string

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

Tags Dictionary<string, object>

The tags of NAT gateway.

VswitchId string

The id of VSwitch.

VpcId string

The VPC ID.

DeletionProtection bool

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
Description string

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

DryRun bool

Specifies whether to only precheck this request. Default value: false.

EipBindMode string

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

Force bool

Specifies whether to forcefully delete the NAT gateway.

InstanceChargeType string

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

InternetChargeType string

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

Name string

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

NatGatewayName string

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

NatType string

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

NetworkType string

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

PaymentType string

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

Period int
Specification string

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

Tags map[string]interface{}

The tags of NAT gateway.

VswitchId string

The id of VSwitch.

vpcId String

The VPC ID.

deletionProtection Boolean

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description String

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

eipBindMode String

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force Boolean

Specifies whether to forcefully delete the NAT gateway.

instanceChargeType String

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internetChargeType String

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name String

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

natGatewayName String

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

natType String

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

networkType String

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

paymentType String

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period Integer
specification String

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

tags Map<String,Object>

The tags of NAT gateway.

vswitchId String

The id of VSwitch.

vpcId string

The VPC ID.

deletionProtection boolean

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description string

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dryRun boolean

Specifies whether to only precheck this request. Default value: false.

eipBindMode string

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force boolean

Specifies whether to forcefully delete the NAT gateway.

instanceChargeType string

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internetChargeType string

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name string

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

natGatewayName string

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

natType string

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

networkType string

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

paymentType string

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period number
specification string

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

tags {[key: string]: any}

The tags of NAT gateway.

vswitchId string

The id of VSwitch.

vpc_id str

The VPC ID.

deletion_protection bool

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description str

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dry_run bool

Specifies whether to only precheck this request. Default value: false.

eip_bind_mode str

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force bool

Specifies whether to forcefully delete the NAT gateway.

instance_charge_type str

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internet_charge_type str

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name str

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

nat_gateway_name str

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

nat_type str

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

network_type str

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

payment_type str

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period int
specification str

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

tags Mapping[str, Any]

The tags of NAT gateway.

vswitch_id str

The id of VSwitch.

vpcId String

The VPC ID.

deletionProtection Boolean

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description String

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

eipBindMode String

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force Boolean

Specifies whether to forcefully delete the NAT gateway.

instanceChargeType String

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internetChargeType String

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name String

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

natGatewayName String

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

natType String

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

networkType String

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

paymentType String

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period Number
specification String

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

tags Map<Any>

The tags of NAT gateway.

vswitchId String

The id of VSwitch.

Outputs

All input properties are implicitly available as output properties. Additionally, the NatGateway resource produces the following output properties:

ForwardTableIds string

The nat gateway will auto create a forward item.

Id string

The provider-assigned unique ID for this managed resource.

SnatTableIds string

The nat gateway will auto create a snat item.

Status string

(Available in 1.121.0+) The status of NAT gateway.

ForwardTableIds string

The nat gateway will auto create a forward item.

Id string

The provider-assigned unique ID for this managed resource.

SnatTableIds string

The nat gateway will auto create a snat item.

Status string

(Available in 1.121.0+) The status of NAT gateway.

forwardTableIds String

The nat gateway will auto create a forward item.

id String

The provider-assigned unique ID for this managed resource.

snatTableIds String

The nat gateway will auto create a snat item.

status String

(Available in 1.121.0+) The status of NAT gateway.

forwardTableIds string

The nat gateway will auto create a forward item.

id string

The provider-assigned unique ID for this managed resource.

snatTableIds string

The nat gateway will auto create a snat item.

status string

(Available in 1.121.0+) The status of NAT gateway.

forward_table_ids str

The nat gateway will auto create a forward item.

id str

The provider-assigned unique ID for this managed resource.

snat_table_ids str

The nat gateway will auto create a snat item.

status str

(Available in 1.121.0+) The status of NAT gateway.

forwardTableIds String

The nat gateway will auto create a forward item.

id String

The provider-assigned unique ID for this managed resource.

snatTableIds String

The nat gateway will auto create a snat item.

status String

(Available in 1.121.0+) The status of NAT gateway.

Look up Existing NatGateway Resource

Get an existing NatGateway resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NatGatewayState, opts?: CustomResourceOptions): NatGateway
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        deletion_protection: Optional[bool] = None,
        description: Optional[str] = None,
        dry_run: Optional[bool] = None,
        eip_bind_mode: Optional[str] = None,
        force: Optional[bool] = None,
        forward_table_ids: Optional[str] = None,
        instance_charge_type: Optional[str] = None,
        internet_charge_type: Optional[str] = None,
        name: Optional[str] = None,
        nat_gateway_name: Optional[str] = None,
        nat_type: Optional[str] = None,
        network_type: Optional[str] = None,
        payment_type: Optional[str] = None,
        period: Optional[int] = None,
        snat_table_ids: Optional[str] = None,
        specification: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None,
        vpc_id: Optional[str] = None,
        vswitch_id: Optional[str] = None) -> NatGateway
func GetNatGateway(ctx *Context, name string, id IDInput, state *NatGatewayState, opts ...ResourceOption) (*NatGateway, error)
public static NatGateway Get(string name, Input<string> id, NatGatewayState? state, CustomResourceOptions? opts = null)
public static NatGateway get(String name, Output<String> id, NatGatewayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DeletionProtection bool

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
Description string

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

DryRun bool

Specifies whether to only precheck this request. Default value: false.

EipBindMode string

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

Force bool

Specifies whether to forcefully delete the NAT gateway.

ForwardTableIds string

The nat gateway will auto create a forward item.

InstanceChargeType string

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

InternetChargeType string

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

Name string

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

NatGatewayName string

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

NatType string

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

NetworkType string

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

PaymentType string

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

Period int
SnatTableIds string

The nat gateway will auto create a snat item.

Specification string

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

Status string

(Available in 1.121.0+) The status of NAT gateway.

Tags Dictionary<string, object>

The tags of NAT gateway.

VpcId string

The VPC ID.

VswitchId string

The id of VSwitch.

DeletionProtection bool

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
Description string

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

DryRun bool

Specifies whether to only precheck this request. Default value: false.

EipBindMode string

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

Force bool

Specifies whether to forcefully delete the NAT gateway.

ForwardTableIds string

The nat gateway will auto create a forward item.

InstanceChargeType string

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

InternetChargeType string

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

Name string

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

NatGatewayName string

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

NatType string

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

NetworkType string

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

PaymentType string

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

Period int
SnatTableIds string

The nat gateway will auto create a snat item.

Specification string

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

Status string

(Available in 1.121.0+) The status of NAT gateway.

Tags map[string]interface{}

The tags of NAT gateway.

VpcId string

The VPC ID.

VswitchId string

The id of VSwitch.

deletionProtection Boolean

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description String

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

eipBindMode String

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force Boolean

Specifies whether to forcefully delete the NAT gateway.

forwardTableIds String

The nat gateway will auto create a forward item.

instanceChargeType String

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internetChargeType String

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name String

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

natGatewayName String

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

natType String

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

networkType String

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

paymentType String

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period Integer
snatTableIds String

The nat gateway will auto create a snat item.

specification String

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

status String

(Available in 1.121.0+) The status of NAT gateway.

tags Map<String,Object>

The tags of NAT gateway.

vpcId String

The VPC ID.

vswitchId String

The id of VSwitch.

deletionProtection boolean

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description string

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dryRun boolean

Specifies whether to only precheck this request. Default value: false.

eipBindMode string

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force boolean

Specifies whether to forcefully delete the NAT gateway.

forwardTableIds string

The nat gateway will auto create a forward item.

instanceChargeType string

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internetChargeType string

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name string

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

natGatewayName string

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

natType string

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

networkType string

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

paymentType string

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period number
snatTableIds string

The nat gateway will auto create a snat item.

specification string

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

status string

(Available in 1.121.0+) The status of NAT gateway.

tags {[key: string]: any}

The tags of NAT gateway.

vpcId string

The VPC ID.

vswitchId string

The id of VSwitch.

deletion_protection bool

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description str

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dry_run bool

Specifies whether to only precheck this request. Default value: false.

eip_bind_mode str

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force bool

Specifies whether to forcefully delete the NAT gateway.

forward_table_ids str

The nat gateway will auto create a forward item.

instance_charge_type str

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internet_charge_type str

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name str

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

nat_gateway_name str

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

nat_type str

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

network_type str

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

payment_type str

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period int
snat_table_ids str

The nat gateway will auto create a snat item.

specification str

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

status str

(Available in 1.121.0+) The status of NAT gateway.

tags Mapping[str, Any]

The tags of NAT gateway.

vpc_id str

The VPC ID.

vswitch_id str

The id of VSwitch.

deletionProtection Boolean

Whether enable the deletion protection or not. Default value: false.

  • true: Enable deletion protection.
  • false: Disable deletion protection.
description String

Description of the nat gateway, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Defaults to null.

dryRun Boolean

Specifies whether to only precheck this request. Default value: false.

eipBindMode String

The EIP binding mode of the NAT gateway. Default value: MULTI_BINDED. Valid values:

force Boolean

Specifies whether to forcefully delete the NAT gateway.

forwardTableIds String

The nat gateway will auto create a forward item.

instanceChargeType String

Field instance_charge_type has been deprecated from provider version 1.121.0. New field payment_type instead.

internetChargeType String

The internet charge type. Valid values PayByLcu and PayBySpec. The PayByLcu is only support enhanced NAT. NOTE: From 1.137.0+, The PayBySpec has been deprecated.

name String

Field name has been deprecated from provider version 1.121.0. New field nat_gateway_name instead.

natGatewayName String

Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.

natType String

The type of NAT gateway. Valid values: Normal and Enhanced. NOTE: From 1.137.0+, The Normal has been deprecated.

networkType String

Indicates the type of the created NAT gateway. Valid values internet and intranet. internet: Internet NAT Gateway. intranet: VPC NAT Gateway.

paymentType String

The billing method of the NAT gateway. Valid values are PayAsYouGo and Subscription. Default to PayAsYouGo.

period Number
snatTableIds String

The nat gateway will auto create a snat item.

specification String

The specification of the nat gateway. Valid values are Small, Middle and Large. Effective when internet_charge_type is PayBySpec and network_type is internet. Details refer to Nat Gateway Specification.

status String

(Available in 1.121.0+) The status of NAT gateway.

tags Map<Any>

The tags of NAT gateway.

vpcId String

The VPC ID.

vswitchId String

The id of VSwitch.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.