1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafCc
tencentcloud 1.82.6 published on Wednesday, Jul 2, 2025 by tencentcloudstack

tencentcloud.WafCc

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.82.6 published on Wednesday, Jul 2, 2025 by tencentcloudstack

    Provides a resource to create a WAF cc

    Example Usage

    If advance is 0(IP model)

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafCc("example", {
        domain: "www.demo.com",
        status: 1,
        advance: "0",
        limit: "60",
        interval: "60",
        url: "/cc_demo",
        matchFunc: 0,
        actionType: "22",
        priority: 50,
        validTime: 600,
        edition: "sparta-waf",
        type: 1,
        logicalOp: "and",
        optionsArr: JSON.stringify([
            {
                key: "URL",
                args: ["=cHJlZml4"],
                match: "2",
                encodeflag: true,
            },
            {
                key: "Method",
                args: ["=POST"],
                match: "0",
                encodeflag: false,
            },
            {
                key: "Post",
                args: ["S2V5=VmFsdWU"],
                match: "0",
                encodeflag: true,
            },
            {
                key: "Referer",
                args: ["="],
                match: "12",
                encodeflag: true,
            },
            {
                key: "Cookie",
                args: ["S2V5=VmFsdWU"],
                match: "3",
                encodeflag: true,
            },
            {
                key: "IPLocation",
                args: ["=eyJMYW5nIjoiY24iLCJBcmVhcyI6W3siQ291bnRyeSI6IuWbveWkliJ9XX0"],
                match: "13",
                encodeflag: true,
            },
        ]),
    });
    
    import pulumi
    import json
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafCc("example",
        domain="www.demo.com",
        status=1,
        advance="0",
        limit="60",
        interval="60",
        url="/cc_demo",
        match_func=0,
        action_type="22",
        priority=50,
        valid_time=600,
        edition="sparta-waf",
        type=1,
        logical_op="and",
        options_arr=json.dumps([
            {
                "key": "URL",
                "args": ["=cHJlZml4"],
                "match": "2",
                "encodeflag": True,
            },
            {
                "key": "Method",
                "args": ["=POST"],
                "match": "0",
                "encodeflag": False,
            },
            {
                "key": "Post",
                "args": ["S2V5=VmFsdWU"],
                "match": "0",
                "encodeflag": True,
            },
            {
                "key": "Referer",
                "args": ["="],
                "match": "12",
                "encodeflag": True,
            },
            {
                "key": "Cookie",
                "args": ["S2V5=VmFsdWU"],
                "match": "3",
                "encodeflag": True,
            },
            {
                "key": "IPLocation",
                "args": ["=eyJMYW5nIjoiY24iLCJBcmVhcyI6W3siQ291bnRyeSI6IuWbveWkliJ9XX0"],
                "match": "13",
                "encodeflag": True,
            },
        ]))
    
    package main
    
    import (
    	"encoding/json"
    
    	"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 {
    		tmpJSON0, err := json.Marshal([]interface{}{
    			map[string]interface{}{
    				"key": "URL",
    				"args": []string{
    					"=cHJlZml4",
    				},
    				"match":      "2",
    				"encodeflag": true,
    			},
    			map[string]interface{}{
    				"key": "Method",
    				"args": []string{
    					"=POST",
    				},
    				"match":      "0",
    				"encodeflag": false,
    			},
    			map[string]interface{}{
    				"key": "Post",
    				"args": []string{
    					"S2V5=VmFsdWU",
    				},
    				"match":      "0",
    				"encodeflag": true,
    			},
    			map[string]interface{}{
    				"key": "Referer",
    				"args": []string{
    					"=",
    				},
    				"match":      "12",
    				"encodeflag": true,
    			},
    			map[string]interface{}{
    				"key": "Cookie",
    				"args": []string{
    					"S2V5=VmFsdWU",
    				},
    				"match":      "3",
    				"encodeflag": true,
    			},
    			map[string]interface{}{
    				"key": "IPLocation",
    				"args": []string{
    					"=eyJMYW5nIjoiY24iLCJBcmVhcyI6W3siQ291bnRyeSI6IuWbveWkliJ9XX0",
    				},
    				"match":      "13",
    				"encodeflag": true,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = tencentcloud.NewWafCc(ctx, "example", &tencentcloud.WafCcArgs{
    			Domain:     pulumi.String("www.demo.com"),
    			Status:     pulumi.Float64(1),
    			Advance:    pulumi.String("0"),
    			Limit:      pulumi.String("60"),
    			Interval:   pulumi.String("60"),
    			Url:        pulumi.String("/cc_demo"),
    			MatchFunc:  pulumi.Float64(0),
    			ActionType: pulumi.String("22"),
    			Priority:   pulumi.Float64(50),
    			ValidTime:  pulumi.Float64(600),
    			Edition:    pulumi.String("sparta-waf"),
    			Type:       pulumi.Float64(1),
    			LogicalOp:  pulumi.String("and"),
    			OptionsArr: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafCc("example", new()
        {
            Domain = "www.demo.com",
            Status = 1,
            Advance = "0",
            Limit = "60",
            Interval = "60",
            Url = "/cc_demo",
            MatchFunc = 0,
            ActionType = "22",
            Priority = 50,
            ValidTime = 600,
            Edition = "sparta-waf",
            Type = 1,
            LogicalOp = "and",
            OptionsArr = JsonSerializer.Serialize(new[]
            {
                new Dictionary<string, object?>
                {
                    ["key"] = "URL",
                    ["args"] = new[]
                    {
                        "=cHJlZml4",
                    },
                    ["match"] = "2",
                    ["encodeflag"] = true,
                },
                new Dictionary<string, object?>
                {
                    ["key"] = "Method",
                    ["args"] = new[]
                    {
                        "=POST",
                    },
                    ["match"] = "0",
                    ["encodeflag"] = false,
                },
                new Dictionary<string, object?>
                {
                    ["key"] = "Post",
                    ["args"] = new[]
                    {
                        "S2V5=VmFsdWU",
                    },
                    ["match"] = "0",
                    ["encodeflag"] = true,
                },
                new Dictionary<string, object?>
                {
                    ["key"] = "Referer",
                    ["args"] = new[]
                    {
                        "=",
                    },
                    ["match"] = "12",
                    ["encodeflag"] = true,
                },
                new Dictionary<string, object?>
                {
                    ["key"] = "Cookie",
                    ["args"] = new[]
                    {
                        "S2V5=VmFsdWU",
                    },
                    ["match"] = "3",
                    ["encodeflag"] = true,
                },
                new Dictionary<string, object?>
                {
                    ["key"] = "IPLocation",
                    ["args"] = new[]
                    {
                        "=eyJMYW5nIjoiY24iLCJBcmVhcyI6W3siQ291bnRyeSI6IuWbveWkliJ9XX0",
                    },
                    ["match"] = "13",
                    ["encodeflag"] = true,
                },
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafCc;
    import com.pulumi.tencentcloud.WafCcArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new WafCc("example", WafCcArgs.builder()
                .domain("www.demo.com")
                .status(1)
                .advance("0")
                .limit("60")
                .interval("60")
                .url("/cc_demo")
                .matchFunc(0)
                .actionType("22")
                .priority(50)
                .validTime(600)
                .edition("sparta-waf")
                .type(1)
                .logicalOp("and")
                .optionsArr(serializeJson(
                    jsonArray(
                        jsonObject(
                            jsonProperty("key", "URL"),
                            jsonProperty("args", jsonArray("=cHJlZml4")),
                            jsonProperty("match", "2"),
                            jsonProperty("encodeflag", true)
                        ), 
                        jsonObject(
                            jsonProperty("key", "Method"),
                            jsonProperty("args", jsonArray("=POST")),
                            jsonProperty("match", "0"),
                            jsonProperty("encodeflag", false)
                        ), 
                        jsonObject(
                            jsonProperty("key", "Post"),
                            jsonProperty("args", jsonArray("S2V5=VmFsdWU")),
                            jsonProperty("match", "0"),
                            jsonProperty("encodeflag", true)
                        ), 
                        jsonObject(
                            jsonProperty("key", "Referer"),
                            jsonProperty("args", jsonArray("=")),
                            jsonProperty("match", "12"),
                            jsonProperty("encodeflag", true)
                        ), 
                        jsonObject(
                            jsonProperty("key", "Cookie"),
                            jsonProperty("args", jsonArray("S2V5=VmFsdWU")),
                            jsonProperty("match", "3"),
                            jsonProperty("encodeflag", true)
                        ), 
                        jsonObject(
                            jsonProperty("key", "IPLocation"),
                            jsonProperty("args", jsonArray("=eyJMYW5nIjoiY24iLCJBcmVhcyI6W3siQ291bnRyeSI6IuWbveWkliJ9XX0")),
                            jsonProperty("match", "13"),
                            jsonProperty("encodeflag", true)
                        )
                    )))
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafCc
        properties:
          domain: www.demo.com
          status: 1
          advance: '0'
          limit: '60'
          interval: '60'
          url: /cc_demo
          matchFunc: 0
          actionType: '22'
          priority: 50
          validTime: 600
          edition: sparta-waf
          type: 1
          logicalOp: and
          optionsArr:
            fn::toJSON:
              - key: URL
                args:
                  - =cHJlZml4
                match: '2'
                encodeflag: true
              - key: Method
                args:
                  - =POST
                match: '0'
                encodeflag: false
              - key: Post
                args:
                  - S2V5=VmFsdWU
                match: '0'
                encodeflag: true
              - key: Referer
                args:
                  - =
                match: '12'
                encodeflag: true
              - key: Cookie
                args:
                  - S2V5=VmFsdWU
                match: '3'
                encodeflag: true
              - key: IPLocation
                args:
                  - =eyJMYW5nIjoiY24iLCJBcmVhcyI6W3siQ291bnRyeSI6IuWbveWkliJ9XX0
                match: '13'
                encodeflag: true
    

    If advance is 1(SESSION model)

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafCc("example", {
        actionType: "22",
        advance: "1",
        celRule: "(has(request.url) && request.url.startsWith('/prefix')) && (has(request.method) && request.method == 'POST')",
        domain: "news.bots.icu",
        edition: "sparta-waf",
        interval: "60",
        limit: "60",
        limitMethod: "only_limit",
        logicalOp: "or",
        matchFunc: 0,
        priority: 50,
        sessionApplieds: [0],
        status: 1,
        type: 1,
        url: "/cc_demo",
        validTime: 600,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafCc("example",
        action_type="22",
        advance="1",
        cel_rule="(has(request.url) && request.url.startsWith('/prefix')) && (has(request.method) && request.method == 'POST')",
        domain="news.bots.icu",
        edition="sparta-waf",
        interval="60",
        limit="60",
        limit_method="only_limit",
        logical_op="or",
        match_func=0,
        priority=50,
        session_applieds=[0],
        status=1,
        type=1,
        url="/cc_demo",
        valid_time=600)
    
    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.NewWafCc(ctx, "example", &tencentcloud.WafCcArgs{
    			ActionType:  pulumi.String("22"),
    			Advance:     pulumi.String("1"),
    			CelRule:     pulumi.String("(has(request.url) && request.url.startsWith('/prefix')) && (has(request.method) && request.method == 'POST')"),
    			Domain:      pulumi.String("news.bots.icu"),
    			Edition:     pulumi.String("sparta-waf"),
    			Interval:    pulumi.String("60"),
    			Limit:       pulumi.String("60"),
    			LimitMethod: pulumi.String("only_limit"),
    			LogicalOp:   pulumi.String("or"),
    			MatchFunc:   pulumi.Float64(0),
    			Priority:    pulumi.Float64(50),
    			SessionApplieds: pulumi.Float64Array{
    				pulumi.Float64(0),
    			},
    			Status:    pulumi.Float64(1),
    			Type:      pulumi.Float64(1),
    			Url:       pulumi.String("/cc_demo"),
    			ValidTime: pulumi.Float64(600),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafCc("example", new()
        {
            ActionType = "22",
            Advance = "1",
            CelRule = "(has(request.url) && request.url.startsWith('/prefix')) && (has(request.method) && request.method == 'POST')",
            Domain = "news.bots.icu",
            Edition = "sparta-waf",
            Interval = "60",
            Limit = "60",
            LimitMethod = "only_limit",
            LogicalOp = "or",
            MatchFunc = 0,
            Priority = 50,
            SessionApplieds = new[]
            {
                0,
            },
            Status = 1,
            Type = 1,
            Url = "/cc_demo",
            ValidTime = 600,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafCc;
    import com.pulumi.tencentcloud.WafCcArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new WafCc("example", WafCcArgs.builder()
                .actionType("22")
                .advance("1")
                .celRule("(has(request.url) && request.url.startsWith('/prefix')) && (has(request.method) && request.method == 'POST')")
                .domain("news.bots.icu")
                .edition("sparta-waf")
                .interval("60")
                .limit("60")
                .limitMethod("only_limit")
                .logicalOp("or")
                .matchFunc(0)
                .priority(50)
                .sessionApplieds(0)
                .status(1)
                .type(1)
                .url("/cc_demo")
                .validTime(600)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafCc
        properties:
          actionType: '22'
          advance: '1'
          celRule: (has(request.url) && request.url.startsWith('/prefix')) && (has(request.method) && request.method == 'POST')
          domain: news.bots.icu
          edition: sparta-waf
          interval: '60'
          limit: '60'
          limitMethod: only_limit
          logicalOp: or
          matchFunc: 0
          priority: 50
          sessionApplieds:
            - 0
          status: 1
          type: 1
          url: /cc_demo
          validTime: 600
    

    Create WafCc Resource

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

    Constructor syntax

    new WafCc(name: string, args: WafCcArgs, opts?: CustomResourceOptions);
    @overload
    def WafCc(resource_name: str,
              args: WafCcArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafCc(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              status: Optional[float] = None,
              priority: Optional[float] = None,
              valid_time: Optional[float] = None,
              domain: Optional[str] = None,
              edition: Optional[str] = None,
              url: Optional[str] = None,
              interval: Optional[str] = None,
              limit: Optional[str] = None,
              action_type: Optional[str] = None,
              advance: Optional[str] = None,
              match_func: Optional[float] = None,
              name: Optional[str] = None,
              options_arr: Optional[str] = None,
              limit_method: Optional[str] = None,
              session_applieds: Optional[Sequence[float]] = None,
              logical_op: Optional[str] = None,
              type: Optional[float] = None,
              event_id: Optional[str] = None,
              cel_rule: Optional[str] = None,
              waf_cc_id: Optional[str] = None)
    func NewWafCc(ctx *Context, name string, args WafCcArgs, opts ...ResourceOption) (*WafCc, error)
    public WafCc(string name, WafCcArgs args, CustomResourceOptions? opts = null)
    public WafCc(String name, WafCcArgs args)
    public WafCc(String name, WafCcArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafCc
    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 WafCcArgs
    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 WafCcArgs
    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 WafCcArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafCcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafCcArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ActionType string
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    Advance string
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    Domain string
    Domain.
    Edition string
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    Interval string
    CC detection cycle.
    Limit string
    CC detection threshold.
    MatchFunc double
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    Priority double
    Rule Priority.
    Status double
    Rule Status, 0 rule close, 1 rule open.
    Url string
    Detection URL.
    ValidTime double
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    CelRule string
    Cel expression.
    EventId string
    Event ID.
    LimitMethod string
    Frequency limiting method.
    LogicalOp string
    Logical operator of configuration mode, and/or.
    Name string
    Rule Name.
    OptionsArr string
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    SessionApplieds List<double>
    Session ID that needs to be enabled for the rule.
    Type double
    Operate Type.
    WafCcId string
    ID of the resource.
    ActionType string
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    Advance string
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    Domain string
    Domain.
    Edition string
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    Interval string
    CC detection cycle.
    Limit string
    CC detection threshold.
    MatchFunc float64
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    Priority float64
    Rule Priority.
    Status float64
    Rule Status, 0 rule close, 1 rule open.
    Url string
    Detection URL.
    ValidTime float64
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    CelRule string
    Cel expression.
    EventId string
    Event ID.
    LimitMethod string
    Frequency limiting method.
    LogicalOp string
    Logical operator of configuration mode, and/or.
    Name string
    Rule Name.
    OptionsArr string
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    SessionApplieds []float64
    Session ID that needs to be enabled for the rule.
    Type float64
    Operate Type.
    WafCcId string
    ID of the resource.
    actionType String
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance String
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    domain String
    Domain.
    edition String
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    interval String
    CC detection cycle.
    limit String
    CC detection threshold.
    matchFunc Double
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    priority Double
    Rule Priority.
    status Double
    Rule Status, 0 rule close, 1 rule open.
    url String
    Detection URL.
    validTime Double
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    celRule String
    Cel expression.
    eventId String
    Event ID.
    limitMethod String
    Frequency limiting method.
    logicalOp String
    Logical operator of configuration mode, and/or.
    name String
    Rule Name.
    optionsArr String
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    sessionApplieds List<Double>
    Session ID that needs to be enabled for the rule.
    type Double
    Operate Type.
    wafCcId String
    ID of the resource.
    actionType string
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance string
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    domain string
    Domain.
    edition string
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    interval string
    CC detection cycle.
    limit string
    CC detection threshold.
    matchFunc number
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    priority number
    Rule Priority.
    status number
    Rule Status, 0 rule close, 1 rule open.
    url string
    Detection URL.
    validTime number
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    celRule string
    Cel expression.
    eventId string
    Event ID.
    limitMethod string
    Frequency limiting method.
    logicalOp string
    Logical operator of configuration mode, and/or.
    name string
    Rule Name.
    optionsArr string
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    sessionApplieds number[]
    Session ID that needs to be enabled for the rule.
    type number
    Operate Type.
    wafCcId string
    ID of the resource.
    action_type str
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance str
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    domain str
    Domain.
    edition str
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    interval str
    CC detection cycle.
    limit str
    CC detection threshold.
    match_func float
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    priority float
    Rule Priority.
    status float
    Rule Status, 0 rule close, 1 rule open.
    url str
    Detection URL.
    valid_time float
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    cel_rule str
    Cel expression.
    event_id str
    Event ID.
    limit_method str
    Frequency limiting method.
    logical_op str
    Logical operator of configuration mode, and/or.
    name str
    Rule Name.
    options_arr str
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    session_applieds Sequence[float]
    Session ID that needs to be enabled for the rule.
    type float
    Operate Type.
    waf_cc_id str
    ID of the resource.
    actionType String
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance String
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    domain String
    Domain.
    edition String
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    interval String
    CC detection cycle.
    limit String
    CC detection threshold.
    matchFunc Number
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    priority Number
    Rule Priority.
    status Number
    Rule Status, 0 rule close, 1 rule open.
    url String
    Detection URL.
    validTime Number
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    celRule String
    Cel expression.
    eventId String
    Event ID.
    limitMethod String
    Frequency limiting method.
    logicalOp String
    Logical operator of configuration mode, and/or.
    name String
    Rule Name.
    optionsArr String
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    sessionApplieds List<Number>
    Session ID that needs to be enabled for the rule.
    type Number
    Operate Type.
    wafCcId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    Rule ID.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    Rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.

    Look up Existing WafCc Resource

    Get an existing WafCc 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?: WafCcState, opts?: CustomResourceOptions): WafCc
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action_type: Optional[str] = None,
            advance: Optional[str] = None,
            cel_rule: Optional[str] = None,
            domain: Optional[str] = None,
            edition: Optional[str] = None,
            event_id: Optional[str] = None,
            interval: Optional[str] = None,
            limit: Optional[str] = None,
            limit_method: Optional[str] = None,
            logical_op: Optional[str] = None,
            match_func: Optional[float] = None,
            name: Optional[str] = None,
            options_arr: Optional[str] = None,
            priority: Optional[float] = None,
            rule_id: Optional[str] = None,
            session_applieds: Optional[Sequence[float]] = None,
            status: Optional[float] = None,
            type: Optional[float] = None,
            url: Optional[str] = None,
            valid_time: Optional[float] = None,
            waf_cc_id: Optional[str] = None) -> WafCc
    func GetWafCc(ctx *Context, name string, id IDInput, state *WafCcState, opts ...ResourceOption) (*WafCc, error)
    public static WafCc Get(string name, Input<string> id, WafCcState? state, CustomResourceOptions? opts = null)
    public static WafCc get(String name, Output<String> id, WafCcState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafCc    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:
    ActionType string
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    Advance string
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    CelRule string
    Cel expression.
    Domain string
    Domain.
    Edition string
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    EventId string
    Event ID.
    Interval string
    CC detection cycle.
    Limit string
    CC detection threshold.
    LimitMethod string
    Frequency limiting method.
    LogicalOp string
    Logical operator of configuration mode, and/or.
    MatchFunc double
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    Name string
    Rule Name.
    OptionsArr string
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    Priority double
    Rule Priority.
    RuleId string
    Rule ID.
    SessionApplieds List<double>
    Session ID that needs to be enabled for the rule.
    Status double
    Rule Status, 0 rule close, 1 rule open.
    Type double
    Operate Type.
    Url string
    Detection URL.
    ValidTime double
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    WafCcId string
    ID of the resource.
    ActionType string
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    Advance string
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    CelRule string
    Cel expression.
    Domain string
    Domain.
    Edition string
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    EventId string
    Event ID.
    Interval string
    CC detection cycle.
    Limit string
    CC detection threshold.
    LimitMethod string
    Frequency limiting method.
    LogicalOp string
    Logical operator of configuration mode, and/or.
    MatchFunc float64
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    Name string
    Rule Name.
    OptionsArr string
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    Priority float64
    Rule Priority.
    RuleId string
    Rule ID.
    SessionApplieds []float64
    Session ID that needs to be enabled for the rule.
    Status float64
    Rule Status, 0 rule close, 1 rule open.
    Type float64
    Operate Type.
    Url string
    Detection URL.
    ValidTime float64
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    WafCcId string
    ID of the resource.
    actionType String
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance String
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    celRule String
    Cel expression.
    domain String
    Domain.
    edition String
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    eventId String
    Event ID.
    interval String
    CC detection cycle.
    limit String
    CC detection threshold.
    limitMethod String
    Frequency limiting method.
    logicalOp String
    Logical operator of configuration mode, and/or.
    matchFunc Double
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    name String
    Rule Name.
    optionsArr String
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    priority Double
    Rule Priority.
    ruleId String
    Rule ID.
    sessionApplieds List<Double>
    Session ID that needs to be enabled for the rule.
    status Double
    Rule Status, 0 rule close, 1 rule open.
    type Double
    Operate Type.
    url String
    Detection URL.
    validTime Double
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    wafCcId String
    ID of the resource.
    actionType string
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance string
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    celRule string
    Cel expression.
    domain string
    Domain.
    edition string
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    eventId string
    Event ID.
    interval string
    CC detection cycle.
    limit string
    CC detection threshold.
    limitMethod string
    Frequency limiting method.
    logicalOp string
    Logical operator of configuration mode, and/or.
    matchFunc number
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    name string
    Rule Name.
    optionsArr string
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    priority number
    Rule Priority.
    ruleId string
    Rule ID.
    sessionApplieds number[]
    Session ID that needs to be enabled for the rule.
    status number
    Rule Status, 0 rule close, 1 rule open.
    type number
    Operate Type.
    url string
    Detection URL.
    validTime number
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    wafCcId string
    ID of the resource.
    action_type str
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance str
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    cel_rule str
    Cel expression.
    domain str
    Domain.
    edition str
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    event_id str
    Event ID.
    interval str
    CC detection cycle.
    limit str
    CC detection threshold.
    limit_method str
    Frequency limiting method.
    logical_op str
    Logical operator of configuration mode, and/or.
    match_func float
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    name str
    Rule Name.
    options_arr str
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    priority float
    Rule Priority.
    rule_id str
    Rule ID.
    session_applieds Sequence[float]
    Session ID that needs to be enabled for the rule.
    status float
    Rule Status, 0 rule close, 1 rule open.
    type float
    Operate Type.
    url str
    Detection URL.
    valid_time float
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    waf_cc_id str
    ID of the resource.
    actionType String
    Rule Action, 20 log, 21 captcha, 22 deny, 23 accurate deny.
    advance String
    Advanced mode (whether to use session detection). 0(disabled) 1(enabled).
    celRule String
    Cel expression.
    domain String
    Domain.
    edition String
    WAF edition. clb-waf means clb-waf, sparta-waf means saas-waf.
    eventId String
    Event ID.
    interval String
    CC detection cycle.
    limit String
    CC detection threshold.
    limitMethod String
    Frequency limiting method.
    logicalOp String
    Logical operator of configuration mode, and/or.
    matchFunc Number
    Match method, 0(equal), 1(prefix), 2(contains), 3(not equal), 6(suffix), 7(not contains).
    name String
    Rule Name.
    optionsArr String
    JSON serialized string of CC matching conditions, example:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key optional values are Method, Post, Referer, Cookie, User-Agent, CustomHeader Match optional values are, when Key is Method, optional values are 0 (equal), 3 (not equal). When the key is Post, the optional values are 0 (equal to), 3 (not equal to), when the key is Cookie, the optional values are 0 (equal to), 2 (included), 3 (not equal to), 7 (not included), When the key is Referer, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is Cookie, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), When the key is User-Agent, the optional values are 0 (equal to), 3 (not equal to), 1 (prefix match), 6 (suffix match), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty), When the key is CustomHeader, the optional values are 0 (equal to), 3 (not equal to), 2 (included), 7 (not included), 12 (exists), 5 (not included), 4 (content is empty). args is used to indicate the matching content. You need to set encodeflag to true. When the Key is Post, Cookie, or CustomHeader, use the equal sign = to concatenate the Key and Value, and encode them using Base64, similar to YWJj=YWJj. When the Key is Referer or User-Agent, use the equal sign = to concatenate the Value, similar to =YWJj.
    priority Number
    Rule Priority.
    ruleId String
    Rule ID.
    sessionApplieds List<Number>
    Session ID that needs to be enabled for the rule.
    status Number
    Rule Status, 0 rule close, 1 rule open.
    type Number
    Operate Type.
    url String
    Detection URL.
    validTime Number
    Action ValidTime, minute unit. Min: 60, Max: 604800.
    wafCcId String
    ID of the resource.

    Package Details

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