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

tencentcloud.TeoRuleEngine

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 rule_engine

    NOTE: The current resource has been deprecated, please use tencentcloud.TeoL7AccRule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const rule1 = new tencentcloud.TeoRuleEngine("rule1", {
        zoneId: tencentcloud_teo_zone.example.id,
        ruleName: "test-rule",
        status: "disable",
        rules: [{
            actions: [{
                normalAction: {
                    action: "UpstreamUrlRedirect",
                    parameters: [
                        {
                            name: "Type",
                            values: ["Path"],
                        },
                        {
                            name: "Action",
                            values: ["addPrefix"],
                        },
                        {
                            name: "Value",
                            values: ["/sss"],
                        },
                    ],
                },
            }],
            ors: [
                {
                    ands: [
                        {
                            operator: "equal",
                            target: "host",
                            ignoreCase: false,
                            values: ["a.tf-teo-t.xyz"],
                        },
                        {
                            operator: "equal",
                            target: "extension",
                            ignoreCase: false,
                            values: ["jpg"],
                        },
                    ],
                },
                {
                    ands: [{
                        operator: "equal",
                        target: "filename",
                        ignoreCase: false,
                        values: ["test.txt"],
                    }],
                },
            ],
            subRules: [{
                tags: ["png"],
                rules: [{
                    ors: [
                        {
                            ands: [
                                {
                                    operator: "notequal",
                                    target: "host",
                                    ignoreCase: false,
                                    values: ["a.tf-teo-t.xyz"],
                                },
                                {
                                    operator: "equal",
                                    target: "extension",
                                    ignoreCase: false,
                                    values: ["png"],
                                },
                            ],
                        },
                        {
                            ands: [{
                                operator: "notequal",
                                target: "filename",
                                ignoreCase: false,
                                values: ["test.txt"],
                            }],
                        },
                    ],
                    actions: [{
                        normalAction: {
                            action: "UpstreamUrlRedirect",
                            parameters: [
                                {
                                    name: "Type",
                                    values: ["Path"],
                                },
                                {
                                    name: "Action",
                                    values: ["addPrefix"],
                                },
                                {
                                    name: "Value",
                                    values: ["/www"],
                                },
                            ],
                        },
                    }],
                }],
            }],
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    rule1 = tencentcloud.TeoRuleEngine("rule1",
        zone_id=tencentcloud_teo_zone["example"]["id"],
        rule_name="test-rule",
        status="disable",
        rules=[{
            "actions": [{
                "normal_action": {
                    "action": "UpstreamUrlRedirect",
                    "parameters": [
                        {
                            "name": "Type",
                            "values": ["Path"],
                        },
                        {
                            "name": "Action",
                            "values": ["addPrefix"],
                        },
                        {
                            "name": "Value",
                            "values": ["/sss"],
                        },
                    ],
                },
            }],
            "ors": [
                {
                    "ands": [
                        {
                            "operator": "equal",
                            "target": "host",
                            "ignore_case": False,
                            "values": ["a.tf-teo-t.xyz"],
                        },
                        {
                            "operator": "equal",
                            "target": "extension",
                            "ignore_case": False,
                            "values": ["jpg"],
                        },
                    ],
                },
                {
                    "ands": [{
                        "operator": "equal",
                        "target": "filename",
                        "ignore_case": False,
                        "values": ["test.txt"],
                    }],
                },
            ],
            "sub_rules": [{
                "tags": ["png"],
                "rules": [{
                    "ors": [
                        {
                            "ands": [
                                {
                                    "operator": "notequal",
                                    "target": "host",
                                    "ignore_case": False,
                                    "values": ["a.tf-teo-t.xyz"],
                                },
                                {
                                    "operator": "equal",
                                    "target": "extension",
                                    "ignore_case": False,
                                    "values": ["png"],
                                },
                            ],
                        },
                        {
                            "ands": [{
                                "operator": "notequal",
                                "target": "filename",
                                "ignore_case": False,
                                "values": ["test.txt"],
                            }],
                        },
                    ],
                    "actions": [{
                        "normal_action": {
                            "action": "UpstreamUrlRedirect",
                            "parameters": [
                                {
                                    "name": "Type",
                                    "values": ["Path"],
                                },
                                {
                                    "name": "Action",
                                    "values": ["addPrefix"],
                                },
                                {
                                    "name": "Value",
                                    "values": ["/www"],
                                },
                            ],
                        },
                    }],
                }],
            }],
        }])
    
    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.NewTeoRuleEngine(ctx, "rule1", &tencentcloud.TeoRuleEngineArgs{
    			ZoneId:   pulumi.Any(tencentcloud_teo_zone.Example.Id),
    			RuleName: pulumi.String("test-rule"),
    			Status:   pulumi.String("disable"),
    			Rules: tencentcloud.TeoRuleEngineRuleArray{
    				&tencentcloud.TeoRuleEngineRuleArgs{
    					Actions: tencentcloud.TeoRuleEngineRuleActionArray{
    						&tencentcloud.TeoRuleEngineRuleActionArgs{
    							NormalAction: &tencentcloud.TeoRuleEngineRuleActionNormalActionArgs{
    								Action: pulumi.String("UpstreamUrlRedirect"),
    								Parameters: tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArray{
    									&tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArgs{
    										Name: pulumi.String("Type"),
    										Values: pulumi.StringArray{
    											pulumi.String("Path"),
    										},
    									},
    									&tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArgs{
    										Name: pulumi.String("Action"),
    										Values: pulumi.StringArray{
    											pulumi.String("addPrefix"),
    										},
    									},
    									&tencentcloud.TeoRuleEngineRuleActionNormalActionParameterArgs{
    										Name: pulumi.String("Value"),
    										Values: pulumi.StringArray{
    											pulumi.String("/sss"),
    										},
    									},
    								},
    							},
    						},
    					},
    					Ors: tencentcloud.TeoRuleEngineRuleOrArray{
    						&tencentcloud.TeoRuleEngineRuleOrArgs{
    							Ands: tencentcloud.TeoRuleEngineRuleOrAndArray{
    								&tencentcloud.TeoRuleEngineRuleOrAndArgs{
    									Operator:   pulumi.String("equal"),
    									Target:     pulumi.String("host"),
    									IgnoreCase: pulumi.Bool(false),
    									Values: pulumi.StringArray{
    										pulumi.String("a.tf-teo-t.xyz"),
    									},
    								},
    								&tencentcloud.TeoRuleEngineRuleOrAndArgs{
    									Operator:   pulumi.String("equal"),
    									Target:     pulumi.String("extension"),
    									IgnoreCase: pulumi.Bool(false),
    									Values: pulumi.StringArray{
    										pulumi.String("jpg"),
    									},
    								},
    							},
    						},
    						&tencentcloud.TeoRuleEngineRuleOrArgs{
    							Ands: tencentcloud.TeoRuleEngineRuleOrAndArray{
    								&tencentcloud.TeoRuleEngineRuleOrAndArgs{
    									Operator:   pulumi.String("equal"),
    									Target:     pulumi.String("filename"),
    									IgnoreCase: pulumi.Bool(false),
    									Values: pulumi.StringArray{
    										pulumi.String("test.txt"),
    									},
    								},
    							},
    						},
    					},
    					SubRules: tencentcloud.TeoRuleEngineRuleSubRuleArray{
    						&tencentcloud.TeoRuleEngineRuleSubRuleArgs{
    							Tags: pulumi.StringArray{
    								pulumi.String("png"),
    							},
    							Rules: tencentcloud.TeoRuleEngineRuleSubRuleRuleArray{
    								&tencentcloud.TeoRuleEngineRuleSubRuleRuleArgs{
    									Ors: tencentcloud.TeoRuleEngineRuleSubRuleRuleOrArray{
    										&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrArgs{
    											Ands: tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArray{
    												&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArgs{
    													Operator:   pulumi.String("notequal"),
    													Target:     pulumi.String("host"),
    													IgnoreCase: pulumi.Bool(false),
    													Values: pulumi.StringArray{
    														pulumi.String("a.tf-teo-t.xyz"),
    													},
    												},
    												&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArgs{
    													Operator:   pulumi.String("equal"),
    													Target:     pulumi.String("extension"),
    													IgnoreCase: pulumi.Bool(false),
    													Values: pulumi.StringArray{
    														pulumi.String("png"),
    													},
    												},
    											},
    										},
    										&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrArgs{
    											Ands: tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArray{
    												&tencentcloud.TeoRuleEngineRuleSubRuleRuleOrAndArgs{
    													Operator:   pulumi.String("notequal"),
    													Target:     pulumi.String("filename"),
    													IgnoreCase: pulumi.Bool(false),
    													Values: pulumi.StringArray{
    														pulumi.String("test.txt"),
    													},
    												},
    											},
    										},
    									},
    									Actions: tencentcloud.TeoRuleEngineRuleSubRuleRuleActionArray{
    										&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionArgs{
    											NormalAction: &tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs{
    												Action: pulumi.String("UpstreamUrlRedirect"),
    												Parameters: tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArray{
    													&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs{
    														Name: pulumi.String("Type"),
    														Values: pulumi.StringArray{
    															pulumi.String("Path"),
    														},
    													},
    													&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs{
    														Name: pulumi.String("Action"),
    														Values: pulumi.StringArray{
    															pulumi.String("addPrefix"),
    														},
    													},
    													&tencentcloud.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs{
    														Name: pulumi.String("Value"),
    														Values: pulumi.StringArray{
    															pulumi.String("/www"),
    														},
    													},
    												},
    											},
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    		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 rule1 = new Tencentcloud.TeoRuleEngine("rule1", new()
        {
            ZoneId = tencentcloud_teo_zone.Example.Id,
            RuleName = "test-rule",
            Status = "disable",
            Rules = new[]
            {
                new Tencentcloud.Inputs.TeoRuleEngineRuleArgs
                {
                    Actions = new[]
                    {
                        new Tencentcloud.Inputs.TeoRuleEngineRuleActionArgs
                        {
                            NormalAction = new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionArgs
                            {
                                Action = "UpstreamUrlRedirect",
                                Parameters = new[]
                                {
                                    new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionParameterArgs
                                    {
                                        Name = "Type",
                                        Values = new[]
                                        {
                                            "Path",
                                        },
                                    },
                                    new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionParameterArgs
                                    {
                                        Name = "Action",
                                        Values = new[]
                                        {
                                            "addPrefix",
                                        },
                                    },
                                    new Tencentcloud.Inputs.TeoRuleEngineRuleActionNormalActionParameterArgs
                                    {
                                        Name = "Value",
                                        Values = new[]
                                        {
                                            "/sss",
                                        },
                                    },
                                },
                            },
                        },
                    },
                    Ors = new[]
                    {
                        new Tencentcloud.Inputs.TeoRuleEngineRuleOrArgs
                        {
                            Ands = new[]
                            {
                                new Tencentcloud.Inputs.TeoRuleEngineRuleOrAndArgs
                                {
                                    Operator = "equal",
                                    Target = "host",
                                    IgnoreCase = false,
                                    Values = new[]
                                    {
                                        "a.tf-teo-t.xyz",
                                    },
                                },
                                new Tencentcloud.Inputs.TeoRuleEngineRuleOrAndArgs
                                {
                                    Operator = "equal",
                                    Target = "extension",
                                    IgnoreCase = false,
                                    Values = new[]
                                    {
                                        "jpg",
                                    },
                                },
                            },
                        },
                        new Tencentcloud.Inputs.TeoRuleEngineRuleOrArgs
                        {
                            Ands = new[]
                            {
                                new Tencentcloud.Inputs.TeoRuleEngineRuleOrAndArgs
                                {
                                    Operator = "equal",
                                    Target = "filename",
                                    IgnoreCase = false,
                                    Values = new[]
                                    {
                                        "test.txt",
                                    },
                                },
                            },
                        },
                    },
                    SubRules = new[]
                    {
                        new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleArgs
                        {
                            Tags = new[]
                            {
                                "png",
                            },
                            Rules = new[]
                            {
                                new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleArgs
                                {
                                    Ors = new[]
                                    {
                                        new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrArgs
                                        {
                                            Ands = new[]
                                            {
                                                new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrAndArgs
                                                {
                                                    Operator = "notequal",
                                                    Target = "host",
                                                    IgnoreCase = false,
                                                    Values = new[]
                                                    {
                                                        "a.tf-teo-t.xyz",
                                                    },
                                                },
                                                new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrAndArgs
                                                {
                                                    Operator = "equal",
                                                    Target = "extension",
                                                    IgnoreCase = false,
                                                    Values = new[]
                                                    {
                                                        "png",
                                                    },
                                                },
                                            },
                                        },
                                        new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrArgs
                                        {
                                            Ands = new[]
                                            {
                                                new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleOrAndArgs
                                                {
                                                    Operator = "notequal",
                                                    Target = "filename",
                                                    IgnoreCase = false,
                                                    Values = new[]
                                                    {
                                                        "test.txt",
                                                    },
                                                },
                                            },
                                        },
                                    },
                                    Actions = new[]
                                    {
                                        new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionArgs
                                        {
                                            NormalAction = new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs
                                            {
                                                Action = "UpstreamUrlRedirect",
                                                Parameters = new[]
                                                {
                                                    new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
                                                    {
                                                        Name = "Type",
                                                        Values = new[]
                                                        {
                                                            "Path",
                                                        },
                                                    },
                                                    new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
                                                    {
                                                        Name = "Action",
                                                        Values = new[]
                                                        {
                                                            "addPrefix",
                                                        },
                                                    },
                                                    new Tencentcloud.Inputs.TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs
                                                    {
                                                        Name = "Value",
                                                        Values = new[]
                                                        {
                                                            "/www",
                                                        },
                                                    },
                                                },
                                            },
                                        },
                                    },
                                },
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoRuleEngine;
    import com.pulumi.tencentcloud.TeoRuleEngineArgs;
    import com.pulumi.tencentcloud.inputs.TeoRuleEngineRuleArgs;
    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 rule1 = new TeoRuleEngine("rule1", TeoRuleEngineArgs.builder()
                .zoneId(tencentcloud_teo_zone.example().id())
                .ruleName("test-rule")
                .status("disable")
                .rules(TeoRuleEngineRuleArgs.builder()
                    .actions(TeoRuleEngineRuleActionArgs.builder()
                        .normalAction(TeoRuleEngineRuleActionNormalActionArgs.builder()
                            .action("UpstreamUrlRedirect")
                            .parameters(                        
                                TeoRuleEngineRuleActionNormalActionParameterArgs.builder()
                                    .name("Type")
                                    .values("Path")
                                    .build(),
                                TeoRuleEngineRuleActionNormalActionParameterArgs.builder()
                                    .name("Action")
                                    .values("addPrefix")
                                    .build(),
                                TeoRuleEngineRuleActionNormalActionParameterArgs.builder()
                                    .name("Value")
                                    .values("/sss")
                                    .build())
                            .build())
                        .build())
                    .ors(                
                        TeoRuleEngineRuleOrArgs.builder()
                            .ands(                        
                                TeoRuleEngineRuleOrAndArgs.builder()
                                    .operator("equal")
                                    .target("host")
                                    .ignoreCase(false)
                                    .values("a.tf-teo-t.xyz")
                                    .build(),
                                TeoRuleEngineRuleOrAndArgs.builder()
                                    .operator("equal")
                                    .target("extension")
                                    .ignoreCase(false)
                                    .values("jpg")
                                    .build())
                            .build(),
                        TeoRuleEngineRuleOrArgs.builder()
                            .ands(TeoRuleEngineRuleOrAndArgs.builder()
                                .operator("equal")
                                .target("filename")
                                .ignoreCase(false)
                                .values("test.txt")
                                .build())
                            .build())
                    .subRules(TeoRuleEngineRuleSubRuleArgs.builder()
                        .tags("png")
                        .rules(TeoRuleEngineRuleSubRuleRuleArgs.builder()
                            .ors(                        
                                TeoRuleEngineRuleSubRuleRuleOrArgs.builder()
                                    .ands(                                
                                        TeoRuleEngineRuleSubRuleRuleOrAndArgs.builder()
                                            .operator("notequal")
                                            .target("host")
                                            .ignoreCase(false)
                                            .values("a.tf-teo-t.xyz")
                                            .build(),
                                        TeoRuleEngineRuleSubRuleRuleOrAndArgs.builder()
                                            .operator("equal")
                                            .target("extension")
                                            .ignoreCase(false)
                                            .values("png")
                                            .build())
                                    .build(),
                                TeoRuleEngineRuleSubRuleRuleOrArgs.builder()
                                    .ands(TeoRuleEngineRuleSubRuleRuleOrAndArgs.builder()
                                        .operator("notequal")
                                        .target("filename")
                                        .ignoreCase(false)
                                        .values("test.txt")
                                        .build())
                                    .build())
                            .actions(TeoRuleEngineRuleSubRuleRuleActionArgs.builder()
                                .normalAction(TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs.builder()
                                    .action("UpstreamUrlRedirect")
                                    .parameters(                                
                                        TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs.builder()
                                            .name("Type")
                                            .values("Path")
                                            .build(),
                                        TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs.builder()
                                            .name("Action")
                                            .values("addPrefix")
                                            .build(),
                                        TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs.builder()
                                            .name("Value")
                                            .values("/www")
                                            .build())
                                    .build())
                                .build())
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      rule1:
        type: tencentcloud:TeoRuleEngine
        properties:
          zoneId: ${tencentcloud_teo_zone.example.id}
          ruleName: test-rule
          status: disable
          rules:
            - actions:
                - normalAction:
                    action: UpstreamUrlRedirect
                    parameters:
                      - name: Type
                        values:
                          - Path
                      - name: Action
                        values:
                          - addPrefix
                      - name: Value
                        values:
                          - /sss
              ors:
                - ands:
                    - operator: equal
                      target: host
                      ignoreCase: false
                      values:
                        - a.tf-teo-t.xyz
                    - operator: equal
                      target: extension
                      ignoreCase: false
                      values:
                        - jpg
                - ands:
                    - operator: equal
                      target: filename
                      ignoreCase: false
                      values:
                        - test.txt
              subRules:
                - tags:
                    - png
                  rules:
                    - ors:
                        - ands:
                            - operator: notequal
                              target: host
                              ignoreCase: false
                              values:
                                - a.tf-teo-t.xyz
                            - operator: equal
                              target: extension
                              ignoreCase: false
                              values:
                                - png
                        - ands:
                            - operator: notequal
                              target: filename
                              ignoreCase: false
                              values:
                                - test.txt
                      actions:
                        - normalAction:
                            action: UpstreamUrlRedirect
                            parameters:
                              - name: Type
                                values:
                                  - Path
                              - name: Action
                                values:
                                  - addPrefix
                              - name: Value
                                values:
                                  - /www
    

    Create TeoRuleEngine Resource

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

    Constructor syntax

    new TeoRuleEngine(name: string, args: TeoRuleEngineArgs, opts?: CustomResourceOptions);
    @overload
    def TeoRuleEngine(resource_name: str,
                      args: TeoRuleEngineArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoRuleEngine(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      rule_name: Optional[str] = None,
                      rules: Optional[Sequence[TeoRuleEngineRuleArgs]] = None,
                      status: Optional[str] = None,
                      zone_id: Optional[str] = None,
                      tags: Optional[Sequence[str]] = None,
                      teo_rule_engine_id: Optional[str] = None)
    func NewTeoRuleEngine(ctx *Context, name string, args TeoRuleEngineArgs, opts ...ResourceOption) (*TeoRuleEngine, error)
    public TeoRuleEngine(string name, TeoRuleEngineArgs args, CustomResourceOptions? opts = null)
    public TeoRuleEngine(String name, TeoRuleEngineArgs args)
    public TeoRuleEngine(String name, TeoRuleEngineArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoRuleEngine
    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 TeoRuleEngineArgs
    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 TeoRuleEngineArgs
    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 TeoRuleEngineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoRuleEngineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoRuleEngineArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    RuleName string
    The rule name (1 to 255 characters).
    Rules List<TeoRuleEngineRule>
    Rule items list.
    Status string
    Rule status. Values:
    ZoneId string
    ID of the site.
    Tags List<string>
    rule tag list.
    TeoRuleEngineId string
    ID of the resource.
    RuleName string
    The rule name (1 to 255 characters).
    Rules []TeoRuleEngineRuleArgs
    Rule items list.
    Status string
    Rule status. Values:
    ZoneId string
    ID of the site.
    Tags []string
    rule tag list.
    TeoRuleEngineId string
    ID of the resource.
    ruleName String
    The rule name (1 to 255 characters).
    rules List<TeoRuleEngineRule>
    Rule items list.
    status String
    Rule status. Values:
    zoneId String
    ID of the site.
    tags List<String>
    rule tag list.
    teoRuleEngineId String
    ID of the resource.
    ruleName string
    The rule name (1 to 255 characters).
    rules TeoRuleEngineRule[]
    Rule items list.
    status string
    Rule status. Values:
    zoneId string
    ID of the site.
    tags string[]
    rule tag list.
    teoRuleEngineId string
    ID of the resource.
    rule_name str
    The rule name (1 to 255 characters).
    rules Sequence[TeoRuleEngineRuleArgs]
    Rule items list.
    status str
    Rule status. Values:
    zone_id str
    ID of the site.
    tags Sequence[str]
    rule tag list.
    teo_rule_engine_id str
    ID of the resource.
    ruleName String
    The rule name (1 to 255 characters).
    rules List<Property Map>
    Rule items list.
    status String
    Rule status. Values:
    zoneId String
    ID of the site.
    tags List<String>
    rule tag list.
    teoRuleEngineId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    RulePriority double
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    RulePriority float64
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    rulePriority Double
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    Rule ID.
    rulePriority number
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    Rule ID.
    rule_priority float
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    rulePriority Number
    Rule priority, the larger the value, the higher the priority, the minimum is 1.

    Look up Existing TeoRuleEngine Resource

    Get an existing TeoRuleEngine 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?: TeoRuleEngineState, opts?: CustomResourceOptions): TeoRuleEngine
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            rule_id: Optional[str] = None,
            rule_name: Optional[str] = None,
            rule_priority: Optional[float] = None,
            rules: Optional[Sequence[TeoRuleEngineRuleArgs]] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            teo_rule_engine_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoRuleEngine
    func GetTeoRuleEngine(ctx *Context, name string, id IDInput, state *TeoRuleEngineState, opts ...ResourceOption) (*TeoRuleEngine, error)
    public static TeoRuleEngine Get(string name, Input<string> id, TeoRuleEngineState? state, CustomResourceOptions? opts = null)
    public static TeoRuleEngine get(String name, Output<String> id, TeoRuleEngineState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoRuleEngine    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:
    RuleId string
    Rule ID.
    RuleName string
    The rule name (1 to 255 characters).
    RulePriority double
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    Rules List<TeoRuleEngineRule>
    Rule items list.
    Status string
    Rule status. Values:
    Tags List<string>
    rule tag list.
    TeoRuleEngineId string
    ID of the resource.
    ZoneId string
    ID of the site.
    RuleId string
    Rule ID.
    RuleName string
    The rule name (1 to 255 characters).
    RulePriority float64
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    Rules []TeoRuleEngineRuleArgs
    Rule items list.
    Status string
    Rule status. Values:
    Tags []string
    rule tag list.
    TeoRuleEngineId string
    ID of the resource.
    ZoneId string
    ID of the site.
    ruleId String
    Rule ID.
    ruleName String
    The rule name (1 to 255 characters).
    rulePriority Double
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    rules List<TeoRuleEngineRule>
    Rule items list.
    status String
    Rule status. Values:
    tags List<String>
    rule tag list.
    teoRuleEngineId String
    ID of the resource.
    zoneId String
    ID of the site.
    ruleId string
    Rule ID.
    ruleName string
    The rule name (1 to 255 characters).
    rulePriority number
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    rules TeoRuleEngineRule[]
    Rule items list.
    status string
    Rule status. Values:
    tags string[]
    rule tag list.
    teoRuleEngineId string
    ID of the resource.
    zoneId string
    ID of the site.
    rule_id str
    Rule ID.
    rule_name str
    The rule name (1 to 255 characters).
    rule_priority float
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    rules Sequence[TeoRuleEngineRuleArgs]
    Rule items list.
    status str
    Rule status. Values:
    tags Sequence[str]
    rule tag list.
    teo_rule_engine_id str
    ID of the resource.
    zone_id str
    ID of the site.
    ruleId String
    Rule ID.
    ruleName String
    The rule name (1 to 255 characters).
    rulePriority Number
    Rule priority, the larger the value, the higher the priority, the minimum is 1.
    rules List<Property Map>
    Rule items list.
    status String
    Rule status. Values:
    tags List<String>
    rule tag list.
    teoRuleEngineId String
    ID of the resource.
    zoneId String
    ID of the site.

    Supporting Types

    TeoRuleEngineRule, TeoRuleEngineRuleArgs

    Ors List<TeoRuleEngineRuleOr>
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    Actions List<TeoRuleEngineRuleAction>
    Feature to be executed.
    SubRules List<TeoRuleEngineRuleSubRule>
    The nested rule.
    Ors []TeoRuleEngineRuleOr
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    Actions []TeoRuleEngineRuleAction
    Feature to be executed.
    SubRules []TeoRuleEngineRuleSubRule
    The nested rule.
    ors List<TeoRuleEngineRuleOr>
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions List<TeoRuleEngineRuleAction>
    Feature to be executed.
    subRules List<TeoRuleEngineRuleSubRule>
    The nested rule.
    ors TeoRuleEngineRuleOr[]
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions TeoRuleEngineRuleAction[]
    Feature to be executed.
    subRules TeoRuleEngineRuleSubRule[]
    The nested rule.
    ors Sequence[TeoRuleEngineRuleOr]
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions Sequence[TeoRuleEngineRuleAction]
    Feature to be executed.
    sub_rules Sequence[TeoRuleEngineRuleSubRule]
    The nested rule.
    ors List<Property Map>
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions List<Property Map>
    Feature to be executed.
    subRules List<Property Map>
    The nested rule.

    TeoRuleEngineRuleAction, TeoRuleEngineRuleActionArgs

    CodeAction TeoRuleEngineRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    NormalAction TeoRuleEngineRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    RewriteAction TeoRuleEngineRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    CodeAction TeoRuleEngineRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    NormalAction TeoRuleEngineRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    RewriteAction TeoRuleEngineRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    codeAction TeoRuleEngineRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normalAction TeoRuleEngineRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewriteAction TeoRuleEngineRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    codeAction TeoRuleEngineRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normalAction TeoRuleEngineRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewriteAction TeoRuleEngineRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    code_action TeoRuleEngineRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normal_action TeoRuleEngineRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewrite_action TeoRuleEngineRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    codeAction Property Map
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normalAction Property Map
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewriteAction Property Map
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.

    TeoRuleEngineRuleActionCodeAction, TeoRuleEngineRuleActionCodeActionArgs

    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters List<TeoRuleEngineRuleActionCodeActionParameter>
    Operation parameter.
    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters []TeoRuleEngineRuleActionCodeActionParameter
    Operation parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<TeoRuleEngineRuleActionCodeActionParameter>
    Operation parameter.
    action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters TeoRuleEngineRuleActionCodeActionParameter[]
    Operation parameter.
    action str
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters Sequence[TeoRuleEngineRuleActionCodeActionParameter]
    Operation parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<Property Map>
    Operation parameter.

    TeoRuleEngineRuleActionCodeActionParameter, TeoRuleEngineRuleActionCodeActionParameterArgs

    Name string
    Parameter name.
    StatusCode double
    The status code.
    Values List<string>
    Parameter value.
    Name string
    Parameter name.
    StatusCode float64
    The status code.
    Values []string
    Parameter value.
    name String
    Parameter name.
    statusCode Double
    The status code.
    values List<String>
    Parameter value.
    name string
    Parameter name.
    statusCode number
    The status code.
    values string[]
    Parameter value.
    name str
    Parameter name.
    status_code float
    The status code.
    values Sequence[str]
    Parameter value.
    name String
    Parameter name.
    statusCode Number
    The status code.
    values List<String>
    Parameter value.

    TeoRuleEngineRuleActionNormalAction, TeoRuleEngineRuleActionNormalActionArgs

    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters List<TeoRuleEngineRuleActionNormalActionParameter>
    Parameter.
    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters []TeoRuleEngineRuleActionNormalActionParameter
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<TeoRuleEngineRuleActionNormalActionParameter>
    Parameter.
    action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters TeoRuleEngineRuleActionNormalActionParameter[]
    Parameter.
    action str
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters Sequence[TeoRuleEngineRuleActionNormalActionParameter]
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<Property Map>
    Parameter.

    TeoRuleEngineRuleActionNormalActionParameter, TeoRuleEngineRuleActionNormalActionParameterArgs

    Name string
    Parameter name.
    Values List<string>
    Parameter value.
    Name string
    Parameter name.
    Values []string
    Parameter value.
    name String
    Parameter name.
    values List<String>
    Parameter value.
    name string
    Parameter name.
    values string[]
    Parameter value.
    name str
    Parameter name.
    values Sequence[str]
    Parameter value.
    name String
    Parameter name.
    values List<String>
    Parameter value.

    TeoRuleEngineRuleActionRewriteAction, TeoRuleEngineRuleActionRewriteActionArgs

    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters List<TeoRuleEngineRuleActionRewriteActionParameter>
    Parameter.
    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters []TeoRuleEngineRuleActionRewriteActionParameter
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<TeoRuleEngineRuleActionRewriteActionParameter>
    Parameter.
    action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters TeoRuleEngineRuleActionRewriteActionParameter[]
    Parameter.
    action str
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters Sequence[TeoRuleEngineRuleActionRewriteActionParameter]
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<Property Map>
    Parameter.

    TeoRuleEngineRuleActionRewriteActionParameter, TeoRuleEngineRuleActionRewriteActionParameterArgs

    Action string
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    Name string
    Parameter name.
    Values List<string>
    Parameter value.
    Action string
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    Name string
    Parameter name.
    Values []string
    Parameter value.
    action String
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name String
    Parameter name.
    values List<String>
    Parameter value.
    action string
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name string
    Parameter name.
    values string[]
    Parameter value.
    action str
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name str
    Parameter name.
    values Sequence[str]
    Parameter value.
    action String
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name String
    Parameter name.
    values List<String>
    Parameter value.

    TeoRuleEngineRuleOr, TeoRuleEngineRuleOrArgs

    Ands List<TeoRuleEngineRuleOrAnd>
    Rule engine condition. This condition will be considered met if all items in the array are met.
    Ands []TeoRuleEngineRuleOrAnd
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands List<TeoRuleEngineRuleOrAnd>
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands TeoRuleEngineRuleOrAnd[]
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands Sequence[TeoRuleEngineRuleOrAnd]
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands List<Property Map>
    Rule engine condition. This condition will be considered met if all items in the array are met.

    TeoRuleEngineRuleOrAnd, TeoRuleEngineRuleOrAndArgs

    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.

    TeoRuleEngineRuleSubRule, TeoRuleEngineRuleSubRuleArgs

    Rules List<TeoRuleEngineRuleSubRuleRule>
    Nested rule settings.
    Tags List<string>
    Tag of the rule.
    Rules []TeoRuleEngineRuleSubRuleRule
    Nested rule settings.
    Tags []string
    Tag of the rule.
    rules List<TeoRuleEngineRuleSubRuleRule>
    Nested rule settings.
    tags List<String>
    Tag of the rule.
    rules TeoRuleEngineRuleSubRuleRule[]
    Nested rule settings.
    tags string[]
    Tag of the rule.
    rules Sequence[TeoRuleEngineRuleSubRuleRule]
    Nested rule settings.
    tags Sequence[str]
    Tag of the rule.
    rules List<Property Map>
    Nested rule settings.
    tags List<String>
    Tag of the rule.

    TeoRuleEngineRuleSubRuleRule, TeoRuleEngineRuleSubRuleRuleArgs

    Ors List<TeoRuleEngineRuleSubRuleRuleOr>
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    Actions List<TeoRuleEngineRuleSubRuleRuleAction>
    Feature to be executed.
    Ors []TeoRuleEngineRuleSubRuleRuleOr
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    Actions []TeoRuleEngineRuleSubRuleRuleAction
    Feature to be executed.
    ors List<TeoRuleEngineRuleSubRuleRuleOr>
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions List<TeoRuleEngineRuleSubRuleRuleAction>
    Feature to be executed.
    ors TeoRuleEngineRuleSubRuleRuleOr[]
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions TeoRuleEngineRuleSubRuleRuleAction[]
    Feature to be executed.
    ors Sequence[TeoRuleEngineRuleSubRuleRuleOr]
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions Sequence[TeoRuleEngineRuleSubRuleRuleAction]
    Feature to be executed.
    ors List<Property Map>
    OR Conditions list of the rule. Rule would be triggered if any of the condition is true.
    actions List<Property Map>
    Feature to be executed.

    TeoRuleEngineRuleSubRuleRuleAction, TeoRuleEngineRuleSubRuleRuleActionArgs

    CodeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    NormalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    RewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    CodeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    NormalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    RewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    codeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    codeAction TeoRuleEngineRuleSubRuleRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normalAction TeoRuleEngineRuleSubRuleRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewriteAction TeoRuleEngineRuleSubRuleRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    code_action TeoRuleEngineRuleSubRuleRuleActionCodeAction
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normal_action TeoRuleEngineRuleSubRuleRuleActionNormalAction
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewrite_action TeoRuleEngineRuleSubRuleRuleActionRewriteAction
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.
    codeAction Property Map
    Feature operation with a status code. Features of this type include:

    • ErrorPage: Custom error page.
    • StatusCodeCache: Status code cache TTL. Note: This field may return null, indicating that no valid values can be obtained.
    normalAction Property Map
    Common operation. Values:

    • AccessUrlRedirect: Access URL rewrite.
    • UpstreamUrlRedirect: Origin-pull URL rewrite.
    • QUIC: QUIC.
    • WebSocket: WebSocket.
    • VideoSeek: Video dragging.
    • Authentication: Token authentication.
    • CacheKey: Custom cache key.
    • Cache: Node cache TTL.
    • MaxAge: Browser cache TTL.
    • OfflineCache: Offline cache.
    • SmartRouting: Smart acceleration.
    • RangeOriginPull: Range GETs.
    • UpstreamHttp2: HTTP/2 forwarding.
    • HostHeader: Host header rewrite.
    • ForceRedirect: Force HTTPS.
    • OriginPullProtocol: Origin-pull HTTPS.
    • CachePrefresh: Cache prefresh.
    • Compression: Smart compression.
    • Hsts.
    • ClientIpHeader.
    • SslTlsSecureConf.
    • OcspStapling.
    • Http2: HTTP/2 access.
    • UpstreamFollowRedirect: Follow origin redirect.
    • Origin: Origin. Note: This field may return null, indicating that no valid value can be obtained.
    rewriteAction Property Map
    Feature operation with a request/response header. Features of this type include:

    • RequestHeader: HTTP request header modification.
    • ResponseHeader: HTTP response header modification. Note: This field may return null, indicating that no valid values can be obtained.

    TeoRuleEngineRuleSubRuleRuleActionCodeAction, TeoRuleEngineRuleSubRuleRuleActionCodeActionArgs

    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters List<TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter>
    Operation parameter.
    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters []TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter
    Operation parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter>
    Operation parameter.
    action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter[]
    Operation parameter.
    action str
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters Sequence[TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter]
    Operation parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<Property Map>
    Operation parameter.

    TeoRuleEngineRuleSubRuleRuleActionCodeActionParameter, TeoRuleEngineRuleSubRuleRuleActionCodeActionParameterArgs

    Name string
    Parameter name.
    StatusCode double
    The status code.
    Values List<string>
    Parameter value.
    Name string
    Parameter name.
    StatusCode float64
    The status code.
    Values []string
    Parameter value.
    name String
    Parameter name.
    statusCode Double
    The status code.
    values List<String>
    Parameter value.
    name string
    Parameter name.
    statusCode number
    The status code.
    values string[]
    Parameter value.
    name str
    Parameter name.
    status_code float
    The status code.
    values Sequence[str]
    Parameter value.
    name String
    Parameter name.
    statusCode Number
    The status code.
    values List<String>
    Parameter value.

    TeoRuleEngineRuleSubRuleRuleActionNormalAction, TeoRuleEngineRuleSubRuleRuleActionNormalActionArgs

    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters List<TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter>
    Parameter.
    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters []TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter>
    Parameter.
    action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter[]
    Parameter.
    action str
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters Sequence[TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter]
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<Property Map>
    Parameter.

    TeoRuleEngineRuleSubRuleRuleActionNormalActionParameter, TeoRuleEngineRuleSubRuleRuleActionNormalActionParameterArgs

    Name string
    Parameter name.
    Values List<string>
    Parameter value.
    Name string
    Parameter name.
    Values []string
    Parameter value.
    name String
    Parameter name.
    values List<String>
    Parameter value.
    name string
    Parameter name.
    values string[]
    Parameter value.
    name str
    Parameter name.
    values Sequence[str]
    Parameter value.
    name String
    Parameter name.
    values List<String>
    Parameter value.

    TeoRuleEngineRuleSubRuleRuleActionRewriteAction, TeoRuleEngineRuleSubRuleRuleActionRewriteActionArgs

    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters List<TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter>
    Parameter.
    Action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    Parameters []TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter>
    Parameter.
    action string
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter[]
    Parameter.
    action str
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters Sequence[TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter]
    Parameter.
    action String
    Feature name. You can call the DescribeRulesSetting API to view the requirements for entering the feature name.
    parameters List<Property Map>
    Parameter.

    TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameter, TeoRuleEngineRuleSubRuleRuleActionRewriteActionParameterArgs

    Action string
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    Name string
    Parameter name.
    Values List<string>
    Parameter value.
    Action string
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    Name string
    Parameter name.
    Values []string
    Parameter value.
    action String
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name String
    Parameter name.
    values List<String>
    Parameter value.
    action string
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name string
    Parameter name.
    values string[]
    Parameter value.
    action str
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name str
    Parameter name.
    values Sequence[str]
    Parameter value.
    action String
    Feature parameter name. You can call the DescribeRulesSetting API to view the requirements for entering the parameter name, which has three values:

    • add: Add the HTTP header.
    • set: Rewrite the HTTP header.
    • del: Delete the HTTP header.
    name String
    Parameter name.
    values List<String>
    Parameter value.

    TeoRuleEngineRuleSubRuleRuleOr, TeoRuleEngineRuleSubRuleRuleOrArgs

    Ands List<TeoRuleEngineRuleSubRuleRuleOrAnd>
    Rule engine condition. This condition will be considered met if all items in the array are met.
    Ands []TeoRuleEngineRuleSubRuleRuleOrAnd
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands List<TeoRuleEngineRuleSubRuleRuleOrAnd>
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands TeoRuleEngineRuleSubRuleRuleOrAnd[]
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands Sequence[TeoRuleEngineRuleSubRuleRuleOrAnd]
    Rule engine condition. This condition will be considered met if all items in the array are met.
    ands List<Property Map>
    Rule engine condition. This condition will be considered met if all items in the array are met.

    TeoRuleEngineRuleSubRuleRuleOrAnd, TeoRuleEngineRuleSubRuleRuleOrAndArgs

    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 rule_engine can be imported using the id#rule_id, e.g.

    $ pulumi import tencentcloud:index/teoRuleEngine:TeoRuleEngine rule_engine zone-297z8rf93cfw#rule-ajol584a
    

    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