1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. Ga2ForwardingRule
Viewing docs for tencentcloud 1.83.38
published on Friday, Oct 23, 2026 by tencentcloudstack
tencentcloud
Viewing docs for tencentcloud 1.83.38
published on Friday, Oct 23, 2026 by tencentcloudstack

    Provides a resource to create a Tencent Cloud Global Accelerator V2 (GA2) layer-7 forwarding rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.Ga2GlobalAccelerator("example", {
        name: "tf-example",
        instanceChargeType: "POSTPAID",
        description: "tf example global accelerator",
        tags: {
            createdBy: "Terraform",
        },
    });
    const exampleGa2AccelerateArea = new tencentcloud.Ga2AccelerateArea("example", {
        globalAcceleratorId: example.ga2GlobalAcceleratorId,
        accelerateRegion: "ap-guangzhou",
        bandwidth: 10,
        ispType: "BGP",
        ipVersion: "IPv4",
    });
    const exampleGa2Listener = new tencentcloud.Ga2Listener("example", {
        globalAcceleratorId: exampleGa2AccelerateArea.globalAcceleratorId,
        name: "tf-example-http",
        protocol: "HTTP",
        portRanges: {
            fromPort: 90,
            toPort: 90,
        },
        description: "tf example listener",
        idleTimeout: 15,
        requestTimeout: 60,
        listenerType: "Standard",
        xForwardedForRealIp: true,
    });
    const exampleGa2EndpointGroup = new tencentcloud.Ga2EndpointGroup("example", {
        globalAcceleratorId: example.ga2GlobalAcceleratorId,
        listenerId: exampleGa2Listener.listenerId,
        endpointGroupType: "VIRTUAL",
        endpointGroupConfiguration: {
            name: "tf-example",
            endpointGroupRegion: "ap-guangzhou",
            description: "tf example endpoint group",
            enableHealthCheck: true,
            forwardProtocol: "HTTP",
            checkType: "HTTP",
            checkDomain: "check.com",
            checkMethod: "GET",
            checkPath: "/path",
            connectTimeout: 2,
            healthCheckInterval: 30,
            healthyThreshold: 3,
            unhealthyThreshold: 3,
            statusMasks: [
                "http_2xx",
                "http_3xx",
                "http_4xx",
            ],
            endpointConfigurations: [
                {
                    endpointType: "CustomPublicIp",
                    endpointService: "1.1.1.1",
                    weight: 10,
                },
                {
                    endpointType: "CustomDomain",
                    endpointService: "example.com",
                    weight: 20,
                },
            ],
            portOverrides: [{
                listenerPort: 90,
                endpointPort: 9090,
            }],
        },
    });
    const exampleGa2ForwardingPolicy = new tencentcloud.Ga2ForwardingPolicy("example", {
        globalAcceleratorId: exampleGa2AccelerateArea.globalAcceleratorId,
        listenerId: exampleGa2Listener.listenerId,
        host: "example.com",
    });
    const exampleGa2ForwardingRule = new tencentcloud.Ga2ForwardingRule("example", {
        globalAcceleratorId: exampleGa2AccelerateArea.globalAcceleratorId,
        listenerId: exampleGa2Listener.listenerId,
        forwardingPolicyId: exampleGa2ForwardingPolicy.forwardingPolicyId,
        ruleConditions: [{
            ruleConditionType: "Path",
            ruleConditionValues: ["/path"],
        }],
        ruleActions: [{
            ruleActionType: "ForwardGroup",
            ruleActionValue: exampleGa2EndpointGroup.endpointGroupId,
        }],
        responseHeaders: [{
            key: "ShowKey",
            value: "ShowValue",
        }],
        hideResponseHeaders: [{
            key: "HideKey",
            value: "",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.Ga2GlobalAccelerator("example",
        name="tf-example",
        instance_charge_type="POSTPAID",
        description="tf example global accelerator",
        tags={
            "createdBy": "Terraform",
        })
    example_ga2_accelerate_area = tencentcloud.Ga2AccelerateArea("example",
        global_accelerator_id=example.ga2_global_accelerator_id,
        accelerate_region="ap-guangzhou",
        bandwidth=10,
        isp_type="BGP",
        ip_version="IPv4")
    example_ga2_listener = tencentcloud.Ga2Listener("example",
        global_accelerator_id=example_ga2_accelerate_area.global_accelerator_id,
        name="tf-example-http",
        protocol="HTTP",
        port_ranges={
            "from_port": 90,
            "to_port": 90,
        },
        description="tf example listener",
        idle_timeout=15,
        request_timeout=60,
        listener_type="Standard",
        x_forwarded_for_real_ip=True)
    example_ga2_endpoint_group = tencentcloud.Ga2EndpointGroup("example",
        global_accelerator_id=example.ga2_global_accelerator_id,
        listener_id=example_ga2_listener.listener_id,
        endpoint_group_type="VIRTUAL",
        endpoint_group_configuration={
            "name": "tf-example",
            "endpoint_group_region": "ap-guangzhou",
            "description": "tf example endpoint group",
            "enable_health_check": True,
            "forward_protocol": "HTTP",
            "check_type": "HTTP",
            "check_domain": "check.com",
            "check_method": "GET",
            "check_path": "/path",
            "connect_timeout": 2,
            "health_check_interval": 30,
            "healthy_threshold": 3,
            "unhealthy_threshold": 3,
            "status_masks": [
                "http_2xx",
                "http_3xx",
                "http_4xx",
            ],
            "endpoint_configurations": [
                {
                    "endpoint_type": "CustomPublicIp",
                    "endpoint_service": "1.1.1.1",
                    "weight": 10,
                },
                {
                    "endpoint_type": "CustomDomain",
                    "endpoint_service": "example.com",
                    "weight": 20,
                },
            ],
            "port_overrides": [{
                "listener_port": 90,
                "endpoint_port": 9090,
            }],
        })
    example_ga2_forwarding_policy = tencentcloud.Ga2ForwardingPolicy("example",
        global_accelerator_id=example_ga2_accelerate_area.global_accelerator_id,
        listener_id=example_ga2_listener.listener_id,
        host="example.com")
    example_ga2_forwarding_rule = tencentcloud.Ga2ForwardingRule("example",
        global_accelerator_id=example_ga2_accelerate_area.global_accelerator_id,
        listener_id=example_ga2_listener.listener_id,
        forwarding_policy_id=example_ga2_forwarding_policy.forwarding_policy_id,
        rule_conditions=[{
            "rule_condition_type": "Path",
            "rule_condition_values": ["/path"],
        }],
        rule_actions=[{
            "rule_action_type": "ForwardGroup",
            "rule_action_value": example_ga2_endpoint_group.endpoint_group_id,
        }],
        response_headers=[{
            "key": "ShowKey",
            "value": "ShowValue",
        }],
        hide_response_headers=[{
            "key": "HideKey",
            "value": "",
        }])
    
    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 {
    		example, err := tencentcloud.NewGa2GlobalAccelerator(ctx, "example", &tencentcloud.Ga2GlobalAcceleratorArgs{
    			Name:               pulumi.String("tf-example"),
    			InstanceChargeType: pulumi.String("POSTPAID"),
    			Description:        pulumi.String("tf example global accelerator"),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("Terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleGa2AccelerateArea, err := tencentcloud.NewGa2AccelerateArea(ctx, "example", &tencentcloud.Ga2AccelerateAreaArgs{
    			GlobalAcceleratorId: example.Ga2GlobalAcceleratorId,
    			AccelerateRegion:    pulumi.String("ap-guangzhou"),
    			Bandwidth:           pulumi.Float64(10),
    			IspType:             pulumi.String("BGP"),
    			IpVersion:           pulumi.String("IPv4"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleGa2Listener, err := tencentcloud.NewGa2Listener(ctx, "example", &tencentcloud.Ga2ListenerArgs{
    			GlobalAcceleratorId: exampleGa2AccelerateArea.GlobalAcceleratorId,
    			Name:                pulumi.String("tf-example-http"),
    			Protocol:            pulumi.String("HTTP"),
    			PortRanges: &tencentcloud.Ga2ListenerPortRangesArgs{
    				FromPort: pulumi.Float64(90),
    				ToPort:   pulumi.Float64(90),
    			},
    			Description:         pulumi.String("tf example listener"),
    			IdleTimeout:         pulumi.Float64(15),
    			RequestTimeout:      pulumi.Float64(60),
    			ListenerType:        pulumi.String("Standard"),
    			XForwardedForRealIp: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleGa2EndpointGroup, err := tencentcloud.NewGa2EndpointGroup(ctx, "example", &tencentcloud.Ga2EndpointGroupArgs{
    			GlobalAcceleratorId: example.Ga2GlobalAcceleratorId,
    			ListenerId:          exampleGa2Listener.ListenerId,
    			EndpointGroupType:   pulumi.String("VIRTUAL"),
    			EndpointGroupConfiguration: &tencentcloud.Ga2EndpointGroupEndpointGroupConfigurationArgs{
    				Name:                pulumi.String("tf-example"),
    				EndpointGroupRegion: pulumi.String("ap-guangzhou"),
    				Description:         pulumi.String("tf example endpoint group"),
    				EnableHealthCheck:   pulumi.Bool(true),
    				ForwardProtocol:     pulumi.String("HTTP"),
    				CheckType:           pulumi.String("HTTP"),
    				CheckDomain:         pulumi.String("check.com"),
    				CheckMethod:         pulumi.String("GET"),
    				CheckPath:           pulumi.String("/path"),
    				ConnectTimeout:      pulumi.Float64(2),
    				HealthCheckInterval: pulumi.Float64(30),
    				HealthyThreshold:    pulumi.Float64(3),
    				UnhealthyThreshold:  pulumi.Float64(3),
    				StatusMasks: pulumi.StringArray{
    					pulumi.String("http_2xx"),
    					pulumi.String("http_3xx"),
    					pulumi.String("http_4xx"),
    				},
    				EndpointConfigurations: tencentcloud.Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArray{
    					&tencentcloud.Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArgs{
    						EndpointType:    pulumi.String("CustomPublicIp"),
    						EndpointService: pulumi.String("1.1.1.1"),
    						Weight:          pulumi.Float64(10),
    					},
    					&tencentcloud.Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArgs{
    						EndpointType:    pulumi.String("CustomDomain"),
    						EndpointService: pulumi.String("example.com"),
    						Weight:          pulumi.Float64(20),
    					},
    				},
    				PortOverrides: tencentcloud.Ga2EndpointGroupEndpointGroupConfigurationPortOverrideArray{
    					&tencentcloud.Ga2EndpointGroupEndpointGroupConfigurationPortOverrideArgs{
    						ListenerPort: pulumi.Float64(90),
    						EndpointPort: pulumi.Float64(9090),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleGa2ForwardingPolicy, err := tencentcloud.NewGa2ForwardingPolicy(ctx, "example", &tencentcloud.Ga2ForwardingPolicyArgs{
    			GlobalAcceleratorId: exampleGa2AccelerateArea.GlobalAcceleratorId,
    			ListenerId:          exampleGa2Listener.ListenerId,
    			Host:                pulumi.String("example.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewGa2ForwardingRule(ctx, "example", &tencentcloud.Ga2ForwardingRuleArgs{
    			GlobalAcceleratorId: exampleGa2AccelerateArea.GlobalAcceleratorId,
    			ListenerId:          exampleGa2Listener.ListenerId,
    			ForwardingPolicyId:  exampleGa2ForwardingPolicy.ForwardingPolicyId,
    			RuleConditions: tencentcloud.Ga2ForwardingRuleRuleConditionArray{
    				&tencentcloud.Ga2ForwardingRuleRuleConditionArgs{
    					RuleConditionType: pulumi.String("Path"),
    					RuleConditionValues: pulumi.StringArray{
    						pulumi.String("/path"),
    					},
    				},
    			},
    			RuleActions: tencentcloud.Ga2ForwardingRuleRuleActionArray{
    				&tencentcloud.Ga2ForwardingRuleRuleActionArgs{
    					RuleActionType:  pulumi.String("ForwardGroup"),
    					RuleActionValue: exampleGa2EndpointGroup.EndpointGroupId,
    				},
    			},
    			ResponseHeaders: tencentcloud.Ga2ForwardingRuleResponseHeaderArray{
    				&tencentcloud.Ga2ForwardingRuleResponseHeaderArgs{
    					Key:   pulumi.String("ShowKey"),
    					Value: pulumi.String("ShowValue"),
    				},
    			},
    			HideResponseHeaders: tencentcloud.Ga2ForwardingRuleHideResponseHeaderArray{
    				&tencentcloud.Ga2ForwardingRuleHideResponseHeaderArgs{
    					Key:   pulumi.String("HideKey"),
    					Value: pulumi.String(""),
    				},
    			},
    		})
    		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.Ga2GlobalAccelerator("example", new()
        {
            Name = "tf-example",
            InstanceChargeType = "POSTPAID",
            Description = "tf example global accelerator",
            Tags = 
            {
                { "createdBy", "Terraform" },
            },
        });
    
        var exampleGa2AccelerateArea = new Tencentcloud.Ga2AccelerateArea("example", new()
        {
            GlobalAcceleratorId = example.Ga2GlobalAcceleratorId,
            AccelerateRegion = "ap-guangzhou",
            Bandwidth = 10,
            IspType = "BGP",
            IpVersion = "IPv4",
        });
    
        var exampleGa2Listener = new Tencentcloud.Ga2Listener("example", new()
        {
            GlobalAcceleratorId = exampleGa2AccelerateArea.GlobalAcceleratorId,
            Name = "tf-example-http",
            Protocol = "HTTP",
            PortRanges = new Tencentcloud.Inputs.Ga2ListenerPortRangesArgs
            {
                FromPort = 90,
                ToPort = 90,
            },
            Description = "tf example listener",
            IdleTimeout = 15,
            RequestTimeout = 60,
            ListenerType = "Standard",
            XForwardedForRealIp = true,
        });
    
        var exampleGa2EndpointGroup = new Tencentcloud.Ga2EndpointGroup("example", new()
        {
            GlobalAcceleratorId = example.Ga2GlobalAcceleratorId,
            ListenerId = exampleGa2Listener.ListenerId,
            EndpointGroupType = "VIRTUAL",
            EndpointGroupConfiguration = new Tencentcloud.Inputs.Ga2EndpointGroupEndpointGroupConfigurationArgs
            {
                Name = "tf-example",
                EndpointGroupRegion = "ap-guangzhou",
                Description = "tf example endpoint group",
                EnableHealthCheck = true,
                ForwardProtocol = "HTTP",
                CheckType = "HTTP",
                CheckDomain = "check.com",
                CheckMethod = "GET",
                CheckPath = "/path",
                ConnectTimeout = 2,
                HealthCheckInterval = 30,
                HealthyThreshold = 3,
                UnhealthyThreshold = 3,
                StatusMasks = new[]
                {
                    "http_2xx",
                    "http_3xx",
                    "http_4xx",
                },
                EndpointConfigurations = new[]
                {
                    new Tencentcloud.Inputs.Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArgs
                    {
                        EndpointType = "CustomPublicIp",
                        EndpointService = "1.1.1.1",
                        Weight = 10,
                    },
                    new Tencentcloud.Inputs.Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArgs
                    {
                        EndpointType = "CustomDomain",
                        EndpointService = "example.com",
                        Weight = 20,
                    },
                },
                PortOverrides = new[]
                {
                    new Tencentcloud.Inputs.Ga2EndpointGroupEndpointGroupConfigurationPortOverrideArgs
                    {
                        ListenerPort = 90,
                        EndpointPort = 9090,
                    },
                },
            },
        });
    
        var exampleGa2ForwardingPolicy = new Tencentcloud.Ga2ForwardingPolicy("example", new()
        {
            GlobalAcceleratorId = exampleGa2AccelerateArea.GlobalAcceleratorId,
            ListenerId = exampleGa2Listener.ListenerId,
            Host = "example.com",
        });
    
        var exampleGa2ForwardingRule = new Tencentcloud.Ga2ForwardingRule("example", new()
        {
            GlobalAcceleratorId = exampleGa2AccelerateArea.GlobalAcceleratorId,
            ListenerId = exampleGa2Listener.ListenerId,
            ForwardingPolicyId = exampleGa2ForwardingPolicy.ForwardingPolicyId,
            RuleConditions = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleRuleConditionArgs
                {
                    RuleConditionType = "Path",
                    RuleConditionValues = new[]
                    {
                        "/path",
                    },
                },
            },
            RuleActions = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleRuleActionArgs
                {
                    RuleActionType = "ForwardGroup",
                    RuleActionValue = exampleGa2EndpointGroup.EndpointGroupId,
                },
            },
            ResponseHeaders = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleResponseHeaderArgs
                {
                    Key = "ShowKey",
                    Value = "ShowValue",
                },
            },
            HideResponseHeaders = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleHideResponseHeaderArgs
                {
                    Key = "HideKey",
                    Value = "",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Ga2GlobalAccelerator;
    import com.pulumi.tencentcloud.Ga2GlobalAcceleratorArgs;
    import com.pulumi.tencentcloud.Ga2AccelerateArea;
    import com.pulumi.tencentcloud.Ga2AccelerateAreaArgs;
    import com.pulumi.tencentcloud.Ga2Listener;
    import com.pulumi.tencentcloud.Ga2ListenerArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ListenerPortRangesArgs;
    import com.pulumi.tencentcloud.Ga2EndpointGroup;
    import com.pulumi.tencentcloud.Ga2EndpointGroupArgs;
    import com.pulumi.tencentcloud.inputs.Ga2EndpointGroupEndpointGroupConfigurationArgs;
    import com.pulumi.tencentcloud.Ga2ForwardingPolicy;
    import com.pulumi.tencentcloud.Ga2ForwardingPolicyArgs;
    import com.pulumi.tencentcloud.Ga2ForwardingRule;
    import com.pulumi.tencentcloud.Ga2ForwardingRuleArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleRuleConditionArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleRuleActionArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleResponseHeaderArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleHideResponseHeaderArgs;
    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 Ga2GlobalAccelerator("example", Ga2GlobalAcceleratorArgs.builder()
                .name("tf-example")
                .instanceChargeType("POSTPAID")
                .description("tf example global accelerator")
                .tags(Map.of("createdBy", "Terraform"))
                .build());
    
            var exampleGa2AccelerateArea = new Ga2AccelerateArea("exampleGa2AccelerateArea", Ga2AccelerateAreaArgs.builder()
                .globalAcceleratorId(example.ga2GlobalAcceleratorId())
                .accelerateRegion("ap-guangzhou")
                .bandwidth(10.0)
                .ispType("BGP")
                .ipVersion("IPv4")
                .build());
    
            var exampleGa2Listener = new Ga2Listener("exampleGa2Listener", Ga2ListenerArgs.builder()
                .globalAcceleratorId(exampleGa2AccelerateArea.globalAcceleratorId())
                .name("tf-example-http")
                .protocol("HTTP")
                .portRanges(Ga2ListenerPortRangesArgs.builder()
                    .fromPort(90.0)
                    .toPort(90.0)
                    .build())
                .description("tf example listener")
                .idleTimeout(15.0)
                .requestTimeout(60.0)
                .listenerType("Standard")
                .xForwardedForRealIp(true)
                .build());
    
            var exampleGa2EndpointGroup = new Ga2EndpointGroup("exampleGa2EndpointGroup", Ga2EndpointGroupArgs.builder()
                .globalAcceleratorId(example.ga2GlobalAcceleratorId())
                .listenerId(exampleGa2Listener.listenerId())
                .endpointGroupType("VIRTUAL")
                .endpointGroupConfiguration(Ga2EndpointGroupEndpointGroupConfigurationArgs.builder()
                    .name("tf-example")
                    .endpointGroupRegion("ap-guangzhou")
                    .description("tf example endpoint group")
                    .enableHealthCheck(true)
                    .forwardProtocol("HTTP")
                    .checkType("HTTP")
                    .checkDomain("check.com")
                    .checkMethod("GET")
                    .checkPath("/path")
                    .connectTimeout(2.0)
                    .healthCheckInterval(30.0)
                    .healthyThreshold(3.0)
                    .unhealthyThreshold(3.0)
                    .statusMasks(                
                        "http_2xx",
                        "http_3xx",
                        "http_4xx")
                    .endpointConfigurations(                
                        Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArgs.builder()
                            .endpointType("CustomPublicIp")
                            .endpointService("1.1.1.1")
                            .weight(10.0)
                            .build(),
                        Ga2EndpointGroupEndpointGroupConfigurationEndpointConfigurationArgs.builder()
                            .endpointType("CustomDomain")
                            .endpointService("example.com")
                            .weight(20.0)
                            .build())
                    .portOverrides(Ga2EndpointGroupEndpointGroupConfigurationPortOverrideArgs.builder()
                        .listenerPort(90.0)
                        .endpointPort(9090.0)
                        .build())
                    .build())
                .build());
    
            var exampleGa2ForwardingPolicy = new Ga2ForwardingPolicy("exampleGa2ForwardingPolicy", Ga2ForwardingPolicyArgs.builder()
                .globalAcceleratorId(exampleGa2AccelerateArea.globalAcceleratorId())
                .listenerId(exampleGa2Listener.listenerId())
                .host("example.com")
                .build());
    
            var exampleGa2ForwardingRule = new Ga2ForwardingRule("exampleGa2ForwardingRule", Ga2ForwardingRuleArgs.builder()
                .globalAcceleratorId(exampleGa2AccelerateArea.globalAcceleratorId())
                .listenerId(exampleGa2Listener.listenerId())
                .forwardingPolicyId(exampleGa2ForwardingPolicy.forwardingPolicyId())
                .ruleConditions(Ga2ForwardingRuleRuleConditionArgs.builder()
                    .ruleConditionType("Path")
                    .ruleConditionValues("/path")
                    .build())
                .ruleActions(Ga2ForwardingRuleRuleActionArgs.builder()
                    .ruleActionType("ForwardGroup")
                    .ruleActionValue(exampleGa2EndpointGroup.endpointGroupId())
                    .build())
                .responseHeaders(Ga2ForwardingRuleResponseHeaderArgs.builder()
                    .key("ShowKey")
                    .value("ShowValue")
                    .build())
                .hideResponseHeaders(Ga2ForwardingRuleHideResponseHeaderArgs.builder()
                    .key("HideKey")
                    .value("")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:Ga2GlobalAccelerator
        properties:
          name: tf-example
          instanceChargeType: POSTPAID
          description: tf example global accelerator
          tags:
            createdBy: Terraform
      exampleGa2AccelerateArea:
        type: tencentcloud:Ga2AccelerateArea
        name: example
        properties:
          globalAcceleratorId: ${example.ga2GlobalAcceleratorId}
          accelerateRegion: ap-guangzhou
          bandwidth: 10
          ispType: BGP
          ipVersion: IPv4
      exampleGa2Listener:
        type: tencentcloud:Ga2Listener
        name: example
        properties:
          globalAcceleratorId: ${exampleGa2AccelerateArea.globalAcceleratorId}
          name: tf-example-http
          protocol: HTTP
          portRanges:
            fromPort: 90
            toPort: 90
          description: tf example listener
          idleTimeout: 15
          requestTimeout: 60
          listenerType: Standard
          xForwardedForRealIp: true
      exampleGa2EndpointGroup:
        type: tencentcloud:Ga2EndpointGroup
        name: example
        properties:
          globalAcceleratorId: ${example.ga2GlobalAcceleratorId}
          listenerId: ${exampleGa2Listener.listenerId}
          endpointGroupType: VIRTUAL
          endpointGroupConfiguration:
            name: tf-example
            endpointGroupRegion: ap-guangzhou
            description: tf example endpoint group
            enableHealthCheck: true
            forwardProtocol: HTTP
            checkType: HTTP
            checkDomain: check.com
            checkMethod: GET
            checkPath: /path
            connectTimeout: 2
            healthCheckInterval: 30
            healthyThreshold: 3
            unhealthyThreshold: 3
            statusMasks:
              - http_2xx
              - http_3xx
              - http_4xx
            endpointConfigurations:
              - endpointType: CustomPublicIp
                endpointService: 1.1.1.1
                weight: 10
              - endpointType: CustomDomain
                endpointService: example.com
                weight: 20
            portOverrides:
              - listenerPort: 90
                endpointPort: 9090
      exampleGa2ForwardingPolicy:
        type: tencentcloud:Ga2ForwardingPolicy
        name: example
        properties:
          globalAcceleratorId: ${exampleGa2AccelerateArea.globalAcceleratorId}
          listenerId: ${exampleGa2Listener.listenerId}
          host: example.com
      exampleGa2ForwardingRule:
        type: tencentcloud:Ga2ForwardingRule
        name: example
        properties:
          globalAcceleratorId: ${exampleGa2AccelerateArea.globalAcceleratorId}
          listenerId: ${exampleGa2Listener.listenerId}
          forwardingPolicyId: ${exampleGa2ForwardingPolicy.forwardingPolicyId}
          ruleConditions:
            - ruleConditionType: Path
              ruleConditionValues:
                - /path
          ruleActions:
            - ruleActionType: ForwardGroup
              ruleActionValue: ${exampleGa2EndpointGroup.endpointGroupId}
          responseHeaders:
            - key: ShowKey
              value: ShowValue
          hideResponseHeaders:
            - key: HideKey
              value: ""
    
    Example coming soon!
    

    with origin headers

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.Ga2ForwardingRule("example", {
        globalAcceleratorId: "ga-fhhs8w84",
        listenerId: "lsr-dyy8jhzp",
        forwardingPolicyId: "dm-rjssxr8k",
        originHost: "2.2.2.2",
        ruleConditions: [{
            ruleConditionType: "Path",
            ruleConditionValues: ["/path"],
        }],
        ruleActions: [{
            ruleActionType: "ForwardGroup",
            ruleActionValue: "epg-nt4iwozo",
        }],
        originHeaders: [{
            key: "key",
            value: "value",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.Ga2ForwardingRule("example",
        global_accelerator_id="ga-fhhs8w84",
        listener_id="lsr-dyy8jhzp",
        forwarding_policy_id="dm-rjssxr8k",
        origin_host="2.2.2.2",
        rule_conditions=[{
            "rule_condition_type": "Path",
            "rule_condition_values": ["/path"],
        }],
        rule_actions=[{
            "rule_action_type": "ForwardGroup",
            "rule_action_value": "epg-nt4iwozo",
        }],
        origin_headers=[{
            "key": "key",
            "value": "value",
        }])
    
    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.NewGa2ForwardingRule(ctx, "example", &tencentcloud.Ga2ForwardingRuleArgs{
    			GlobalAcceleratorId: pulumi.String("ga-fhhs8w84"),
    			ListenerId:          pulumi.String("lsr-dyy8jhzp"),
    			ForwardingPolicyId:  pulumi.String("dm-rjssxr8k"),
    			OriginHost:          pulumi.String("2.2.2.2"),
    			RuleConditions: tencentcloud.Ga2ForwardingRuleRuleConditionArray{
    				&tencentcloud.Ga2ForwardingRuleRuleConditionArgs{
    					RuleConditionType: pulumi.String("Path"),
    					RuleConditionValues: pulumi.StringArray{
    						pulumi.String("/path"),
    					},
    				},
    			},
    			RuleActions: tencentcloud.Ga2ForwardingRuleRuleActionArray{
    				&tencentcloud.Ga2ForwardingRuleRuleActionArgs{
    					RuleActionType:  pulumi.String("ForwardGroup"),
    					RuleActionValue: pulumi.String("epg-nt4iwozo"),
    				},
    			},
    			OriginHeaders: tencentcloud.Ga2ForwardingRuleOriginHeaderArray{
    				&tencentcloud.Ga2ForwardingRuleOriginHeaderArgs{
    					Key:   pulumi.String("key"),
    					Value: pulumi.String("value"),
    				},
    			},
    		})
    		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.Ga2ForwardingRule("example", new()
        {
            GlobalAcceleratorId = "ga-fhhs8w84",
            ListenerId = "lsr-dyy8jhzp",
            ForwardingPolicyId = "dm-rjssxr8k",
            OriginHost = "2.2.2.2",
            RuleConditions = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleRuleConditionArgs
                {
                    RuleConditionType = "Path",
                    RuleConditionValues = new[]
                    {
                        "/path",
                    },
                },
            },
            RuleActions = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleRuleActionArgs
                {
                    RuleActionType = "ForwardGroup",
                    RuleActionValue = "epg-nt4iwozo",
                },
            },
            OriginHeaders = new[]
            {
                new Tencentcloud.Inputs.Ga2ForwardingRuleOriginHeaderArgs
                {
                    Key = "key",
                    Value = "value",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Ga2ForwardingRule;
    import com.pulumi.tencentcloud.Ga2ForwardingRuleArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleRuleConditionArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleRuleActionArgs;
    import com.pulumi.tencentcloud.inputs.Ga2ForwardingRuleOriginHeaderArgs;
    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 Ga2ForwardingRule("example", Ga2ForwardingRuleArgs.builder()
                .globalAcceleratorId("ga-fhhs8w84")
                .listenerId("lsr-dyy8jhzp")
                .forwardingPolicyId("dm-rjssxr8k")
                .originHost("2.2.2.2")
                .ruleConditions(Ga2ForwardingRuleRuleConditionArgs.builder()
                    .ruleConditionType("Path")
                    .ruleConditionValues("/path")
                    .build())
                .ruleActions(Ga2ForwardingRuleRuleActionArgs.builder()
                    .ruleActionType("ForwardGroup")
                    .ruleActionValue("epg-nt4iwozo")
                    .build())
                .originHeaders(Ga2ForwardingRuleOriginHeaderArgs.builder()
                    .key("key")
                    .value("value")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:Ga2ForwardingRule
        properties:
          globalAcceleratorId: ga-fhhs8w84
          listenerId: lsr-dyy8jhzp
          forwardingPolicyId: dm-rjssxr8k
          originHost: 2.2.2.2
          ruleConditions:
            - ruleConditionType: Path
              ruleConditionValues:
                - /path
          ruleActions:
            - ruleActionType: ForwardGroup
              ruleActionValue: epg-nt4iwozo
          originHeaders:
            - key: key
              value: value
    
    Example coming soon!
    

    API Reference

    This resource interacts with the following TencentCloud APIs:

    Create Ga2ForwardingRule Resource

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

    Constructor syntax

    new Ga2ForwardingRule(name: string, args: Ga2ForwardingRuleArgs, opts?: CustomResourceOptions);
    @overload
    def Ga2ForwardingRule(resource_name: str,
                          args: Ga2ForwardingRuleArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ga2ForwardingRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          listener_id: Optional[str] = None,
                          forwarding_policy_id: Optional[str] = None,
                          rule_conditions: Optional[Sequence[Ga2ForwardingRuleRuleConditionArgs]] = None,
                          global_accelerator_id: Optional[str] = None,
                          rule_actions: Optional[Sequence[Ga2ForwardingRuleRuleActionArgs]] = None,
                          origin_headers: Optional[Sequence[Ga2ForwardingRuleOriginHeaderArgs]] = None,
                          enable_origin_sni: Optional[bool] = None,
                          origin_host: Optional[str] = None,
                          origin_sni: Optional[str] = None,
                          response_headers: Optional[Sequence[Ga2ForwardingRuleResponseHeaderArgs]] = None,
                          hide_response_headers: Optional[Sequence[Ga2ForwardingRuleHideResponseHeaderArgs]] = None,
                          ga2_forwarding_rule_id: Optional[str] = None,
                          timeouts: Optional[Ga2ForwardingRuleTimeoutsArgs] = None)
    func NewGa2ForwardingRule(ctx *Context, name string, args Ga2ForwardingRuleArgs, opts ...ResourceOption) (*Ga2ForwardingRule, error)
    public Ga2ForwardingRule(string name, Ga2ForwardingRuleArgs args, CustomResourceOptions? opts = null)
    public Ga2ForwardingRule(String name, Ga2ForwardingRuleArgs args)
    public Ga2ForwardingRule(String name, Ga2ForwardingRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:Ga2ForwardingRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_ga2_forwarding_rule" "name" {
        # resource properties
    }

    Parameters

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

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

    ForwardingPolicyId string
    Forwarding policy ID. Example value: dm-dz058e4q.
    GlobalAcceleratorId string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    ListenerId string
    Listener ID. Example value: lsr-kzjzfs7n.
    RuleActions List<Ga2ForwardingRuleRuleAction>
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    RuleConditions List<Ga2ForwardingRuleRuleCondition>
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    EnableOriginSni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    Ga2ForwardingRuleId string
    ID of the resource.
    HideResponseHeaders List<Ga2ForwardingRuleHideResponseHeader>
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    OriginHeaders List<Ga2ForwardingRuleOriginHeader>
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    OriginHost string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    OriginSni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    ResponseHeaders List<Ga2ForwardingRuleResponseHeader>
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    Timeouts Ga2ForwardingRuleTimeouts
    ForwardingPolicyId string
    Forwarding policy ID. Example value: dm-dz058e4q.
    GlobalAcceleratorId string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    ListenerId string
    Listener ID. Example value: lsr-kzjzfs7n.
    RuleActions []Ga2ForwardingRuleRuleActionArgs
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    RuleConditions []Ga2ForwardingRuleRuleConditionArgs
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    EnableOriginSni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    Ga2ForwardingRuleId string
    ID of the resource.
    HideResponseHeaders []Ga2ForwardingRuleHideResponseHeaderArgs
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    OriginHeaders []Ga2ForwardingRuleOriginHeaderArgs
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    OriginHost string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    OriginSni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    ResponseHeaders []Ga2ForwardingRuleResponseHeaderArgs
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    Timeouts Ga2ForwardingRuleTimeoutsArgs
    forwarding_policy_id string
    Forwarding policy ID. Example value: dm-dz058e4q.
    global_accelerator_id string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    listener_id string
    Listener ID. Example value: lsr-kzjzfs7n.
    rule_actions list(object)
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    rule_conditions list(object)
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    enable_origin_sni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ga2_forwarding_rule_id string
    ID of the resource.
    hide_response_headers list(object)
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    origin_headers list(object)
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    origin_host string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    origin_sni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    response_headers list(object)
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts object
    forwardingPolicyId String
    Forwarding policy ID. Example value: dm-dz058e4q.
    globalAcceleratorId String
    Global accelerator instance ID. Example value: ga-ask56kjh.
    listenerId String
    Listener ID. Example value: lsr-kzjzfs7n.
    ruleActions List<Ga2ForwardingRuleRuleAction>
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleConditions List<Ga2ForwardingRuleRuleCondition>
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    enableOriginSni Boolean
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ga2ForwardingRuleId String
    ID of the resource.
    hideResponseHeaders List<Ga2ForwardingRuleHideResponseHeader>
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    originHeaders List<Ga2ForwardingRuleOriginHeader>
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    originHost String
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    originSni String
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    responseHeaders List<Ga2ForwardingRuleResponseHeader>
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Ga2ForwardingRuleTimeouts
    forwardingPolicyId string
    Forwarding policy ID. Example value: dm-dz058e4q.
    globalAcceleratorId string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    listenerId string
    Listener ID. Example value: lsr-kzjzfs7n.
    ruleActions Ga2ForwardingRuleRuleAction[]
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleConditions Ga2ForwardingRuleRuleCondition[]
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    enableOriginSni boolean
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ga2ForwardingRuleId string
    ID of the resource.
    hideResponseHeaders Ga2ForwardingRuleHideResponseHeader[]
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    originHeaders Ga2ForwardingRuleOriginHeader[]
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    originHost string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    originSni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    responseHeaders Ga2ForwardingRuleResponseHeader[]
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Ga2ForwardingRuleTimeouts
    forwarding_policy_id str
    Forwarding policy ID. Example value: dm-dz058e4q.
    global_accelerator_id str
    Global accelerator instance ID. Example value: ga-ask56kjh.
    listener_id str
    Listener ID. Example value: lsr-kzjzfs7n.
    rule_actions Sequence[Ga2ForwardingRuleRuleActionArgs]
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    rule_conditions Sequence[Ga2ForwardingRuleRuleConditionArgs]
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    enable_origin_sni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ga2_forwarding_rule_id str
    ID of the resource.
    hide_response_headers Sequence[Ga2ForwardingRuleHideResponseHeaderArgs]
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    origin_headers Sequence[Ga2ForwardingRuleOriginHeaderArgs]
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    origin_host str
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    origin_sni str
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    response_headers Sequence[Ga2ForwardingRuleResponseHeaderArgs]
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Ga2ForwardingRuleTimeoutsArgs
    forwardingPolicyId String
    Forwarding policy ID. Example value: dm-dz058e4q.
    globalAcceleratorId String
    Global accelerator instance ID. Example value: ga-ask56kjh.
    listenerId String
    Listener ID. Example value: lsr-kzjzfs7n.
    ruleActions List<Property Map>
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleConditions List<Property Map>
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    enableOriginSni Boolean
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ga2ForwardingRuleId String
    ID of the resource.
    hideResponseHeaders List<Property Map>
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    originHeaders List<Property Map>
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    originHost String
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    originSni String
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    responseHeaders List<Property Map>
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Property Map

    Outputs

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

    ForwardingRuleId string
    Layer-7 forwarding rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    ForwardingRuleId string
    Layer-7 forwarding rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    forwarding_rule_id string
    Layer-7 forwarding rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    forwardingRuleId String
    Layer-7 forwarding rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    forwardingRuleId string
    Layer-7 forwarding rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    forwarding_rule_id str
    Layer-7 forwarding rule ID.
    id str
    The provider-assigned unique ID for this managed resource.
    forwardingRuleId String
    Layer-7 forwarding rule ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Ga2ForwardingRule Resource

    Get an existing Ga2ForwardingRule 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?: Ga2ForwardingRuleState, opts?: CustomResourceOptions): Ga2ForwardingRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enable_origin_sni: Optional[bool] = None,
            forwarding_policy_id: Optional[str] = None,
            forwarding_rule_id: Optional[str] = None,
            ga2_forwarding_rule_id: Optional[str] = None,
            global_accelerator_id: Optional[str] = None,
            hide_response_headers: Optional[Sequence[Ga2ForwardingRuleHideResponseHeaderArgs]] = None,
            listener_id: Optional[str] = None,
            origin_headers: Optional[Sequence[Ga2ForwardingRuleOriginHeaderArgs]] = None,
            origin_host: Optional[str] = None,
            origin_sni: Optional[str] = None,
            response_headers: Optional[Sequence[Ga2ForwardingRuleResponseHeaderArgs]] = None,
            rule_actions: Optional[Sequence[Ga2ForwardingRuleRuleActionArgs]] = None,
            rule_conditions: Optional[Sequence[Ga2ForwardingRuleRuleConditionArgs]] = None,
            timeouts: Optional[Ga2ForwardingRuleTimeoutsArgs] = None) -> Ga2ForwardingRule
    func GetGa2ForwardingRule(ctx *Context, name string, id IDInput, state *Ga2ForwardingRuleState, opts ...ResourceOption) (*Ga2ForwardingRule, error)
    public static Ga2ForwardingRule Get(string name, Input<string> id, Ga2ForwardingRuleState? state, CustomResourceOptions? opts = null)
    public static Ga2ForwardingRule get(String name, Output<String> id, Ga2ForwardingRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:Ga2ForwardingRule    get:      id: ${id}
    import {
      to = tencentcloud_ga2_forwarding_rule.example
      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:
    EnableOriginSni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ForwardingPolicyId string
    Forwarding policy ID. Example value: dm-dz058e4q.
    ForwardingRuleId string
    Layer-7 forwarding rule ID.
    Ga2ForwardingRuleId string
    ID of the resource.
    GlobalAcceleratorId string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    HideResponseHeaders List<Ga2ForwardingRuleHideResponseHeader>
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    ListenerId string
    Listener ID. Example value: lsr-kzjzfs7n.
    OriginHeaders List<Ga2ForwardingRuleOriginHeader>
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    OriginHost string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    OriginSni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    ResponseHeaders List<Ga2ForwardingRuleResponseHeader>
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    RuleActions List<Ga2ForwardingRuleRuleAction>
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    RuleConditions List<Ga2ForwardingRuleRuleCondition>
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    Timeouts Ga2ForwardingRuleTimeouts
    EnableOriginSni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    ForwardingPolicyId string
    Forwarding policy ID. Example value: dm-dz058e4q.
    ForwardingRuleId string
    Layer-7 forwarding rule ID.
    Ga2ForwardingRuleId string
    ID of the resource.
    GlobalAcceleratorId string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    HideResponseHeaders []Ga2ForwardingRuleHideResponseHeaderArgs
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    ListenerId string
    Listener ID. Example value: lsr-kzjzfs7n.
    OriginHeaders []Ga2ForwardingRuleOriginHeaderArgs
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    OriginHost string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    OriginSni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    ResponseHeaders []Ga2ForwardingRuleResponseHeaderArgs
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    RuleActions []Ga2ForwardingRuleRuleActionArgs
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    RuleConditions []Ga2ForwardingRuleRuleConditionArgs
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    Timeouts Ga2ForwardingRuleTimeoutsArgs
    enable_origin_sni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    forwarding_policy_id string
    Forwarding policy ID. Example value: dm-dz058e4q.
    forwarding_rule_id string
    Layer-7 forwarding rule ID.
    ga2_forwarding_rule_id string
    ID of the resource.
    global_accelerator_id string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    hide_response_headers list(object)
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    listener_id string
    Listener ID. Example value: lsr-kzjzfs7n.
    origin_headers list(object)
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    origin_host string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    origin_sni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    response_headers list(object)
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    rule_actions list(object)
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    rule_conditions list(object)
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts object
    enableOriginSni Boolean
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    forwardingPolicyId String
    Forwarding policy ID. Example value: dm-dz058e4q.
    forwardingRuleId String
    Layer-7 forwarding rule ID.
    ga2ForwardingRuleId String
    ID of the resource.
    globalAcceleratorId String
    Global accelerator instance ID. Example value: ga-ask56kjh.
    hideResponseHeaders List<Ga2ForwardingRuleHideResponseHeader>
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    listenerId String
    Listener ID. Example value: lsr-kzjzfs7n.
    originHeaders List<Ga2ForwardingRuleOriginHeader>
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    originHost String
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    originSni String
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    responseHeaders List<Ga2ForwardingRuleResponseHeader>
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleActions List<Ga2ForwardingRuleRuleAction>
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleConditions List<Ga2ForwardingRuleRuleCondition>
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Ga2ForwardingRuleTimeouts
    enableOriginSni boolean
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    forwardingPolicyId string
    Forwarding policy ID. Example value: dm-dz058e4q.
    forwardingRuleId string
    Layer-7 forwarding rule ID.
    ga2ForwardingRuleId string
    ID of the resource.
    globalAcceleratorId string
    Global accelerator instance ID. Example value: ga-ask56kjh.
    hideResponseHeaders Ga2ForwardingRuleHideResponseHeader[]
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    listenerId string
    Listener ID. Example value: lsr-kzjzfs7n.
    originHeaders Ga2ForwardingRuleOriginHeader[]
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    originHost string
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    originSni string
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    responseHeaders Ga2ForwardingRuleResponseHeader[]
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleActions Ga2ForwardingRuleRuleAction[]
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleConditions Ga2ForwardingRuleRuleCondition[]
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Ga2ForwardingRuleTimeouts
    enable_origin_sni bool
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    forwarding_policy_id str
    Forwarding policy ID. Example value: dm-dz058e4q.
    forwarding_rule_id str
    Layer-7 forwarding rule ID.
    ga2_forwarding_rule_id str
    ID of the resource.
    global_accelerator_id str
    Global accelerator instance ID. Example value: ga-ask56kjh.
    hide_response_headers Sequence[Ga2ForwardingRuleHideResponseHeaderArgs]
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    listener_id str
    Listener ID. Example value: lsr-kzjzfs7n.
    origin_headers Sequence[Ga2ForwardingRuleOriginHeaderArgs]
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    origin_host str
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    origin_sni str
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    response_headers Sequence[Ga2ForwardingRuleResponseHeaderArgs]
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    rule_actions Sequence[Ga2ForwardingRuleRuleActionArgs]
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    rule_conditions Sequence[Ga2ForwardingRuleRuleConditionArgs]
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Ga2ForwardingRuleTimeoutsArgs
    enableOriginSni Boolean
    Whether to enable origin SNI. Default: false. Required when rule_actions.rule_action_type is ForwardGroup.
    forwardingPolicyId String
    Forwarding policy ID. Example value: dm-dz058e4q.
    forwardingRuleId String
    Layer-7 forwarding rule ID.
    ga2ForwardingRuleId String
    ID of the resource.
    globalAcceleratorId String
    Global accelerator instance ID. Example value: ga-ask56kjh.
    hideResponseHeaders List<Property Map>
    Origin response headers to remove. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    listenerId String
    Listener ID. Example value: lsr-kzjzfs7n.
    originHeaders List<Property Map>
    Origin request headers. The array length cannot exceed 5. Required when rule_actions.rule_action_type is ForwardGroup. Treated as an unordered set; HCL element order has no semantic meaning.
    originHost String
    Origin host value. Maximum length is 80 characters. Required when rule_actions.rule_action_type is ForwardGroup.
    originSni String
    Origin SNI value. Maximum length is 80 characters. Required when enable_origin_sni is true, and also required when rule_actions.rule_action_type is ForwardGroup.
    responseHeaders List<Property Map>
    Origin response headers. The array length cannot exceed 5. An empty set means clearing the configuration. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleActions List<Property Map>
    Layer-7 forwarding rule actions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    ruleConditions List<Property Map>
    Layer-7 forwarding rule conditions. The array length cannot exceed 1. Treated as an unordered set; HCL element order has no semantic meaning.
    timeouts Property Map

    Supporting Types

    Ga2ForwardingRuleHideResponseHeader, Ga2ForwardingRuleHideResponseHeaderArgs

    Key string
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    Value string
    Origin response header value to remove. Currently only an empty string is accepted.
    Key string
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    Value string
    Origin response header value to remove. Currently only an empty string is accepted.
    key string
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    value string
    Origin response header value to remove. Currently only an empty string is accepted.
    key String
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    value String
    Origin response header value to remove. Currently only an empty string is accepted.
    key string
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    value string
    Origin response header value to remove. Currently only an empty string is accepted.
    key str
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    value str
    Origin response header value to remove. Currently only an empty string is accepted.
    key String
    Origin response header key to remove. Maximum length is 128 characters. If it contains $, only $remote_addr or $remote_port are supported.
    value String
    Origin response header value to remove. Currently only an empty string is accepted.

    Ga2ForwardingRuleOriginHeader, Ga2ForwardingRuleOriginHeaderArgs

    Key string
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    Value string
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    Key string
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    Value string
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key string
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value string
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key String
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value String
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key string
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value string
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key str
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value str
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key String
    Origin request header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value String
    Origin request header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.

    Ga2ForwardingRuleResponseHeader, Ga2ForwardingRuleResponseHeaderArgs

    Key string
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    Value string
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    Key string
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    Value string
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key string
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value string
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key String
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value String
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key string
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value string
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key str
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value str
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.
    key String
    Origin response header key. Must contain only printable ASCII characters and must not contain ()<>@,;:\"/[ ]?={}. Length must be between 1 and 40 characters.
    value String
    Origin response header value. Maximum length is 128 characters. If the value contains $, only $remote_addr or $remote_port are supported.

    Ga2ForwardingRuleRuleAction, Ga2ForwardingRuleRuleActionArgs

    RuleActionType string
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    RuleActionValue string
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).
    RuleActionType string
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    RuleActionValue string
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).
    rule_action_type string
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    rule_action_value string
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).
    ruleActionType String
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    ruleActionValue String
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).
    ruleActionType string
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    ruleActionValue string
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).
    rule_action_type str
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    rule_action_value str
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).
    ruleActionType String
    Layer-7 forwarding rule action type. Valid values: ForwardGroup (forward to an endpoint group), Drop (drop the request).
    ruleActionValue String
    Layer-7 forwarding rule action value. Not required when rule_action_type is Drop. Required when rule_action_type is ForwardGroup, in which case it must be a custom endpoint group ID (the default endpoint group is not supported).

    Ga2ForwardingRuleRuleCondition, Ga2ForwardingRuleRuleConditionArgs

    RuleConditionType string
    Layer-7 forwarding rule condition type. Valid values: Path.
    RuleConditionValues List<string>
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.
    RuleConditionType string
    Layer-7 forwarding rule condition type. Valid values: Path.
    RuleConditionValues []string
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.
    rule_condition_type string
    Layer-7 forwarding rule condition type. Valid values: Path.
    rule_condition_values list(string)
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.
    ruleConditionType String
    Layer-7 forwarding rule condition type. Valid values: Path.
    ruleConditionValues List<String>
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.
    ruleConditionType string
    Layer-7 forwarding rule condition type. Valid values: Path.
    ruleConditionValues string[]
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.
    rule_condition_type str
    Layer-7 forwarding rule condition type. Valid values: Path.
    rule_condition_values Sequence[str]
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.
    ruleConditionType String
    Layer-7 forwarding rule condition type. Valid values: Path.
    ruleConditionValues List<String>
    Layer-7 forwarding rule condition values. Each value must match the regular expression ^[a-zA-Z0-9_.-/]{1,80}$. The array length cannot exceed 1. Treated as an unordered set.

    Ga2ForwardingRuleTimeouts, Ga2ForwardingRuleTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create string
    delete string
    update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    GA2 forwarding rule can be imported using the composite id <global_accelerator_id>#<listener_id>#<forwarding_policy_id>#<forwarding_rule_id>, e.g.

    $ pulumi import tencentcloud:index/ga2ForwardingRule:Ga2ForwardingRule example ga-fhhs8w84#lsr-dyy8jhzp#dm-rjssxr8k#rule-757r3bk2
    

    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
    Viewing docs for tencentcloud 1.83.38
    published on Friday, Oct 23, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial