NatGateway
Create a NatGateway Resource
new NatGateway(name: string, args: NatGatewayArgs, opts?: CustomResourceOptions);def NatGateway(resource_name, opts=None, bandwidth_packages=None, description=None, instance_charge_type=None, name=None, period=None, spec=None, specification=None, vpc_id=None, __props__=None);func NewNatGateway(ctx *Context, name string, args NatGatewayArgs, opts ...ResourceOption) (*NatGateway, error)public NatGateway(string name, NatGatewayArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
NatGateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NatGateway resource accepts the following input properties:
- Vpc
Id string The VPC ID.
- Bandwidth
Packages List<Pulumi.Ali Cloud. Vpc. Inputs. Nat Gateway Bandwidth Package Args> A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- Instance
Charge stringType The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Name 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.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- Spec string
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- Specification string
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.
- Vpc
Id string The VPC ID.
- Bandwidth
Packages []NatGateway Bandwidth Package A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- Instance
Charge stringType The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Name 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.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- Spec string
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- Specification string
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.
- vpc
Id string The VPC ID.
- bandwidth
Packages NatGateway Bandwidth Package[] A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- instance
Charge stringType The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- name 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.
- period number
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- spec string
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- specification string
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.
- vpc_
id str The VPC ID.
- bandwidth_
packages List[NatGateway Bandwidth Package] A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- instance_
charge_ strtype The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- 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.
- period float
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- spec str
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- specification str
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.
Outputs
All input properties are implicitly available as output properties. Additionally, the NatGateway resource produces the following output properties:
- Bandwidth
Package stringIds A list ID of the bandwidth packages, and split them with commas.
- Forward
Table stringIds The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- Id string
- The provider-assigned unique ID for this managed resource.
- Snat
Table stringIds The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.
- Bandwidth
Package stringIds A list ID of the bandwidth packages, and split them with commas.
- Forward
Table stringIds The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- Id string
- The provider-assigned unique ID for this managed resource.
- Snat
Table stringIds The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.
- bandwidth
Package stringIds A list ID of the bandwidth packages, and split them with commas.
- forward
Table stringIds The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- id string
- The provider-assigned unique ID for this managed resource.
- snat
Table stringIds The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.
- bandwidth_
package_ strids A list ID of the bandwidth packages, and split them with commas.
- forward_
table_ strids The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- id str
- The provider-assigned unique ID for this managed resource.
- snat_
table_ strids The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.
Look up an 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): NatGatewaystatic get(resource_name, id, opts=None, bandwidth_package_ids=None, bandwidth_packages=None, description=None, forward_table_ids=None, instance_charge_type=None, name=None, period=None, snat_table_ids=None, spec=None, specification=None, vpc_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Bandwidth
Package stringIds A list ID of the bandwidth packages, and split them with commas.
- Bandwidth
Packages List<Pulumi.Ali Cloud. Vpc. Inputs. Nat Gateway Bandwidth Package Args> A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- Forward
Table stringIds The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- Instance
Charge stringType The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Name 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.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- Snat
Table stringIds The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.- Spec string
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- Specification string
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.- Vpc
Id string The VPC ID.
- Bandwidth
Package stringIds A list ID of the bandwidth packages, and split them with commas.
- Bandwidth
Packages []NatGateway Bandwidth Package A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- Forward
Table stringIds The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- Instance
Charge stringType The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Name 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.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- Snat
Table stringIds The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.- Spec string
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- Specification string
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.- Vpc
Id string The VPC ID.
- bandwidth
Package stringIds A list ID of the bandwidth packages, and split them with commas.
- bandwidth
Packages NatGateway Bandwidth Package[] A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- forward
Table stringIds The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- instance
Charge stringType The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- name 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.
- period number
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- snat
Table stringIds The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.- spec string
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- specification string
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.- vpc
Id string The VPC ID.
- bandwidth_
package_ strids A list ID of the bandwidth packages, and split them with commas.
- bandwidth_
packages List[NatGateway Bandwidth Package] A list of bandwidth packages for the nat gatway. Only support nat gateway created before 00:00 on November 4, 2017. Available in v1.13.0+ and v1.7.1-.
- 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.
- forward_
table_ strids The nat gateway will auto create a snap and forward item, the
forward_table_idsis the created one.- instance_
charge_ strtype The billing method of the nat gateway. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- 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.
- period float
The duration that you will buy the resource, in month. It is valid when
instance_charge_typeisPrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.- snat_
table_ strids The nat gateway will auto create a snap and forward item, the
snat_table_idsis the created one.- spec str
It has been deprecated from provider version 1.7.1, and new field ‘specification’ can replace it.
- specification str
The specification of the nat gateway. Valid values are
Small,MiddleandLarge. Default toSmall. Details refer to Nat Gateway Specification.- vpc_
id str The VPC ID.
Supporting Types
NatGatewayBandwidthPackage
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.