Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 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 dictionary
The following arguments are supported:
- Dry
Run Changes to this property will trigger replacement.
- Specifies whether to only precheck the request.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of NAT gateways IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter nat gateways by name.
- Nat
Gateway Name Changes to this property will trigger replacement.
- The name of NAT gateway.
- Nat
Type Changes to this property will trigger replacement.
- The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - Output
File string - 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.
- The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - Resource
Group Id Changes to this property will trigger replacement.
- The resource group id of NAT gateway.
- Specification
Changes to this property will trigger replacement.
- The specification of NAT gateway. Valid values
Middle
,Large
,Small
andXLarge.1
. Default value isSmall
. - Status
Changes to this property will trigger replacement.
- The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. - Dictionary<string, string>
- The tags of NAT gateway.
- Vpc
Id Changes to this property will trigger replacement.
- The ID of the VPC.
- Dry
Run Changes to this property will trigger replacement.
- Specifies whether to only precheck the request.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of NAT gateways IDs.
- Name
Regex Changes to this property will trigger replacement.
- A regex string to filter nat gateways by name.
- Nat
Gateway Name Changes to this property will trigger replacement.
- The name of NAT gateway.
- Nat
Type Changes to this property will trigger replacement.
- The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - Output
File string - 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.
- The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - Resource
Group Id Changes to this property will trigger replacement.
- The resource group id of NAT gateway.
- Specification
Changes to this property will trigger replacement.
- The specification of NAT gateway. Valid values
Middle
,Large
,Small
andXLarge.1
. Default value isSmall
. - Status
Changes to this property will trigger replacement.
- The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. - map[string]string
- The tags of NAT gateway.
- Vpc
Id Changes to this property will trigger replacement.
- The ID of the VPC.
- dry
Run Changes to this property will trigger replacement.
- Specifies whether to only precheck the request.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of NAT gateways IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter nat gateways by name.
- nat
Gateway Name Changes to this property will trigger replacement.
- The name of NAT gateway.
- nat
Type Changes to this property will trigger replacement.
- The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer - payment
Type Changes to this property will trigger replacement.
- The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource
Group Id Changes to this property will trigger replacement.
- The resource group id of NAT gateway.
- specification
Changes to this property will trigger replacement.
- The specification of NAT gateway. Valid values
Middle
,Large
,Small
andXLarge.1
. Default value isSmall
. - status
Changes to this property will trigger replacement.
- The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. - Map<String,String>
- The tags of NAT gateway.
- vpc
Id Changes to this property will trigger replacement.
- The ID of the VPC.
- dry
Run Changes to this property will trigger replacement.
- Specifies whether to only precheck the request.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of NAT gateways IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter nat gateways by name.
- nat
Gateway Name Changes to this property will trigger replacement.
- The name of NAT gateway.
- nat
Type Changes to this property will trigger replacement.
- The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size number - payment
Type Changes to this property will trigger replacement.
- The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource
Group Id Changes to this property will trigger replacement.
- The resource group id of NAT gateway.
- specification
Changes to this property will trigger replacement.
- The specification of NAT gateway. Valid values
Middle
,Large
,Small
andXLarge.1
. Default value isSmall
. - status
Changes to this property will trigger replacement.
- The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. - {[key: string]: string}
- The tags of NAT gateway.
- vpc
Id Changes to this property will trigger replacement.
- The ID of the VPC.
- dry_
run Changes to this property will trigger replacement.
- Specifies whether to only precheck the request.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of NAT gateways IDs.
- name_
regex Changes to this property will trigger replacement.
- A regex string to filter nat gateways by name.
- nat_
gateway_ name Changes to this property will trigger replacement.
- The name of NAT gateway.
- nat_
type Changes to this property will trigger replacement.
- The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - 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.
- The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource_
group_ id Changes to this property will trigger replacement.
- The resource group id of NAT gateway.
- specification
Changes to this property will trigger replacement.
- The specification of NAT gateway. Valid values
Middle
,Large
,Small
andXLarge.1
. Default value isSmall
. - status
Changes to this property will trigger replacement.
- The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. - Mapping[str, str]
- The tags of NAT gateway.
- vpc_
id Changes to this property will trigger replacement.
- The ID of the VPC.
- dry
Run Changes to this property will trigger replacement.
- Specifies whether to only precheck the request.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of NAT gateways IDs.
- name
Regex Changes to this property will trigger replacement.
- A regex string to filter nat gateways by name.
- nat
Gateway Name Changes to this property will trigger replacement.
- The name of NAT gateway.
- nat
Type Changes to this property will trigger replacement.
- The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number - payment
Type Changes to this property will trigger replacement.
- The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource
Group Id Changes to this property will trigger replacement.
- The resource group id of NAT gateway.
- specification
Changes to this property will trigger replacement.
- The specification of NAT gateway. Valid values
Middle
,Large
,Small
andXLarge.1
. Default value isSmall
. - status
Changes to this property will trigger replacement.
- The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. - Map<String>
- The tags of NAT gateway.
- vpc
Id Changes to this property will trigger replacement.
- 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 This property is required. string - The state of the NAT gateway.
- Deletion
Protection This property is required. bool - Indicates whether deletion protection is enabled.
- Description
This property is required. string - 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. string - The time when the NAT gateway expires.
- Forward
Table Ids This property is required. List<string> - The ID of the DNAT table.
- Id
This property is required. string - The ID of the NAT gateway.
- Internet
Charge Type This property is required. string - The metering method of the NAT gateway.
- Ip
Lists This property is required. List<string> - The ip address of the bind eip.
- Name
This property is required. string - Name of the NAT gateway.
- Nat
Gateway Id This property is required. string - The ID of the NAT gateway.
- Nat
Gateway Name This property is required. string - The name of NAT gateway.
- Nat
Type This property is required. string - The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - Network
Type This property is required. string - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values
internet
andintranet
. - Payment
Type This property is required. string - The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - Resource
Group Id This property is required. string - The resource group id of NAT gateway.
- Snat
Table Ids 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
andXLarge.1
. Default value isSmall
. - Status
This property is required. string - The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. This property is required. Dictionary<string, string>- The tags of NAT gateway.
- Vpc
Id This property is required. string - The ID of the VPC.
- Vswitch
Id This property is required. string - The ID of the vSwitch to which the NAT gateway belongs.
- Business
Status This property is required. string - The state of the NAT gateway.
- Deletion
Protection This property is required. bool - Indicates whether deletion protection is enabled.
- Description
This property is required. string - 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. string - The time when the NAT gateway expires.
- Forward
Table Ids This property is required. []string - The ID of the DNAT table.
- Id
This property is required. string - The ID of the NAT gateway.
- Internet
Charge Type This property is required. string - The metering method of the NAT gateway.
- Ip
Lists This property is required. []string - The ip address of the bind eip.
- Name
This property is required. string - Name of the NAT gateway.
- Nat
Gateway Id This property is required. string - The ID of the NAT gateway.
- Nat
Gateway Name This property is required. string - The name of NAT gateway.
- Nat
Type This property is required. string - The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - Network
Type This property is required. string - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values
internet
andintranet
. - Payment
Type This property is required. string - The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - Resource
Group Id This property is required. string - The resource group id of NAT gateway.
- Snat
Table Ids 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
andXLarge.1
. Default value isSmall
. - Status
This property is required. string - The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. This property is required. map[string]string- The tags of NAT gateway.
- Vpc
Id This property is required. string - The ID of the VPC.
- Vswitch
Id This property is required. string - The ID of the vSwitch to which the NAT gateway belongs.
- business
Status This property is required. String - The state of the NAT gateway.
- deletion
Protection This property is required. Boolean - Indicates whether deletion protection is enabled.
- description
This property is required. String - The description of the NAT gateway.
- ecs
Metric Enabled This property is required. Boolean - Indicates whether the traffic monitoring feature is enabled.
- expired
Time This property is required. String - The time when the NAT gateway expires.
- forward
Table Ids This property is required. List<String> - The ID of the DNAT table.
- id
This property is required. String - The ID of the NAT gateway.
- internet
Charge Type This property is required. String - The metering method of the NAT gateway.
- ip
Lists This property is required. List<String> - The ip address of the bind eip.
- name
This property is required. String - Name of the NAT gateway.
- nat
Gateway Id This property is required. String - The ID of the NAT gateway.
- nat
Gateway Name This property is required. String - The name of NAT gateway.
- nat
Type This property is required. String - The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - network
Type This property is required. String - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values
internet
andintranet
. - payment
Type This property is required. String - The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource
Group Id This property is required. String - The resource group id of NAT gateway.
- snat
Table Ids 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
andXLarge.1
. Default value isSmall
. - status
This property is required. String - The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. This property is required. Map<String,String>- The tags of NAT gateway.
- vpc
Id This property is required. String - The ID of the VPC.
- vswitch
Id This property is required. String - The ID of the vSwitch to which the NAT gateway belongs.
- business
Status This property is required. string - The state of the NAT gateway.
- deletion
Protection This property is required. boolean - Indicates whether deletion protection is enabled.
- description
This property is required. string - The description of the NAT gateway.
- ecs
Metric Enabled This property is required. boolean - Indicates whether the traffic monitoring feature is enabled.
- expired
Time This property is required. string - The time when the NAT gateway expires.
- forward
Table Ids This property is required. string[] - The ID of the DNAT table.
- id
This property is required. string - The ID of the NAT gateway.
- internet
Charge Type This property is required. string - The metering method of the NAT gateway.
- ip
Lists This property is required. string[] - The ip address of the bind eip.
- name
This property is required. string - Name of the NAT gateway.
- nat
Gateway Id This property is required. string - The ID of the NAT gateway.
- nat
Gateway Name This property is required. string - The name of NAT gateway.
- nat
Type This property is required. string - The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - network
Type This property is required. string - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values
internet
andintranet
. - payment
Type This property is required. string - The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource
Group Id This property is required. string - The resource group id of NAT gateway.
- snat
Table Ids 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
andXLarge.1
. Default value isSmall
. - status
This property is required. string - The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. This property is required. {[key: string]: string}- The tags of NAT gateway.
- vpc
Id This property is required. string - The ID of the VPC.
- vswitch
Id 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
andNormal
. - network_
type This property is required. str - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values
internet
andintranet
. - payment_
type This property is required. str - The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - 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
andXLarge.1
. Default value isSmall
. - status
This property is required. str - The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. 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.
- business
Status This property is required. String - The state of the NAT gateway.
- deletion
Protection This property is required. Boolean - Indicates whether deletion protection is enabled.
- description
This property is required. String - The description of the NAT gateway.
- ecs
Metric Enabled This property is required. Boolean - Indicates whether the traffic monitoring feature is enabled.
- expired
Time This property is required. String - The time when the NAT gateway expires.
- forward
Table Ids This property is required. List<String> - The ID of the DNAT table.
- id
This property is required. String - The ID of the NAT gateway.
- internet
Charge Type This property is required. String - The metering method of the NAT gateway.
- ip
Lists This property is required. List<String> - The ip address of the bind eip.
- name
This property is required. String - Name of the NAT gateway.
- nat
Gateway Id This property is required. String - The ID of the NAT gateway.
- nat
Gateway Name This property is required. String - The name of NAT gateway.
- nat
Type This property is required. String - The nat type of NAT gateway. Valid values
Enhanced
andNormal
. - network
Type This property is required. String - (Available in 1.137.0+) Indicates the type of the created NAT gateway. Valid values
internet
andintranet
. - payment
Type This property is required. String - The payment type of NAT gateway. Valid values
PayAsYouGo
andSubscription
. - resource
Group Id This property is required. String - The resource group id of NAT gateway.
- snat
Table Ids 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
andXLarge.1
. Default value isSmall
. - status
This property is required. String - The status of NAT gateway. Valid values
Available
,Converting
,Creating
,Deleting
andModifying
. This property is required. Map<String>- The tags of NAT gateway.
- vpc
Id This property is required. String - The ID of the VPC.
- vswitch
Id 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.