Class NatGateway
Inherited Members
Namespace: Pulumi.AliCloud.Vpc
Assembly: Pulumi.AliCloud.dll
Syntax
public class NatGateway : CustomResource
Constructors
View SourceNatGateway(String, NatGatewayArgs, CustomResourceOptions)
Create a NatGateway resource with the given unique name, arguments, and options.
Declaration
public NatGateway(string name, NatGatewayArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| NatGatewayArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBandwidthPackageIds
A list ID of the bandwidth packages, and split them with commas.
Declaration
public Output<string> BandwidthPackageIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BandwidthPackages
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-.
Declaration
public Output<ImmutableArray<NatGatewayBandwidthPackage>> BandwidthPackages { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<NatGatewayBandwidthPackage>> |
Description
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.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ForwardTableIds
The nat gateway will auto create a snap and forward item, the forward_table_ids is the created one.
Declaration
public Output<string> ForwardTableIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceChargeType
The billing method of the nat gateway. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid".
Declaration
public Output<string> InstanceChargeType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
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.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Period
The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. 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.
Declaration
public Output<int?> Period { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
SnatTableIds
The nat gateway will auto create a snap and forward item, the snat_table_ids is the created one.
Declaration
public Output<string> SnatTableIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Spec
It has been deprecated from provider version 1.7.1, and new field 'specification' can replace it.
Declaration
public Output<string> Spec { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Specification
The specification of the nat gateway. Valid values are Small, Middle and Large. Default to Small. Details refer to Nat Gateway Specification.
Declaration
public Output<string> Specification { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcId
The VPC ID.
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, NatGatewayState, CustomResourceOptions)
Get an existing NatGateway resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static NatGateway Get(string name, Input<string> id, NatGatewayState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| NatGatewayState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| NatGateway |