alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.NatIpCidr

Provides a VPC Nat Ip Cidr resource.

For information about VPC Nat Ip Cidr and how to use it, see What is Nat Ip Cidr.

NOTE: Available in v1.136.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var exampleZones = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });

    var exampleNetwork = new AliCloud.Vpc.Network("exampleNetwork", new()
    {
        VpcName = "example_value",
        CidrBlock = "172.16.0.0/12",
    });

    var exampleSwitch = new AliCloud.Vpc.Switch("exampleSwitch", new()
    {
        VpcId = alicloud_vpc.Default.Id,
        CidrBlock = "172.16.0.0/21",
        ZoneId = exampleZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        VswitchName = @var.Name,
    });

    var exampleNatGateway = new AliCloud.Vpc.NatGateway("exampleNatGateway", new()
    {
        VpcId = alicloud_vpc.Default.Id,
        InternetChargeType = "PayByLcu",
        NatGatewayName = "example_value",
        Description = "example_value",
        NatType = "Enhanced",
        VswitchId = exampleSwitch.Id,
        NetworkType = "intranet",
    });

    var exampleNatIpCidr = new AliCloud.Vpc.NatIpCidr("exampleNatIpCidr", new()
    {
        NatGatewayId = exampleNatGateway.Id,
        NatIpCidrName = "example_value",
        NatIpCidrBlock = "example_value",
    });

});
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"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = vpc.NewNetwork(ctx, "exampleNetwork", &vpc.NetworkArgs{
			VpcName:   pulumi.String("example_value"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "exampleSwitch", &vpc.SwitchArgs{
			VpcId:       pulumi.Any(alicloud_vpc.Default.Id),
			CidrBlock:   pulumi.String("172.16.0.0/21"),
			ZoneId:      *pulumi.String(exampleZones.Zones[0].Id),
			VswitchName: pulumi.Any(_var.Name),
		})
		if err != nil {
			return err
		}
		exampleNatGateway, err := vpc.NewNatGateway(ctx, "exampleNatGateway", &vpc.NatGatewayArgs{
			VpcId:              pulumi.Any(alicloud_vpc.Default.Id),
			InternetChargeType: pulumi.String("PayByLcu"),
			NatGatewayName:     pulumi.String("example_value"),
			Description:        pulumi.String("example_value"),
			NatType:            pulumi.String("Enhanced"),
			VswitchId:          exampleSwitch.ID(),
			NetworkType:        pulumi.String("intranet"),
		})
		if err != nil {
			return err
		}
		_, err = vpc.NewNatIpCidr(ctx, "exampleNatIpCidr", &vpc.NatIpCidrArgs{
			NatGatewayId:  exampleNatGateway.ID(),
			NatIpCidrName: pulumi.String("example_value"),
			NatIpCidr:     pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.vpc.NatGateway;
import com.pulumi.alicloud.vpc.NatGatewayArgs;
import com.pulumi.alicloud.vpc.NatIpCidr;
import com.pulumi.alicloud.vpc.NatIpCidrArgs;
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 exampleZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());

        var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()        
            .vpcName("example_value")
            .cidrBlock("172.16.0.0/12")
            .build());

        var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()        
            .vpcId(alicloud_vpc.default().id())
            .cidrBlock("172.16.0.0/21")
            .zoneId(exampleZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .vswitchName(var_.name())
            .build());

        var exampleNatGateway = new NatGateway("exampleNatGateway", NatGatewayArgs.builder()        
            .vpcId(alicloud_vpc.default().id())
            .internetChargeType("PayByLcu")
            .natGatewayName("example_value")
            .description("example_value")
            .natType("Enhanced")
            .vswitchId(exampleSwitch.id())
            .networkType("intranet")
            .build());

        var exampleNatIpCidr = new NatIpCidr("exampleNatIpCidr", NatIpCidrArgs.builder()        
            .natGatewayId(exampleNatGateway.id())
            .natIpCidrName("example_value")
            .natIpCidr("example_value")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example_zones = alicloud.get_zones(available_resource_creation="VSwitch")
example_network = alicloud.vpc.Network("exampleNetwork",
    vpc_name="example_value",
    cidr_block="172.16.0.0/12")
example_switch = alicloud.vpc.Switch("exampleSwitch",
    vpc_id=alicloud_vpc["default"]["id"],
    cidr_block="172.16.0.0/21",
    zone_id=example_zones.zones[0].id,
    vswitch_name=var["name"])
example_nat_gateway = alicloud.vpc.NatGateway("exampleNatGateway",
    vpc_id=alicloud_vpc["default"]["id"],
    internet_charge_type="PayByLcu",
    nat_gateway_name="example_value",
    description="example_value",
    nat_type="Enhanced",
    vswitch_id=example_switch.id,
    network_type="intranet")
example_nat_ip_cidr = alicloud.vpc.NatIpCidr("exampleNatIpCidr",
    nat_gateway_id=example_nat_gateway.id,
    nat_ip_cidr_name="example_value",
    nat_ip_cidr="example_value")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const exampleZones = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const exampleNetwork = new alicloud.vpc.Network("exampleNetwork", {
    vpcName: "example_value",
    cidrBlock: "172.16.0.0/12",
});
const exampleSwitch = new alicloud.vpc.Switch("exampleSwitch", {
    vpcId: alicloud_vpc["default"].id,
    cidrBlock: "172.16.0.0/21",
    zoneId: exampleZones.then(exampleZones => exampleZones.zones?.[0]?.id),
    vswitchName: _var.name,
});
const exampleNatGateway = new alicloud.vpc.NatGateway("exampleNatGateway", {
    vpcId: alicloud_vpc["default"].id,
    internetChargeType: "PayByLcu",
    natGatewayName: "example_value",
    description: "example_value",
    natType: "Enhanced",
    vswitchId: exampleSwitch.id,
    networkType: "intranet",
});
const exampleNatIpCidr = new alicloud.vpc.NatIpCidr("exampleNatIpCidr", {
    natGatewayId: exampleNatGateway.id,
    natIpCidrName: "example_value",
    natIpCidr: "example_value",
});
resources:
  exampleNetwork:
    type: alicloud:vpc:Network
    properties:
      vpcName: example_value
      cidrBlock: 172.16.0.0/12
  exampleSwitch:
    type: alicloud:vpc:Switch
    properties:
      vpcId: ${alicloud_vpc.default.id}
      cidrBlock: 172.16.0.0/21
      zoneId: ${exampleZones.zones[0].id}
      vswitchName: ${var.name}
  exampleNatGateway:
    type: alicloud:vpc:NatGateway
    properties:
      vpcId: ${alicloud_vpc.default.id}
      internetChargeType: PayByLcu
      natGatewayName: example_value
      description: example_value
      natType: Enhanced
      vswitchId: ${exampleSwitch.id}
      networkType: intranet
  exampleNatIpCidr:
    type: alicloud:vpc:NatIpCidr
    properties:
      natGatewayId: ${exampleNatGateway.id}
      natIpCidrName: example_value
      natIpCidr: example_value
variables:
  exampleZones:
    fn::invoke:
      Function: alicloud:getZones
      Arguments:
        availableResourceCreation: VSwitch

Create NatIpCidr Resource

new NatIpCidr(name: string, args: NatIpCidrArgs, opts?: CustomResourceOptions);
@overload
def NatIpCidr(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              dry_run: Optional[bool] = None,
              nat_gateway_id: Optional[str] = None,
              nat_ip_cidr: Optional[str] = None,
              nat_ip_cidr_description: Optional[str] = None,
              nat_ip_cidr_name: Optional[str] = None)
@overload
def NatIpCidr(resource_name: str,
              args: NatIpCidrArgs,
              opts: Optional[ResourceOptions] = None)
func NewNatIpCidr(ctx *Context, name string, args NatIpCidrArgs, opts ...ResourceOption) (*NatIpCidr, error)
public NatIpCidr(string name, NatIpCidrArgs args, CustomResourceOptions? opts = null)
public NatIpCidr(String name, NatIpCidrArgs args)
public NatIpCidr(String name, NatIpCidrArgs args, CustomResourceOptions options)
type: alicloud:vpc:NatIpCidr
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NatIpCidrArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args NatIpCidrArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NatIpCidrArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NatIpCidrArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NatIpCidrArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NatIpCidr Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The NatIpCidr resource accepts the following input properties:

NatGatewayId string

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

DryRun bool

Specifies whether to precheck this request only. Valid values: true and false.

NatIpCidrBlock 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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

NatIpCidrName string

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

NatGatewayId string

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

DryRun bool

Specifies whether to precheck this request only. Valid values: true and false.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

NatIpCidrName string

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

natGatewayId String

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

dryRun Boolean

Specifies whether to precheck this request only. Valid values: true and false.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

natIpCidrName String

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

natGatewayId string

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

dryRun boolean

Specifies whether to precheck this request only. Valid values: true and false.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

natIpCidrName string

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

nat_gateway_id str

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

dry_run bool

Specifies whether to precheck this request only. Valid values: true and false.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

nat_ip_cidr_name str

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

natGatewayId String

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

dryRun Boolean

Specifies whether to precheck this request only. Valid values: true and false.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

natIpCidrName String

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

Outputs

All input properties are implicitly available as output properties. Additionally, the NatIpCidr resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the CIDR block of the NAT gateway. Valid values: Available.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the CIDR block of the NAT gateway. Valid values: Available.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the CIDR block of the NAT gateway. Valid values: Available.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the CIDR block of the NAT gateway. Valid values: Available.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the CIDR block of the NAT gateway. Valid values: Available.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the CIDR block of the NAT gateway. Valid values: Available.

Look up Existing NatIpCidr Resource

Get an existing NatIpCidr resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NatIpCidrState, opts?: CustomResourceOptions): NatIpCidr
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dry_run: Optional[bool] = None,
        nat_gateway_id: Optional[str] = None,
        nat_ip_cidr: Optional[str] = None,
        nat_ip_cidr_description: Optional[str] = None,
        nat_ip_cidr_name: Optional[str] = None,
        status: Optional[str] = None) -> NatIpCidr
func GetNatIpCidr(ctx *Context, name string, id IDInput, state *NatIpCidrState, opts ...ResourceOption) (*NatIpCidr, error)
public static NatIpCidr Get(string name, Input<string> id, NatIpCidrState? state, CustomResourceOptions? opts = null)
public static NatIpCidr get(String name, Output<String> id, NatIpCidrState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DryRun bool

Specifies whether to precheck this request only. Valid values: true and false.

NatGatewayId string

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

NatIpCidrBlock 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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

NatIpCidrName string

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

Status string

The status of the CIDR block of the NAT gateway. Valid values: Available.

DryRun bool

Specifies whether to precheck this request only. Valid values: true and false.

NatGatewayId string

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

NatIpCidrName string

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

Status string

The status of the CIDR block of the NAT gateway. Valid values: Available.

dryRun Boolean

Specifies whether to precheck this request only. Valid values: true and false.

natGatewayId String

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

natIpCidrName String

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

status String

The status of the CIDR block of the NAT gateway. Valid values: Available.

dryRun boolean

Specifies whether to precheck this request only. Valid values: true and false.

natGatewayId string

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

natIpCidrName string

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

status string

The status of the CIDR block of the NAT gateway. Valid values: Available.

dry_run bool

Specifies whether to precheck this request only. Valid values: true and false.

nat_gateway_id str

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

nat_ip_cidr_name str

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

status str

The status of the CIDR block of the NAT gateway. Valid values: Available.

dryRun Boolean

Specifies whether to precheck this request only. Valid values: true and false.

natGatewayId String

The ID of the Virtual Private Cloud (VPC) NAT gateway where you want to create the NAT CIDR block.

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

The description of the NAT CIDR block. The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

natIpCidrName String

The name of the NAT CIDR block. The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. It must start with a letter but cannot start with http:// or https://.

status String

The status of the CIDR block of the NAT gateway. Valid values: Available.

Import

VPC Nat Ip Cidr can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/natIpCidr:NatIpCidr example <nat_gateway_id>:<nat_ip_cidr>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.