published on Tuesday, Jun 30, 2026 by tencentcloudstack
published on Tuesday, Jun 30, 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,
}],
});
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,
}])
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,
},
},
})
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,
},
},
});
});
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 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())
.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}
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!
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,
forwarding_policy_id: Optional[str] = None,
global_accelerator_id: Optional[str] = None,
listener_id: Optional[str] = None,
rule_actions: Optional[Sequence[Ga2ForwardingRuleRuleActionArgs]] = None,
rule_conditions: Optional[Sequence[Ga2ForwardingRuleRuleConditionArgs]] = None,
enable_origin_sni: Optional[bool] = None,
ga2_forwarding_rule_id: Optional[str] = None,
origin_headers: Optional[Sequence[Ga2ForwardingRuleOriginHeaderArgs]] = None,
origin_host: Optional[str] = None,
origin_sni: 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_ga2forwardingrule" "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:
- Forwarding
Policy stringId - Forwarding policy ID this forwarding rule belongs to.
- Global
Accelerator stringId - Global accelerator instance ID this forwarding rule belongs to.
- Listener
Id string - Listener ID this forwarding rule belongs to.
- Rule
Actions List<Ga2ForwardingRule Rule Action> - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- Rule
Conditions List<Ga2ForwardingRule Rule Condition> - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- Enable
Origin boolSni - Whether to enable origin SNI.
- Ga2Forwarding
Rule stringId - ID of the resource.
- Origin
Headers List<Ga2ForwardingRule Origin Header> - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- Origin
Host string - Origin host value.
- Origin
Sni string - Origin SNI value.
- Timeouts
Ga2Forwarding
Rule Timeouts
- Forwarding
Policy stringId - Forwarding policy ID this forwarding rule belongs to.
- Global
Accelerator stringId - Global accelerator instance ID this forwarding rule belongs to.
- Listener
Id string - Listener ID this forwarding rule belongs to.
- Rule
Actions []Ga2ForwardingRule Rule Action Args - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- Rule
Conditions []Ga2ForwardingRule Rule Condition Args - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- Enable
Origin boolSni - Whether to enable origin SNI.
- Ga2Forwarding
Rule stringId - ID of the resource.
- Origin
Headers []Ga2ForwardingRule Origin Header Args - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- Origin
Host string - Origin host value.
- Origin
Sni string - Origin SNI value.
- Timeouts
Ga2Forwarding
Rule Timeouts Args
- forwarding_
policy_ stringid - Forwarding policy ID this forwarding rule belongs to.
- global_
accelerator_ stringid - Global accelerator instance ID this forwarding rule belongs to.
- listener_
id string - Listener ID this forwarding rule belongs to.
- rule_
actions list(object) - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule_
conditions list(object) - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- enable_
origin_ boolsni - Whether to enable origin SNI.
- ga2_
forwarding_ stringrule_ id - ID of the resource.
- origin_
headers list(object) - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin_
host string - Origin host value.
- origin_
sni string - Origin SNI value.
- timeouts object
- forwarding
Policy StringId - Forwarding policy ID this forwarding rule belongs to.
- global
Accelerator StringId - Global accelerator instance ID this forwarding rule belongs to.
- listener
Id String - Listener ID this forwarding rule belongs to.
- rule
Actions List<Ga2ForwardingRule Rule Action> - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule
Conditions List<Ga2ForwardingRule Rule Condition> - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- enable
Origin BooleanSni - Whether to enable origin SNI.
- ga2Forwarding
Rule StringId - ID of the resource.
- origin
Headers List<Ga2ForwardingRule Origin Header> - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin
Host String - Origin host value.
- origin
Sni String - Origin SNI value.
- timeouts
Ga2Forwarding
Rule Timeouts
- forwarding
Policy stringId - Forwarding policy ID this forwarding rule belongs to.
- global
Accelerator stringId - Global accelerator instance ID this forwarding rule belongs to.
- listener
Id string - Listener ID this forwarding rule belongs to.
- rule
Actions Ga2ForwardingRule Rule Action[] - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule
Conditions Ga2ForwardingRule Rule Condition[] - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- enable
Origin booleanSni - Whether to enable origin SNI.
- ga2Forwarding
Rule stringId - ID of the resource.
- origin
Headers Ga2ForwardingRule Origin Header[] - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin
Host string - Origin host value.
- origin
Sni string - Origin SNI value.
- timeouts
Ga2Forwarding
Rule Timeouts
- forwarding_
policy_ strid - Forwarding policy ID this forwarding rule belongs to.
- global_
accelerator_ strid - Global accelerator instance ID this forwarding rule belongs to.
- listener_
id str - Listener ID this forwarding rule belongs to.
- rule_
actions Sequence[Ga2ForwardingRule Rule Action Args] - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule_
conditions Sequence[Ga2ForwardingRule Rule Condition Args] - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- enable_
origin_ boolsni - Whether to enable origin SNI.
- ga2_
forwarding_ strrule_ id - ID of the resource.
- origin_
headers Sequence[Ga2ForwardingRule Origin Header Args] - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin_
host str - Origin host value.
- origin_
sni str - Origin SNI value.
- timeouts
Ga2Forwarding
Rule Timeouts Args
- forwarding
Policy StringId - Forwarding policy ID this forwarding rule belongs to.
- global
Accelerator StringId - Global accelerator instance ID this forwarding rule belongs to.
- listener
Id String - Listener ID this forwarding rule belongs to.
- rule
Actions List<Property Map> - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule
Conditions List<Property Map> - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- enable
Origin BooleanSni - Whether to enable origin SNI.
- ga2Forwarding
Rule StringId - ID of the resource.
- origin
Headers List<Property Map> - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin
Host String - Origin host value.
- origin
Sni String - Origin SNI value.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Ga2ForwardingRule resource produces the following output properties:
- Forwarding
Rule stringId - Layer-7 forwarding rule ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Forwarding
Rule stringId - Layer-7 forwarding rule ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- forwarding_
rule_ stringid - Layer-7 forwarding rule ID.
- id string
- The provider-assigned unique ID for this managed resource.
- forwarding
Rule StringId - Layer-7 forwarding rule ID.
- id String
- The provider-assigned unique ID for this managed resource.
- forwarding
Rule stringId - Layer-7 forwarding rule ID.
- id string
- The provider-assigned unique ID for this managed resource.
- forwarding_
rule_ strid - Layer-7 forwarding rule ID.
- id str
- The provider-assigned unique ID for this managed resource.
- forwarding
Rule StringId - 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,
listener_id: Optional[str] = None,
origin_headers: Optional[Sequence[Ga2ForwardingRuleOriginHeaderArgs]] = None,
origin_host: Optional[str] = None,
origin_sni: Optional[str] = None,
rule_actions: Optional[Sequence[Ga2ForwardingRuleRuleActionArgs]] = None,
rule_conditions: Optional[Sequence[Ga2ForwardingRuleRuleConditionArgs]] = None,
timeouts: Optional[Ga2ForwardingRuleTimeoutsArgs] = None) -> Ga2ForwardingRulefunc 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_ga2forwardingrule.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.
- Enable
Origin boolSni - Whether to enable origin SNI.
- Forwarding
Policy stringId - Forwarding policy ID this forwarding rule belongs to.
- Forwarding
Rule stringId - Layer-7 forwarding rule ID.
- Ga2Forwarding
Rule stringId - ID of the resource.
- Global
Accelerator stringId - Global accelerator instance ID this forwarding rule belongs to.
- Listener
Id string - Listener ID this forwarding rule belongs to.
- Origin
Headers List<Ga2ForwardingRule Origin Header> - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- Origin
Host string - Origin host value.
- Origin
Sni string - Origin SNI value.
- Rule
Actions List<Ga2ForwardingRule Rule Action> - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- Rule
Conditions List<Ga2ForwardingRule Rule Condition> - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- Timeouts
Ga2Forwarding
Rule Timeouts
- Enable
Origin boolSni - Whether to enable origin SNI.
- Forwarding
Policy stringId - Forwarding policy ID this forwarding rule belongs to.
- Forwarding
Rule stringId - Layer-7 forwarding rule ID.
- Ga2Forwarding
Rule stringId - ID of the resource.
- Global
Accelerator stringId - Global accelerator instance ID this forwarding rule belongs to.
- Listener
Id string - Listener ID this forwarding rule belongs to.
- Origin
Headers []Ga2ForwardingRule Origin Header Args - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- Origin
Host string - Origin host value.
- Origin
Sni string - Origin SNI value.
- Rule
Actions []Ga2ForwardingRule Rule Action Args - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- Rule
Conditions []Ga2ForwardingRule Rule Condition Args - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- Timeouts
Ga2Forwarding
Rule Timeouts Args
- enable_
origin_ boolsni - Whether to enable origin SNI.
- forwarding_
policy_ stringid - Forwarding policy ID this forwarding rule belongs to.
- forwarding_
rule_ stringid - Layer-7 forwarding rule ID.
- ga2_
forwarding_ stringrule_ id - ID of the resource.
- global_
accelerator_ stringid - Global accelerator instance ID this forwarding rule belongs to.
- listener_
id string - Listener ID this forwarding rule belongs to.
- origin_
headers list(object) - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin_
host string - Origin host value.
- origin_
sni string - Origin SNI value.
- rule_
actions list(object) - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule_
conditions list(object) - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- timeouts object
- enable
Origin BooleanSni - Whether to enable origin SNI.
- forwarding
Policy StringId - Forwarding policy ID this forwarding rule belongs to.
- forwarding
Rule StringId - Layer-7 forwarding rule ID.
- ga2Forwarding
Rule StringId - ID of the resource.
- global
Accelerator StringId - Global accelerator instance ID this forwarding rule belongs to.
- listener
Id String - Listener ID this forwarding rule belongs to.
- origin
Headers List<Ga2ForwardingRule Origin Header> - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin
Host String - Origin host value.
- origin
Sni String - Origin SNI value.
- rule
Actions List<Ga2ForwardingRule Rule Action> - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule
Conditions List<Ga2ForwardingRule Rule Condition> - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- timeouts
Ga2Forwarding
Rule Timeouts
- enable
Origin booleanSni - Whether to enable origin SNI.
- forwarding
Policy stringId - Forwarding policy ID this forwarding rule belongs to.
- forwarding
Rule stringId - Layer-7 forwarding rule ID.
- ga2Forwarding
Rule stringId - ID of the resource.
- global
Accelerator stringId - Global accelerator instance ID this forwarding rule belongs to.
- listener
Id string - Listener ID this forwarding rule belongs to.
- origin
Headers Ga2ForwardingRule Origin Header[] - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin
Host string - Origin host value.
- origin
Sni string - Origin SNI value.
- rule
Actions Ga2ForwardingRule Rule Action[] - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule
Conditions Ga2ForwardingRule Rule Condition[] - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- timeouts
Ga2Forwarding
Rule Timeouts
- enable_
origin_ boolsni - Whether to enable origin SNI.
- forwarding_
policy_ strid - Forwarding policy ID this forwarding rule belongs to.
- forwarding_
rule_ strid - Layer-7 forwarding rule ID.
- ga2_
forwarding_ strrule_ id - ID of the resource.
- global_
accelerator_ strid - Global accelerator instance ID this forwarding rule belongs to.
- listener_
id str - Listener ID this forwarding rule belongs to.
- origin_
headers Sequence[Ga2ForwardingRule Origin Header Args] - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin_
host str - Origin host value.
- origin_
sni str - Origin SNI value.
- rule_
actions Sequence[Ga2ForwardingRule Rule Action Args] - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule_
conditions Sequence[Ga2ForwardingRule Rule Condition Args] - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- timeouts
Ga2Forwarding
Rule Timeouts Args
- enable
Origin BooleanSni - Whether to enable origin SNI.
- forwarding
Policy StringId - Forwarding policy ID this forwarding rule belongs to.
- forwarding
Rule StringId - Layer-7 forwarding rule ID.
- ga2Forwarding
Rule StringId - ID of the resource.
- global
Accelerator StringId - Global accelerator instance ID this forwarding rule belongs to.
- listener
Id String - Listener ID this forwarding rule belongs to.
- origin
Headers List<Property Map> - Origin request header list. Treated as an unordered set; HCL element order has no semantic meaning.
- origin
Host String - Origin host value.
- origin
Sni String - Origin SNI value.
- rule
Actions List<Property Map> - Layer-7 forwarding rule action list. Treated as an unordered set; HCL element order has no semantic meaning.
- rule
Conditions List<Property Map> - Layer-7 forwarding rule condition list. Treated as an unordered set; HCL element order has no semantic meaning.
- timeouts Property Map
Supporting Types
Ga2ForwardingRuleOriginHeader, Ga2ForwardingRuleOriginHeaderArgs
Ga2ForwardingRuleRuleAction, Ga2ForwardingRuleRuleActionArgs
- Rule
Action stringType - Layer-7 forwarding rule action type.
- Rule
Action stringValue - Layer-7 forwarding rule action value.
- Rule
Action stringType - Layer-7 forwarding rule action type.
- Rule
Action stringValue - Layer-7 forwarding rule action value.
- rule_
action_ stringtype - Layer-7 forwarding rule action type.
- rule_
action_ stringvalue - Layer-7 forwarding rule action value.
- rule
Action StringType - Layer-7 forwarding rule action type.
- rule
Action StringValue - Layer-7 forwarding rule action value.
- rule
Action stringType - Layer-7 forwarding rule action type.
- rule
Action stringValue - Layer-7 forwarding rule action value.
- rule_
action_ strtype - Layer-7 forwarding rule action type.
- rule_
action_ strvalue - Layer-7 forwarding rule action value.
- rule
Action StringType - Layer-7 forwarding rule action type.
- rule
Action StringValue - Layer-7 forwarding rule action value.
Ga2ForwardingRuleRuleCondition, Ga2ForwardingRuleRuleConditionArgs
- Rule
Condition stringType - Layer-7 forwarding rule condition type.
- Rule
Condition List<string>Values - Layer-7 forwarding rule condition values. Treated as an unordered set.
- Rule
Condition stringType - Layer-7 forwarding rule condition type.
- Rule
Condition []stringValues - Layer-7 forwarding rule condition values. Treated as an unordered set.
- rule_
condition_ stringtype - Layer-7 forwarding rule condition type.
- rule_
condition_ list(string)values - Layer-7 forwarding rule condition values. Treated as an unordered set.
- rule
Condition StringType - Layer-7 forwarding rule condition type.
- rule
Condition List<String>Values - Layer-7 forwarding rule condition values. Treated as an unordered set.
- rule
Condition stringType - Layer-7 forwarding rule condition type.
- rule
Condition string[]Values - Layer-7 forwarding rule condition values. Treated as an unordered set.
- rule_
condition_ strtype - Layer-7 forwarding rule condition type.
- rule_
condition_ Sequence[str]values - Layer-7 forwarding rule condition values. Treated as an unordered set.
- rule
Condition StringType - Layer-7 forwarding rule condition type.
- rule
Condition List<String>Values - Layer-7 forwarding rule condition values. Treated as an unordered set.
Ga2ForwardingRuleTimeouts, Ga2ForwardingRuleTimeoutsArgs
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
tencentcloudTerraform Provider.
published on Tuesday, Jun 30, 2026 by tencentcloudstack