1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. NatPrivateGateway
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.NatPrivateGateway

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a gateway resource of the private NAT within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const subnetId = config.requireObject("subnetId");
    const gatewayName = config.requireObject("gatewayName");
    const test = new flexibleengine.NatPrivateGateway("test", {
        subnetId: subnetId,
        spec: "Small",
        description: "Created by terraform script",
        enterpriseProjectId: "0",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    subnet_id = config.require_object("subnetId")
    gateway_name = config.require_object("gatewayName")
    test = flexibleengine.NatPrivateGateway("test",
        subnet_id=subnet_id,
        spec="Small",
        description="Created by terraform script",
        enterprise_project_id="0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		subnetId := cfg.RequireObject("subnetId")
    		gatewayName := cfg.RequireObject("gatewayName")
    		_, err := flexibleengine.NewNatPrivateGateway(ctx, "test", &flexibleengine.NatPrivateGatewayArgs{
    			SubnetId:            pulumi.Any(subnetId),
    			Spec:                pulumi.String("Small"),
    			Description:         pulumi.String("Created by terraform script"),
    			EnterpriseProjectId: pulumi.String("0"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var subnetId = config.RequireObject<dynamic>("subnetId");
        var gatewayName = config.RequireObject<dynamic>("gatewayName");
        var test = new Flexibleengine.NatPrivateGateway("test", new()
        {
            SubnetId = subnetId,
            Spec = "Small",
            Description = "Created by terraform script",
            EnterpriseProjectId = "0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.NatPrivateGateway;
    import com.pulumi.flexibleengine.NatPrivateGatewayArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var subnetId = config.get("subnetId");
            final var gatewayName = config.get("gatewayName");
            var test = new NatPrivateGateway("test", NatPrivateGatewayArgs.builder()
                .subnetId(subnetId)
                .spec("Small")
                .description("Created by terraform script")
                .enterpriseProjectId("0")
                .build());
    
        }
    }
    
    configuration:
      subnetId:
        type: dynamic
      gatewayName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:NatPrivateGateway
        properties:
          subnetId: ${subnetId}
          spec: Small
          description: Created by terraform script
          enterpriseProjectId: '0'
    

    Create NatPrivateGateway Resource

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

    Constructor syntax

    new NatPrivateGateway(name: string, args: NatPrivateGatewayArgs, opts?: CustomResourceOptions);
    @overload
    def NatPrivateGateway(resource_name: str,
                          args: NatPrivateGatewayArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def NatPrivateGateway(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          subnet_id: Optional[str] = None,
                          description: Optional[str] = None,
                          enterprise_project_id: Optional[str] = None,
                          name: Optional[str] = None,
                          nat_private_gateway_id: Optional[str] = None,
                          region: Optional[str] = None,
                          spec: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)
    func NewNatPrivateGateway(ctx *Context, name string, args NatPrivateGatewayArgs, opts ...ResourceOption) (*NatPrivateGateway, error)
    public NatPrivateGateway(string name, NatPrivateGatewayArgs args, CustomResourceOptions? opts = null)
    public NatPrivateGateway(String name, NatPrivateGatewayArgs args)
    public NatPrivateGateway(String name, NatPrivateGatewayArgs args, CustomResourceOptions options)
    
    type: flexibleengine:NatPrivateGateway
    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 NatPrivateGatewayArgs
    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 NatPrivateGatewayArgs
    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 NatPrivateGatewayArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NatPrivateGatewayArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NatPrivateGatewayArgs
    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 natPrivateGatewayResource = new Flexibleengine.NatPrivateGateway("natPrivateGatewayResource", new()
    {
        SubnetId = "string",
        Description = "string",
        EnterpriseProjectId = "string",
        Name = "string",
        NatPrivateGatewayId = "string",
        Region = "string",
        Spec = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := flexibleengine.NewNatPrivateGateway(ctx, "natPrivateGatewayResource", &flexibleengine.NatPrivateGatewayArgs{
    	SubnetId:            pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	EnterpriseProjectId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	NatPrivateGatewayId: pulumi.String("string"),
    	Region:              pulumi.String("string"),
    	Spec:                pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var natPrivateGatewayResource = new NatPrivateGateway("natPrivateGatewayResource", NatPrivateGatewayArgs.builder()
        .subnetId("string")
        .description("string")
        .enterpriseProjectId("string")
        .name("string")
        .natPrivateGatewayId("string")
        .region("string")
        .spec("string")
        .tags(Map.of("string", "string"))
        .build());
    
    nat_private_gateway_resource = flexibleengine.NatPrivateGateway("natPrivateGatewayResource",
        subnet_id="string",
        description="string",
        enterprise_project_id="string",
        name="string",
        nat_private_gateway_id="string",
        region="string",
        spec="string",
        tags={
            "string": "string",
        })
    
    const natPrivateGatewayResource = new flexibleengine.NatPrivateGateway("natPrivateGatewayResource", {
        subnetId: "string",
        description: "string",
        enterpriseProjectId: "string",
        name: "string",
        natPrivateGatewayId: "string",
        region: "string",
        spec: "string",
        tags: {
            string: "string",
        },
    });
    
    type: flexibleengine:NatPrivateGateway
    properties:
        description: string
        enterpriseProjectId: string
        name: string
        natPrivateGatewayId: string
        region: string
        spec: string
        subnetId: string
        tags:
            string: string
    

    NatPrivateGateway 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 NatPrivateGateway resource accepts the following input properties:

    SubnetId string
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    Description string
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    EnterpriseProjectId string
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    Name string
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    NatPrivateGatewayId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    Spec string

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    Tags Dictionary<string, string>
    Specifies the key/value pairs to associate with the private NAT geteway.
    SubnetId string
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    Description string
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    EnterpriseProjectId string
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    Name string
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    NatPrivateGatewayId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    Spec string

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    Tags map[string]string
    Specifies the key/value pairs to associate with the private NAT geteway.
    subnetId String
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    description String
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterpriseProjectId String
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name String
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    natPrivateGatewayId String
    The resource ID in UUID format.
    region String
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec String

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    tags Map<String,String>
    Specifies the key/value pairs to associate with the private NAT geteway.
    subnetId string
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    description string
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterpriseProjectId string
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name string
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    natPrivateGatewayId string
    The resource ID in UUID format.
    region string
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec string

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    tags {[key: string]: string}
    Specifies the key/value pairs to associate with the private NAT geteway.
    subnet_id str
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    description str
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterprise_project_id str
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name str
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    nat_private_gateway_id str
    The resource ID in UUID format.
    region str
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec str

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    tags Mapping[str, str]
    Specifies the key/value pairs to associate with the private NAT geteway.
    subnetId String
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    description String
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterpriseProjectId String
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name String
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    natPrivateGatewayId String
    The resource ID in UUID format.
    region String
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec String

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    tags Map<String>
    Specifies the key/value pairs to associate with the private NAT geteway.

    Outputs

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

    CreatedAt string
    The creation time of the private NAT gateway.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The current status of the private NAT gateway.
    UpdatedAt string
    The latest update time of the private NAT gateway.
    CreatedAt string
    The creation time of the private NAT gateway.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The current status of the private NAT gateway.
    UpdatedAt string
    The latest update time of the private NAT gateway.
    createdAt String
    The creation time of the private NAT gateway.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The current status of the private NAT gateway.
    updatedAt String
    The latest update time of the private NAT gateway.
    createdAt string
    The creation time of the private NAT gateway.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The current status of the private NAT gateway.
    updatedAt string
    The latest update time of the private NAT gateway.
    created_at str
    The creation time of the private NAT gateway.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The current status of the private NAT gateway.
    updated_at str
    The latest update time of the private NAT gateway.
    createdAt String
    The creation time of the private NAT gateway.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The current status of the private NAT gateway.
    updatedAt String
    The latest update time of the private NAT gateway.

    Look up Existing NatPrivateGateway Resource

    Get an existing NatPrivateGateway 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?: NatPrivateGatewayState, opts?: CustomResourceOptions): NatPrivateGateway
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            name: Optional[str] = None,
            nat_private_gateway_id: Optional[str] = None,
            region: Optional[str] = None,
            spec: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            updated_at: Optional[str] = None) -> NatPrivateGateway
    func GetNatPrivateGateway(ctx *Context, name string, id IDInput, state *NatPrivateGatewayState, opts ...ResourceOption) (*NatPrivateGateway, error)
    public static NatPrivateGateway Get(string name, Input<string> id, NatPrivateGatewayState? state, CustomResourceOptions? opts = null)
    public static NatPrivateGateway get(String name, Output<String> id, NatPrivateGatewayState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:NatPrivateGateway    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:
    CreatedAt string
    The creation time of the private NAT gateway.
    Description string
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    EnterpriseProjectId string
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    Name string
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    NatPrivateGatewayId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    Spec string

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    Status string
    The current status of the private NAT gateway.
    SubnetId string
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    Tags Dictionary<string, string>
    Specifies the key/value pairs to associate with the private NAT geteway.
    UpdatedAt string
    The latest update time of the private NAT gateway.
    CreatedAt string
    The creation time of the private NAT gateway.
    Description string
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    EnterpriseProjectId string
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    Name string
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    NatPrivateGatewayId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    Spec string

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    Status string
    The current status of the private NAT gateway.
    SubnetId string
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    Tags map[string]string
    Specifies the key/value pairs to associate with the private NAT geteway.
    UpdatedAt string
    The latest update time of the private NAT gateway.
    createdAt String
    The creation time of the private NAT gateway.
    description String
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterpriseProjectId String
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name String
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    natPrivateGatewayId String
    The resource ID in UUID format.
    region String
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec String

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    status String
    The current status of the private NAT gateway.
    subnetId String
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    tags Map<String,String>
    Specifies the key/value pairs to associate with the private NAT geteway.
    updatedAt String
    The latest update time of the private NAT gateway.
    createdAt string
    The creation time of the private NAT gateway.
    description string
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterpriseProjectId string
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name string
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    natPrivateGatewayId string
    The resource ID in UUID format.
    region string
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec string

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    status string
    The current status of the private NAT gateway.
    subnetId string
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    tags {[key: string]: string}
    Specifies the key/value pairs to associate with the private NAT geteway.
    updatedAt string
    The latest update time of the private NAT gateway.
    created_at str
    The creation time of the private NAT gateway.
    description str
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterprise_project_id str
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name str
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    nat_private_gateway_id str
    The resource ID in UUID format.
    region str
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec str

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    status str
    The current status of the private NAT gateway.
    subnet_id str
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    tags Mapping[str, str]
    Specifies the key/value pairs to associate with the private NAT geteway.
    updated_at str
    The latest update time of the private NAT gateway.
    createdAt String
    The creation time of the private NAT gateway.
    description String
    Specifies the description of the private NAT gateway, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    enterpriseProjectId String
    Specifies the ID of the enterprise project to which the private NAT gateway belongs. Changing this will create a new resource.
    name String
    Specifies the private NAT gateway name.
    The valid length is limited from 1 to 64, only English letters, Chinese characters, digits, hyphens (-) and underscores (_) are allowed.
    natPrivateGatewayId String
    The resource ID in UUID format.
    region String
    Specifies the region where the private NAT gateway is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    spec String

    Specifies the specification of the private NAT gateway.
    The valid values are as follows:

    • Small: Small type, which supports up to 20 rules, 200 Mbit/s bandwidth, 20,000 PPS and 2,000 SNAT connections.
    • Medium: Medium type, which supports up to 50 rules, 500 Mbit/s bandwidth, 50,000 PPS and 5,000 SNAT connections.
    • Large: Large type, which supports up to 200 rules, 2 Gbit/s bandwidth, 200,000 PPS and 20,000 SNAT connections.
    • Extra-Large: Extra-large type, which supports up to 500 rules, 5 Gbit/s bandwidth, 500,000 PPS and 50,000 SNAT connections.

    Defaults to Small.

    status String
    The current status of the private NAT gateway.
    subnetId String
    Specifies the network ID of the subnet to which the private NAT gateway belongs. Changing this will create a new resource.
    tags Map<String>
    Specifies the key/value pairs to associate with the private NAT geteway.
    updatedAt String
    The latest update time of the private NAT gateway.

    Import

    The private NAT gateways can be imported using their id, e.g.

    bash

    $ pulumi import flexibleengine:index/natPrivateGateway:NatPrivateGateway test 13d9d015-9d6f-483d-882d-d996cdf2c1d0
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud