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

flexibleengine.NatPrivateSnatRule

Explore with Pulumi AI

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

    Manages an SNAT rule resource of the private NAT within FlexibleEngine.

    Example Usage

    Create an SNAT rule via subnet ID

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const gatewayId = config.requireObject("gatewayId");
    const transitIpId = config.requireObject("transitIpId");
    const subnetId = config.requireObject("subnetId");
    const test = new flexibleengine.NatPrivateSnatRule("test", {
        gatewayId: gatewayId,
        transitIpId: transitIpId,
        subnetId: subnetId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    gateway_id = config.require_object("gatewayId")
    transit_ip_id = config.require_object("transitIpId")
    subnet_id = config.require_object("subnetId")
    test = flexibleengine.NatPrivateSnatRule("test",
        gateway_id=gateway_id,
        transit_ip_id=transit_ip_id,
        subnet_id=subnet_id)
    
    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, "")
    		gatewayId := cfg.RequireObject("gatewayId")
    		transitIpId := cfg.RequireObject("transitIpId")
    		subnetId := cfg.RequireObject("subnetId")
    		_, err := flexibleengine.NewNatPrivateSnatRule(ctx, "test", &flexibleengine.NatPrivateSnatRuleArgs{
    			GatewayId:   pulumi.Any(gatewayId),
    			TransitIpId: pulumi.Any(transitIpId),
    			SubnetId:    pulumi.Any(subnetId),
    		})
    		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 gatewayId = config.RequireObject<dynamic>("gatewayId");
        var transitIpId = config.RequireObject<dynamic>("transitIpId");
        var subnetId = config.RequireObject<dynamic>("subnetId");
        var test = new Flexibleengine.NatPrivateSnatRule("test", new()
        {
            GatewayId = gatewayId,
            TransitIpId = transitIpId,
            SubnetId = subnetId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.NatPrivateSnatRule;
    import com.pulumi.flexibleengine.NatPrivateSnatRuleArgs;
    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 gatewayId = config.get("gatewayId");
            final var transitIpId = config.get("transitIpId");
            final var subnetId = config.get("subnetId");
            var test = new NatPrivateSnatRule("test", NatPrivateSnatRuleArgs.builder()
                .gatewayId(gatewayId)
                .transitIpId(transitIpId)
                .subnetId(subnetId)
                .build());
    
        }
    }
    
    configuration:
      gatewayId:
        type: dynamic
      transitIpId:
        type: dynamic
      subnetId:
        type: dynamic
    resources:
      test:
        type: flexibleengine:NatPrivateSnatRule
        properties:
          gatewayId: ${gatewayId}
          transitIpId: ${transitIpId}
          subnetId: ${subnetId}
    

    Create an SNAT rule via CIDR

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const gatewayId = config.requireObject("gatewayId");
    const transitIpId = config.requireObject("transitIpId");
    const cidrBlock = config.requireObject("cidrBlock");
    const test = new flexibleengine.NatPrivateSnatRule("test", {
        gatewayId: gatewayId,
        transitIpId: transitIpId,
        cidr: cidrBlock,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    gateway_id = config.require_object("gatewayId")
    transit_ip_id = config.require_object("transitIpId")
    cidr_block = config.require_object("cidrBlock")
    test = flexibleengine.NatPrivateSnatRule("test",
        gateway_id=gateway_id,
        transit_ip_id=transit_ip_id,
        cidr=cidr_block)
    
    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, "")
    		gatewayId := cfg.RequireObject("gatewayId")
    		transitIpId := cfg.RequireObject("transitIpId")
    		cidrBlock := cfg.RequireObject("cidrBlock")
    		_, err := flexibleengine.NewNatPrivateSnatRule(ctx, "test", &flexibleengine.NatPrivateSnatRuleArgs{
    			GatewayId:   pulumi.Any(gatewayId),
    			TransitIpId: pulumi.Any(transitIpId),
    			Cidr:        pulumi.Any(cidrBlock),
    		})
    		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 gatewayId = config.RequireObject<dynamic>("gatewayId");
        var transitIpId = config.RequireObject<dynamic>("transitIpId");
        var cidrBlock = config.RequireObject<dynamic>("cidrBlock");
        var test = new Flexibleengine.NatPrivateSnatRule("test", new()
        {
            GatewayId = gatewayId,
            TransitIpId = transitIpId,
            Cidr = cidrBlock,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.NatPrivateSnatRule;
    import com.pulumi.flexibleengine.NatPrivateSnatRuleArgs;
    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 gatewayId = config.get("gatewayId");
            final var transitIpId = config.get("transitIpId");
            final var cidrBlock = config.get("cidrBlock");
            var test = new NatPrivateSnatRule("test", NatPrivateSnatRuleArgs.builder()
                .gatewayId(gatewayId)
                .transitIpId(transitIpId)
                .cidr(cidrBlock)
                .build());
    
        }
    }
    
    configuration:
      gatewayId:
        type: dynamic
      transitIpId:
        type: dynamic
      cidrBlock:
        type: dynamic
    resources:
      test:
        type: flexibleengine:NatPrivateSnatRule
        properties:
          gatewayId: ${gatewayId}
          transitIpId: ${transitIpId}
          cidr: ${cidrBlock}
    

    Create NatPrivateSnatRule Resource

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

    Constructor syntax

    new NatPrivateSnatRule(name: string, args: NatPrivateSnatRuleArgs, opts?: CustomResourceOptions);
    @overload
    def NatPrivateSnatRule(resource_name: str,
                           args: NatPrivateSnatRuleArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def NatPrivateSnatRule(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           gateway_id: Optional[str] = None,
                           transit_ip_id: Optional[str] = None,
                           cidr: Optional[str] = None,
                           description: Optional[str] = None,
                           nat_private_snat_rule_id: Optional[str] = None,
                           region: Optional[str] = None,
                           subnet_id: Optional[str] = None)
    func NewNatPrivateSnatRule(ctx *Context, name string, args NatPrivateSnatRuleArgs, opts ...ResourceOption) (*NatPrivateSnatRule, error)
    public NatPrivateSnatRule(string name, NatPrivateSnatRuleArgs args, CustomResourceOptions? opts = null)
    public NatPrivateSnatRule(String name, NatPrivateSnatRuleArgs args)
    public NatPrivateSnatRule(String name, NatPrivateSnatRuleArgs args, CustomResourceOptions options)
    
    type: flexibleengine:NatPrivateSnatRule
    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 NatPrivateSnatRuleArgs
    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 NatPrivateSnatRuleArgs
    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 NatPrivateSnatRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NatPrivateSnatRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NatPrivateSnatRuleArgs
    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 natPrivateSnatRuleResource = new Flexibleengine.NatPrivateSnatRule("natPrivateSnatRuleResource", new()
    {
        GatewayId = "string",
        TransitIpId = "string",
        Cidr = "string",
        Description = "string",
        NatPrivateSnatRuleId = "string",
        Region = "string",
        SubnetId = "string",
    });
    
    example, err := flexibleengine.NewNatPrivateSnatRule(ctx, "natPrivateSnatRuleResource", &flexibleengine.NatPrivateSnatRuleArgs{
    	GatewayId:            pulumi.String("string"),
    	TransitIpId:          pulumi.String("string"),
    	Cidr:                 pulumi.String("string"),
    	Description:          pulumi.String("string"),
    	NatPrivateSnatRuleId: pulumi.String("string"),
    	Region:               pulumi.String("string"),
    	SubnetId:             pulumi.String("string"),
    })
    
    var natPrivateSnatRuleResource = new NatPrivateSnatRule("natPrivateSnatRuleResource", NatPrivateSnatRuleArgs.builder()
        .gatewayId("string")
        .transitIpId("string")
        .cidr("string")
        .description("string")
        .natPrivateSnatRuleId("string")
        .region("string")
        .subnetId("string")
        .build());
    
    nat_private_snat_rule_resource = flexibleengine.NatPrivateSnatRule("natPrivateSnatRuleResource",
        gateway_id="string",
        transit_ip_id="string",
        cidr="string",
        description="string",
        nat_private_snat_rule_id="string",
        region="string",
        subnet_id="string")
    
    const natPrivateSnatRuleResource = new flexibleengine.NatPrivateSnatRule("natPrivateSnatRuleResource", {
        gatewayId: "string",
        transitIpId: "string",
        cidr: "string",
        description: "string",
        natPrivateSnatRuleId: "string",
        region: "string",
        subnetId: "string",
    });
    
    type: flexibleengine:NatPrivateSnatRule
    properties:
        cidr: string
        description: string
        gatewayId: string
        natPrivateSnatRuleId: string
        region: string
        subnetId: string
        transitIpId: string
    

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

    GatewayId string
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    TransitIpId string
    Specifies the ID of the transit IP associated with SNAT rule.
    Cidr string

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    Description string
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    NatPrivateSnatRuleId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    SubnetId string
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    GatewayId string
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    TransitIpId string
    Specifies the ID of the transit IP associated with SNAT rule.
    Cidr string

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    Description string
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    NatPrivateSnatRuleId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    SubnetId string
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    gatewayId String
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    transitIpId String
    Specifies the ID of the transit IP associated with SNAT rule.
    cidr String

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    description String
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    natPrivateSnatRuleId String
    The resource ID in UUID format.
    region String
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnetId String
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    gatewayId string
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    transitIpId string
    Specifies the ID of the transit IP associated with SNAT rule.
    cidr string

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    description string
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    natPrivateSnatRuleId string
    The resource ID in UUID format.
    region string
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnetId string
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    gateway_id str
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    transit_ip_id str
    Specifies the ID of the transit IP associated with SNAT rule.
    cidr str

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    description str
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    nat_private_snat_rule_id str
    The resource ID in UUID format.
    region str
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnet_id str
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    gatewayId String
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    transitIpId String
    Specifies the ID of the transit IP associated with SNAT rule.
    cidr String

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    description String
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    natPrivateSnatRuleId String
    The resource ID in UUID format.
    region String
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnetId String
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.

    Outputs

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

    CreatedAt string
    The creation time of the SNAT rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The latest update time of the SNAT rule.
    CreatedAt string
    The creation time of the SNAT rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The latest update time of the SNAT rule.
    createdAt String
    The creation time of the SNAT rule.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The latest update time of the SNAT rule.
    createdAt string
    The creation time of the SNAT rule.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The latest update time of the SNAT rule.
    created_at str
    The creation time of the SNAT rule.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The latest update time of the SNAT rule.
    createdAt String
    The creation time of the SNAT rule.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The latest update time of the SNAT rule.

    Look up Existing NatPrivateSnatRule Resource

    Get an existing NatPrivateSnatRule 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?: NatPrivateSnatRuleState, opts?: CustomResourceOptions): NatPrivateSnatRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            gateway_id: Optional[str] = None,
            nat_private_snat_rule_id: Optional[str] = None,
            region: Optional[str] = None,
            subnet_id: Optional[str] = None,
            transit_ip_id: Optional[str] = None,
            updated_at: Optional[str] = None) -> NatPrivateSnatRule
    func GetNatPrivateSnatRule(ctx *Context, name string, id IDInput, state *NatPrivateSnatRuleState, opts ...ResourceOption) (*NatPrivateSnatRule, error)
    public static NatPrivateSnatRule Get(string name, Input<string> id, NatPrivateSnatRuleState? state, CustomResourceOptions? opts = null)
    public static NatPrivateSnatRule get(String name, Output<String> id, NatPrivateSnatRuleState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:NatPrivateSnatRule    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:
    Cidr string

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    CreatedAt string
    The creation time of the SNAT rule.
    Description string
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    GatewayId string
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    NatPrivateSnatRuleId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    SubnetId string
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    TransitIpId string
    Specifies the ID of the transit IP associated with SNAT rule.
    UpdatedAt string
    The latest update time of the SNAT rule.
    Cidr string

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    CreatedAt string
    The creation time of the SNAT rule.
    Description string
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    GatewayId string
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    NatPrivateSnatRuleId string
    The resource ID in UUID format.
    Region string
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    SubnetId string
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    TransitIpId string
    Specifies the ID of the transit IP associated with SNAT rule.
    UpdatedAt string
    The latest update time of the SNAT rule.
    cidr String

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    createdAt String
    The creation time of the SNAT rule.
    description String
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    gatewayId String
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    natPrivateSnatRuleId String
    The resource ID in UUID format.
    region String
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnetId String
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    transitIpId String
    Specifies the ID of the transit IP associated with SNAT rule.
    updatedAt String
    The latest update time of the SNAT rule.
    cidr string

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    createdAt string
    The creation time of the SNAT rule.
    description string
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    gatewayId string
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    natPrivateSnatRuleId string
    The resource ID in UUID format.
    region string
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnetId string
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    transitIpId string
    Specifies the ID of the transit IP associated with SNAT rule.
    updatedAt string
    The latest update time of the SNAT rule.
    cidr str

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    created_at str
    The creation time of the SNAT rule.
    description str
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    gateway_id str
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    nat_private_snat_rule_id str
    The resource ID in UUID format.
    region str
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnet_id str
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    transit_ip_id str
    Specifies the ID of the transit IP associated with SNAT rule.
    updated_at str
    The latest update time of the SNAT rule.
    cidr String

    Specifies the CIDR block of the match rule.
    Changing this will create a new resource. Exactly one of cidr and subnet_id must be set.

    SNAT rules under the same private NAT gateway cannot have the same CIDR, but they can be proper subsets of other CIDRs.

    createdAt String
    The creation time of the SNAT rule.
    description String
    Specifies the description of the SNAT rule, which contain maximum of 255 characters, and angle brackets (< and >) are not allowed.
    gatewayId String
    Specifies the private NAT gateway ID to which the SNAT rule belongs.
    Changing this will create a new resource.
    natPrivateSnatRuleId String
    The resource ID in UUID format.
    region String
    Specifies the region where the SNAT rule is located.
    If omitted, the provider-level region will be used. Changing this will create a new resource.
    subnetId String
    Specifies the subnet ID of the match rule.
    Changing this will create a new resource.
    transitIpId String
    Specifies the ID of the transit IP associated with SNAT rule.
    updatedAt String
    The latest update time of the SNAT rule.

    Import

    SNAT rules can be imported using their id, e.g.

    bash

    $ pulumi import flexibleengine:index/natPrivateSnatRule:NatPrivateSnatRule test df9b61e9-79c1-4a75-bfab-736e224ced71
    

    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