1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. getNatGateways
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.vpc.getNatGateways

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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],
});
Copy
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])
Copy
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
	})
}
Copy
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,
        },
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetNatGateways(ctx *Context, args *GetNatGatewaysArgs, opts ...InvokeOption) (*GetNatGatewaysResult, error)
func GetNatGatewaysOutput(ctx *Context, args *GetNatGatewaysOutputArgs, opts ...InvokeOption) GetNatGatewaysResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetNatGatewaysResult> getNatGateways(GetNatGatewaysArgs args, InvokeOptions options)
public static Output<GetNatGatewaysResult> getNatGateways(GetNatGatewaysArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:vpc/getNatGateways:getNatGateways
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DryRun Changes to this property will trigger replacement. bool
Specifies whether to only precheck the request.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of NAT gateways IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter nat gateways by name.
NatGatewayName Changes to this property will trigger replacement. string
The name of NAT gateway.
NatType Changes to this property will trigger replacement. string
The nat type of NAT gateway. Valid values Enhanced and Normal.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
PaymentType Changes to this property will trigger replacement. string
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
ResourceGroupId Changes to this property will trigger replacement. string
The resource group id of NAT gateway.
Specification Changes to this property will trigger replacement. string
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
Status Changes to this property will trigger replacement. string
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
Tags Dictionary<string, string>
The tags of NAT gateway.
VpcId Changes to this property will trigger replacement. string
The ID of the VPC.
DryRun Changes to this property will trigger replacement. bool
Specifies whether to only precheck the request.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of NAT gateways IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter nat gateways by name.
NatGatewayName Changes to this property will trigger replacement. string
The name of NAT gateway.
NatType Changes to this property will trigger replacement. string
The nat type of NAT gateway. Valid values Enhanced and Normal.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
PaymentType Changes to this property will trigger replacement. string
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
ResourceGroupId Changes to this property will trigger replacement. string
The resource group id of NAT gateway.
Specification Changes to this property will trigger replacement. string
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
Status Changes to this property will trigger replacement. string
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
Tags map[string]string
The tags of NAT gateway.
VpcId Changes to this property will trigger replacement. string
The ID of the VPC.
dryRun Changes to this property will trigger replacement. Boolean
Specifies whether to only precheck the request.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of NAT gateways IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter nat gateways by name.
natGatewayName Changes to this property will trigger replacement. String
The name of NAT gateway.
natType Changes to this property will trigger replacement. String
The nat type of NAT gateway. Valid values Enhanced and Normal.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Integer
pageSize Integer
paymentType Changes to this property will trigger replacement. String
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resourceGroupId Changes to this property will trigger replacement. String
The resource group id of NAT gateway.
specification Changes to this property will trigger replacement. String
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status Changes to this property will trigger replacement. String
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags Map<String,String>
The tags of NAT gateway.
vpcId Changes to this property will trigger replacement. String
The ID of the VPC.
dryRun Changes to this property will trigger replacement. boolean
Specifies whether to only precheck the request.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of NAT gateways IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter nat gateways by name.
natGatewayName Changes to this property will trigger replacement. string
The name of NAT gateway.
natType Changes to this property will trigger replacement. string
The nat type of NAT gateway. Valid values Enhanced and Normal.
outputFile string
File name where to save data source results (after running pulumi preview).
pageNumber number
pageSize number
paymentType Changes to this property will trigger replacement. string
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resourceGroupId Changes to this property will trigger replacement. string
The resource group id of NAT gateway.
specification Changes to this property will trigger replacement. string
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status Changes to this property will trigger replacement. string
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags {[key: string]: string}
The tags of NAT gateway.
vpcId Changes to this property will trigger replacement. string
The ID of the VPC.
dry_run Changes to this property will trigger replacement. bool
Specifies whether to only precheck the request.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of NAT gateways IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter nat gateways by name.
nat_gateway_name Changes to this property will trigger replacement. str
The name of NAT gateway.
nat_type Changes to this property will trigger replacement. str
The nat type of NAT gateway. Valid values Enhanced and Normal.
output_file str
File name where to save data source results (after running pulumi preview).
page_number int
page_size int
payment_type Changes to this property will trigger replacement. str
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resource_group_id Changes to this property will trigger replacement. str
The resource group id of NAT gateway.
specification Changes to this property will trigger replacement. str
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status Changes to this property will trigger replacement. str
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags Mapping[str, str]
The tags of NAT gateway.
vpc_id Changes to this property will trigger replacement. str
The ID of the VPC.
dryRun Changes to this property will trigger replacement. Boolean
Specifies whether to only precheck the request.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of NAT gateways IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter nat gateways by name.
natGatewayName Changes to this property will trigger replacement. String
The name of NAT gateway.
natType Changes to this property will trigger replacement. String
The nat type of NAT gateway. Valid values Enhanced and Normal.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Number
pageSize Number
paymentType Changes to this property will trigger replacement. String
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resourceGroupId Changes to this property will trigger replacement. String
The resource group id of NAT gateway.
specification Changes to this property will trigger replacement. String
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status Changes to this property will trigger replacement. String
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags Map<String>
The tags of NAT gateway.
vpcId Changes to this property will trigger replacement. String
The ID of the VPC.

getNatGateways Result

The following output properties are available:

Gateways List<Pulumi.AliCloud.Vpc.Outputs.GetNatGatewaysGateway>
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.
TotalCount int
DryRun bool
EnableDetails bool
NameRegex string
NatGatewayName string
The name of the NAT gateway.
NatType string
The type of the NAT gateway.
OutputFile string
PageNumber int
PageSize int
PaymentType string
The billing method of the NAT gateway.
ResourceGroupId string
The ID of the resource group.
Specification string
The specification of the NAT gateway.
Status string
The status of the NAT gateway.
Tags Dictionary<string, string>
The tags of NAT gateway.
VpcId string
The ID of the VPC.
Gateways []GetNatGatewaysGateway
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.
TotalCount int
DryRun bool
EnableDetails bool
NameRegex string
NatGatewayName string
The name of the NAT gateway.
NatType string
The type of the NAT gateway.
OutputFile string
PageNumber int
PageSize int
PaymentType string
The billing method of the NAT gateway.
ResourceGroupId string
The ID of the resource group.
Specification string
The specification of the NAT gateway.
Status string
The status of the NAT gateway.
Tags map[string]string
The tags of NAT gateway.
VpcId string
The ID of the VPC.
gateways List<GetNatGatewaysGateway>
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.
totalCount Integer
dryRun Boolean
enableDetails Boolean
nameRegex String
natGatewayName String
The name of the NAT gateway.
natType String
The type of the NAT gateway.
outputFile String
pageNumber Integer
pageSize Integer
paymentType String
The billing method of the NAT gateway.
resourceGroupId String
The ID of the resource group.
specification String
The specification of the NAT gateway.
status String
The status of the NAT gateway.
tags Map<String,String>
The tags of NAT gateway.
vpcId String
The ID of the VPC.
gateways GetNatGatewaysGateway[]
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.
totalCount number
dryRun boolean
enableDetails boolean
nameRegex string
natGatewayName string
The name of the NAT gateway.
natType string
The type of the NAT gateway.
outputFile string
pageNumber number
pageSize number
paymentType string
The billing method of the NAT gateway.
resourceGroupId string
The ID of the resource group.
specification string
The specification of the NAT gateway.
status string
The status of the NAT gateway.
tags {[key: string]: string}
The tags of NAT gateway.
vpcId string
The ID of the VPC.
gateways Sequence[GetNatGatewaysGateway]
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_name str
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_id str
The ID of the resource group.
specification str
The specification of the NAT gateway.
status str
The status of the NAT gateway.
tags 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.
totalCount Number
dryRun Boolean
enableDetails Boolean
nameRegex String
natGatewayName String
The name of the NAT gateway.
natType String
The type of the NAT gateway.
outputFile String
pageNumber Number
pageSize Number
paymentType String
The billing method of the NAT gateway.
resourceGroupId String
The ID of the resource group.
specification String
The specification of the NAT gateway.
status String
The status of the NAT gateway.
tags Map<String>
The tags of NAT gateway.
vpcId String
The ID of the VPC.

Supporting Types

GetNatGatewaysGateway

BusinessStatus This property is required. string
The state of the NAT gateway.
DeletionProtection This property is required. bool
Indicates whether deletion protection is enabled.
Description This property is required. string
The description of the NAT gateway.
EcsMetricEnabled This property is required. bool
Indicates whether the traffic monitoring feature is enabled.
ExpiredTime This property is required. string
The time when the NAT gateway expires.
ForwardTableIds This property is required. List<string>
The ID of the DNAT table.
Id This property is required. string
The ID of the NAT gateway.
InternetChargeType This property is required. string
The metering method of the NAT gateway.
IpLists This property is required. List<string>
The ip address of the bind eip.
Name This property is required. string
Name of the NAT gateway.
NatGatewayId This property is required. string
The ID of the NAT gateway.
NatGatewayName This property is required. string
The name of NAT gateway.
NatType This property is required. string
The nat type of NAT gateway. Valid values Enhanced and Normal.
NetworkType This property is required. string
(Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values internet and intranet.
PaymentType This property is required. string
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
ResourceGroupId This property is required. string
The resource group id of NAT gateway.
SnatTableIds This property is required. List<string>
The ID of the SNAT table that is associated with the NAT gateway.
Spec This property is required. string
The specification of the NAT gateway.
Specification This property is required. string
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
Status This property is required. string
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
Tags This property is required. Dictionary<string, string>
The tags of NAT gateway.
VpcId This property is required. string
The ID of the VPC.
VswitchId This property is required. string
The ID of the vSwitch to which the NAT gateway belongs.
BusinessStatus This property is required. string
The state of the NAT gateway.
DeletionProtection This property is required. bool
Indicates whether deletion protection is enabled.
Description This property is required. string
The description of the NAT gateway.
EcsMetricEnabled This property is required. bool
Indicates whether the traffic monitoring feature is enabled.
ExpiredTime This property is required. string
The time when the NAT gateway expires.
ForwardTableIds This property is required. []string
The ID of the DNAT table.
Id This property is required. string
The ID of the NAT gateway.
InternetChargeType This property is required. string
The metering method of the NAT gateway.
IpLists This property is required. []string
The ip address of the bind eip.
Name This property is required. string
Name of the NAT gateway.
NatGatewayId This property is required. string
The ID of the NAT gateway.
NatGatewayName This property is required. string
The name of NAT gateway.
NatType This property is required. string
The nat type of NAT gateway. Valid values Enhanced and Normal.
NetworkType This property is required. string
(Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values internet and intranet.
PaymentType This property is required. string
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
ResourceGroupId This property is required. string
The resource group id of NAT gateway.
SnatTableIds This property is required. []string
The ID of the SNAT table that is associated with the NAT gateway.
Spec This property is required. string
The specification of the NAT gateway.
Specification This property is required. string
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
Status This property is required. string
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
Tags This property is required. map[string]string
The tags of NAT gateway.
VpcId This property is required. string
The ID of the VPC.
VswitchId This property is required. string
The ID of the vSwitch to which the NAT gateway belongs.
businessStatus This property is required. String
The state of the NAT gateway.
deletionProtection This property is required. Boolean
Indicates whether deletion protection is enabled.
description This property is required. String
The description of the NAT gateway.
ecsMetricEnabled This property is required. Boolean
Indicates whether the traffic monitoring feature is enabled.
expiredTime This property is required. String
The time when the NAT gateway expires.
forwardTableIds This property is required. List<String>
The ID of the DNAT table.
id This property is required. String
The ID of the NAT gateway.
internetChargeType This property is required. String
The metering method of the NAT gateway.
ipLists This property is required. List<String>
The ip address of the bind eip.
name This property is required. String
Name of the NAT gateway.
natGatewayId This property is required. String
The ID of the NAT gateway.
natGatewayName This property is required. String
The name of NAT gateway.
natType This property is required. String
The nat type of NAT gateway. Valid values Enhanced and Normal.
networkType This property is required. String
(Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values internet and intranet.
paymentType This property is required. String
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resourceGroupId This property is required. String
The resource group id of NAT gateway.
snatTableIds This property is required. List<String>
The ID of the SNAT table that is associated with the NAT gateway.
spec This property is required. String
The specification of the NAT gateway.
specification This property is required. String
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status This property is required. String
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags This property is required. Map<String,String>
The tags of NAT gateway.
vpcId This property is required. String
The ID of the VPC.
vswitchId This property is required. String
The ID of the vSwitch to which the NAT gateway belongs.
businessStatus This property is required. string
The state of the NAT gateway.
deletionProtection This property is required. boolean
Indicates whether deletion protection is enabled.
description This property is required. string
The description of the NAT gateway.
ecsMetricEnabled This property is required. boolean
Indicates whether the traffic monitoring feature is enabled.
expiredTime This property is required. string
The time when the NAT gateway expires.
forwardTableIds This property is required. string[]
The ID of the DNAT table.
id This property is required. string
The ID of the NAT gateway.
internetChargeType This property is required. string
The metering method of the NAT gateway.
ipLists This property is required. string[]
The ip address of the bind eip.
name This property is required. string
Name of the NAT gateway.
natGatewayId This property is required. string
The ID of the NAT gateway.
natGatewayName This property is required. string
The name of NAT gateway.
natType This property is required. string
The nat type of NAT gateway. Valid values Enhanced and Normal.
networkType This property is required. string
(Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values internet and intranet.
paymentType This property is required. string
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resourceGroupId This property is required. string
The resource group id of NAT gateway.
snatTableIds This property is required. string[]
The ID of the SNAT table that is associated with the NAT gateway.
spec This property is required. string
The specification of the NAT gateway.
specification This property is required. string
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status This property is required. string
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags This property is required. {[key: string]: string}
The tags of NAT gateway.
vpcId This property is required. string
The ID of the VPC.
vswitchId This property is required. string
The ID of the vSwitch to which the NAT gateway belongs.
business_status This property is required. str
The state of the NAT gateway.
deletion_protection This property is required. bool
Indicates whether deletion protection is enabled.
description This property is required. str
The description of the NAT gateway.
ecs_metric_enabled This property is required. bool
Indicates whether the traffic monitoring feature is enabled.
expired_time This property is required. str
The time when the NAT gateway expires.
forward_table_ids This property is required. Sequence[str]
The ID of the DNAT table.
id This property is required. str
The ID of the NAT gateway.
internet_charge_type This property is required. str
The metering method of the NAT gateway.
ip_lists This property is required. Sequence[str]
The ip address of the bind eip.
name This property is required. str
Name of the NAT gateway.
nat_gateway_id This property is required. str
The ID of the NAT gateway.
nat_gateway_name This property is required. str
The name of NAT gateway.
nat_type This property is required. str
The nat type of NAT gateway. Valid values Enhanced and Normal.
network_type This property is required. str
(Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values internet and intranet.
payment_type This property is required. str
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resource_group_id This property is required. str
The resource group id of NAT gateway.
snat_table_ids This property is required. Sequence[str]
The ID of the SNAT table that is associated with the NAT gateway.
spec This property is required. str
The specification of the NAT gateway.
specification This property is required. str
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status This property is required. str
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags This property is required. Mapping[str, str]
The tags of NAT gateway.
vpc_id This property is required. str
The ID of the VPC.
vswitch_id This property is required. str
The ID of the vSwitch to which the NAT gateway belongs.
businessStatus This property is required. String
The state of the NAT gateway.
deletionProtection This property is required. Boolean
Indicates whether deletion protection is enabled.
description This property is required. String
The description of the NAT gateway.
ecsMetricEnabled This property is required. Boolean
Indicates whether the traffic monitoring feature is enabled.
expiredTime This property is required. String
The time when the NAT gateway expires.
forwardTableIds This property is required. List<String>
The ID of the DNAT table.
id This property is required. String
The ID of the NAT gateway.
internetChargeType This property is required. String
The metering method of the NAT gateway.
ipLists This property is required. List<String>
The ip address of the bind eip.
name This property is required. String
Name of the NAT gateway.
natGatewayId This property is required. String
The ID of the NAT gateway.
natGatewayName This property is required. String
The name of NAT gateway.
natType This property is required. String
The nat type of NAT gateway. Valid values Enhanced and Normal.
networkType This property is required. String
(Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values internet and intranet.
paymentType This property is required. String
The payment type of NAT gateway. Valid values PayAsYouGo and Subscription.
resourceGroupId This property is required. String
The resource group id of NAT gateway.
snatTableIds This property is required. List<String>
The ID of the SNAT table that is associated with the NAT gateway.
spec This property is required. String
The specification of the NAT gateway.
specification This property is required. String
The specification of NAT gateway. Valid values Middle, Large, Small and XLarge.1. Default value is Small.
status This property is required. String
The status of NAT gateway. Valid values Available, Converting, Creating, Deleting and Modifying.
tags This property is required. Map<String>
The tags of NAT gateway.
vpcId This property is required. String
The ID of the VPC.
vswitchId This property is required. 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 alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi