Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.vpc.getNatGateways
Explore with Pulumi AI
This data source provides a list of Nat Gateways owned by an Alibaba Cloud account.
NOTE: Available since v1.37.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "natGatewaysDatasource";
const _default = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const fooNetwork = new alicloud.vpc.Network("foo", {
    vpcName: name,
    cidrBlock: "172.16.0.0/12",
});
const fooNatGateway = new alicloud.vpc.NatGateway("foo", {
    vpcId: fooNetwork.id,
    specification: "Small",
    natGatewayName: name,
});
const foo = alicloud.vpc.getNatGatewaysOutput({
    vpcId: fooNetwork.id,
    nameRegex: fooNatGateway.name,
    ids: [fooNatGateway.id],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "natGatewaysDatasource"
default = alicloud.get_zones(available_resource_creation="VSwitch")
foo_network = alicloud.vpc.Network("foo",
    vpc_name=name,
    cidr_block="172.16.0.0/12")
foo_nat_gateway = alicloud.vpc.NatGateway("foo",
    vpc_id=foo_network.id,
    specification="Small",
    nat_gateway_name=name)
foo = alicloud.vpc.get_nat_gateways_output(vpc_id=foo_network.id,
    name_regex=foo_nat_gateway.name,
    ids=[foo_nat_gateway.id])
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "natGatewaysDatasource"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		fooNetwork, err := vpc.NewNetwork(ctx, "foo", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		fooNatGateway, err := vpc.NewNatGateway(ctx, "foo", &vpc.NatGatewayArgs{
			VpcId:          fooNetwork.ID(),
			Specification:  pulumi.String("Small"),
			NatGatewayName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_ = vpc.GetNatGatewaysOutput(ctx, vpc.GetNatGatewaysOutputArgs{
			VpcId:     fooNetwork.ID(),
			NameRegex: fooNatGateway.Name,
			Ids: pulumi.StringArray{
				fooNatGateway.ID(),
			},
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "natGatewaysDatasource";
    var @default = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });
    var fooNetwork = new AliCloud.Vpc.Network("foo", new()
    {
        VpcName = name,
        CidrBlock = "172.16.0.0/12",
    });
    var fooNatGateway = new AliCloud.Vpc.NatGateway("foo", new()
    {
        VpcId = fooNetwork.Id,
        Specification = "Small",
        NatGatewayName = name,
    });
    var foo = AliCloud.Vpc.GetNatGateways.Invoke(new()
    {
        VpcId = fooNetwork.Id,
        NameRegex = fooNatGateway.Name,
        Ids = new[]
        {
            fooNatGateway.Id,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.NatGateway;
import com.pulumi.alicloud.vpc.NatGatewayArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNatGatewaysArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("natGatewaysDatasource");
        final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());
        var fooNetwork = new Network("fooNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("172.16.0.0/12")
            .build());
        var fooNatGateway = new NatGateway("fooNatGateway", NatGatewayArgs.builder()
            .vpcId(fooNetwork.id())
            .specification("Small")
            .natGatewayName(name)
            .build());
        final var foo = VpcFunctions.getNatGateways(GetNatGatewaysArgs.builder()
            .vpcId(fooNetwork.id())
            .nameRegex(fooNatGateway.name())
            .ids(fooNatGateway.id())
            .build());
    }
}
configuration:
  name:
    type: string
    default: natGatewaysDatasource
resources:
  fooNetwork:
    type: alicloud:vpc:Network
    name: foo
    properties:
      vpcName: ${name}
      cidrBlock: 172.16.0.0/12
  fooNatGateway:
    type: alicloud:vpc:NatGateway
    name: foo
    properties:
      vpcId: ${fooNetwork.id}
      specification: Small
      natGatewayName: ${name}
variables:
  default:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableResourceCreation: VSwitch
  foo:
    fn::invoke:
      function: alicloud:vpc:getNatGateways
      arguments:
        vpcId: ${fooNetwork.id}
        nameRegex: ${fooNatGateway.name}
        ids:
          - ${fooNatGateway.id}
Using getNatGateways
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNatGateways(args: GetNatGatewaysArgs, opts?: InvokeOptions): Promise<GetNatGatewaysResult>
function getNatGatewaysOutput(args: GetNatGatewaysOutputArgs, opts?: InvokeOptions): Output<GetNatGatewaysResult>def get_nat_gateways(dry_run: Optional[bool] = None,
                     enable_details: Optional[bool] = None,
                     ids: Optional[Sequence[str]] = None,
                     name_regex: Optional[str] = None,
                     nat_gateway_name: Optional[str] = None,
                     nat_type: Optional[str] = None,
                     output_file: Optional[str] = None,
                     page_number: Optional[int] = None,
                     page_size: Optional[int] = None,
                     payment_type: Optional[str] = None,
                     resource_group_id: Optional[str] = None,
                     specification: Optional[str] = None,
                     status: Optional[str] = None,
                     tags: Optional[Mapping[str, str]] = None,
                     vpc_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNatGatewaysResult
def get_nat_gateways_output(dry_run: Optional[pulumi.Input[bool]] = None,
                     enable_details: Optional[pulumi.Input[bool]] = None,
                     ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     name_regex: Optional[pulumi.Input[str]] = None,
                     nat_gateway_name: Optional[pulumi.Input[str]] = None,
                     nat_type: Optional[pulumi.Input[str]] = None,
                     output_file: Optional[pulumi.Input[str]] = None,
                     page_number: Optional[pulumi.Input[int]] = None,
                     page_size: Optional[pulumi.Input[int]] = None,
                     payment_type: Optional[pulumi.Input[str]] = None,
                     resource_group_id: Optional[pulumi.Input[str]] = None,
                     specification: Optional[pulumi.Input[str]] = None,
                     status: Optional[pulumi.Input[str]] = None,
                     tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                     vpc_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNatGatewaysResult]func GetNatGateways(ctx *Context, args *GetNatGatewaysArgs, opts ...InvokeOption) (*GetNatGatewaysResult, error)
func GetNatGatewaysOutput(ctx *Context, args *GetNatGatewaysOutputArgs, opts ...InvokeOption) GetNatGatewaysResultOutput> Note: This function is named GetNatGateways in the Go SDK.
public static class GetNatGateways 
{
    public static Task<GetNatGatewaysResult> InvokeAsync(GetNatGatewaysArgs args, InvokeOptions? opts = null)
    public static Output<GetNatGatewaysResult> Invoke(GetNatGatewaysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNatGatewaysResult> getNatGateways(GetNatGatewaysArgs args, InvokeOptions options)
public static Output<GetNatGatewaysResult> getNatGateways(GetNatGatewaysArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:vpc/getNatGateways:getNatGateways
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Dry
Run bool - Specifies whether to only precheck the request.
 - Enable
Details bool - Default to 
false. Set it totruecan output more details about resource attributes. - Ids List<string>
 - A list of NAT gateways IDs.
 - Name
Regex string - A regex string to filter nat gateways by name.
 - Nat
Gateway stringName  - The name of NAT gateway.
 - Nat
Type string - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Page
Number int - Page
Size int - Payment
Type string - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - Resource
Group stringId  - The resource group id of NAT gateway.
 - Specification string
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - Status string
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Dictionary<string, string>
 - The tags of NAT gateway.
 - Vpc
Id string - The ID of the VPC.
 
- Dry
Run bool - Specifies whether to only precheck the request.
 - Enable
Details bool - Default to 
false. Set it totruecan output more details about resource attributes. - Ids []string
 - A list of NAT gateways IDs.
 - Name
Regex string - A regex string to filter nat gateways by name.
 - Nat
Gateway stringName  - The name of NAT gateway.
 - Nat
Type string - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - Output
File string - File name where to save data source results (after running 
pulumi preview). - Page
Number int - Page
Size int - Payment
Type string - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - Resource
Group stringId  - The resource group id of NAT gateway.
 - Specification string
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - Status string
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - map[string]string
 - The tags of NAT gateway.
 - Vpc
Id string - The ID of the VPC.
 
- dry
Run Boolean - Specifies whether to only precheck the request.
 - enable
Details Boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids List<String>
 - A list of NAT gateways IDs.
 - name
Regex String - A regex string to filter nat gateways by name.
 - nat
Gateway StringName  - The name of NAT gateway.
 - nat
Type String - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - output
File String - File name where to save data source results (after running 
pulumi preview). - page
Number Integer - page
Size Integer - payment
Type String - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource
Group StringId  - The resource group id of NAT gateway.
 - specification String
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status String
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Map<String,String>
 - The tags of NAT gateway.
 - vpc
Id String - The ID of the VPC.
 
- dry
Run boolean - Specifies whether to only precheck the request.
 - enable
Details boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids string[]
 - A list of NAT gateways IDs.
 - name
Regex string - A regex string to filter nat gateways by name.
 - nat
Gateway stringName  - The name of NAT gateway.
 - nat
Type string - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - output
File string - File name where to save data source results (after running 
pulumi preview). - page
Number number - page
Size number - payment
Type string - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource
Group stringId  - The resource group id of NAT gateway.
 - specification string
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status string
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - {[key: string]: string}
 - The tags of NAT gateway.
 - vpc
Id string - The ID of the VPC.
 
- dry_
run bool - Specifies whether to only precheck the request.
 - enable_
details bool - Default to 
false. Set it totruecan output more details about resource attributes. - ids Sequence[str]
 - A list of NAT gateways IDs.
 - name_
regex str - A regex string to filter nat gateways by name.
 - nat_
gateway_ strname  - The name of NAT gateway.
 - nat_
type str - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - output_
file str - File name where to save data source results (after running 
pulumi preview). - page_
number int - page_
size int - payment_
type str - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource_
group_ strid  - The resource group id of NAT gateway.
 - specification str
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status str
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Mapping[str, str]
 - The tags of NAT gateway.
 - vpc_
id str - The ID of the VPC.
 
- dry
Run Boolean - Specifies whether to only precheck the request.
 - enable
Details Boolean - Default to 
false. Set it totruecan output more details about resource attributes. - ids List<String>
 - A list of NAT gateways IDs.
 - name
Regex String - A regex string to filter nat gateways by name.
 - nat
Gateway StringName  - The name of NAT gateway.
 - nat
Type String - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - output
File String - File name where to save data source results (after running 
pulumi preview). - page
Number Number - page
Size Number - payment
Type String - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource
Group StringId  - The resource group id of NAT gateway.
 - specification String
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status String
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Map<String>
 - The tags of NAT gateway.
 - vpc
Id String - The ID of the VPC.
 
getNatGateways Result
The following output properties are available:
- Gateways
List<Pulumi.
Ali Cloud. Vpc. Outputs. Get Nat Gateways Gateway>  - A list of Nat gateways. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - (Optional) A list of Nat gateways IDs.
 - Names List<string>
 - A list of Nat gateways names.
 - Total
Count int - Dry
Run bool - Enable
Details bool - Name
Regex string - Nat
Gateway stringName  - The name of the NAT gateway.
 - Nat
Type string - The type of the NAT gateway.
 - Output
File string - Page
Number int - Page
Size int - Payment
Type string - The billing method of the NAT gateway.
 - Resource
Group stringId  - The ID of the resource group.
 - Specification string
 - The specification of the NAT gateway.
 - Status string
 - The status of the NAT gateway.
 - Dictionary<string, string>
 - The tags of NAT gateway.
 - Vpc
Id string - The ID of the VPC.
 
- Gateways
[]Get
Nat Gateways Gateway  - A list of Nat gateways. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - (Optional) A list of Nat gateways IDs.
 - Names []string
 - A list of Nat gateways names.
 - Total
Count int - Dry
Run bool - Enable
Details bool - Name
Regex string - Nat
Gateway stringName  - The name of the NAT gateway.
 - Nat
Type string - The type of the NAT gateway.
 - Output
File string - Page
Number int - Page
Size int - Payment
Type string - The billing method of the NAT gateway.
 - Resource
Group stringId  - The ID of the resource group.
 - Specification string
 - The specification of the NAT gateway.
 - Status string
 - The status of the NAT gateway.
 - map[string]string
 - The tags of NAT gateway.
 - Vpc
Id string - The ID of the VPC.
 
- gateways
List<Get
Nat Gateways Gateway>  - A list of Nat gateways. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - (Optional) A list of Nat gateways IDs.
 - names List<String>
 - A list of Nat gateways names.
 - total
Count Integer - dry
Run Boolean - enable
Details Boolean - name
Regex String - nat
Gateway StringName  - The name of the NAT gateway.
 - nat
Type String - The type of the NAT gateway.
 - output
File String - page
Number Integer - page
Size Integer - payment
Type String - The billing method of the NAT gateway.
 - resource
Group StringId  - The ID of the resource group.
 - specification String
 - The specification of the NAT gateway.
 - status String
 - The status of the NAT gateway.
 - Map<String,String>
 - The tags of NAT gateway.
 - vpc
Id String - The ID of the VPC.
 
- gateways
Get
Nat Gateways Gateway[]  - A list of Nat gateways. Each element contains the following attributes:
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - (Optional) A list of Nat gateways IDs.
 - names string[]
 - A list of Nat gateways names.
 - total
Count number - dry
Run boolean - enable
Details boolean - name
Regex string - nat
Gateway stringName  - The name of the NAT gateway.
 - nat
Type string - The type of the NAT gateway.
 - output
File string - page
Number number - page
Size number - payment
Type string - The billing method of the NAT gateway.
 - resource
Group stringId  - The ID of the resource group.
 - specification string
 - The specification of the NAT gateway.
 - status string
 - The status of the NAT gateway.
 - {[key: string]: string}
 - The tags of NAT gateway.
 - vpc
Id string - The ID of the VPC.
 
- gateways
Sequence[Get
Nat Gateways Gateway]  - A list of Nat gateways. Each element contains the following attributes:
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - (Optional) A list of Nat gateways IDs.
 - names Sequence[str]
 - A list of Nat gateways names.
 - total_
count int - dry_
run bool - enable_
details bool - name_
regex str - nat_
gateway_ strname  - The name of the NAT gateway.
 - nat_
type str - The type of the NAT gateway.
 - output_
file str - page_
number int - page_
size int - payment_
type str - The billing method of the NAT gateway.
 - resource_
group_ strid  - The ID of the resource group.
 - specification str
 - The specification of the NAT gateway.
 - status str
 - The status of the NAT gateway.
 - Mapping[str, str]
 - The tags of NAT gateway.
 - vpc_
id str - The ID of the VPC.
 
- gateways List<Property Map>
 - A list of Nat gateways. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - (Optional) A list of Nat gateways IDs.
 - names List<String>
 - A list of Nat gateways names.
 - total
Count Number - dry
Run Boolean - enable
Details Boolean - name
Regex String - nat
Gateway StringName  - The name of the NAT gateway.
 - nat
Type String - The type of the NAT gateway.
 - output
File String - page
Number Number - page
Size Number - payment
Type String - The billing method of the NAT gateway.
 - resource
Group StringId  - The ID of the resource group.
 - specification String
 - The specification of the NAT gateway.
 - status String
 - The status of the NAT gateway.
 - Map<String>
 - The tags of NAT gateway.
 - vpc
Id String - The ID of the VPC.
 
Supporting Types
GetNatGatewaysGateway   
- Business
Status string - The state of the NAT gateway.
 - Deletion
Protection bool - Indicates whether deletion protection is enabled.
 - Description string
 - The description of the NAT gateway.
 - Ecs
Metric boolEnabled  - Indicates whether the traffic monitoring feature is enabled.
 - Expired
Time string - The time when the NAT gateway expires.
 - Forward
Table List<string>Ids  - The ID of the DNAT table.
 - Id string
 - The ID of the NAT gateway.
 - Internet
Charge stringType  - The metering method of the NAT gateway.
 - Ip
Lists List<string> - The ip address of the bind eip.
 - Name string
 - Name of the NAT gateway.
 - Nat
Gateway stringId  - The ID of the NAT gateway.
 - Nat
Gateway stringName  - The name of NAT gateway.
 - Nat
Type string - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - Network
Type string - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values 
internetandintranet. - Payment
Type string - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - Resource
Group stringId  - The resource group id of NAT gateway.
 - Snat
Table List<string>Ids  - The ID of the SNAT table that is associated with the NAT gateway.
 - Spec string
 - The specification of the NAT gateway.
 - Specification string
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - Status string
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Dictionary<string, string>
 - The tags of NAT gateway.
 - Vpc
Id string - The ID of the VPC.
 - Vswitch
Id string - The ID of the vSwitch to which the NAT gateway belongs.
 
- Business
Status string - The state of the NAT gateway.
 - Deletion
Protection bool - Indicates whether deletion protection is enabled.
 - Description string
 - The description of the NAT gateway.
 - Ecs
Metric boolEnabled  - Indicates whether the traffic monitoring feature is enabled.
 - Expired
Time string - The time when the NAT gateway expires.
 - Forward
Table []stringIds  - The ID of the DNAT table.
 - Id string
 - The ID of the NAT gateway.
 - Internet
Charge stringType  - The metering method of the NAT gateway.
 - Ip
Lists []string - The ip address of the bind eip.
 - Name string
 - Name of the NAT gateway.
 - Nat
Gateway stringId  - The ID of the NAT gateway.
 - Nat
Gateway stringName  - The name of NAT gateway.
 - Nat
Type string - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - Network
Type string - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values 
internetandintranet. - Payment
Type string - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - Resource
Group stringId  - The resource group id of NAT gateway.
 - Snat
Table []stringIds  - The ID of the SNAT table that is associated with the NAT gateway.
 - Spec string
 - The specification of the NAT gateway.
 - Specification string
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - Status string
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - map[string]string
 - The tags of NAT gateway.
 - Vpc
Id string - The ID of the VPC.
 - Vswitch
Id string - The ID of the vSwitch to which the NAT gateway belongs.
 
- business
Status String - The state of the NAT gateway.
 - deletion
Protection Boolean - Indicates whether deletion protection is enabled.
 - description String
 - The description of the NAT gateway.
 - ecs
Metric BooleanEnabled  - Indicates whether the traffic monitoring feature is enabled.
 - expired
Time String - The time when the NAT gateway expires.
 - forward
Table List<String>Ids  - The ID of the DNAT table.
 - id String
 - The ID of the NAT gateway.
 - internet
Charge StringType  - The metering method of the NAT gateway.
 - ip
Lists List<String> - The ip address of the bind eip.
 - name String
 - Name of the NAT gateway.
 - nat
Gateway StringId  - The ID of the NAT gateway.
 - nat
Gateway StringName  - The name of NAT gateway.
 - nat
Type String - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - network
Type String - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values 
internetandintranet. - payment
Type String - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource
Group StringId  - The resource group id of NAT gateway.
 - snat
Table List<String>Ids  - The ID of the SNAT table that is associated with the NAT gateway.
 - spec String
 - The specification of the NAT gateway.
 - specification String
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status String
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Map<String,String>
 - The tags of NAT gateway.
 - vpc
Id String - The ID of the VPC.
 - vswitch
Id String - The ID of the vSwitch to which the NAT gateway belongs.
 
- business
Status string - The state of the NAT gateway.
 - deletion
Protection boolean - Indicates whether deletion protection is enabled.
 - description string
 - The description of the NAT gateway.
 - ecs
Metric booleanEnabled  - Indicates whether the traffic monitoring feature is enabled.
 - expired
Time string - The time when the NAT gateway expires.
 - forward
Table string[]Ids  - The ID of the DNAT table.
 - id string
 - The ID of the NAT gateway.
 - internet
Charge stringType  - The metering method of the NAT gateway.
 - ip
Lists string[] - The ip address of the bind eip.
 - name string
 - Name of the NAT gateway.
 - nat
Gateway stringId  - The ID of the NAT gateway.
 - nat
Gateway stringName  - The name of NAT gateway.
 - nat
Type string - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - network
Type string - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values 
internetandintranet. - payment
Type string - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource
Group stringId  - The resource group id of NAT gateway.
 - snat
Table string[]Ids  - The ID of the SNAT table that is associated with the NAT gateway.
 - spec string
 - The specification of the NAT gateway.
 - specification string
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status string
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - {[key: string]: string}
 - The tags of NAT gateway.
 - vpc
Id string - The ID of the VPC.
 - vswitch
Id string - The ID of the vSwitch to which the NAT gateway belongs.
 
- business_
status str - The state of the NAT gateway.
 - deletion_
protection bool - Indicates whether deletion protection is enabled.
 - description str
 - The description of the NAT gateway.
 - ecs_
metric_ boolenabled  - Indicates whether the traffic monitoring feature is enabled.
 - expired_
time str - The time when the NAT gateway expires.
 - forward_
table_ Sequence[str]ids  - The ID of the DNAT table.
 - id str
 - The ID of the NAT gateway.
 - internet_
charge_ strtype  - The metering method of the NAT gateway.
 - ip_
lists Sequence[str] - The ip address of the bind eip.
 - name str
 - Name of the NAT gateway.
 - nat_
gateway_ strid  - The ID of the NAT gateway.
 - nat_
gateway_ strname  - The name of NAT gateway.
 - nat_
type str - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - network_
type str - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values 
internetandintranet. - payment_
type str - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource_
group_ strid  - The resource group id of NAT gateway.
 - snat_
table_ Sequence[str]ids  - The ID of the SNAT table that is associated with the NAT gateway.
 - spec str
 - The specification of the NAT gateway.
 - specification str
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status str
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Mapping[str, str]
 - The tags of NAT gateway.
 - vpc_
id str - The ID of the VPC.
 - vswitch_
id str - The ID of the vSwitch to which the NAT gateway belongs.
 
- business
Status String - The state of the NAT gateway.
 - deletion
Protection Boolean - Indicates whether deletion protection is enabled.
 - description String
 - The description of the NAT gateway.
 - ecs
Metric BooleanEnabled  - Indicates whether the traffic monitoring feature is enabled.
 - expired
Time String - The time when the NAT gateway expires.
 - forward
Table List<String>Ids  - The ID of the DNAT table.
 - id String
 - The ID of the NAT gateway.
 - internet
Charge StringType  - The metering method of the NAT gateway.
 - ip
Lists List<String> - The ip address of the bind eip.
 - name String
 - Name of the NAT gateway.
 - nat
Gateway StringId  - The ID of the NAT gateway.
 - nat
Gateway StringName  - The name of NAT gateway.
 - nat
Type String - The nat type of NAT gateway. Valid values 
EnhancedandNormal. - network
Type String - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values 
internetandintranet. - payment
Type String - The payment type of NAT gateway. Valid values 
PayAsYouGoandSubscription. - resource
Group StringId  - The resource group id of NAT gateway.
 - snat
Table List<String>Ids  - The ID of the SNAT table that is associated with the NAT gateway.
 - spec String
 - The specification of the NAT gateway.
 - specification String
 - The specification of NAT gateway. Valid values 
Middle,Large,SmallandXLarge.1. Default value isSmall. - status String
 - The status of NAT gateway. Valid values 
Available,Converting,Creating,DeletingandModifying. - Map<String>
 - The tags of NAT gateway.
 - vpc
Id String - The ID of the VPC.
 - vswitch
Id String - The ID of the vSwitch to which the NAT gateway belongs.
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.