1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. vpc
  6. NatIp
Viewing docs for Alibaba Cloud v3.101.0
published on Tuesday, Apr 28, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.101.0
published on Tuesday, Apr 28, 2026 by Pulumi

    Provides a Nat Gateway Nat Ip resource.

    NAT IP address instance.

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

    NOTE: Available since v1.136.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const exampleNetwork = new alicloud.vpc.Network("example", {
        vpcName: "terraform-example",
        cidrBlock: "172.16.0.0/12",
    });
    const exampleSwitch = new alicloud.vpc.Switch("example", {
        vpcId: exampleNetwork.id,
        cidrBlock: "172.16.0.0/21",
        zoneId: example.then(example => example.zones?.[0]?.id),
        vswitchName: "terraform-example",
    });
    const exampleNatGateway = new alicloud.vpc.NatGateway("example", {
        vpcId: exampleNetwork.id,
        internetChargeType: "PayByLcu",
        natGatewayName: "terraform-example",
        description: "terraform-example",
        natType: "Enhanced",
        vswitchId: exampleSwitch.id,
        networkType: "intranet",
    });
    const exampleNatIpCidr = new alicloud.vpc.NatIpCidr("example", {
        natIpCidr: "192.168.0.0/16",
        natGatewayId: exampleNatGateway.id,
        natIpCidrDescription: "terraform-example",
        natIpCidrName: "terraform-example",
    });
    const exampleNatIp = new alicloud.vpc.NatIp("example", {
        natIp: "192.168.0.37",
        natGatewayId: exampleNatGateway.id,
        natIpDescription: "example_value",
        natIpName: "example_value",
        natIpCidr: exampleNatIpCidr.natIpCidr,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.get_zones(available_resource_creation="VSwitch")
    example_network = alicloud.vpc.Network("example",
        vpc_name="terraform-example",
        cidr_block="172.16.0.0/12")
    example_switch = alicloud.vpc.Switch("example",
        vpc_id=example_network.id,
        cidr_block="172.16.0.0/21",
        zone_id=example.zones[0].id,
        vswitch_name="terraform-example")
    example_nat_gateway = alicloud.vpc.NatGateway("example",
        vpc_id=example_network.id,
        internet_charge_type="PayByLcu",
        nat_gateway_name="terraform-example",
        description="terraform-example",
        nat_type="Enhanced",
        vswitch_id=example_switch.id,
        network_type="intranet")
    example_nat_ip_cidr = alicloud.vpc.NatIpCidr("example",
        nat_ip_cidr="192.168.0.0/16",
        nat_gateway_id=example_nat_gateway.id,
        nat_ip_cidr_description="terraform-example",
        nat_ip_cidr_name="terraform-example")
    example_nat_ip = alicloud.vpc.NatIp("example",
        nat_ip="192.168.0.37",
        nat_gateway_id=example_nat_gateway.id,
        nat_ip_description="example_value",
        nat_ip_name="example_value",
        nat_ip_cidr=example_nat_ip_cidr.nat_ip_cidr)
    
    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 {
    		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.16.0.0/12"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
    			VpcId:       exampleNetwork.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/21"),
    			ZoneId:      pulumi.String(pulumi.String(example.Zones[0].Id)),
    			VswitchName: pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleNatGateway, err := vpc.NewNatGateway(ctx, "example", &vpc.NatGatewayArgs{
    			VpcId:              exampleNetwork.ID(),
    			InternetChargeType: pulumi.String("PayByLcu"),
    			NatGatewayName:     pulumi.String("terraform-example"),
    			Description:        pulumi.String("terraform-example"),
    			NatType:            pulumi.String("Enhanced"),
    			VswitchId:          exampleSwitch.ID(),
    			NetworkType:        pulumi.String("intranet"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleNatIpCidr, err := vpc.NewNatIpCidr(ctx, "example", &vpc.NatIpCidrArgs{
    			NatIpCidr:            pulumi.String("192.168.0.0/16"),
    			NatGatewayId:         exampleNatGateway.ID(),
    			NatIpCidrDescription: pulumi.String("terraform-example"),
    			NatIpCidrName:        pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewNatIp(ctx, "example", &vpc.NatIpArgs{
    			NatIp:            pulumi.String("192.168.0.37"),
    			NatGatewayId:     exampleNatGateway.ID(),
    			NatIpDescription: pulumi.String("example_value"),
    			NatIpName:        pulumi.String("example_value"),
    			NatIpCidr:        exampleNatIpCidr.NatIpCidr,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = AliCloud.Index.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var exampleNetwork = new AliCloud.Vpc.Network("example", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.16.0.0/12",
        });
    
        var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
        {
            VpcId = exampleNetwork.Id,
            CidrBlock = "172.16.0.0/21",
            ZoneId = example.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            VswitchName = "terraform-example",
        });
    
        var exampleNatGateway = new AliCloud.Vpc.NatGateway("example", new()
        {
            VpcId = exampleNetwork.Id,
            InternetChargeType = "PayByLcu",
            NatGatewayName = "terraform-example",
            Description = "terraform-example",
            NatType = "Enhanced",
            VswitchId = exampleSwitch.Id,
            NetworkType = "intranet",
        });
    
        var exampleNatIpCidr = new AliCloud.Vpc.NatIpCidr("example", new()
        {
            NatIpCidrBlock = "192.168.0.0/16",
            NatGatewayId = exampleNatGateway.Id,
            NatIpCidrDescription = "terraform-example",
            NatIpCidrName = "terraform-example",
        });
    
        var exampleNatIp = new AliCloud.Vpc.NatIp("example", new()
        {
            NatIpAddress = "192.168.0.37",
            NatGatewayId = exampleNatGateway.Id,
            NatIpDescription = "example_value",
            NatIpName = "example_value",
            NatIpCidr = exampleNatIpCidr.NatIpCidrBlock,
        });
    
    });
    
    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 com.pulumi.alicloud.vpc.NatIp;
    import com.pulumi.alicloud.vpc.NatIpArgs;
    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 example = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
                .vpcName("terraform-example")
                .cidrBlock("172.16.0.0/12")
                .build());
    
            var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
                .vpcId(exampleNetwork.id())
                .cidrBlock("172.16.0.0/21")
                .zoneId(example.zones()[0].id())
                .vswitchName("terraform-example")
                .build());
    
            var exampleNatGateway = new NatGateway("exampleNatGateway", NatGatewayArgs.builder()
                .vpcId(exampleNetwork.id())
                .internetChargeType("PayByLcu")
                .natGatewayName("terraform-example")
                .description("terraform-example")
                .natType("Enhanced")
                .vswitchId(exampleSwitch.id())
                .networkType("intranet")
                .build());
    
            var exampleNatIpCidr = new NatIpCidr("exampleNatIpCidr", NatIpCidrArgs.builder()
                .natIpCidr("192.168.0.0/16")
                .natGatewayId(exampleNatGateway.id())
                .natIpCidrDescription("terraform-example")
                .natIpCidrName("terraform-example")
                .build());
    
            var exampleNatIp = new NatIp("exampleNatIp", NatIpArgs.builder()
                .natIp("192.168.0.37")
                .natGatewayId(exampleNatGateway.id())
                .natIpDescription("example_value")
                .natIpName("example_value")
                .natIpCidr(exampleNatIpCidr.natIpCidr())
                .build());
    
        }
    }
    
    resources:
      exampleNetwork:
        type: alicloud:vpc:Network
        name: example
        properties:
          vpcName: terraform-example
          cidrBlock: 172.16.0.0/12
      exampleSwitch:
        type: alicloud:vpc:Switch
        name: example
        properties:
          vpcId: ${exampleNetwork.id}
          cidrBlock: 172.16.0.0/21
          zoneId: ${example.zones[0].id}
          vswitchName: terraform-example
      exampleNatGateway:
        type: alicloud:vpc:NatGateway
        name: example
        properties:
          vpcId: ${exampleNetwork.id}
          internetChargeType: PayByLcu
          natGatewayName: terraform-example
          description: terraform-example
          natType: Enhanced
          vswitchId: ${exampleSwitch.id}
          networkType: intranet
      exampleNatIpCidr:
        type: alicloud:vpc:NatIpCidr
        name: example
        properties:
          natIpCidr: 192.168.0.0/16
          natGatewayId: ${exampleNatGateway.id}
          natIpCidrDescription: terraform-example
          natIpCidrName: terraform-example
      exampleNatIp:
        type: alicloud:vpc:NatIp
        name: example
        properties:
          natIp: 192.168.0.37
          natGatewayId: ${exampleNatGateway.id}
          natIpDescription: example_value
          natIpName: example_value
          natIpCidr: ${exampleNatIpCidr.natIpCidr}
    variables:
      example:
        fn::invoke:
          function: alicloud:getZones
          arguments:
            availableResourceCreation: VSwitch
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create NatIp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args NatIpArgs
    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 NatIpArgs
    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 NatIpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NatIpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NatIpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var natIpResource = new AliCloud.Vpc.NatIp("natIpResource", new()
    {
        NatGatewayId = "string",
        NatIpCidr = "string",
        DryRun = false,
        NatIpAddress = "string",
        NatIpDescription = "string",
        NatIpName = "string",
    });
    
    example, err := vpc.NewNatIp(ctx, "natIpResource", &vpc.NatIpArgs{
    	NatGatewayId:     pulumi.String("string"),
    	NatIpCidr:        pulumi.String("string"),
    	DryRun:           pulumi.Bool(false),
    	NatIp:            pulumi.String("string"),
    	NatIpDescription: pulumi.String("string"),
    	NatIpName:        pulumi.String("string"),
    })
    
    var natIpResource = new NatIp("natIpResource", NatIpArgs.builder()
        .natGatewayId("string")
        .natIpCidr("string")
        .dryRun(false)
        .natIp("string")
        .natIpDescription("string")
        .natIpName("string")
        .build());
    
    nat_ip_resource = alicloud.vpc.NatIp("natIpResource",
        nat_gateway_id="string",
        nat_ip_cidr="string",
        dry_run=False,
        nat_ip="string",
        nat_ip_description="string",
        nat_ip_name="string")
    
    const natIpResource = new alicloud.vpc.NatIp("natIpResource", {
        natGatewayId: "string",
        natIpCidr: "string",
        dryRun: false,
        natIp: "string",
        natIpDescription: "string",
        natIpName: "string",
    });
    
    type: alicloud:vpc:NatIp
    properties:
        dryRun: false
        natGatewayId: string
        natIp: string
        natIpCidr: string
        natIpDescription: string
        natIpName: string
    

    NatIp Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NatIp resource accepts the following input properties:

    NatGatewayId string
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    NatIpCidr string
    The CIDR block to which the NAT IP address belongs.
    DryRun bool
    Specifies whether to only precheck the request. Valid values:
    NatIpAddress string
    The NAT IP address to be created.
    NatIpDescription string
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    NatIpName string
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    NatGatewayId string
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    NatIpCidr string
    The CIDR block to which the NAT IP address belongs.
    DryRun bool
    Specifies whether to only precheck the request. Valid values:
    NatIp string
    The NAT IP address to be created.
    NatIpDescription string
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    NatIpName string
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    natGatewayId String
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    natIpCidr String
    The CIDR block to which the NAT IP address belongs.
    dryRun Boolean
    Specifies whether to only precheck the request. Valid values:
    natIp String
    The NAT IP address to be created.
    natIpDescription String
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    natIpName String
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    natGatewayId string
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    natIpCidr string
    The CIDR block to which the NAT IP address belongs.
    dryRun boolean
    Specifies whether to only precheck the request. Valid values:
    natIp string
    The NAT IP address to be created.
    natIpDescription string
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    natIpName string
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    nat_gateway_id str
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    nat_ip_cidr str
    The CIDR block to which the NAT IP address belongs.
    dry_run bool
    Specifies whether to only precheck the request. Valid values:
    nat_ip str
    The NAT IP address to be created.
    nat_ip_description str
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    nat_ip_name str
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    natGatewayId String
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    natIpCidr String
    The CIDR block to which the NAT IP address belongs.
    dryRun Boolean
    Specifies whether to only precheck the request. Valid values:
    natIp String
    The NAT IP address to be created.
    natIpDescription String
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    natIpName String
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    NatIpId string
    Ihe ID of the Nat Ip.
    Status string
    The status of the NAT IP address.
    Id string
    The provider-assigned unique ID for this managed resource.
    NatIpId string
    Ihe ID of the Nat Ip.
    Status string
    The status of the NAT IP address.
    id String
    The provider-assigned unique ID for this managed resource.
    natIpId String
    Ihe ID of the Nat Ip.
    status String
    The status of the NAT IP address.
    id string
    The provider-assigned unique ID for this managed resource.
    natIpId string
    Ihe ID of the Nat Ip.
    status string
    The status of the NAT IP address.
    id str
    The provider-assigned unique ID for this managed resource.
    nat_ip_id str
    Ihe ID of the Nat Ip.
    status str
    The status of the NAT IP address.
    id String
    The provider-assigned unique ID for this managed resource.
    natIpId String
    Ihe ID of the Nat Ip.
    status String
    The status of the NAT IP address.

    Look up Existing NatIp Resource

    Get an existing NatIp 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?: NatIpState, opts?: CustomResourceOptions): NatIp
    @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: Optional[str] = None,
            nat_ip_cidr: Optional[str] = None,
            nat_ip_description: Optional[str] = None,
            nat_ip_id: Optional[str] = None,
            nat_ip_name: Optional[str] = None,
            status: Optional[str] = None) -> NatIp
    func GetNatIp(ctx *Context, name string, id IDInput, state *NatIpState, opts ...ResourceOption) (*NatIp, error)
    public static NatIp Get(string name, Input<string> id, NatIpState? state, CustomResourceOptions? opts = null)
    public static NatIp get(String name, Output<String> id, NatIpState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:vpc:NatIp    get:      id: ${id}
    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 only precheck the request. Valid values:
    NatGatewayId string
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    NatIpAddress string
    The NAT IP address to be created.
    NatIpCidr string
    The CIDR block to which the NAT IP address belongs.
    NatIpDescription string
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    NatIpId string
    Ihe ID of the Nat Ip.
    NatIpName string
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    Status string
    The status of the NAT IP address.
    DryRun bool
    Specifies whether to only precheck the request. Valid values:
    NatGatewayId string
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    NatIp string
    The NAT IP address to be created.
    NatIpCidr string
    The CIDR block to which the NAT IP address belongs.
    NatIpDescription string
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    NatIpId string
    Ihe ID of the Nat Ip.
    NatIpName string
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    Status string
    The status of the NAT IP address.
    dryRun Boolean
    Specifies whether to only precheck the request. Valid values:
    natGatewayId String
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    natIp String
    The NAT IP address to be created.
    natIpCidr String
    The CIDR block to which the NAT IP address belongs.
    natIpDescription String
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    natIpId String
    Ihe ID of the Nat Ip.
    natIpName String
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    status String
    The status of the NAT IP address.
    dryRun boolean
    Specifies whether to only precheck the request. Valid values:
    natGatewayId string
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    natIp string
    The NAT IP address to be created.
    natIpCidr string
    The CIDR block to which the NAT IP address belongs.
    natIpDescription string
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    natIpId string
    Ihe ID of the Nat Ip.
    natIpName string
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    status string
    The status of the NAT IP address.
    dry_run bool
    Specifies whether to only precheck the request. Valid values:
    nat_gateway_id str
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    nat_ip str
    The NAT IP address to be created.
    nat_ip_cidr str
    The CIDR block to which the NAT IP address belongs.
    nat_ip_description str
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    nat_ip_id str
    Ihe ID of the Nat Ip.
    nat_ip_name str
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    status str
    The status of the NAT IP address.
    dryRun Boolean
    Specifies whether to only precheck the request. Valid values:
    natGatewayId String
    The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create the NAT IP address.
    natIp String
    The NAT IP address to be created.
    natIpCidr String
    The CIDR block to which the NAT IP address belongs.
    natIpDescription String
    The description of the NAT IP address. The description must be 2 to 256 characters in length and start with a letter. The description cannot start with http:// or https://.
    natIpId String
    Ihe ID of the Nat Ip.
    natIpName String
    The name of the NAT IP address. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. The name must start with a letter and cannot start with http:// or https://.
    status String
    The status of the NAT IP address.

    Import

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

    $ pulumi import alicloud:vpc/natIp:NatIp example <nat_gateway_id>:<nat_ip_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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
    Viewing docs for Alibaba Cloud v3.101.0
    published on Tuesday, Apr 28, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.