1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoFunctionRule
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Provides a resource to create a TEO function rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoFunctionRule("example", {
        functionId: "ef-m01xn26e",
        remark: "remark.",
        triggerType: "direct",
        zoneId: "zone-3fkff38fyw8s",
        functionRuleConditions: [{
            ruleConditions: [
                {
                    ignoreCase: false,
                    operator: "equal",
                    target: "host",
                    values: ["test.makn.cn"],
                },
                {
                    ignoreCase: false,
                    operator: "equal",
                    target: "url",
                    values: ["/path"],
                },
            ],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoFunctionRule("example",
        function_id="ef-m01xn26e",
        remark="remark.",
        trigger_type="direct",
        zone_id="zone-3fkff38fyw8s",
        function_rule_conditions=[{
            "rule_conditions": [
                {
                    "ignore_case": False,
                    "operator": "equal",
                    "target": "host",
                    "values": ["test.makn.cn"],
                },
                {
                    "ignore_case": False,
                    "operator": "equal",
                    "target": "url",
                    "values": ["/path"],
                },
            ],
        }])
    
    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.NewTeoFunctionRule(ctx, "example", &tencentcloud.TeoFunctionRuleArgs{
    			FunctionId:  pulumi.String("ef-m01xn26e"),
    			Remark:      pulumi.String("remark."),
    			TriggerType: pulumi.String("direct"),
    			ZoneId:      pulumi.String("zone-3fkff38fyw8s"),
    			FunctionRuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionArray{
    				&tencentcloud.TeoFunctionRuleFunctionRuleConditionArgs{
    					RuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArray{
    						&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
    							IgnoreCase: pulumi.Bool(false),
    							Operator:   pulumi.String("equal"),
    							Target:     pulumi.String("host"),
    							Values: pulumi.StringArray{
    								pulumi.String("test.makn.cn"),
    							},
    						},
    						&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
    							IgnoreCase: pulumi.Bool(false),
    							Operator:   pulumi.String("equal"),
    							Target:     pulumi.String("url"),
    							Values: pulumi.StringArray{
    								pulumi.String("/path"),
    							},
    						},
    					},
    				},
    			},
    		})
    		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.TeoFunctionRule("example", new()
        {
            FunctionId = "ef-m01xn26e",
            Remark = "remark.",
            TriggerType = "direct",
            ZoneId = "zone-3fkff38fyw8s",
            FunctionRuleConditions = new[]
            {
                new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionArgs
                {
                    RuleConditions = new[]
                    {
                        new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
                        {
                            IgnoreCase = false,
                            Operator = "equal",
                            Target = "host",
                            Values = new[]
                            {
                                "test.makn.cn",
                            },
                        },
                        new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
                        {
                            IgnoreCase = false,
                            Operator = "equal",
                            Target = "url",
                            Values = new[]
                            {
                                "/path",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoFunctionRule;
    import com.pulumi.tencentcloud.TeoFunctionRuleArgs;
    import com.pulumi.tencentcloud.inputs.TeoFunctionRuleFunctionRuleConditionArgs;
    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 TeoFunctionRule("example", TeoFunctionRuleArgs.builder()
                .functionId("ef-m01xn26e")
                .remark("remark.")
                .triggerType("direct")
                .zoneId("zone-3fkff38fyw8s")
                .functionRuleConditions(TeoFunctionRuleFunctionRuleConditionArgs.builder()
                    .ruleConditions(                
                        TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
                            .ignoreCase(false)
                            .operator("equal")
                            .target("host")
                            .values("test.makn.cn")
                            .build(),
                        TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
                            .ignoreCase(false)
                            .operator("equal")
                            .target("url")
                            .values("/path")
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoFunctionRule
        properties:
          functionId: ef-m01xn26e
          remark: remark.
          triggerType: direct
          zoneId: zone-3fkff38fyw8s
          functionRuleConditions:
            - ruleConditions:
                - ignoreCase: false
                  operator: equal
                  target: host
                  values:
                    - test.makn.cn
                - ignoreCase: false
                  operator: equal
                  target: url
                  values:
                    - /path
    
    Example coming soon!
    

    Create TeoFunctionRule Resource

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

    Constructor syntax

    new TeoFunctionRule(name: string, args: TeoFunctionRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TeoFunctionRule(resource_name: str,
                        args: TeoFunctionRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoFunctionRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        function_id: Optional[str] = None,
                        function_rule_conditions: Optional[Sequence[TeoFunctionRuleFunctionRuleConditionArgs]] = None,
                        zone_id: Optional[str] = None,
                        remark: Optional[str] = None,
                        teo_function_rule_id: Optional[str] = None,
                        trigger_type: Optional[str] = None)
    func NewTeoFunctionRule(ctx *Context, name string, args TeoFunctionRuleArgs, opts ...ResourceOption) (*TeoFunctionRule, error)
    public TeoFunctionRule(string name, TeoFunctionRuleArgs args, CustomResourceOptions? opts = null)
    public TeoFunctionRule(String name, TeoFunctionRuleArgs args)
    public TeoFunctionRule(String name, TeoFunctionRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoFunctionRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teofunctionrule" "name" {
        # resource properties
    }

    Parameters

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

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

    FunctionId string
    ID of the Function.
    FunctionRuleConditions List<TeoFunctionRuleFunctionRuleCondition>
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    ZoneId string
    ID of the site.
    Remark string
    Rule description, maximum support of 60 characters.
    TeoFunctionRuleId string
    ID of the resource.
    TriggerType string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    FunctionId string
    ID of the Function.
    FunctionRuleConditions []TeoFunctionRuleFunctionRuleConditionArgs
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    ZoneId string
    ID of the site.
    Remark string
    Rule description, maximum support of 60 characters.
    TeoFunctionRuleId string
    ID of the resource.
    TriggerType string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    function_id string
    ID of the Function.
    function_rule_conditions list(object)
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    zone_id string
    ID of the site.
    remark string
    Rule description, maximum support of 60 characters.
    teo_function_rule_id string
    ID of the resource.
    trigger_type string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    functionId String
    ID of the Function.
    functionRuleConditions List<TeoFunctionRuleFunctionRuleCondition>
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    zoneId String
    ID of the site.
    remark String
    Rule description, maximum support of 60 characters.
    teoFunctionRuleId String
    ID of the resource.
    triggerType String
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    functionId string
    ID of the Function.
    functionRuleConditions TeoFunctionRuleFunctionRuleCondition[]
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    zoneId string
    ID of the site.
    remark string
    Rule description, maximum support of 60 characters.
    teoFunctionRuleId string
    ID of the resource.
    triggerType string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    function_id str
    ID of the Function.
    function_rule_conditions Sequence[TeoFunctionRuleFunctionRuleConditionArgs]
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    zone_id str
    ID of the site.
    remark str
    Rule description, maximum support of 60 characters.
    teo_function_rule_id str
    ID of the resource.
    trigger_type str
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    functionId String
    ID of the Function.
    functionRuleConditions List<Property Map>
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    zoneId String
    ID of the site.
    remark String
    Rule description, maximum support of 60 characters.
    teoFunctionRuleId String
    ID of the resource.
    triggerType String
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.

    Outputs

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

    FunctionName string
    The name of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    Priority double
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    RuleId string
    ID of the Function Rule.
    FunctionName string
    The name of the function.
    Id string
    The provider-assigned unique ID for this managed resource.
    Priority float64
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    RuleId string
    ID of the Function Rule.
    function_name string
    The name of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    priority number
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    rule_id string
    ID of the Function Rule.
    functionName String
    The name of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    priority Double
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    ruleId String
    ID of the Function Rule.
    functionName string
    The name of the function.
    id string
    The provider-assigned unique ID for this managed resource.
    priority number
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    ruleId string
    ID of the Function Rule.
    function_name str
    The name of the function.
    id str
    The provider-assigned unique ID for this managed resource.
    priority float
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    rule_id str
    ID of the Function Rule.
    functionName String
    The name of the function.
    id String
    The provider-assigned unique ID for this managed resource.
    priority Number
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    ruleId String
    ID of the Function Rule.

    Look up Existing TeoFunctionRule Resource

    Get an existing TeoFunctionRule 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?: TeoFunctionRuleState, opts?: CustomResourceOptions): TeoFunctionRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            function_id: Optional[str] = None,
            function_name: Optional[str] = None,
            function_rule_conditions: Optional[Sequence[TeoFunctionRuleFunctionRuleConditionArgs]] = None,
            priority: Optional[float] = None,
            remark: Optional[str] = None,
            rule_id: Optional[str] = None,
            teo_function_rule_id: Optional[str] = None,
            trigger_type: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoFunctionRule
    func GetTeoFunctionRule(ctx *Context, name string, id IDInput, state *TeoFunctionRuleState, opts ...ResourceOption) (*TeoFunctionRule, error)
    public static TeoFunctionRule Get(string name, Input<string> id, TeoFunctionRuleState? state, CustomResourceOptions? opts = null)
    public static TeoFunctionRule get(String name, Output<String> id, TeoFunctionRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoFunctionRule    get:      id: ${id}
    import {
      to = tencentcloud_teofunctionrule.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:
    FunctionId string
    ID of the Function.
    FunctionName string
    The name of the function.
    FunctionRuleConditions List<TeoFunctionRuleFunctionRuleCondition>
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    Priority double
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    Remark string
    Rule description, maximum support of 60 characters.
    RuleId string
    ID of the Function Rule.
    TeoFunctionRuleId string
    ID of the resource.
    TriggerType string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    ZoneId string
    ID of the site.
    FunctionId string
    ID of the Function.
    FunctionName string
    The name of the function.
    FunctionRuleConditions []TeoFunctionRuleFunctionRuleConditionArgs
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    Priority float64
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    Remark string
    Rule description, maximum support of 60 characters.
    RuleId string
    ID of the Function Rule.
    TeoFunctionRuleId string
    ID of the resource.
    TriggerType string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    ZoneId string
    ID of the site.
    function_id string
    ID of the Function.
    function_name string
    The name of the function.
    function_rule_conditions list(object)
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    priority number
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    remark string
    Rule description, maximum support of 60 characters.
    rule_id string
    ID of the Function Rule.
    teo_function_rule_id string
    ID of the resource.
    trigger_type string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    zone_id string
    ID of the site.
    functionId String
    ID of the Function.
    functionName String
    The name of the function.
    functionRuleConditions List<TeoFunctionRuleFunctionRuleCondition>
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    priority Double
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    remark String
    Rule description, maximum support of 60 characters.
    ruleId String
    ID of the Function Rule.
    teoFunctionRuleId String
    ID of the resource.
    triggerType String
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    zoneId String
    ID of the site.
    functionId string
    ID of the Function.
    functionName string
    The name of the function.
    functionRuleConditions TeoFunctionRuleFunctionRuleCondition[]
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    priority number
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    remark string
    Rule description, maximum support of 60 characters.
    ruleId string
    ID of the Function Rule.
    teoFunctionRuleId string
    ID of the resource.
    triggerType string
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    zoneId string
    ID of the site.
    function_id str
    ID of the Function.
    function_name str
    The name of the function.
    function_rule_conditions Sequence[TeoFunctionRuleFunctionRuleConditionArgs]
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    priority float
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    remark str
    Rule description, maximum support of 60 characters.
    rule_id str
    ID of the Function Rule.
    teo_function_rule_id str
    ID of the resource.
    trigger_type str
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    zone_id str
    ID of the site.
    functionId String
    ID of the Function.
    functionName String
    The name of the function.
    functionRuleConditions List<Property Map>
    The list of rule conditions, where the conditions are connected by an "OR" relationship.
    priority Number
    The priority of the function trigger rule. A higher numerical value indicates a higher priority.
    remark String
    Rule description, maximum support of 60 characters.
    ruleId String
    ID of the Function Rule.
    teoFunctionRuleId String
    ID of the resource.
    triggerType String
    Function selection configuration type. Valid values: direct, weight, region. Defaults to direct when not specified.
    zoneId String
    ID of the site.

    Supporting Types

    TeoFunctionRuleFunctionRuleCondition, TeoFunctionRuleFunctionRuleConditionArgs

    RuleConditions List<TeoFunctionRuleFunctionRuleConditionRuleCondition>
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
    RuleConditions []TeoFunctionRuleFunctionRuleConditionRuleCondition
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
    rule_conditions list(object)
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
    ruleConditions List<TeoFunctionRuleFunctionRuleConditionRuleCondition>
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
    ruleConditions TeoFunctionRuleFunctionRuleConditionRuleCondition[]
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
    rule_conditions Sequence[TeoFunctionRuleFunctionRuleConditionRuleCondition]
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.
    ruleConditions List<Property Map>
    For edge function trigger rule conditions, if all items in the list are satisfied, then the condition is considered fulfilled.

    TeoFunctionRuleFunctionRuleConditionRuleCondition, TeoFunctionRuleFunctionRuleConditionRuleConditionArgs

    Operator string
    Operator. Valid values:
    Target string
    The match type. Values:
    IgnoreCase bool
    Whether the parameter value is case insensitive. Default value: false.
    Name string
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    Values List<string>
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
    Operator string
    Operator. Valid values:
    Target string
    The match type. Values:
    IgnoreCase bool
    Whether the parameter value is case insensitive. Default value: false.
    Name string
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    Values []string
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
    operator string
    Operator. Valid values:
    target string
    The match type. Values:
    ignore_case bool
    Whether the parameter value is case insensitive. Default value: false.
    name string
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    values list(string)
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
    operator String
    Operator. Valid values:
    target String
    The match type. Values:
    ignoreCase Boolean
    Whether the parameter value is case insensitive. Default value: false.
    name String
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    values List<String>
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
    operator string
    Operator. Valid values:
    target string
    The match type. Values:
    ignoreCase boolean
    Whether the parameter value is case insensitive. Default value: false.
    name string
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    values string[]
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
    operator str
    Operator. Valid values:
    target str
    The match type. Values:
    ignore_case bool
    Whether the parameter value is case insensitive. Default value: false.
    name str
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    values Sequence[str]
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.
    operator String
    Operator. Valid values:
    target String
    The match type. Values:
    ignoreCase Boolean
    Whether the parameter value is case insensitive. Default value: false.
    name String
    The parameter name of the match type. This field is required only when Target=query_string/request_header.
    values List<String>
    The parameter value of the match type. It can be an empty string only when Target=query string/request header and Operator=exist/notexist.

    • When Target=extension, enter the file extension, such as "jpg" and "txt".
    • When Target=filename, enter the file name, such as "foo" in "foo.jpg".
    • When Target=all, it indicates any site request.
    • When Target=host, enter the host under the current site, such as "www.maxx55.com".
    • When Target=url, enter the partial URL path under the current site, such as "/example".
    • When Target=full_url, enter the complete URL under the current site. It must contain the HTTP protocol, host, and path, such as "https://www.maxx55.cn/example".
    • When Target=client_country, enter the ISO-3166 country/region code.
    • When Target=query_string, enter the value of the query string, such as "cn" and "1" in "lang=cn&version=1".
    • When Target=request_header, enter the HTTP request header value, such as "zh-CN,zh;q=0.9" in the "Accept-Language:zh-CN,zh;q=0.9" header.

    Import

    teo teo_function_rule can be imported using the zoneId#functionId#ruleId, e.g.

    $ pulumi import tencentcloud:index/teoFunctionRule:TeoFunctionRule example zone-3fkff38fyw8s#ef-m01xn26e#rule-yuvufj6h
    

    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.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.