1. Packages
  2. Volcengine
  3. API Docs
  4. waf
  5. CcRule
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.waf.CcRule

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    Provides a resource to manage waf cc rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.waf.CcRule("foo", {
        accurateGroup: {
            accurateRules: [
                {
                    httpObj: "request.uri",
                    objType: 1,
                    opretar: 2,
                    property: 0,
                    valueString: "tf",
                },
                {
                    httpObj: "request.schema",
                    objType: 0,
                    opretar: 2,
                    property: 0,
                    valueString: "tf-2",
                },
            ],
            logic: 2,
        },
        ccType: 1,
        countTime: 102,
        cronConfs: [
            {
                crontab: "* 0 * * 1,2,3,4,5,6,0",
                pathThreshold: 123,
                singleThreshold: 234,
            },
            {
                crontab: "* 3-8 * * 1,2,3,4,5,6,0",
                pathThreshold: 345,
                singleThreshold: 456,
            },
        ],
        cronEnable: 1,
        effectTime: 200,
        enable: 1,
        exemptionTime: 0,
        field: "HEADER:User-Agemnt",
        host: "www.tf-test.com",
        pathThreshold: 101,
        rulePriority: 2,
        singleThreshold: 100,
        url: "/",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.waf.CcRule("foo",
        accurate_group=volcengine.waf.CcRuleAccurateGroupArgs(
            accurate_rules=[
                volcengine.waf.CcRuleAccurateGroupAccurateRuleArgs(
                    http_obj="request.uri",
                    obj_type=1,
                    opretar=2,
                    property=0,
                    value_string="tf",
                ),
                volcengine.waf.CcRuleAccurateGroupAccurateRuleArgs(
                    http_obj="request.schema",
                    obj_type=0,
                    opretar=2,
                    property=0,
                    value_string="tf-2",
                ),
            ],
            logic=2,
        ),
        cc_type=1,
        count_time=102,
        cron_confs=[
            volcengine.waf.CcRuleCronConfArgs(
                crontab="* 0 * * 1,2,3,4,5,6,0",
                path_threshold=123,
                single_threshold=234,
            ),
            volcengine.waf.CcRuleCronConfArgs(
                crontab="* 3-8 * * 1,2,3,4,5,6,0",
                path_threshold=345,
                single_threshold=456,
            ),
        ],
        cron_enable=1,
        effect_time=200,
        enable=1,
        exemption_time=0,
        field="HEADER:User-Agemnt",
        host="www.tf-test.com",
        path_threshold=101,
        rule_priority=2,
        single_threshold=100,
        url="/")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/waf"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := waf.NewCcRule(ctx, "foo", &waf.CcRuleArgs{
    			AccurateGroup: &waf.CcRuleAccurateGroupArgs{
    				AccurateRules: waf.CcRuleAccurateGroupAccurateRuleArray{
    					&waf.CcRuleAccurateGroupAccurateRuleArgs{
    						HttpObj:     pulumi.String("request.uri"),
    						ObjType:     pulumi.Int(1),
    						Opretar:     pulumi.Int(2),
    						Property:    pulumi.Int(0),
    						ValueString: pulumi.String("tf"),
    					},
    					&waf.CcRuleAccurateGroupAccurateRuleArgs{
    						HttpObj:     pulumi.String("request.schema"),
    						ObjType:     pulumi.Int(0),
    						Opretar:     pulumi.Int(2),
    						Property:    pulumi.Int(0),
    						ValueString: pulumi.String("tf-2"),
    					},
    				},
    				Logic: pulumi.Int(2),
    			},
    			CcType:    pulumi.Int(1),
    			CountTime: pulumi.Int(102),
    			CronConfs: waf.CcRuleCronConfArray{
    				&waf.CcRuleCronConfArgs{
    					Crontab:         pulumi.String("* 0 * * 1,2,3,4,5,6,0"),
    					PathThreshold:   pulumi.Int(123),
    					SingleThreshold: pulumi.Int(234),
    				},
    				&waf.CcRuleCronConfArgs{
    					Crontab:         pulumi.String("* 3-8 * * 1,2,3,4,5,6,0"),
    					PathThreshold:   pulumi.Int(345),
    					SingleThreshold: pulumi.Int(456),
    				},
    			},
    			CronEnable:      pulumi.Int(1),
    			EffectTime:      pulumi.Int(200),
    			Enable:          pulumi.Int(1),
    			ExemptionTime:   pulumi.Int(0),
    			Field:           pulumi.String("HEADER:User-Agemnt"),
    			Host:            pulumi.String("www.tf-test.com"),
    			PathThreshold:   pulumi.Int(101),
    			RulePriority:    pulumi.Int(2),
    			SingleThreshold: pulumi.Int(100),
    			Url:             pulumi.String("/"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Waf.CcRule("foo", new()
        {
            AccurateGroup = new Volcengine.Waf.Inputs.CcRuleAccurateGroupArgs
            {
                AccurateRules = new[]
                {
                    new Volcengine.Waf.Inputs.CcRuleAccurateGroupAccurateRuleArgs
                    {
                        HttpObj = "request.uri",
                        ObjType = 1,
                        Opretar = 2,
                        Property = 0,
                        ValueString = "tf",
                    },
                    new Volcengine.Waf.Inputs.CcRuleAccurateGroupAccurateRuleArgs
                    {
                        HttpObj = "request.schema",
                        ObjType = 0,
                        Opretar = 2,
                        Property = 0,
                        ValueString = "tf-2",
                    },
                },
                Logic = 2,
            },
            CcType = 1,
            CountTime = 102,
            CronConfs = new[]
            {
                new Volcengine.Waf.Inputs.CcRuleCronConfArgs
                {
                    Crontab = "* 0 * * 1,2,3,4,5,6,0",
                    PathThreshold = 123,
                    SingleThreshold = 234,
                },
                new Volcengine.Waf.Inputs.CcRuleCronConfArgs
                {
                    Crontab = "* 3-8 * * 1,2,3,4,5,6,0",
                    PathThreshold = 345,
                    SingleThreshold = 456,
                },
            },
            CronEnable = 1,
            EffectTime = 200,
            Enable = 1,
            ExemptionTime = 0,
            Field = "HEADER:User-Agemnt",
            Host = "www.tf-test.com",
            PathThreshold = 101,
            RulePriority = 2,
            SingleThreshold = 100,
            Url = "/",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.waf.CcRule;
    import com.pulumi.volcengine.waf.CcRuleArgs;
    import com.pulumi.volcengine.waf.inputs.CcRuleAccurateGroupArgs;
    import com.pulumi.volcengine.waf.inputs.CcRuleCronConfArgs;
    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 foo = new CcRule("foo", CcRuleArgs.builder()        
                .accurateGroup(CcRuleAccurateGroupArgs.builder()
                    .accurateRules(                
                        CcRuleAccurateGroupAccurateRuleArgs.builder()
                            .httpObj("request.uri")
                            .objType(1)
                            .opretar(2)
                            .property(0)
                            .valueString("tf")
                            .build(),
                        CcRuleAccurateGroupAccurateRuleArgs.builder()
                            .httpObj("request.schema")
                            .objType(0)
                            .opretar(2)
                            .property(0)
                            .valueString("tf-2")
                            .build())
                    .logic(2)
                    .build())
                .ccType(1)
                .countTime(102)
                .cronConfs(            
                    CcRuleCronConfArgs.builder()
                        .crontab("* 0 * * 1,2,3,4,5,6,0")
                        .pathThreshold(123)
                        .singleThreshold(234)
                        .build(),
                    CcRuleCronConfArgs.builder()
                        .crontab("* 3-8 * * 1,2,3,4,5,6,0")
                        .pathThreshold(345)
                        .singleThreshold(456)
                        .build())
                .cronEnable(1)
                .effectTime(200)
                .enable(1)
                .exemptionTime(0)
                .field("HEADER:User-Agemnt")
                .host("www.tf-test.com")
                .pathThreshold(101)
                .rulePriority(2)
                .singleThreshold("100")
                .url("/")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:waf:CcRule
        properties:
          accurateGroup:
            accurateRules:
              - httpObj: request.uri
                objType: 1
                opretar: 2
                property: 0
                valueString: tf
              - httpObj: request.schema
                objType: 0
                opretar: 2
                property: 0
                valueString: tf-2
            logic: 2
          ccType: 1
          countTime: 102
          cronConfs:
            - crontab: '* 0 * * 1,2,3,4,5,6,0'
              pathThreshold: 123
              singleThreshold: 234
            - crontab: '* 3-8 * * 1,2,3,4,5,6,0'
              pathThreshold: 345
              singleThreshold: 456
          cronEnable: 1
          effectTime: 200
          enable: 1
          exemptionTime: 0
          field: HEADER:User-Agemnt
          host: www.tf-test.com
          pathThreshold: 101
          rulePriority: 2
          singleThreshold: '100'
          url: /
    

    Create CcRule Resource

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

    Constructor syntax

    new CcRule(name: string, args: CcRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CcRule(resource_name: str,
               args: CcRuleArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def CcRule(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               host: Optional[str] = None,
               url: Optional[str] = None,
               cc_type: Optional[int] = None,
               count_time: Optional[int] = None,
               single_threshold: Optional[int] = None,
               rule_priority: Optional[int] = None,
               effect_time: Optional[int] = None,
               enable: Optional[int] = None,
               path_threshold: Optional[int] = None,
               field: Optional[str] = None,
               cron_confs: Optional[Sequence[CcRuleCronConfArgs]] = None,
               name: Optional[str] = None,
               exemption_time: Optional[int] = None,
               project_name: Optional[str] = None,
               cron_enable: Optional[int] = None,
               accurate_group: Optional[CcRuleAccurateGroupArgs] = None,
               advanced_enable: Optional[bool] = None)
    func NewCcRule(ctx *Context, name string, args CcRuleArgs, opts ...ResourceOption) (*CcRule, error)
    public CcRule(string name, CcRuleArgs args, CustomResourceOptions? opts = null)
    public CcRule(String name, CcRuleArgs args)
    public CcRule(String name, CcRuleArgs args, CustomResourceOptions options)
    
    type: volcengine:waf:CcRule
    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 CcRuleArgs
    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 CcRuleArgs
    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 CcRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CcRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CcRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ccRuleResource = new Volcengine.Waf.CcRule("ccRuleResource", new()
    {
        Host = "string",
        Url = "string",
        CcType = 0,
        CountTime = 0,
        SingleThreshold = 0,
        RulePriority = 0,
        EffectTime = 0,
        Enable = 0,
        PathThreshold = 0,
        Field = "string",
        CronConfs = new[]
        {
            new Volcengine.Waf.Inputs.CcRuleCronConfArgs
            {
                Crontab = "string",
                PathThreshold = 0,
                SingleThreshold = 0,
            },
        },
        Name = "string",
        ExemptionTime = 0,
        ProjectName = "string",
        CronEnable = 0,
        AccurateGroup = new Volcengine.Waf.Inputs.CcRuleAccurateGroupArgs
        {
            AccurateRules = new[]
            {
                new Volcengine.Waf.Inputs.CcRuleAccurateGroupAccurateRuleArgs
                {
                    HttpObj = "string",
                    ObjType = 0,
                    Opretar = 0,
                    Property = 0,
                    ValueString = "string",
                },
            },
            Logic = 0,
        },
        AdvancedEnable = false,
    });
    
    example, err := waf.NewCcRule(ctx, "ccRuleResource", &waf.CcRuleArgs{
    	Host:            pulumi.String("string"),
    	Url:             pulumi.String("string"),
    	CcType:          pulumi.Int(0),
    	CountTime:       pulumi.Int(0),
    	SingleThreshold: pulumi.Int(0),
    	RulePriority:    pulumi.Int(0),
    	EffectTime:      pulumi.Int(0),
    	Enable:          pulumi.Int(0),
    	PathThreshold:   pulumi.Int(0),
    	Field:           pulumi.String("string"),
    	CronConfs: waf.CcRuleCronConfArray{
    		&waf.CcRuleCronConfArgs{
    			Crontab:         pulumi.String("string"),
    			PathThreshold:   pulumi.Int(0),
    			SingleThreshold: pulumi.Int(0),
    		},
    	},
    	Name:          pulumi.String("string"),
    	ExemptionTime: pulumi.Int(0),
    	ProjectName:   pulumi.String("string"),
    	CronEnable:    pulumi.Int(0),
    	AccurateGroup: &waf.CcRuleAccurateGroupArgs{
    		AccurateRules: waf.CcRuleAccurateGroupAccurateRuleArray{
    			&waf.CcRuleAccurateGroupAccurateRuleArgs{
    				HttpObj:     pulumi.String("string"),
    				ObjType:     pulumi.Int(0),
    				Opretar:     pulumi.Int(0),
    				Property:    pulumi.Int(0),
    				ValueString: pulumi.String("string"),
    			},
    		},
    		Logic: pulumi.Int(0),
    	},
    	AdvancedEnable: pulumi.Bool(false),
    })
    
    var ccRuleResource = new CcRule("ccRuleResource", CcRuleArgs.builder()
        .host("string")
        .url("string")
        .ccType(0)
        .countTime(0)
        .singleThreshold(0)
        .rulePriority(0)
        .effectTime(0)
        .enable(0)
        .pathThreshold(0)
        .field("string")
        .cronConfs(CcRuleCronConfArgs.builder()
            .crontab("string")
            .pathThreshold(0)
            .singleThreshold(0)
            .build())
        .name("string")
        .exemptionTime(0)
        .projectName("string")
        .cronEnable(0)
        .accurateGroup(CcRuleAccurateGroupArgs.builder()
            .accurateRules(CcRuleAccurateGroupAccurateRuleArgs.builder()
                .httpObj("string")
                .objType(0)
                .opretar(0)
                .property(0)
                .valueString("string")
                .build())
            .logic(0)
            .build())
        .advancedEnable(false)
        .build());
    
    cc_rule_resource = volcengine.waf.CcRule("ccRuleResource",
        host="string",
        url="string",
        cc_type=0,
        count_time=0,
        single_threshold=0,
        rule_priority=0,
        effect_time=0,
        enable=0,
        path_threshold=0,
        field="string",
        cron_confs=[{
            "crontab": "string",
            "path_threshold": 0,
            "single_threshold": 0,
        }],
        name="string",
        exemption_time=0,
        project_name="string",
        cron_enable=0,
        accurate_group={
            "accurate_rules": [{
                "http_obj": "string",
                "obj_type": 0,
                "opretar": 0,
                "property": 0,
                "value_string": "string",
            }],
            "logic": 0,
        },
        advanced_enable=False)
    
    const ccRuleResource = new volcengine.waf.CcRule("ccRuleResource", {
        host: "string",
        url: "string",
        ccType: 0,
        countTime: 0,
        singleThreshold: 0,
        rulePriority: 0,
        effectTime: 0,
        enable: 0,
        pathThreshold: 0,
        field: "string",
        cronConfs: [{
            crontab: "string",
            pathThreshold: 0,
            singleThreshold: 0,
        }],
        name: "string",
        exemptionTime: 0,
        projectName: "string",
        cronEnable: 0,
        accurateGroup: {
            accurateRules: [{
                httpObj: "string",
                objType: 0,
                opretar: 0,
                property: 0,
                valueString: "string",
            }],
            logic: 0,
        },
        advancedEnable: false,
    });
    
    type: volcengine:waf:CcRule
    properties:
        accurateGroup:
            accurateRules:
                - httpObj: string
                  objType: 0
                  opretar: 0
                  property: 0
                  valueString: string
            logic: 0
        advancedEnable: false
        ccType: 0
        countTime: 0
        cronConfs:
            - crontab: string
              pathThreshold: 0
              singleThreshold: 0
        cronEnable: 0
        effectTime: 0
        enable: 0
        exemptionTime: 0
        field: string
        host: string
        name: string
        pathThreshold: 0
        projectName: string
        rulePriority: 0
        singleThreshold: 0
        url: string
    

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

    CcType int
    The actions performed on subsequent requests after meeting the statistical conditions.
    CountTime int
    The statistical period of the strategy.
    EffectTime int
    Limit the duration, that is, the effective duration of the action.
    Enable int
    Whether to enable the rules.
    Field string
    statistical object.
    Host string
    Website domain names that require the setting of protection rules.
    PathThreshold int
    The threshold of the total number of times the request path is accessed.
    RulePriority int
    Rule execution priority.
    SingleThreshold int
    The threshold of the number of times each statistical object accesses the request path.
    Url string
    The website request path that needs protection.
    AccurateGroup CcRuleAccurateGroup
    Advanced conditions.
    AdvancedEnable bool
    Whether to enable advanced conditions.
    CronConfs List<CcRuleCronConf>
    Details of the periodic loop configuration.
    CronEnable int
    Whether to set the cycle to take effect.
    ExemptionTime int
    Strategy exemption time.
    Name string
    The name of cc rule.
    ProjectName string
    The Name of the affiliated project resource.
    CcType int
    The actions performed on subsequent requests after meeting the statistical conditions.
    CountTime int
    The statistical period of the strategy.
    EffectTime int
    Limit the duration, that is, the effective duration of the action.
    Enable int
    Whether to enable the rules.
    Field string
    statistical object.
    Host string
    Website domain names that require the setting of protection rules.
    PathThreshold int
    The threshold of the total number of times the request path is accessed.
    RulePriority int
    Rule execution priority.
    SingleThreshold int
    The threshold of the number of times each statistical object accesses the request path.
    Url string
    The website request path that needs protection.
    AccurateGroup CcRuleAccurateGroupArgs
    Advanced conditions.
    AdvancedEnable bool
    Whether to enable advanced conditions.
    CronConfs []CcRuleCronConfArgs
    Details of the periodic loop configuration.
    CronEnable int
    Whether to set the cycle to take effect.
    ExemptionTime int
    Strategy exemption time.
    Name string
    The name of cc rule.
    ProjectName string
    The Name of the affiliated project resource.
    ccType Integer
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime Integer
    The statistical period of the strategy.
    effectTime Integer
    Limit the duration, that is, the effective duration of the action.
    enable Integer
    Whether to enable the rules.
    field String
    statistical object.
    host String
    Website domain names that require the setting of protection rules.
    pathThreshold Integer
    The threshold of the total number of times the request path is accessed.
    rulePriority Integer
    Rule execution priority.
    singleThreshold Integer
    The threshold of the number of times each statistical object accesses the request path.
    url String
    The website request path that needs protection.
    accurateGroup CcRuleAccurateGroup
    Advanced conditions.
    advancedEnable Boolean
    Whether to enable advanced conditions.
    cronConfs List<CcRuleCronConf>
    Details of the periodic loop configuration.
    cronEnable Integer
    Whether to set the cycle to take effect.
    exemptionTime Integer
    Strategy exemption time.
    name String
    The name of cc rule.
    projectName String
    The Name of the affiliated project resource.
    ccType number
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime number
    The statistical period of the strategy.
    effectTime number
    Limit the duration, that is, the effective duration of the action.
    enable number
    Whether to enable the rules.
    field string
    statistical object.
    host string
    Website domain names that require the setting of protection rules.
    pathThreshold number
    The threshold of the total number of times the request path is accessed.
    rulePriority number
    Rule execution priority.
    singleThreshold number
    The threshold of the number of times each statistical object accesses the request path.
    url string
    The website request path that needs protection.
    accurateGroup CcRuleAccurateGroup
    Advanced conditions.
    advancedEnable boolean
    Whether to enable advanced conditions.
    cronConfs CcRuleCronConf[]
    Details of the periodic loop configuration.
    cronEnable number
    Whether to set the cycle to take effect.
    exemptionTime number
    Strategy exemption time.
    name string
    The name of cc rule.
    projectName string
    The Name of the affiliated project resource.
    cc_type int
    The actions performed on subsequent requests after meeting the statistical conditions.
    count_time int
    The statistical period of the strategy.
    effect_time int
    Limit the duration, that is, the effective duration of the action.
    enable int
    Whether to enable the rules.
    field str
    statistical object.
    host str
    Website domain names that require the setting of protection rules.
    path_threshold int
    The threshold of the total number of times the request path is accessed.
    rule_priority int
    Rule execution priority.
    single_threshold int
    The threshold of the number of times each statistical object accesses the request path.
    url str
    The website request path that needs protection.
    accurate_group CcRuleAccurateGroupArgs
    Advanced conditions.
    advanced_enable bool
    Whether to enable advanced conditions.
    cron_confs Sequence[CcRuleCronConfArgs]
    Details of the periodic loop configuration.
    cron_enable int
    Whether to set the cycle to take effect.
    exemption_time int
    Strategy exemption time.
    name str
    The name of cc rule.
    project_name str
    The Name of the affiliated project resource.
    ccType Number
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime Number
    The statistical period of the strategy.
    effectTime Number
    Limit the duration, that is, the effective duration of the action.
    enable Number
    Whether to enable the rules.
    field String
    statistical object.
    host String
    Website domain names that require the setting of protection rules.
    pathThreshold Number
    The threshold of the total number of times the request path is accessed.
    rulePriority Number
    Rule execution priority.
    singleThreshold Number
    The threshold of the number of times each statistical object accesses the request path.
    url String
    The website request path that needs protection.
    accurateGroup Property Map
    Advanced conditions.
    advancedEnable Boolean
    Whether to enable advanced conditions.
    cronConfs List<Property Map>
    Details of the periodic loop configuration.
    cronEnable Number
    Whether to set the cycle to take effect.
    exemptionTime Number
    Strategy exemption time.
    name String
    The name of cc rule.
    projectName String
    The Name of the affiliated project resource.

    Outputs

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

    EnableCount int
    The total number of enabled rules within the rule group.
    Id string
    The provider-assigned unique ID for this managed resource.
    InsertTime string
    The creation time of the rule group.
    RuleGroups List<CcRuleRuleGroup>
    Details of the rule group.
    TotalCount int
    The total number of rules within the rule group.
    EnableCount int
    The total number of enabled rules within the rule group.
    Id string
    The provider-assigned unique ID for this managed resource.
    InsertTime string
    The creation time of the rule group.
    RuleGroups []CcRuleRuleGroup
    Details of the rule group.
    TotalCount int
    The total number of rules within the rule group.
    enableCount Integer
    The total number of enabled rules within the rule group.
    id String
    The provider-assigned unique ID for this managed resource.
    insertTime String
    The creation time of the rule group.
    ruleGroups List<CcRuleRuleGroup>
    Details of the rule group.
    totalCount Integer
    The total number of rules within the rule group.
    enableCount number
    The total number of enabled rules within the rule group.
    id string
    The provider-assigned unique ID for this managed resource.
    insertTime string
    The creation time of the rule group.
    ruleGroups CcRuleRuleGroup[]
    Details of the rule group.
    totalCount number
    The total number of rules within the rule group.
    enable_count int
    The total number of enabled rules within the rule group.
    id str
    The provider-assigned unique ID for this managed resource.
    insert_time str
    The creation time of the rule group.
    rule_groups Sequence[CcRuleRuleGroup]
    Details of the rule group.
    total_count int
    The total number of rules within the rule group.
    enableCount Number
    The total number of enabled rules within the rule group.
    id String
    The provider-assigned unique ID for this managed resource.
    insertTime String
    The creation time of the rule group.
    ruleGroups List<Property Map>
    Details of the rule group.
    totalCount Number
    The total number of rules within the rule group.

    Look up Existing CcRule Resource

    Get an existing CcRule 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?: CcRuleState, opts?: CustomResourceOptions): CcRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accurate_group: Optional[CcRuleAccurateGroupArgs] = None,
            advanced_enable: Optional[bool] = None,
            cc_type: Optional[int] = None,
            count_time: Optional[int] = None,
            cron_confs: Optional[Sequence[CcRuleCronConfArgs]] = None,
            cron_enable: Optional[int] = None,
            effect_time: Optional[int] = None,
            enable: Optional[int] = None,
            enable_count: Optional[int] = None,
            exemption_time: Optional[int] = None,
            field: Optional[str] = None,
            host: Optional[str] = None,
            insert_time: Optional[str] = None,
            name: Optional[str] = None,
            path_threshold: Optional[int] = None,
            project_name: Optional[str] = None,
            rule_groups: Optional[Sequence[CcRuleRuleGroupArgs]] = None,
            rule_priority: Optional[int] = None,
            single_threshold: Optional[int] = None,
            total_count: Optional[int] = None,
            url: Optional[str] = None) -> CcRule
    func GetCcRule(ctx *Context, name string, id IDInput, state *CcRuleState, opts ...ResourceOption) (*CcRule, error)
    public static CcRule Get(string name, Input<string> id, CcRuleState? state, CustomResourceOptions? opts = null)
    public static CcRule get(String name, Output<String> id, CcRuleState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:waf:CcRule    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:
    AccurateGroup CcRuleAccurateGroup
    Advanced conditions.
    AdvancedEnable bool
    Whether to enable advanced conditions.
    CcType int
    The actions performed on subsequent requests after meeting the statistical conditions.
    CountTime int
    The statistical period of the strategy.
    CronConfs List<CcRuleCronConf>
    Details of the periodic loop configuration.
    CronEnable int
    Whether to set the cycle to take effect.
    EffectTime int
    Limit the duration, that is, the effective duration of the action.
    Enable int
    Whether to enable the rules.
    EnableCount int
    The total number of enabled rules within the rule group.
    ExemptionTime int
    Strategy exemption time.
    Field string
    statistical object.
    Host string
    Website domain names that require the setting of protection rules.
    InsertTime string
    The creation time of the rule group.
    Name string
    The name of cc rule.
    PathThreshold int
    The threshold of the total number of times the request path is accessed.
    ProjectName string
    The Name of the affiliated project resource.
    RuleGroups List<CcRuleRuleGroup>
    Details of the rule group.
    RulePriority int
    Rule execution priority.
    SingleThreshold int
    The threshold of the number of times each statistical object accesses the request path.
    TotalCount int
    The total number of rules within the rule group.
    Url string
    The website request path that needs protection.
    AccurateGroup CcRuleAccurateGroupArgs
    Advanced conditions.
    AdvancedEnable bool
    Whether to enable advanced conditions.
    CcType int
    The actions performed on subsequent requests after meeting the statistical conditions.
    CountTime int
    The statistical period of the strategy.
    CronConfs []CcRuleCronConfArgs
    Details of the periodic loop configuration.
    CronEnable int
    Whether to set the cycle to take effect.
    EffectTime int
    Limit the duration, that is, the effective duration of the action.
    Enable int
    Whether to enable the rules.
    EnableCount int
    The total number of enabled rules within the rule group.
    ExemptionTime int
    Strategy exemption time.
    Field string
    statistical object.
    Host string
    Website domain names that require the setting of protection rules.
    InsertTime string
    The creation time of the rule group.
    Name string
    The name of cc rule.
    PathThreshold int
    The threshold of the total number of times the request path is accessed.
    ProjectName string
    The Name of the affiliated project resource.
    RuleGroups []CcRuleRuleGroupArgs
    Details of the rule group.
    RulePriority int
    Rule execution priority.
    SingleThreshold int
    The threshold of the number of times each statistical object accesses the request path.
    TotalCount int
    The total number of rules within the rule group.
    Url string
    The website request path that needs protection.
    accurateGroup CcRuleAccurateGroup
    Advanced conditions.
    advancedEnable Boolean
    Whether to enable advanced conditions.
    ccType Integer
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime Integer
    The statistical period of the strategy.
    cronConfs List<CcRuleCronConf>
    Details of the periodic loop configuration.
    cronEnable Integer
    Whether to set the cycle to take effect.
    effectTime Integer
    Limit the duration, that is, the effective duration of the action.
    enable Integer
    Whether to enable the rules.
    enableCount Integer
    The total number of enabled rules within the rule group.
    exemptionTime Integer
    Strategy exemption time.
    field String
    statistical object.
    host String
    Website domain names that require the setting of protection rules.
    insertTime String
    The creation time of the rule group.
    name String
    The name of cc rule.
    pathThreshold Integer
    The threshold of the total number of times the request path is accessed.
    projectName String
    The Name of the affiliated project resource.
    ruleGroups List<CcRuleRuleGroup>
    Details of the rule group.
    rulePriority Integer
    Rule execution priority.
    singleThreshold Integer
    The threshold of the number of times each statistical object accesses the request path.
    totalCount Integer
    The total number of rules within the rule group.
    url String
    The website request path that needs protection.
    accurateGroup CcRuleAccurateGroup
    Advanced conditions.
    advancedEnable boolean
    Whether to enable advanced conditions.
    ccType number
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime number
    The statistical period of the strategy.
    cronConfs CcRuleCronConf[]
    Details of the periodic loop configuration.
    cronEnable number
    Whether to set the cycle to take effect.
    effectTime number
    Limit the duration, that is, the effective duration of the action.
    enable number
    Whether to enable the rules.
    enableCount number
    The total number of enabled rules within the rule group.
    exemptionTime number
    Strategy exemption time.
    field string
    statistical object.
    host string
    Website domain names that require the setting of protection rules.
    insertTime string
    The creation time of the rule group.
    name string
    The name of cc rule.
    pathThreshold number
    The threshold of the total number of times the request path is accessed.
    projectName string
    The Name of the affiliated project resource.
    ruleGroups CcRuleRuleGroup[]
    Details of the rule group.
    rulePriority number
    Rule execution priority.
    singleThreshold number
    The threshold of the number of times each statistical object accesses the request path.
    totalCount number
    The total number of rules within the rule group.
    url string
    The website request path that needs protection.
    accurate_group CcRuleAccurateGroupArgs
    Advanced conditions.
    advanced_enable bool
    Whether to enable advanced conditions.
    cc_type int
    The actions performed on subsequent requests after meeting the statistical conditions.
    count_time int
    The statistical period of the strategy.
    cron_confs Sequence[CcRuleCronConfArgs]
    Details of the periodic loop configuration.
    cron_enable int
    Whether to set the cycle to take effect.
    effect_time int
    Limit the duration, that is, the effective duration of the action.
    enable int
    Whether to enable the rules.
    enable_count int
    The total number of enabled rules within the rule group.
    exemption_time int
    Strategy exemption time.
    field str
    statistical object.
    host str
    Website domain names that require the setting of protection rules.
    insert_time str
    The creation time of the rule group.
    name str
    The name of cc rule.
    path_threshold int
    The threshold of the total number of times the request path is accessed.
    project_name str
    The Name of the affiliated project resource.
    rule_groups Sequence[CcRuleRuleGroupArgs]
    Details of the rule group.
    rule_priority int
    Rule execution priority.
    single_threshold int
    The threshold of the number of times each statistical object accesses the request path.
    total_count int
    The total number of rules within the rule group.
    url str
    The website request path that needs protection.
    accurateGroup Property Map
    Advanced conditions.
    advancedEnable Boolean
    Whether to enable advanced conditions.
    ccType Number
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime Number
    The statistical period of the strategy.
    cronConfs List<Property Map>
    Details of the periodic loop configuration.
    cronEnable Number
    Whether to set the cycle to take effect.
    effectTime Number
    Limit the duration, that is, the effective duration of the action.
    enable Number
    Whether to enable the rules.
    enableCount Number
    The total number of enabled rules within the rule group.
    exemptionTime Number
    Strategy exemption time.
    field String
    statistical object.
    host String
    Website domain names that require the setting of protection rules.
    insertTime String
    The creation time of the rule group.
    name String
    The name of cc rule.
    pathThreshold Number
    The threshold of the total number of times the request path is accessed.
    projectName String
    The Name of the affiliated project resource.
    ruleGroups List<Property Map>
    Details of the rule group.
    rulePriority Number
    Rule execution priority.
    singleThreshold Number
    The threshold of the number of times each statistical object accesses the request path.
    totalCount Number
    The total number of rules within the rule group.
    url String
    The website request path that needs protection.

    Supporting Types

    CcRuleAccurateGroup, CcRuleAccurateGroupArgs

    AccurateRules List<CcRuleAccurateGroupAccurateRule>
    Details of advanced conditions.
    Logic int
    The logical relationship of advanced conditions.
    AccurateRules []CcRuleAccurateGroupAccurateRule
    Details of advanced conditions.
    Logic int
    The logical relationship of advanced conditions.
    accurateRules List<CcRuleAccurateGroupAccurateRule>
    Details of advanced conditions.
    logic Integer
    The logical relationship of advanced conditions.
    accurateRules CcRuleAccurateGroupAccurateRule[]
    Details of advanced conditions.
    logic number
    The logical relationship of advanced conditions.
    accurate_rules Sequence[CcRuleAccurateGroupAccurateRule]
    Details of advanced conditions.
    logic int
    The logical relationship of advanced conditions.
    accurateRules List<Property Map>
    Details of advanced conditions.
    logic Number
    The logical relationship of advanced conditions.

    CcRuleAccurateGroupAccurateRule, CcRuleAccurateGroupAccurateRuleArgs

    HttpObj string
    The HTTP object to be added to the advanced conditions.
    ObjType int
    The matching field for HTTP objects.
    Opretar int
    The logical operator for the condition.
    Property int
    Operate the properties of the http object.
    ValueString string
    The value to be matched.
    HttpObj string
    The HTTP object to be added to the advanced conditions.
    ObjType int
    The matching field for HTTP objects.
    Opretar int
    The logical operator for the condition.
    Property int
    Operate the properties of the http object.
    ValueString string
    The value to be matched.
    httpObj String
    The HTTP object to be added to the advanced conditions.
    objType Integer
    The matching field for HTTP objects.
    opretar Integer
    The logical operator for the condition.
    property Integer
    Operate the properties of the http object.
    valueString String
    The value to be matched.
    httpObj string
    The HTTP object to be added to the advanced conditions.
    objType number
    The matching field for HTTP objects.
    opretar number
    The logical operator for the condition.
    property number
    Operate the properties of the http object.
    valueString string
    The value to be matched.
    http_obj str
    The HTTP object to be added to the advanced conditions.
    obj_type int
    The matching field for HTTP objects.
    opretar int
    The logical operator for the condition.
    property int
    Operate the properties of the http object.
    value_string str
    The value to be matched.
    httpObj String
    The HTTP object to be added to the advanced conditions.
    objType Number
    The matching field for HTTP objects.
    opretar Number
    The logical operator for the condition.
    property Number
    Operate the properties of the http object.
    valueString String
    The value to be matched.

    CcRuleCronConf, CcRuleCronConfArgs

    Crontab string
    The weekly cycle days and cycle time periods.
    PathThreshold int
    The threshold of the number of requests for path access.
    SingleThreshold int
    The threshold of the number of visits to each statistical object.
    Crontab string
    The weekly cycle days and cycle time periods.
    PathThreshold int
    The threshold of the number of requests for path access.
    SingleThreshold int
    The threshold of the number of visits to each statistical object.
    crontab String
    The weekly cycle days and cycle time periods.
    pathThreshold Integer
    The threshold of the number of requests for path access.
    singleThreshold Integer
    The threshold of the number of visits to each statistical object.
    crontab string
    The weekly cycle days and cycle time periods.
    pathThreshold number
    The threshold of the number of requests for path access.
    singleThreshold number
    The threshold of the number of visits to each statistical object.
    crontab str
    The weekly cycle days and cycle time periods.
    path_threshold int
    The threshold of the number of requests for path access.
    single_threshold int
    The threshold of the number of visits to each statistical object.
    crontab String
    The weekly cycle days and cycle time periods.
    pathThreshold Number
    The threshold of the number of requests for path access.
    singleThreshold Number
    The threshold of the number of visits to each statistical object.

    CcRuleRuleGroup, CcRuleRuleGroupArgs

    Group CcRuleRuleGroupGroup
    Rule group information.
    Rules List<CcRuleRuleGroupRule>
    Specific rule information within the rule group.
    Group CcRuleRuleGroupGroup
    Rule group information.
    Rules []CcRuleRuleGroupRule
    Specific rule information within the rule group.
    group CcRuleRuleGroupGroup
    Rule group information.
    rules List<CcRuleRuleGroupRule>
    Specific rule information within the rule group.
    group CcRuleRuleGroupGroup
    Rule group information.
    rules CcRuleRuleGroupRule[]
    Specific rule information within the rule group.
    group CcRuleRuleGroupGroup
    Rule group information.
    rules Sequence[CcRuleRuleGroupRule]
    Specific rule information within the rule group.
    group Property Map
    Rule group information.
    rules List<Property Map>
    Specific rule information within the rule group.

    CcRuleRuleGroupGroup, CcRuleRuleGroupGroupArgs

    AccurateGroupPriority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    AccurateRules List<CcRuleRuleGroupGroupAccurateRule>
    Request characteristic information of the rule group.
    Id int
    The ID of Rule group.
    Logic int
    In the rule group, the high-level conditional operation relationships corresponding to each rule.
    AccurateGroupPriority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    AccurateRules []CcRuleRuleGroupGroupAccurateRule
    Request characteristic information of the rule group.
    Id int
    The ID of Rule group.
    Logic int
    In the rule group, the high-level conditional operation relationships corresponding to each rule.
    accurateGroupPriority Integer
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurateRules List<CcRuleRuleGroupGroupAccurateRule>
    Request characteristic information of the rule group.
    id Integer
    The ID of Rule group.
    logic Integer
    In the rule group, the high-level conditional operation relationships corresponding to each rule.
    accurateGroupPriority number
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurateRules CcRuleRuleGroupGroupAccurateRule[]
    Request characteristic information of the rule group.
    id number
    The ID of Rule group.
    logic number
    In the rule group, the high-level conditional operation relationships corresponding to each rule.
    accurate_group_priority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurate_rules Sequence[CcRuleRuleGroupGroupAccurateRule]
    Request characteristic information of the rule group.
    id int
    The ID of Rule group.
    logic int
    In the rule group, the high-level conditional operation relationships corresponding to each rule.
    accurateGroupPriority Number
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurateRules List<Property Map>
    Request characteristic information of the rule group.
    id Number
    The ID of Rule group.
    logic Number
    In the rule group, the high-level conditional operation relationships corresponding to each rule.

    CcRuleRuleGroupGroupAccurateRule, CcRuleRuleGroupGroupAccurateRuleArgs

    HttpObj string
    The HTTP object to be added to the advanced conditions.
    ObjType int
    The matching field for HTTP objects.
    Opretar int
    The logical operator for the condition.
    Property int
    Operate the properties of the http object.
    ValueString string
    The value to be matched.
    HttpObj string
    The HTTP object to be added to the advanced conditions.
    ObjType int
    The matching field for HTTP objects.
    Opretar int
    The logical operator for the condition.
    Property int
    Operate the properties of the http object.
    ValueString string
    The value to be matched.
    httpObj String
    The HTTP object to be added to the advanced conditions.
    objType Integer
    The matching field for HTTP objects.
    opretar Integer
    The logical operator for the condition.
    property Integer
    Operate the properties of the http object.
    valueString String
    The value to be matched.
    httpObj string
    The HTTP object to be added to the advanced conditions.
    objType number
    The matching field for HTTP objects.
    opretar number
    The logical operator for the condition.
    property number
    Operate the properties of the http object.
    valueString string
    The value to be matched.
    http_obj str
    The HTTP object to be added to the advanced conditions.
    obj_type int
    The matching field for HTTP objects.
    opretar int
    The logical operator for the condition.
    property int
    Operate the properties of the http object.
    value_string str
    The value to be matched.
    httpObj String
    The HTTP object to be added to the advanced conditions.
    objType Number
    The matching field for HTTP objects.
    opretar Number
    The logical operator for the condition.
    property Number
    Operate the properties of the http object.
    valueString String
    The value to be matched.

    CcRuleRuleGroupRule, CcRuleRuleGroupRuleArgs

    AccurateGroup CcRuleRuleGroupRuleAccurateGroup
    Advanced conditions.
    AccurateGroupPriority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    CcType int
    The actions performed on subsequent requests after meeting the statistical conditions.
    CountTime int
    The statistical period of the strategy.
    CronConfs List<CcRuleRuleGroupRuleCronConf>
    Details of the periodic loop configuration.
    CronEnable int
    Whether to set the cycle to take effect.
    EffectTime int
    Limit the duration, that is, the effective duration of the action.
    Enable int
    Whether to enable the rules.
    ExemptionTime int
    Strategy exemption time.
    Field string
    statistical object.
    Host string
    Website domain names that require the setting of protection rules.
    Id int
    The ID of Rule group.
    Name string
    The name of cc rule.
    PathThreshold int
    The threshold of the total number of times the request path is accessed.
    RulePriority int
    Rule execution priority.
    RuleTag string
    Rule label, that is, the complete rule ID.
    SingleThreshold int
    The threshold of the number of times each statistical object accesses the request path.
    UpdateTime string
    Rule update time.
    Url string
    The website request path that needs protection.
    AccurateGroup CcRuleRuleGroupRuleAccurateGroup
    Advanced conditions.
    AccurateGroupPriority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    CcType int
    The actions performed on subsequent requests after meeting the statistical conditions.
    CountTime int
    The statistical period of the strategy.
    CronConfs []CcRuleRuleGroupRuleCronConf
    Details of the periodic loop configuration.
    CronEnable int
    Whether to set the cycle to take effect.
    EffectTime int
    Limit the duration, that is, the effective duration of the action.
    Enable int
    Whether to enable the rules.
    ExemptionTime int
    Strategy exemption time.
    Field string
    statistical object.
    Host string
    Website domain names that require the setting of protection rules.
    Id int
    The ID of Rule group.
    Name string
    The name of cc rule.
    PathThreshold int
    The threshold of the total number of times the request path is accessed.
    RulePriority int
    Rule execution priority.
    RuleTag string
    Rule label, that is, the complete rule ID.
    SingleThreshold int
    The threshold of the number of times each statistical object accesses the request path.
    UpdateTime string
    Rule update time.
    Url string
    The website request path that needs protection.
    accurateGroup CcRuleRuleGroupRuleAccurateGroup
    Advanced conditions.
    accurateGroupPriority Integer
    After the rule creation is completed, the priority of the automatically generated rule group.
    ccType Integer
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime Integer
    The statistical period of the strategy.
    cronConfs List<CcRuleRuleGroupRuleCronConf>
    Details of the periodic loop configuration.
    cronEnable Integer
    Whether to set the cycle to take effect.
    effectTime Integer
    Limit the duration, that is, the effective duration of the action.
    enable Integer
    Whether to enable the rules.
    exemptionTime Integer
    Strategy exemption time.
    field String
    statistical object.
    host String
    Website domain names that require the setting of protection rules.
    id Integer
    The ID of Rule group.
    name String
    The name of cc rule.
    pathThreshold Integer
    The threshold of the total number of times the request path is accessed.
    rulePriority Integer
    Rule execution priority.
    ruleTag String
    Rule label, that is, the complete rule ID.
    singleThreshold Integer
    The threshold of the number of times each statistical object accesses the request path.
    updateTime String
    Rule update time.
    url String
    The website request path that needs protection.
    accurateGroup CcRuleRuleGroupRuleAccurateGroup
    Advanced conditions.
    accurateGroupPriority number
    After the rule creation is completed, the priority of the automatically generated rule group.
    ccType number
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime number
    The statistical period of the strategy.
    cronConfs CcRuleRuleGroupRuleCronConf[]
    Details of the periodic loop configuration.
    cronEnable number
    Whether to set the cycle to take effect.
    effectTime number
    Limit the duration, that is, the effective duration of the action.
    enable number
    Whether to enable the rules.
    exemptionTime number
    Strategy exemption time.
    field string
    statistical object.
    host string
    Website domain names that require the setting of protection rules.
    id number
    The ID of Rule group.
    name string
    The name of cc rule.
    pathThreshold number
    The threshold of the total number of times the request path is accessed.
    rulePriority number
    Rule execution priority.
    ruleTag string
    Rule label, that is, the complete rule ID.
    singleThreshold number
    The threshold of the number of times each statistical object accesses the request path.
    updateTime string
    Rule update time.
    url string
    The website request path that needs protection.
    accurate_group CcRuleRuleGroupRuleAccurateGroup
    Advanced conditions.
    accurate_group_priority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    cc_type int
    The actions performed on subsequent requests after meeting the statistical conditions.
    count_time int
    The statistical period of the strategy.
    cron_confs Sequence[CcRuleRuleGroupRuleCronConf]
    Details of the periodic loop configuration.
    cron_enable int
    Whether to set the cycle to take effect.
    effect_time int
    Limit the duration, that is, the effective duration of the action.
    enable int
    Whether to enable the rules.
    exemption_time int
    Strategy exemption time.
    field str
    statistical object.
    host str
    Website domain names that require the setting of protection rules.
    id int
    The ID of Rule group.
    name str
    The name of cc rule.
    path_threshold int
    The threshold of the total number of times the request path is accessed.
    rule_priority int
    Rule execution priority.
    rule_tag str
    Rule label, that is, the complete rule ID.
    single_threshold int
    The threshold of the number of times each statistical object accesses the request path.
    update_time str
    Rule update time.
    url str
    The website request path that needs protection.
    accurateGroup Property Map
    Advanced conditions.
    accurateGroupPriority Number
    After the rule creation is completed, the priority of the automatically generated rule group.
    ccType Number
    The actions performed on subsequent requests after meeting the statistical conditions.
    countTime Number
    The statistical period of the strategy.
    cronConfs List<Property Map>
    Details of the periodic loop configuration.
    cronEnable Number
    Whether to set the cycle to take effect.
    effectTime Number
    Limit the duration, that is, the effective duration of the action.
    enable Number
    Whether to enable the rules.
    exemptionTime Number
    Strategy exemption time.
    field String
    statistical object.
    host String
    Website domain names that require the setting of protection rules.
    id Number
    The ID of Rule group.
    name String
    The name of cc rule.
    pathThreshold Number
    The threshold of the total number of times the request path is accessed.
    rulePriority Number
    Rule execution priority.
    ruleTag String
    Rule label, that is, the complete rule ID.
    singleThreshold Number
    The threshold of the number of times each statistical object accesses the request path.
    updateTime String
    Rule update time.
    url String
    The website request path that needs protection.

    CcRuleRuleGroupRuleAccurateGroup, CcRuleRuleGroupRuleAccurateGroupArgs

    AccurateGroupPriority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    AccurateRules List<CcRuleRuleGroupRuleAccurateGroupAccurateRule>
    Details of advanced conditions.
    Id int
    The ID of Rule group.
    Logic int
    The logical relationship of advanced conditions.
    AccurateGroupPriority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    AccurateRules []CcRuleRuleGroupRuleAccurateGroupAccurateRule
    Details of advanced conditions.
    Id int
    The ID of Rule group.
    Logic int
    The logical relationship of advanced conditions.
    accurateGroupPriority Integer
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurateRules List<CcRuleRuleGroupRuleAccurateGroupAccurateRule>
    Details of advanced conditions.
    id Integer
    The ID of Rule group.
    logic Integer
    The logical relationship of advanced conditions.
    accurateGroupPriority number
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurateRules CcRuleRuleGroupRuleAccurateGroupAccurateRule[]
    Details of advanced conditions.
    id number
    The ID of Rule group.
    logic number
    The logical relationship of advanced conditions.
    accurate_group_priority int
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurate_rules Sequence[CcRuleRuleGroupRuleAccurateGroupAccurateRule]
    Details of advanced conditions.
    id int
    The ID of Rule group.
    logic int
    The logical relationship of advanced conditions.
    accurateGroupPriority Number
    After the rule creation is completed, the priority of the automatically generated rule group.
    accurateRules List<Property Map>
    Details of advanced conditions.
    id Number
    The ID of Rule group.
    logic Number
    The logical relationship of advanced conditions.

    CcRuleRuleGroupRuleAccurateGroupAccurateRule, CcRuleRuleGroupRuleAccurateGroupAccurateRuleArgs

    HttpObj string
    The HTTP object to be added to the advanced conditions.
    ObjType int
    The matching field for HTTP objects.
    Opretar int
    The logical operator for the condition.
    Property int
    Operate the properties of the http object.
    ValueString string
    The value to be matched.
    HttpObj string
    The HTTP object to be added to the advanced conditions.
    ObjType int
    The matching field for HTTP objects.
    Opretar int
    The logical operator for the condition.
    Property int
    Operate the properties of the http object.
    ValueString string
    The value to be matched.
    httpObj String
    The HTTP object to be added to the advanced conditions.
    objType Integer
    The matching field for HTTP objects.
    opretar Integer
    The logical operator for the condition.
    property Integer
    Operate the properties of the http object.
    valueString String
    The value to be matched.
    httpObj string
    The HTTP object to be added to the advanced conditions.
    objType number
    The matching field for HTTP objects.
    opretar number
    The logical operator for the condition.
    property number
    Operate the properties of the http object.
    valueString string
    The value to be matched.
    http_obj str
    The HTTP object to be added to the advanced conditions.
    obj_type int
    The matching field for HTTP objects.
    opretar int
    The logical operator for the condition.
    property int
    Operate the properties of the http object.
    value_string str
    The value to be matched.
    httpObj String
    The HTTP object to be added to the advanced conditions.
    objType Number
    The matching field for HTTP objects.
    opretar Number
    The logical operator for the condition.
    property Number
    Operate the properties of the http object.
    valueString String
    The value to be matched.

    CcRuleRuleGroupRuleCronConf, CcRuleRuleGroupRuleCronConfArgs

    Crontab string
    The weekly cycle days and cycle time periods.
    PathThreshold int
    The threshold of the number of requests for path access.
    SingleThreshold int
    The threshold of the number of visits to each statistical object.
    Crontab string
    The weekly cycle days and cycle time periods.
    PathThreshold int
    The threshold of the number of requests for path access.
    SingleThreshold int
    The threshold of the number of visits to each statistical object.
    crontab String
    The weekly cycle days and cycle time periods.
    pathThreshold Integer
    The threshold of the number of requests for path access.
    singleThreshold Integer
    The threshold of the number of visits to each statistical object.
    crontab string
    The weekly cycle days and cycle time periods.
    pathThreshold number
    The threshold of the number of requests for path access.
    singleThreshold number
    The threshold of the number of visits to each statistical object.
    crontab str
    The weekly cycle days and cycle time periods.
    path_threshold int
    The threshold of the number of requests for path access.
    single_threshold int
    The threshold of the number of visits to each statistical object.
    crontab String
    The weekly cycle days and cycle time periods.
    pathThreshold Number
    The threshold of the number of requests for path access.
    singleThreshold Number
    The threshold of the number of visits to each statistical object.

    Import

    WafCcRule can be imported using the id, e.g.

    $ pulumi import volcengine:waf/ccRule:CcRule default resource_id:Host
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine