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

alicloud.vpc.getNatIpCidrs

Explore with Pulumi AI

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

This data source provides the Vpc Nat Ip Cidrs of the current Alibaba Cloud user.

NOTE: Available in v1.136.0+.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.vpc.getNatIpCidrs({
    natGatewayId: "example_value",
    ids: [
        "example_value-1",
        "example_value-2",
    ],
});
export const vpcNatIpCidrId1 = ids.then(ids => ids.cidrs?.[0]?.id);
const nameRegex = alicloud.vpc.getNatIpCidrs({
    natGatewayId: "example_value",
    nameRegex: "^my-NatIpCidr",
});
export const vpcNatIpCidrId2 = nameRegex.then(nameRegex => nameRegex.cidrs?.[0]?.id);
const status = alicloud.vpc.getNatIpCidrs({
    natGatewayId: "example_value",
    ids: ["example_value-1"],
    status: "Available",
});
export const vpcNatIpCidrId3 = status.then(status => status.cidrs?.[0]?.id);
const natIpCidr = alicloud.vpc.getNatIpCidrs({
    natGatewayId: "example_value",
    natIpCidrs: ["example_value-1"],
});
export const vpcNatIpCidrId4 = natIpCidr.then(natIpCidr => natIpCidr.cidrs?.[0]?.id);
const atIpCidrName = alicloud.vpc.getNatIpCidrs({
    natGatewayId: "example_value",
    natIpCidrNames: ["example_value-1"],
});
export const vpcNatIpCidrId5 = atIpCidrName.then(atIpCidrName => atIpCidrName.cidrs?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.vpc.get_nat_ip_cidrs(nat_gateway_id="example_value",
    ids=[
        "example_value-1",
        "example_value-2",
    ])
pulumi.export("vpcNatIpCidrId1", ids.cidrs[0].id)
name_regex = alicloud.vpc.get_nat_ip_cidrs(nat_gateway_id="example_value",
    name_regex="^my-NatIpCidr")
pulumi.export("vpcNatIpCidrId2", name_regex.cidrs[0].id)
status = alicloud.vpc.get_nat_ip_cidrs(nat_gateway_id="example_value",
    ids=["example_value-1"],
    status="Available")
pulumi.export("vpcNatIpCidrId3", status.cidrs[0].id)
nat_ip_cidr = alicloud.vpc.get_nat_ip_cidrs(nat_gateway_id="example_value",
    nat_ip_cidrs=["example_value-1"])
pulumi.export("vpcNatIpCidrId4", nat_ip_cidr.cidrs[0].id)
at_ip_cidr_name = alicloud.vpc.get_nat_ip_cidrs(nat_gateway_id="example_value",
    nat_ip_cidr_names=["example_value-1"])
pulumi.export("vpcNatIpCidrId5", at_ip_cidr_name.cidrs[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := vpc.GetNatIpCidrs(ctx, &vpc.GetNatIpCidrsArgs{
			NatGatewayId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vpcNatIpCidrId1", ids.Cidrs[0].Id)
		nameRegex, err := vpc.GetNatIpCidrs(ctx, &vpc.GetNatIpCidrsArgs{
			NatGatewayId: "example_value",
			NameRegex:    pulumi.StringRef("^my-NatIpCidr"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vpcNatIpCidrId2", nameRegex.Cidrs[0].Id)
		status, err := vpc.GetNatIpCidrs(ctx, &vpc.GetNatIpCidrsArgs{
			NatGatewayId: "example_value",
			Ids: []string{
				"example_value-1",
			},
			Status: pulumi.StringRef("Available"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vpcNatIpCidrId3", status.Cidrs[0].Id)
		natIpCidr, err := vpc.GetNatIpCidrs(ctx, &vpc.GetNatIpCidrsArgs{
			NatGatewayId: "example_value",
			NatIpCidrs: []string{
				"example_value-1",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vpcNatIpCidrId4", natIpCidr.Cidrs[0].Id)
		atIpCidrName, err := vpc.GetNatIpCidrs(ctx, &vpc.GetNatIpCidrsArgs{
			NatGatewayId: "example_value",
			NatIpCidrNames: []string{
				"example_value-1",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("vpcNatIpCidrId5", atIpCidrName.Cidrs[0].Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var ids = AliCloud.Vpc.GetNatIpCidrs.Invoke(new()
    {
        NatGatewayId = "example_value",
        Ids = new[]
        {
            "example_value-1",
            "example_value-2",
        },
    });

    var nameRegex = AliCloud.Vpc.GetNatIpCidrs.Invoke(new()
    {
        NatGatewayId = "example_value",
        NameRegex = "^my-NatIpCidr",
    });

    var status = AliCloud.Vpc.GetNatIpCidrs.Invoke(new()
    {
        NatGatewayId = "example_value",
        Ids = new[]
        {
            "example_value-1",
        },
        Status = "Available",
    });

    var natIpCidr = AliCloud.Vpc.GetNatIpCidrs.Invoke(new()
    {
        NatGatewayId = "example_value",
        NatIpCidrs = new[]
        {
            "example_value-1",
        },
    });

    var atIpCidrName = AliCloud.Vpc.GetNatIpCidrs.Invoke(new()
    {
        NatGatewayId = "example_value",
        NatIpCidrNames = new[]
        {
            "example_value-1",
        },
    });

    return new Dictionary<string, object?>
    {
        ["vpcNatIpCidrId1"] = ids.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id),
        ["vpcNatIpCidrId2"] = nameRegex.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id),
        ["vpcNatIpCidrId3"] = status.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id),
        ["vpcNatIpCidrId4"] = natIpCidr.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id),
        ["vpcNatIpCidrId5"] = atIpCidrName.Apply(getNatIpCidrsResult => getNatIpCidrsResult.Cidrs[0]?.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNatIpCidrsArgs;
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 ids = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder()
            .natGatewayId("example_value")
            .ids(            
                "example_value-1",
                "example_value-2")
            .build());

        ctx.export("vpcNatIpCidrId1", ids.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id()));
        final var nameRegex = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder()
            .natGatewayId("example_value")
            .nameRegex("^my-NatIpCidr")
            .build());

        ctx.export("vpcNatIpCidrId2", nameRegex.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id()));
        final var status = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder()
            .natGatewayId("example_value")
            .ids("example_value-1")
            .status("Available")
            .build());

        ctx.export("vpcNatIpCidrId3", status.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id()));
        final var natIpCidr = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder()
            .natGatewayId("example_value")
            .natIpCidrs("example_value-1")
            .build());

        ctx.export("vpcNatIpCidrId4", natIpCidr.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id()));
        final var atIpCidrName = VpcFunctions.getNatIpCidrs(GetNatIpCidrsArgs.builder()
            .natGatewayId("example_value")
            .natIpCidrNames("example_value-1")
            .build());

        ctx.export("vpcNatIpCidrId5", atIpCidrName.applyValue(getNatIpCidrsResult -> getNatIpCidrsResult.cidrs()[0].id()));
    }
}
Copy
variables:
  ids:
    fn::invoke:
      function: alicloud:vpc:getNatIpCidrs
      arguments:
        natGatewayId: example_value
        ids:
          - example_value-1
          - example_value-2
  nameRegex:
    fn::invoke:
      function: alicloud:vpc:getNatIpCidrs
      arguments:
        natGatewayId: example_value
        nameRegex: ^my-NatIpCidr
  status:
    fn::invoke:
      function: alicloud:vpc:getNatIpCidrs
      arguments:
        natGatewayId: example_value
        ids:
          - example_value-1
        status: Available
  natIpCidr:
    fn::invoke:
      function: alicloud:vpc:getNatIpCidrs
      arguments:
        natGatewayId: example_value
        natIpCidrs:
          - example_value-1
  atIpCidrName:
    fn::invoke:
      function: alicloud:vpc:getNatIpCidrs
      arguments:
        natGatewayId: example_value
        natIpCidrNames:
          - example_value-1
outputs:
  vpcNatIpCidrId1: ${ids.cidrs[0].id}
  vpcNatIpCidrId2: ${nameRegex.cidrs[0].id}
  vpcNatIpCidrId3: ${status.cidrs[0].id}
  vpcNatIpCidrId4: ${natIpCidr.cidrs[0].id}
  vpcNatIpCidrId5: ${atIpCidrName.cidrs[0].id}
Copy

Using getNatIpCidrs

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 getNatIpCidrs(args: GetNatIpCidrsArgs, opts?: InvokeOptions): Promise<GetNatIpCidrsResult>
function getNatIpCidrsOutput(args: GetNatIpCidrsOutputArgs, opts?: InvokeOptions): Output<GetNatIpCidrsResult>
Copy
def get_nat_ip_cidrs(ids: Optional[Sequence[str]] = None,
                     name_regex: Optional[str] = None,
                     nat_gateway_id: Optional[str] = None,
                     nat_ip_cidr_names: Optional[Sequence[str]] = None,
                     nat_ip_cidrs: Optional[Sequence[str]] = None,
                     output_file: Optional[str] = None,
                     status: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNatIpCidrsResult
def get_nat_ip_cidrs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     name_regex: Optional[pulumi.Input[str]] = None,
                     nat_gateway_id: Optional[pulumi.Input[str]] = None,
                     nat_ip_cidr_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     nat_ip_cidrs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     output_file: Optional[pulumi.Input[str]] = None,
                     status: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNatIpCidrsResult]
Copy
func GetNatIpCidrs(ctx *Context, args *GetNatIpCidrsArgs, opts ...InvokeOption) (*GetNatIpCidrsResult, error)
func GetNatIpCidrsOutput(ctx *Context, args *GetNatIpCidrsOutputArgs, opts ...InvokeOption) GetNatIpCidrsResultOutput
Copy

> Note: This function is named GetNatIpCidrs in the Go SDK.

public static class GetNatIpCidrs 
{
    public static Task<GetNatIpCidrsResult> InvokeAsync(GetNatIpCidrsArgs args, InvokeOptions? opts = null)
    public static Output<GetNatIpCidrsResult> Invoke(GetNatIpCidrsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNatIpCidrsResult> getNatIpCidrs(GetNatIpCidrsArgs args, InvokeOptions options)
public static Output<GetNatIpCidrsResult> getNatIpCidrs(GetNatIpCidrsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:vpc/getNatIpCidrs:getNatIpCidrs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

NatGatewayId
This property is required.
Changes to this property will trigger replacement.
string
NAT IP ADDRESS range to the security group of the Kafka VPC NAT gateway instance ID.
Ids Changes to this property will trigger replacement. List<string>
A list of Nat Ip Cidr IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Nat Ip Cidr name.
NatIpCidrNames Changes to this property will trigger replacement. List<string>
The name of the CIDR block that you want to query. Support up to 20.
NatIpCidrs Changes to this property will trigger replacement. List<string>
The NAT CIDR block to be created. Support up to 20. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the NAT IP address. Valid values:Available.
NatGatewayId
This property is required.
Changes to this property will trigger replacement.
string
NAT IP ADDRESS range to the security group of the Kafka VPC NAT gateway instance ID.
Ids Changes to this property will trigger replacement. []string
A list of Nat Ip Cidr IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Nat Ip Cidr name.
NatIpCidrNames Changes to this property will trigger replacement. []string
The name of the CIDR block that you want to query. Support up to 20.
NatIpCidrs Changes to this property will trigger replacement. []string
The NAT CIDR block to be created. Support up to 20. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the NAT IP address. Valid values:Available.
natGatewayId
This property is required.
Changes to this property will trigger replacement.
String
NAT IP ADDRESS range to the security group of the Kafka VPC NAT gateway instance ID.
ids Changes to this property will trigger replacement. List<String>
A list of Nat Ip Cidr IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Nat Ip Cidr name.
natIpCidrNames Changes to this property will trigger replacement. List<String>
The name of the CIDR block that you want to query. Support up to 20.
natIpCidrs Changes to this property will trigger replacement. List<String>
The NAT CIDR block to be created. Support up to 20. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the NAT IP address. Valid values:Available.
natGatewayId
This property is required.
Changes to this property will trigger replacement.
string
NAT IP ADDRESS range to the security group of the Kafka VPC NAT gateway instance ID.
ids Changes to this property will trigger replacement. string[]
A list of Nat Ip Cidr IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Nat Ip Cidr name.
natIpCidrNames Changes to this property will trigger replacement. string[]
The name of the CIDR block that you want to query. Support up to 20.
natIpCidrs Changes to this property will trigger replacement. string[]
The NAT CIDR block to be created. Support up to 20. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of the NAT IP address. Valid values:Available.
nat_gateway_id
This property is required.
Changes to this property will trigger replacement.
str
NAT IP ADDRESS range to the security group of the Kafka VPC NAT gateway instance ID.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Nat Ip Cidr IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Nat Ip Cidr name.
nat_ip_cidr_names Changes to this property will trigger replacement. Sequence[str]
The name of the CIDR block that you want to query. Support up to 20.
nat_ip_cidrs Changes to this property will trigger replacement. Sequence[str]
The NAT CIDR block to be created. Support up to 20. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of the NAT IP address. Valid values:Available.
natGatewayId
This property is required.
Changes to this property will trigger replacement.
String
NAT IP ADDRESS range to the security group of the Kafka VPC NAT gateway instance ID.
ids Changes to this property will trigger replacement. List<String>
A list of Nat Ip Cidr IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Nat Ip Cidr name.
natIpCidrNames Changes to this property will trigger replacement. List<String>
The name of the CIDR block that you want to query. Support up to 20.
natIpCidrs Changes to this property will trigger replacement. List<String>
The NAT CIDR block to be created. Support up to 20. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the NAT IP address. Valid values:Available.

getNatIpCidrs Result

The following output properties are available:

Cidrs List<Pulumi.AliCloud.Vpc.Outputs.GetNatIpCidrsCidr>
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
NatGatewayId string
NameRegex string
NatIpCidrNames List<string>
NatIpCidrs List<string>
OutputFile string
Status string
Cidrs []GetNatIpCidrsCidr
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
NatGatewayId string
NameRegex string
NatIpCidrNames []string
NatIpCidrs []string
OutputFile string
Status string
cidrs List<GetNatIpCidrsCidr>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
natGatewayId String
nameRegex String
natIpCidrNames List<String>
natIpCidrs List<String>
outputFile String
status String
cidrs GetNatIpCidrsCidr[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
natGatewayId string
nameRegex string
natIpCidrNames string[]
natIpCidrs string[]
outputFile string
status string
cidrs Sequence[GetNatIpCidrsCidr]
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
nat_gateway_id str
name_regex str
nat_ip_cidr_names Sequence[str]
nat_ip_cidrs Sequence[str]
output_file str
status str
cidrs List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
names List<String>
natGatewayId String
nameRegex String
natIpCidrNames List<String>
natIpCidrs List<String>
outputFile String
status String

Supporting Types

GetNatIpCidrsCidr

CreateTime This property is required. string
The time when the CIDR block was created.
Id This property is required. string
The ID of the Nat Ip Cidr.
IsDefault This property is required. bool
Whether it is the default NAT IP ADDRESS. Valid values:true or false.true: is the default NAT IP ADDRESS. false: it is not the default NAT IP ADDRESS.
NatGatewayId This property is required. string
The ID of the VPC NAT gateway.
NatIpCidr This property is required. string
The NAT CIDR block to be created. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
NatIpCidrDescription This property is required. string
NAT IP ADDRESS range to the description of. Length is from 2 to 256 characters, must start with a letter or the Chinese at the beginning, but not at the http:// Or https:// at the beginning.
NatIpCidrId This property is required. string
NAT IP ADDRESS instance ID.
NatIpCidrName This property is required. string
NAT IP ADDRESS the name of the root directory. Length is from 2 to 128 characters, must start with a letter or the Chinese at the beginning can contain numbers, half a period (.), underscore (_) and dash (-). But do not start with http:// or https:// at the beginning.
Status This property is required. string
The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
CreateTime This property is required. string
The time when the CIDR block was created.
Id This property is required. string
The ID of the Nat Ip Cidr.
IsDefault This property is required. bool
Whether it is the default NAT IP ADDRESS. Valid values:true or false.true: is the default NAT IP ADDRESS. false: it is not the default NAT IP ADDRESS.
NatGatewayId This property is required. string
The ID of the VPC NAT gateway.
NatIpCidr This property is required. string
The NAT CIDR block to be created. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
NatIpCidrDescription This property is required. string
NAT IP ADDRESS range to the description of. Length is from 2 to 256 characters, must start with a letter or the Chinese at the beginning, but not at the http:// Or https:// at the beginning.
NatIpCidrId This property is required. string
NAT IP ADDRESS instance ID.
NatIpCidrName This property is required. string
NAT IP ADDRESS the name of the root directory. Length is from 2 to 128 characters, must start with a letter or the Chinese at the beginning can contain numbers, half a period (.), underscore (_) and dash (-). But do not start with http:// or https:// at the beginning.
Status This property is required. string
The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
createTime This property is required. String
The time when the CIDR block was created.
id This property is required. String
The ID of the Nat Ip Cidr.
isDefault This property is required. Boolean
Whether it is the default NAT IP ADDRESS. Valid values:true or false.true: is the default NAT IP ADDRESS. false: it is not the default NAT IP ADDRESS.
natGatewayId This property is required. String
The ID of the VPC NAT gateway.
natIpCidr This property is required. String
The NAT CIDR block to be created. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
natIpCidrDescription This property is required. String
NAT IP ADDRESS range to the description of. Length is from 2 to 256 characters, must start with a letter or the Chinese at the beginning, but not at the http:// Or https:// at the beginning.
natIpCidrId This property is required. String
NAT IP ADDRESS instance ID.
natIpCidrName This property is required. String
NAT IP ADDRESS the name of the root directory. Length is from 2 to 128 characters, must start with a letter or the Chinese at the beginning can contain numbers, half a period (.), underscore (_) and dash (-). But do not start with http:// or https:// at the beginning.
status This property is required. String
The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
createTime This property is required. string
The time when the CIDR block was created.
id This property is required. string
The ID of the Nat Ip Cidr.
isDefault This property is required. boolean
Whether it is the default NAT IP ADDRESS. Valid values:true or false.true: is the default NAT IP ADDRESS. false: it is not the default NAT IP ADDRESS.
natGatewayId This property is required. string
The ID of the VPC NAT gateway.
natIpCidr This property is required. string
The NAT CIDR block to be created. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
natIpCidrDescription This property is required. string
NAT IP ADDRESS range to the description of. Length is from 2 to 256 characters, must start with a letter or the Chinese at the beginning, but not at the http:// Or https:// at the beginning.
natIpCidrId This property is required. string
NAT IP ADDRESS instance ID.
natIpCidrName This property is required. string
NAT IP ADDRESS the name of the root directory. Length is from 2 to 128 characters, must start with a letter or the Chinese at the beginning can contain numbers, half a period (.), underscore (_) and dash (-). But do not start with http:// or https:// at the beginning.
status This property is required. string
The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
create_time This property is required. str
The time when the CIDR block was created.
id This property is required. str
The ID of the Nat Ip Cidr.
is_default This property is required. bool
Whether it is the default NAT IP ADDRESS. Valid values:true or false.true: is the default NAT IP ADDRESS. false: it is not the default NAT IP ADDRESS.
nat_gateway_id This property is required. str
The ID of the VPC NAT gateway.
nat_ip_cidr This property is required. str
The NAT CIDR block to be created. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
nat_ip_cidr_description This property is required. str
NAT IP ADDRESS range to the description of. Length is from 2 to 256 characters, must start with a letter or the Chinese at the beginning, but not at the http:// Or https:// at the beginning.
nat_ip_cidr_id This property is required. str
NAT IP ADDRESS instance ID.
nat_ip_cidr_name This property is required. str
NAT IP ADDRESS the name of the root directory. Length is from 2 to 128 characters, must start with a letter or the Chinese at the beginning can contain numbers, half a period (.), underscore (_) and dash (-). But do not start with http:// or https:// at the beginning.
status This property is required. str
The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
createTime This property is required. String
The time when the CIDR block was created.
id This property is required. String
The ID of the Nat Ip Cidr.
isDefault This property is required. Boolean
Whether it is the default NAT IP ADDRESS. Valid values:true or false.true: is the default NAT IP ADDRESS. false: it is not the default NAT IP ADDRESS.
natGatewayId This property is required. String
The ID of the VPC NAT gateway.
natIpCidr This property is required. String
The NAT CIDR block to be created. The CIDR block must meet the following conditions: It must be 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, or one of their subnets. The subnet mask must be 16 to 32 bits in lengths. To use a public CIDR block as the NAT CIDR block, the VPC to which the VPC NAT gateway belongs must be authorized to use public CIDR blocks. For more information, see Create a VPC NAT gateway.
natIpCidrDescription This property is required. String
NAT IP ADDRESS range to the description of. Length is from 2 to 256 characters, must start with a letter or the Chinese at the beginning, but not at the http:// Or https:// at the beginning.
natIpCidrId This property is required. String
NAT IP ADDRESS instance ID.
natIpCidrName This property is required. String
NAT IP ADDRESS the name of the root directory. Length is from 2 to 128 characters, must start with a letter or the Chinese at the beginning can contain numbers, half a period (.), underscore (_) and dash (-). But do not start with http:// or https:// at the beginning.
status This property is required. String
The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.

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