alicloud.vpc.NatGateway
Explore with Pulumi AI
Import
Nat gateway can be imported using the id, e.g.
$ pulumi import alicloud:vpc/natGateway:NatGateway example <id>
Create NatGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NatGateway(name: string, args: NatGatewayArgs, opts?: CustomResourceOptions);
@overload
def NatGateway(resource_name: str,
args: NatGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NatGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
nat_gateway_name: Optional[str] = None,
name: Optional[str] = None,
eip_bind_mode: Optional[str] = None,
force: Optional[bool] = None,
nat_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
dry_run: Optional[bool] = None,
deletion_protection: Optional[bool] = None,
instance_charge_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, str]] = None,
description: Optional[str] = None,
vswitch_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudNatGatewayResource = new AliCloud.Vpc.NatGateway("alicloudNatGatewayResource", new()
{
VpcId = "string",
NatGatewayName = "string",
Name = "string",
EipBindMode = "string",
Force = false,
NatType = "string",
InternetChargeType = "string",
DryRun = false,
DeletionProtection = false,
InstanceChargeType = "string",
NetworkType = "string",
PaymentType = "string",
Period = 0,
Specification = "string",
Tags =
{
{ "string", "string" },
},
Description = "string",
VswitchId = "string",
});
example, err := vpc.NewNatGateway(ctx, "alicloudNatGatewayResource", &vpc.NatGatewayArgs{
VpcId: pulumi.String("string"),
NatGatewayName: pulumi.String("string"),
Name: pulumi.String("string"),
EipBindMode: pulumi.String("string"),
Force: pulumi.Bool(false),
NatType: pulumi.String("string"),
InternetChargeType: pulumi.String("string"),
DryRun: pulumi.Bool(false),
DeletionProtection: pulumi.Bool(false),
InstanceChargeType: pulumi.String("string"),
NetworkType: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Period: pulumi.Int(0),
Specification: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
VswitchId: pulumi.String("string"),
})
var alicloudNatGatewayResource = new NatGateway("alicloudNatGatewayResource", NatGatewayArgs.builder()
.vpcId("string")
.natGatewayName("string")
.name("string")
.eipBindMode("string")
.force(false)
.natType("string")
.internetChargeType("string")
.dryRun(false)
.deletionProtection(false)
.instanceChargeType("string")
.networkType("string")
.paymentType("string")
.period(0)
.specification("string")
.tags(Map.of("string", "string"))
.description("string")
.vswitchId("string")
.build());
alicloud_nat_gateway_resource = alicloud.vpc.NatGateway("alicloudNatGatewayResource",
vpc_id="string",
nat_gateway_name="string",
name="string",
eip_bind_mode="string",
force=False,
nat_type="string",
internet_charge_type="string",
dry_run=False,
deletion_protection=False,
instance_charge_type="string",
network_type="string",
payment_type="string",
period=0,
specification="string",
tags={
"string": "string",
},
description="string",
vswitch_id="string")
const alicloudNatGatewayResource = new alicloud.vpc.NatGateway("alicloudNatGatewayResource", {
vpcId: "string",
natGatewayName: "string",
name: "string",
eipBindMode: "string",
force: false,
natType: "string",
internetChargeType: "string",
dryRun: false,
deletionProtection: false,
instanceChargeType: "string",
networkType: "string",
paymentType: "string",
period: 0,
specification: "string",
tags: {
string: "string",
},
description: "string",
vswitchId: "string",
});
type: alicloud:vpc:NatGateway
properties:
deletionProtection: false
description: string
dryRun: false
eipBindMode: string
force: false
instanceChargeType: string
internetChargeType: string
name: string
natGatewayName: string
natType: string
networkType: string
paymentType: string
period: 0
specification: string
tags:
string: string
vpcId: string
vswitchId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NatGateway resource accepts the following input properties:
- Vpc
Id string - 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 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.
- Dry
Run bool - Specifies whether to only precheck this request. Default value:
false
. - Eip
Bind stringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- Force bool
- Specifies whether to forcefully delete the NAT gateway.
- Instance
Charge stringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - Internet
Charge stringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - Name string
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - Nat
Gateway stringName - 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 string - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - Network
Type string - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - Payment
Type string - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Specification string
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - Dictionary<string, string>
- The tags of NAT gateway.
- Vswitch
Id string - The id of VSwitch.
- Vpc
Id string - 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 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.
- Dry
Run bool - Specifies whether to only precheck this request. Default value:
false
. - Eip
Bind stringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- Force bool
- Specifies whether to forcefully delete the NAT gateway.
- Instance
Charge stringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - Internet
Charge stringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - Name string
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - Nat
Gateway stringName - 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 string - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - Network
Type string - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - Payment
Type string - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Specification string
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - map[string]string
- The tags of NAT gateway.
- Vswitch
Id string - The id of VSwitch.
- vpc
Id String - The VPC ID.
- deletion
Protection 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.
- dry
Run Boolean - Specifies whether to only precheck this request. Default value:
false
. - eip
Bind StringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force Boolean
- Specifies whether to forcefully delete the NAT gateway.
- instance
Charge StringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet
Charge StringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name String
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat
Gateway StringName - 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 String - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network
Type String - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment
Type String - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Integer
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification String
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - Map<String,String>
- The tags of NAT gateway.
- vswitch
Id String - The id of VSwitch.
- vpc
Id string - The VPC ID.
- deletion
Protection 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.
- dry
Run boolean - Specifies whether to only precheck this request. Default value:
false
. - eip
Bind stringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force boolean
- Specifies whether to forcefully delete the NAT gateway.
- instance
Charge stringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet
Charge stringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name string
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat
Gateway stringName - 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 string - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network
Type string - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment
Type string - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period number
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification string
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - {[key: string]: string}
- The tags of NAT gateway.
- vswitch
Id 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_ strmode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force bool
- Specifies whether to forcefully delete the NAT gateway.
- instance_
charge_ strtype - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet_
charge_ strtype - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name str
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat_
gateway_ strname - 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
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network_
type str - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment_
type str - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period int
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification str
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - Mapping[str, str]
- The tags of NAT gateway.
- vswitch_
id str - The id of VSwitch.
- vpc
Id String - The VPC ID.
- deletion
Protection 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.
- dry
Run Boolean - Specifies whether to only precheck this request. Default value:
false
. - eip
Bind StringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force Boolean
- Specifies whether to forcefully delete the NAT gateway.
- instance
Charge StringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet
Charge StringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name String
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat
Gateway StringName - 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 String - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network
Type String - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment
Type String - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Number
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification String
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - Map<String>
- The tags of NAT gateway.
- vswitch
Id String - The id of VSwitch.
Outputs
All input properties are implicitly available as output properties. Additionally, the NatGateway resource produces the following output properties:
- Forward
Table stringIds - The nat gateway will auto create a forward item.
- Id string
- The provider-assigned unique ID for this managed resource.
- Snat
Table stringIds - The nat gateway will auto create a snat item.
- Status string
- (Available since v1.121.0) The status of NAT gateway.
- Forward
Table stringIds - The nat gateway will auto create a forward item.
- Id string
- The provider-assigned unique ID for this managed resource.
- Snat
Table stringIds - The nat gateway will auto create a snat item.
- Status string
- (Available since v1.121.0) The status of NAT gateway.
- forward
Table StringIds - The nat gateway will auto create a forward item.
- id String
- The provider-assigned unique ID for this managed resource.
- snat
Table StringIds - The nat gateway will auto create a snat item.
- status String
- (Available since v1.121.0) The status of NAT gateway.
- forward
Table stringIds - The nat gateway will auto create a forward item.
- id string
- The provider-assigned unique ID for this managed resource.
- snat
Table stringIds - The nat gateway will auto create a snat item.
- status string
- (Available since v1.121.0) The status of NAT gateway.
- forward_
table_ strids - The nat gateway will auto create a forward item.
- id str
- The provider-assigned unique ID for this managed resource.
- snat_
table_ strids - The nat gateway will auto create a snat item.
- status str
- (Available since v1.121.0) The status of NAT gateway.
- forward
Table StringIds - The nat gateway will auto create a forward item.
- id String
- The provider-assigned unique ID for this managed resource.
- snat
Table StringIds - The nat gateway will auto create a snat item.
- status String
- (Available since v1.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, str]] = 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.
- Deletion
Protection 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.
- Dry
Run bool - Specifies whether to only precheck this request. Default value:
false
. - Eip
Bind stringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- Force bool
- Specifies whether to forcefully delete the NAT gateway.
- Forward
Table stringIds - The nat gateway will auto create a forward item.
- Instance
Charge stringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - Internet
Charge stringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - Name string
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - Nat
Gateway stringName - 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 string - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - Network
Type string - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - Payment
Type string - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Snat
Table stringIds - The nat gateway will auto create a snat item.
- Specification string
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - Status string
- (Available since v1.121.0) The status of NAT gateway.
- Dictionary<string, string>
- The tags of NAT gateway.
- Vpc
Id string - The VPC ID.
- Vswitch
Id 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 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.
- Dry
Run bool - Specifies whether to only precheck this request. Default value:
false
. - Eip
Bind stringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- Force bool
- Specifies whether to forcefully delete the NAT gateway.
- Forward
Table stringIds - The nat gateway will auto create a forward item.
- Instance
Charge stringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - Internet
Charge stringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - Name string
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - Nat
Gateway stringName - 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 string - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - Network
Type string - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - Payment
Type string - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - Period int
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Snat
Table stringIds - The nat gateway will auto create a snat item.
- Specification string
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - Status string
- (Available since v1.121.0) The status of NAT gateway.
- map[string]string
- The tags of NAT gateway.
- Vpc
Id string - The VPC ID.
- Vswitch
Id string - The id of VSwitch.
- deletion
Protection 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.
- dry
Run Boolean - Specifies whether to only precheck this request. Default value:
false
. - eip
Bind StringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force Boolean
- Specifies whether to forcefully delete the NAT gateway.
- forward
Table StringIds - The nat gateway will auto create a forward item.
- instance
Charge StringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet
Charge StringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name String
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat
Gateway StringName - 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 String - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network
Type String - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment
Type String - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Integer
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- snat
Table StringIds - The nat gateway will auto create a snat item.
- specification String
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - status String
- (Available since v1.121.0) The status of NAT gateway.
- Map<String,String>
- The tags of NAT gateway.
- vpc
Id String - The VPC ID.
- vswitch
Id String - The id of VSwitch.
- deletion
Protection 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.
- dry
Run boolean - Specifies whether to only precheck this request. Default value:
false
. - eip
Bind stringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force boolean
- Specifies whether to forcefully delete the NAT gateway.
- forward
Table stringIds - The nat gateway will auto create a forward item.
- instance
Charge stringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet
Charge stringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name string
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat
Gateway stringName - 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 string - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network
Type string - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment
Type string - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period number
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- snat
Table stringIds - The nat gateway will auto create a snat item.
- specification string
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - status string
- (Available since v1.121.0) The status of NAT gateway.
- {[key: string]: string}
- The tags of NAT gateway.
- vpc
Id string - The VPC ID.
- vswitch
Id 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_ strmode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force bool
- Specifies whether to forcefully delete the NAT gateway.
- forward_
table_ strids - The nat gateway will auto create a forward item.
- instance_
charge_ strtype - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet_
charge_ strtype - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name str
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat_
gateway_ strname - 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
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network_
type str - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment_
type str - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period int
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- snat_
table_ strids - The nat gateway will auto create a snat item.
- specification str
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - status str
- (Available since v1.121.0) The status of NAT gateway.
- Mapping[str, str]
- The tags of NAT gateway.
- vpc_
id str - The VPC ID.
- vswitch_
id str - The id of VSwitch.
- deletion
Protection 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.
- dry
Run Boolean - Specifies whether to only precheck this request. Default value:
false
. - eip
Bind StringMode - The EIP binding mode of the NAT gateway. Default value:
MULTI_BINDED
. Valid values:MULTI_BINDED
: Multi EIP network card visible mode.NAT
: EIP normal mode, compatible with IPv4 gateway.
- force Boolean
- Specifies whether to forcefully delete the NAT gateway.
- forward
Table StringIds - The nat gateway will auto create a forward item.
- instance
Charge StringType - Field
instance_charge_type
has been deprecated from provider version 1.121.0. New fieldpayment_type
instead. - internet
Charge StringType - The internet charge type. Valid values
PayByLcu
andPayBySpec
. ThePayByLcu
is only support enhanced NAT. NOTE: From 1.137.0+, ThePayBySpec
has been deprecated. - name String
- Field
name
has been deprecated from provider version 1.121.0. New fieldnat_gateway_name
instead. - nat
Gateway StringName - 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 String - The type of NAT gateway. Valid values:
Normal
andEnhanced
. NOTE: From 1.137.0+, TheNormal
has been deprecated. - network
Type String - Indicates the type of the created NAT gateway. Valid values
internet
andintranet
.internet
: Internet NAT Gateway.intranet
: VPC NAT Gateway. - payment
Type String - The billing method of the NAT gateway. Valid values are
PayAsYouGo
andSubscription
. Default toPayAsYouGo
. - period Number
The duration that you will buy the resource, in month. It is valid when
payment_type
isSubscription
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. NOTE: International station only supportsSubscription
.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- snat
Table StringIds - The nat gateway will auto create a snat item.
- specification String
- The specification of the nat gateway. Valid values are
Small
,Middle
andLarge
. Effective wheninternet_charge_type
isPayBySpec
andnetwork_type
isinternet
. Details refer to Nat Gateway Specification. - status String
- (Available since v1.121.0) The status of NAT gateway.
- Map<String>
- The tags of NAT gateway.
- vpc
Id String - The VPC ID.
- vswitch
Id 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.