1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. getNatIpCidrs
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi

alicloud.vpc.getNatIpCidrs

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 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);
    
    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)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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()));
        }
    }
    
    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}
    

    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>
    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]
    func GetNatIpCidrs(ctx *Context, args *GetNatIpCidrsArgs, opts ...InvokeOption) (*GetNatIpCidrsResult, error)
    func GetNatIpCidrsOutput(ctx *Context, args *GetNatIpCidrsOutputArgs, opts ...InvokeOption) GetNatIpCidrsResultOutput

    > 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)
    }
    public static CompletableFuture<GetNatIpCidrsResult> getNatIpCidrs(GetNatIpCidrsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:vpc/getNatIpCidrs:getNatIpCidrs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NatGatewayId string
    The ID of the VPC NAT gateway.
    Ids List<string>
    A list of Nat Ip Cidr IDs.
    NameRegex string
    A regex string to filter results by Nat Ip Cidr name.
    NatIpCidrNames List<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.
    NatIpCidrs 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 string
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    NatGatewayId string
    The ID of the VPC NAT gateway.
    Ids []string
    A list of Nat Ip Cidr IDs.
    NameRegex string
    A regex string to filter results by Nat Ip Cidr name.
    NatIpCidrNames []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.
    NatIpCidrs []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 string
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    natGatewayId String
    The ID of the VPC NAT gateway.
    ids List<String>
    A list of Nat Ip Cidr IDs.
    nameRegex String
    A regex string to filter results by Nat Ip Cidr name.
    natIpCidrNames List<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.
    natIpCidrs 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 String
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    natGatewayId string
    The ID of the VPC NAT gateway.
    ids string[]
    A list of Nat Ip Cidr IDs.
    nameRegex string
    A regex string to filter results by Nat Ip Cidr name.
    natIpCidrNames 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.
    natIpCidrs 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 string
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    nat_gateway_id str
    The ID of the VPC NAT gateway.
    ids Sequence[str]
    A list of Nat Ip Cidr IDs.
    name_regex str
    A regex string to filter results by Nat Ip Cidr name.
    nat_ip_cidr_names Sequence[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.
    nat_ip_cidrs 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 str
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    natGatewayId String
    The ID of the VPC NAT gateway.
    ids List<String>
    A list of Nat Ip Cidr IDs.
    nameRegex String
    A regex string to filter results by Nat Ip Cidr name.
    natIpCidrNames List<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.
    natIpCidrs 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 String
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is 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 string
    The time when the CIDR block was created.
    Id string
    The ID of the Nat Ip Cidr.
    IsDefault 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 string
    The ID of the VPC NAT gateway.
    NatIpCidr 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 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 string
    NAT IP ADDRESS instance ID.
    NatIpCidrName 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 string
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    CreateTime string
    The time when the CIDR block was created.
    Id string
    The ID of the Nat Ip Cidr.
    IsDefault 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 string
    The ID of the VPC NAT gateway.
    NatIpCidr 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 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 string
    NAT IP ADDRESS instance ID.
    NatIpCidrName 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 string
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    createTime String
    The time when the CIDR block was created.
    id String
    The ID of the Nat Ip Cidr.
    isDefault 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 String
    The ID of the VPC NAT gateway.
    natIpCidr 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 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 String
    NAT IP ADDRESS instance ID.
    natIpCidrName 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 String
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    createTime string
    The time when the CIDR block was created.
    id string
    The ID of the Nat Ip Cidr.
    isDefault 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 string
    The ID of the VPC NAT gateway.
    natIpCidr 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 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 string
    NAT IP ADDRESS instance ID.
    natIpCidrName 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 string
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    create_time str
    The time when the CIDR block was created.
    id str
    The ID of the Nat Ip Cidr.
    is_default 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 str
    The ID of the VPC NAT gateway.
    nat_ip_cidr 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 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 str
    NAT IP ADDRESS instance ID.
    nat_ip_cidr_name 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 str
    The status of the CIDR block of the NAT gateway. If the value is Available, the CIDR block is available.
    createTime String
    The time when the CIDR block was created.
    id String
    The ID of the Nat Ip Cidr.
    isDefault 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 String
    The ID of the VPC NAT gateway.
    natIpCidr 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 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 String
    NAT IP ADDRESS instance ID.
    natIpCidrName 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 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.
    alicloud logo
    Alibaba Cloud v3.54.0 published on Wednesday, Apr 24, 2024 by Pulumi