1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TeoFunctionRule
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TeoFunctionRule

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a teo teo_function_rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const teoFunctionRule = new tencentcloud.TeoFunctionRule("teoFunctionRule", {
        functionId: "ef-txx7fnua",
        remark: "aaa",
        zoneId: "zone-2qtuhspy7cr6",
        functionRuleConditions: [
            {
                ruleConditions: [
                    {
                        ignoreCase: false,
                        name: undefined,
                        operator: "equal",
                        target: "host",
                        values: ["aaa.makn.cn"],
                    },
                    {
                        ignoreCase: false,
                        name: undefined,
                        operator: "equal",
                        target: "extension",
                        values: [".txt"],
                    },
                ],
            },
            {
                ruleConditions: [
                    {
                        ignoreCase: false,
                        name: undefined,
                        operator: "notequal",
                        target: "host",
                        values: ["aaa.makn.cn"],
                    },
                    {
                        ignoreCase: false,
                        name: undefined,
                        operator: "equal",
                        target: "extension",
                        values: [".png"],
                    },
                ],
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    teo_function_rule = tencentcloud.TeoFunctionRule("teoFunctionRule",
        function_id="ef-txx7fnua",
        remark="aaa",
        zone_id="zone-2qtuhspy7cr6",
        function_rule_conditions=[
            {
                "rule_conditions": [
                    {
                        "ignore_case": False,
                        "name": None,
                        "operator": "equal",
                        "target": "host",
                        "values": ["aaa.makn.cn"],
                    },
                    {
                        "ignore_case": False,
                        "name": None,
                        "operator": "equal",
                        "target": "extension",
                        "values": [".txt"],
                    },
                ],
            },
            {
                "rule_conditions": [
                    {
                        "ignore_case": False,
                        "name": None,
                        "operator": "notequal",
                        "target": "host",
                        "values": ["aaa.makn.cn"],
                    },
                    {
                        "ignore_case": False,
                        "name": None,
                        "operator": "equal",
                        "target": "extension",
                        "values": [".png"],
                    },
                ],
            },
        ])
    
    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, "teoFunctionRule", &tencentcloud.TeoFunctionRuleArgs{
    			FunctionId: pulumi.String("ef-txx7fnua"),
    			Remark:     pulumi.String("aaa"),
    			ZoneId:     pulumi.String("zone-2qtuhspy7cr6"),
    			FunctionRuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionArray{
    				&tencentcloud.TeoFunctionRuleFunctionRuleConditionArgs{
    					RuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArray{
    						&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
    							IgnoreCase: pulumi.Bool(false),
    							Name:       nil,
    							Operator:   pulumi.String("equal"),
    							Target:     pulumi.String("host"),
    							Values: pulumi.StringArray{
    								pulumi.String("aaa.makn.cn"),
    							},
    						},
    						&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
    							IgnoreCase: pulumi.Bool(false),
    							Name:       nil,
    							Operator:   pulumi.String("equal"),
    							Target:     pulumi.String("extension"),
    							Values: pulumi.StringArray{
    								pulumi.String(".txt"),
    							},
    						},
    					},
    				},
    				&tencentcloud.TeoFunctionRuleFunctionRuleConditionArgs{
    					RuleConditions: tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArray{
    						&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
    							IgnoreCase: pulumi.Bool(false),
    							Name:       nil,
    							Operator:   pulumi.String("notequal"),
    							Target:     pulumi.String("host"),
    							Values: pulumi.StringArray{
    								pulumi.String("aaa.makn.cn"),
    							},
    						},
    						&tencentcloud.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs{
    							IgnoreCase: pulumi.Bool(false),
    							Name:       nil,
    							Operator:   pulumi.String("equal"),
    							Target:     pulumi.String("extension"),
    							Values: pulumi.StringArray{
    								pulumi.String(".png"),
    							},
    						},
    					},
    				},
    			},
    		})
    		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 teoFunctionRule = new Tencentcloud.TeoFunctionRule("teoFunctionRule", new()
        {
            FunctionId = "ef-txx7fnua",
            Remark = "aaa",
            ZoneId = "zone-2qtuhspy7cr6",
            FunctionRuleConditions = new[]
            {
                new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionArgs
                {
                    RuleConditions = new[]
                    {
                        new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
                        {
                            IgnoreCase = false,
                            Name = null,
                            Operator = "equal",
                            Target = "host",
                            Values = new[]
                            {
                                "aaa.makn.cn",
                            },
                        },
                        new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
                        {
                            IgnoreCase = false,
                            Name = null,
                            Operator = "equal",
                            Target = "extension",
                            Values = new[]
                            {
                                ".txt",
                            },
                        },
                    },
                },
                new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionArgs
                {
                    RuleConditions = new[]
                    {
                        new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
                        {
                            IgnoreCase = false,
                            Name = null,
                            Operator = "notequal",
                            Target = "host",
                            Values = new[]
                            {
                                "aaa.makn.cn",
                            },
                        },
                        new Tencentcloud.Inputs.TeoFunctionRuleFunctionRuleConditionRuleConditionArgs
                        {
                            IgnoreCase = false,
                            Name = null,
                            Operator = "equal",
                            Target = "extension",
                            Values = new[]
                            {
                                ".png",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    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 teoFunctionRule = new TeoFunctionRule("teoFunctionRule", TeoFunctionRuleArgs.builder()
                .functionId("ef-txx7fnua")
                .remark("aaa")
                .zoneId("zone-2qtuhspy7cr6")
                .functionRuleConditions(            
                    TeoFunctionRuleFunctionRuleConditionArgs.builder()
                        .ruleConditions(                    
                            TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
                                .ignoreCase(false)
                                .name(null)
                                .operator("equal")
                                .target("host")
                                .values("aaa.makn.cn")
                                .build(),
                            TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
                                .ignoreCase(false)
                                .name(null)
                                .operator("equal")
                                .target("extension")
                                .values(".txt")
                                .build())
                        .build(),
                    TeoFunctionRuleFunctionRuleConditionArgs.builder()
                        .ruleConditions(                    
                            TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
                                .ignoreCase(false)
                                .name(null)
                                .operator("notequal")
                                .target("host")
                                .values("aaa.makn.cn")
                                .build(),
                            TeoFunctionRuleFunctionRuleConditionRuleConditionArgs.builder()
                                .ignoreCase(false)
                                .name(null)
                                .operator("equal")
                                .target("extension")
                                .values(".png")
                                .build())
                        .build())
                .build());
    
        }
    }
    
    resources:
      teoFunctionRule:
        type: tencentcloud:TeoFunctionRule
        properties:
          functionId: ef-txx7fnua
          remark: aaa
          zoneId: zone-2qtuhspy7cr6
          functionRuleConditions:
            - ruleConditions:
                - ignoreCase: false
                  name: null
                  operator: equal
                  target: host
                  values:
                    - aaa.makn.cn
                - ignoreCase: false
                  name: null
                  operator: equal
                  target: extension
                  values:
                    - .txt
            - ruleConditions:
                - ignoreCase: false
                  name: null
                  operator: notequal
                  target: host
                  values:
                    - aaa.makn.cn
                - ignoreCase: false
                  name: null
                  operator: equal
                  target: extension
                  values:
                    - .png
    

    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)
    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.
    
    

    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.
    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.
    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.
    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.
    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.
    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.

    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.
    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,
            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}
    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.
    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.
    ZoneId 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.
    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.
    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.
    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.
    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.
    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:
    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 id, e.g.

    $ pulumi import tencentcloud:index/teoFunctionRule:TeoFunctionRule teo_function_rule zone_id#function_id#rule_id
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack