1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcPrivateNatGatewayTranslationAclRule
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack

    Provides a resource to create a VPC private nat gateway translation acl rule

    Example Usage

    If translation_type is NETWORK_LAYER

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VpcPrivateNatGatewayTranslationAclRule("example", {
        natGatewayId: "intranat-bw389ya1",
        translationDirection: "LOCAL",
        translationType: "NETWORK_LAYER",
        translationIp: "2.2.2.2",
        originalIp: "1.1.1.1",
        translationAclRules: {
            protocol: "TCP",
            sourcePort: "80",
            destinationPort: "8080",
            destinationCidr: "8.8.8.8",
            description: "remark.",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VpcPrivateNatGatewayTranslationAclRule("example",
        nat_gateway_id="intranat-bw389ya1",
        translation_direction="LOCAL",
        translation_type="NETWORK_LAYER",
        translation_ip="2.2.2.2",
        original_ip="1.1.1.1",
        translation_acl_rules={
            "protocol": "TCP",
            "source_port": "80",
            "destination_port": "8080",
            "destination_cidr": "8.8.8.8",
            "description": "remark.",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewVpcPrivateNatGatewayTranslationAclRule(ctx, "example", &tencentcloud.VpcPrivateNatGatewayTranslationAclRuleArgs{
    			NatGatewayId:         pulumi.String("intranat-bw389ya1"),
    			TranslationDirection: pulumi.String("LOCAL"),
    			TranslationType:      pulumi.String("NETWORK_LAYER"),
    			TranslationIp:        pulumi.String("2.2.2.2"),
    			OriginalIp:           pulumi.String("1.1.1.1"),
    			TranslationAclRules: &tencentcloud.VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs{
    				Protocol:        pulumi.String("TCP"),
    				SourcePort:      pulumi.String("80"),
    				DestinationPort: pulumi.String("8080"),
    				DestinationCidr: pulumi.String("8.8.8.8"),
    				Description:     pulumi.String("remark."),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.VpcPrivateNatGatewayTranslationAclRule("example", new()
        {
            NatGatewayId = "intranat-bw389ya1",
            TranslationDirection = "LOCAL",
            TranslationType = "NETWORK_LAYER",
            TranslationIp = "2.2.2.2",
            OriginalIp = "1.1.1.1",
            TranslationAclRules = new Tencentcloud.Inputs.VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs
            {
                Protocol = "TCP",
                SourcePort = "80",
                DestinationPort = "8080",
                DestinationCidr = "8.8.8.8",
                Description = "remark.",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpcPrivateNatGatewayTranslationAclRule;
    import com.pulumi.tencentcloud.VpcPrivateNatGatewayTranslationAclRuleArgs;
    import com.pulumi.tencentcloud.inputs.VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs;
    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) {
            var example = new VpcPrivateNatGatewayTranslationAclRule("example", VpcPrivateNatGatewayTranslationAclRuleArgs.builder()
                .natGatewayId("intranat-bw389ya1")
                .translationDirection("LOCAL")
                .translationType("NETWORK_LAYER")
                .translationIp("2.2.2.2")
                .originalIp("1.1.1.1")
                .translationAclRules(VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs.builder()
                    .protocol("TCP")
                    .sourcePort("80")
                    .destinationPort("8080")
                    .destinationCidr("8.8.8.8")
                    .description("remark.")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:VpcPrivateNatGatewayTranslationAclRule
        properties:
          natGatewayId: intranat-bw389ya1
          translationDirection: LOCAL
          translationType: NETWORK_LAYER
          translationIp: 2.2.2.2
          originalIp: 1.1.1.1
          translationAclRules:
            protocol: TCP
            sourcePort: '80'
            destinationPort: '8080'
            destinationCidr: 8.8.8.8
            description: remark.
    

    If translation_type is NETWORK_LAYER

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VpcPrivateNatGatewayTranslationAclRule("example", {
        natGatewayId: "intranat-bw389ya1",
        translationDirection: "LOCAL",
        translationType: "TRANSPORT_LAYER",
        translationIp: "3.3.3.3",
        translationAclRules: {
            protocol: "ALL",
            sourcePort: "0-65535",
            sourceCidr: "2.2.2.2",
            destinationPort: "0-65535",
            destinationCidr: "3.3.3.3",
            description: "remark.",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VpcPrivateNatGatewayTranslationAclRule("example",
        nat_gateway_id="intranat-bw389ya1",
        translation_direction="LOCAL",
        translation_type="TRANSPORT_LAYER",
        translation_ip="3.3.3.3",
        translation_acl_rules={
            "protocol": "ALL",
            "source_port": "0-65535",
            "source_cidr": "2.2.2.2",
            "destination_port": "0-65535",
            "destination_cidr": "3.3.3.3",
            "description": "remark.",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewVpcPrivateNatGatewayTranslationAclRule(ctx, "example", &tencentcloud.VpcPrivateNatGatewayTranslationAclRuleArgs{
    			NatGatewayId:         pulumi.String("intranat-bw389ya1"),
    			TranslationDirection: pulumi.String("LOCAL"),
    			TranslationType:      pulumi.String("TRANSPORT_LAYER"),
    			TranslationIp:        pulumi.String("3.3.3.3"),
    			TranslationAclRules: &tencentcloud.VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs{
    				Protocol:        pulumi.String("ALL"),
    				SourcePort:      pulumi.String("0-65535"),
    				SourceCidr:      pulumi.String("2.2.2.2"),
    				DestinationPort: pulumi.String("0-65535"),
    				DestinationCidr: pulumi.String("3.3.3.3"),
    				Description:     pulumi.String("remark."),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.VpcPrivateNatGatewayTranslationAclRule("example", new()
        {
            NatGatewayId = "intranat-bw389ya1",
            TranslationDirection = "LOCAL",
            TranslationType = "TRANSPORT_LAYER",
            TranslationIp = "3.3.3.3",
            TranslationAclRules = new Tencentcloud.Inputs.VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs
            {
                Protocol = "ALL",
                SourcePort = "0-65535",
                SourceCidr = "2.2.2.2",
                DestinationPort = "0-65535",
                DestinationCidr = "3.3.3.3",
                Description = "remark.",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpcPrivateNatGatewayTranslationAclRule;
    import com.pulumi.tencentcloud.VpcPrivateNatGatewayTranslationAclRuleArgs;
    import com.pulumi.tencentcloud.inputs.VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs;
    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) {
            var example = new VpcPrivateNatGatewayTranslationAclRule("example", VpcPrivateNatGatewayTranslationAclRuleArgs.builder()
                .natGatewayId("intranat-bw389ya1")
                .translationDirection("LOCAL")
                .translationType("TRANSPORT_LAYER")
                .translationIp("3.3.3.3")
                .translationAclRules(VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs.builder()
                    .protocol("ALL")
                    .sourcePort("0-65535")
                    .sourceCidr("2.2.2.2")
                    .destinationPort("0-65535")
                    .destinationCidr("3.3.3.3")
                    .description("remark.")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:VpcPrivateNatGatewayTranslationAclRule
        properties:
          natGatewayId: intranat-bw389ya1
          translationDirection: LOCAL
          translationType: TRANSPORT_LAYER
          translationIp: 3.3.3.3
          translationAclRules:
            protocol: ALL
            sourcePort: 0-65535
            sourceCidr: 2.2.2.2
            destinationPort: 0-65535
            destinationCidr: 3.3.3.3
            description: remark.
    

    Create VpcPrivateNatGatewayTranslationAclRule Resource

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

    Constructor syntax

    new VpcPrivateNatGatewayTranslationAclRule(name: string, args: VpcPrivateNatGatewayTranslationAclRuleArgs, opts?: CustomResourceOptions);
    @overload
    def VpcPrivateNatGatewayTranslationAclRule(resource_name: str,
                                               args: VpcPrivateNatGatewayTranslationAclRuleArgs,
                                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcPrivateNatGatewayTranslationAclRule(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               nat_gateway_id: Optional[str] = None,
                                               translation_acl_rules: Optional[VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs] = None,
                                               translation_direction: Optional[str] = None,
                                               translation_ip: Optional[str] = None,
                                               translation_type: Optional[str] = None,
                                               original_ip: Optional[str] = None,
                                               vpc_private_nat_gateway_translation_acl_rule_id: Optional[str] = None)
    func NewVpcPrivateNatGatewayTranslationAclRule(ctx *Context, name string, args VpcPrivateNatGatewayTranslationAclRuleArgs, opts ...ResourceOption) (*VpcPrivateNatGatewayTranslationAclRule, error)
    public VpcPrivateNatGatewayTranslationAclRule(string name, VpcPrivateNatGatewayTranslationAclRuleArgs args, CustomResourceOptions? opts = null)
    public VpcPrivateNatGatewayTranslationAclRule(String name, VpcPrivateNatGatewayTranslationAclRuleArgs args)
    public VpcPrivateNatGatewayTranslationAclRule(String name, VpcPrivateNatGatewayTranslationAclRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcPrivateNatGatewayTranslationAclRule
    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 VpcPrivateNatGatewayTranslationAclRuleArgs
    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 VpcPrivateNatGatewayTranslationAclRuleArgs
    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 VpcPrivateNatGatewayTranslationAclRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcPrivateNatGatewayTranslationAclRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcPrivateNatGatewayTranslationAclRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    NatGatewayId string
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    TranslationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules
    Access control list.
    TranslationDirection string
    The target of the translation rule, optional value: LOCAL.
    TranslationIp string
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    TranslationType string
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    OriginalIp string
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    VpcPrivateNatGatewayTranslationAclRuleId string
    ID of the resource.
    NatGatewayId string
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    TranslationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs
    Access control list.
    TranslationDirection string
    The target of the translation rule, optional value: LOCAL.
    TranslationIp string
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    TranslationType string
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    OriginalIp string
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    VpcPrivateNatGatewayTranslationAclRuleId string
    ID of the resource.
    natGatewayId String
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    translationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules
    Access control list.
    translationDirection String
    The target of the translation rule, optional value: LOCAL.
    translationIp String
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translationType String
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    originalIp String
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    vpcPrivateNatGatewayTranslationAclRuleId String
    ID of the resource.
    natGatewayId string
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    translationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules
    Access control list.
    translationDirection string
    The target of the translation rule, optional value: LOCAL.
    translationIp string
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translationType string
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    originalIp string
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    vpcPrivateNatGatewayTranslationAclRuleId string
    ID of the resource.
    nat_gateway_id str
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    translation_acl_rules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs
    Access control list.
    translation_direction str
    The target of the translation rule, optional value: LOCAL.
    translation_ip str
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translation_type str
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    original_ip str
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    vpc_private_nat_gateway_translation_acl_rule_id str
    ID of the resource.
    natGatewayId String
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    translationAclRules Property Map
    Access control list.
    translationDirection String
    The target of the translation rule, optional value: LOCAL.
    translationIp String
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translationType String
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    originalIp String
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    vpcPrivateNatGatewayTranslationAclRuleId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpcPrivateNatGatewayTranslationAclRule Resource

    Get an existing VpcPrivateNatGatewayTranslationAclRule 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?: VpcPrivateNatGatewayTranslationAclRuleState, opts?: CustomResourceOptions): VpcPrivateNatGatewayTranslationAclRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            nat_gateway_id: Optional[str] = None,
            original_ip: Optional[str] = None,
            translation_acl_rules: Optional[VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs] = None,
            translation_direction: Optional[str] = None,
            translation_ip: Optional[str] = None,
            translation_type: Optional[str] = None,
            vpc_private_nat_gateway_translation_acl_rule_id: Optional[str] = None) -> VpcPrivateNatGatewayTranslationAclRule
    func GetVpcPrivateNatGatewayTranslationAclRule(ctx *Context, name string, id IDInput, state *VpcPrivateNatGatewayTranslationAclRuleState, opts ...ResourceOption) (*VpcPrivateNatGatewayTranslationAclRule, error)
    public static VpcPrivateNatGatewayTranslationAclRule Get(string name, Input<string> id, VpcPrivateNatGatewayTranslationAclRuleState? state, CustomResourceOptions? opts = null)
    public static VpcPrivateNatGatewayTranslationAclRule get(String name, Output<String> id, VpcPrivateNatGatewayTranslationAclRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcPrivateNatGatewayTranslationAclRule    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:
    NatGatewayId string
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    OriginalIp string
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    TranslationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules
    Access control list.
    TranslationDirection string
    The target of the translation rule, optional value: LOCAL.
    TranslationIp string
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    TranslationType string
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    VpcPrivateNatGatewayTranslationAclRuleId string
    ID of the resource.
    NatGatewayId string
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    OriginalIp string
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    TranslationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs
    Access control list.
    TranslationDirection string
    The target of the translation rule, optional value: LOCAL.
    TranslationIp string
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    TranslationType string
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    VpcPrivateNatGatewayTranslationAclRuleId string
    ID of the resource.
    natGatewayId String
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    originalIp String
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    translationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules
    Access control list.
    translationDirection String
    The target of the translation rule, optional value: LOCAL.
    translationIp String
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translationType String
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    vpcPrivateNatGatewayTranslationAclRuleId String
    ID of the resource.
    natGatewayId string
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    originalIp string
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    translationAclRules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules
    Access control list.
    translationDirection string
    The target of the translation rule, optional value: LOCAL.
    translationIp string
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translationType string
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    vpcPrivateNatGatewayTranslationAclRuleId string
    ID of the resource.
    nat_gateway_id str
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    original_ip str
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    translation_acl_rules VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs
    Access control list.
    translation_direction str
    The target of the translation rule, optional value: LOCAL.
    translation_ip str
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translation_type str
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    vpc_private_nat_gateway_translation_acl_rule_id str
    ID of the resource.
    natGatewayId String
    The unique ID of the private NAT gateway, in the format: intranat-xxxxxxxx.
    originalIp String
    The original IP address before mapping. Valid when the translation rule type is layer 3.
    translationAclRules Property Map
    Access control list.
    translationDirection String
    The target of the translation rule, optional value: LOCAL.
    translationIp String
    The mapped IP address. When the translation rule type is layer 4, it represents an IP pool.
    translationType String
    The type of translation rule, optional values: NETWORK_LAYER, TRANSPORT_LAYER. Corresponding to layer 3 and layer 4 respectively.
    vpcPrivateNatGatewayTranslationAclRuleId String
    ID of the resource.

    Supporting Types

    VpcPrivateNatGatewayTranslationAclRuleTranslationAclRules, VpcPrivateNatGatewayTranslationAclRuleTranslationAclRulesArgs

    DestinationCidr string
    Destination address.
    DestinationPort string
    Destination port.
    Protocol string
    ACL protocol type, optional values: ALL, TCP, UDP.
    SourcePort string
    Source port.
    AclRuleId double
    ACL rule ID.
    Action double
    Whether to match.
    Description string
    ACL rule description.
    SourceCidr string
    Source address. Supports ip or cidr format xxx.xxx.xxx.000/xx.
    DestinationCidr string
    Destination address.
    DestinationPort string
    Destination port.
    Protocol string
    ACL protocol type, optional values: ALL, TCP, UDP.
    SourcePort string
    Source port.
    AclRuleId float64
    ACL rule ID.
    Action float64
    Whether to match.
    Description string
    ACL rule description.
    SourceCidr string
    Source address. Supports ip or cidr format xxx.xxx.xxx.000/xx.
    destinationCidr String
    Destination address.
    destinationPort String
    Destination port.
    protocol String
    ACL protocol type, optional values: ALL, TCP, UDP.
    sourcePort String
    Source port.
    aclRuleId Double
    ACL rule ID.
    action Double
    Whether to match.
    description String
    ACL rule description.
    sourceCidr String
    Source address. Supports ip or cidr format xxx.xxx.xxx.000/xx.
    destinationCidr string
    Destination address.
    destinationPort string
    Destination port.
    protocol string
    ACL protocol type, optional values: ALL, TCP, UDP.
    sourcePort string
    Source port.
    aclRuleId number
    ACL rule ID.
    action number
    Whether to match.
    description string
    ACL rule description.
    sourceCidr string
    Source address. Supports ip or cidr format xxx.xxx.xxx.000/xx.
    destination_cidr str
    Destination address.
    destination_port str
    Destination port.
    protocol str
    ACL protocol type, optional values: ALL, TCP, UDP.
    source_port str
    Source port.
    acl_rule_id float
    ACL rule ID.
    action float
    Whether to match.
    description str
    ACL rule description.
    source_cidr str
    Source address. Supports ip or cidr format xxx.xxx.xxx.000/xx.
    destinationCidr String
    Destination address.
    destinationPort String
    Destination port.
    protocol String
    ACL protocol type, optional values: ALL, TCP, UDP.
    sourcePort String
    Source port.
    aclRuleId Number
    ACL rule ID.
    action Number
    Whether to match.
    description String
    ACL rule description.
    sourceCidr String
    Source address. Supports ip or cidr format xxx.xxx.xxx.000/xx.

    Import

    VPC private nat gateway translation acl rule can be imported using the natGatewayId#translationDirection#translationType#translationIp[#originalIp]#aclruleId, e.g.

    If translation_type is NETWORK_LAYER

    $ pulumi import tencentcloud:index/vpcPrivateNatGatewayTranslationAclRule:VpcPrivateNatGatewayTranslationAclRule example intranat-bw389ya1#LOCAL#NETWORK_LAYER#2.2.2.2#1.1.1.1#23
    

    If translation_type is NETWORK_LAYER

    $ pulumi import tencentcloud:index/vpcPrivateNatGatewayTranslationAclRule:VpcPrivateNatGatewayTranslationAclRule example intranat-bw389ya1#LOCAL#TRANSPORT_LAYER#3.3.3.3#25
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    Viewing docs for tencentcloud 1.82.79
    published on Friday, Mar 27, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.