volcengine.waf.CcRule
Explore with Pulumi AI
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:
- 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 string
- statistical object.
- Host string
- 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 string
- The website request path that needs protection.
- Accurate
Group CcRule Accurate Group - Advanced conditions.
- Advanced
Enable bool - Whether to enable advanced conditions.
- Cron
Confs List<CcRule Cron Conf> - Details of the periodic loop configuration.
- Cron
Enable int - Whether to set the cycle to take effect.
- Exemption
Time int - Strategy exemption time.
- Name string
- The name of cc rule.
- Project
Name 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 string
- statistical object.
- Host string
- 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 string
- The website request path that needs protection.
- Accurate
Group CcRule Accurate Group Args - Advanced conditions.
- Advanced
Enable bool - Whether to enable advanced conditions.
- Cron
Confs []CcRule Cron Conf Args - Details of the periodic loop configuration.
- Cron
Enable int - Whether to set the cycle to take effect.
- Exemption
Time int - Strategy exemption time.
- Name string
- The name of cc rule.
- Project
Name string - The Name of the affiliated project resource.
- cc
Type Integer - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time Integer - The statistical period of the strategy.
- effect
Time 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.
- path
Threshold Integer - The threshold of the total number of times the request path is accessed.
- rule
Priority Integer - Rule execution priority.
- single
Threshold Integer - The threshold of the number of times each statistical object accesses the request path.
- url String
- The website request path that needs protection.
- accurate
Group CcRule Accurate Group - Advanced conditions.
- advanced
Enable Boolean - Whether to enable advanced conditions.
- cron
Confs List<CcRule Cron Conf> - Details of the periodic loop configuration.
- cron
Enable Integer - Whether to set the cycle to take effect.
- exemption
Time Integer - Strategy exemption time.
- name String
- The name of cc rule.
- project
Name String - The Name of the affiliated project resource.
- cc
Type number - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time number - The statistical period of the strategy.
- effect
Time 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.
- path
Threshold number - The threshold of the total number of times the request path is accessed.
- rule
Priority number - Rule execution priority.
- single
Threshold number - The threshold of the number of times each statistical object accesses the request path.
- url string
- The website request path that needs protection.
- accurate
Group CcRule Accurate Group - Advanced conditions.
- advanced
Enable boolean - Whether to enable advanced conditions.
- cron
Confs CcRule Cron Conf[] - Details of the periodic loop configuration.
- cron
Enable number - Whether to set the cycle to take effect.
- exemption
Time number - Strategy exemption time.
- name string
- The name of cc rule.
- project
Name 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 CcRule Accurate Group Args - Advanced conditions.
- advanced_
enable bool - Whether to enable advanced conditions.
- cron_
confs Sequence[CcRule Cron Conf Args] - 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.
- cc
Type Number - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time Number - The statistical period of the strategy.
- effect
Time 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.
- path
Threshold Number - The threshold of the total number of times the request path is accessed.
- rule
Priority Number - Rule execution priority.
- single
Threshold Number - The threshold of the number of times each statistical object accesses the request path.
- url String
- The website request path that needs protection.
- accurate
Group Property Map - Advanced conditions.
- advanced
Enable Boolean - Whether to enable advanced conditions.
- cron
Confs List<Property Map> - Details of the periodic loop configuration.
- cron
Enable Number - Whether to set the cycle to take effect.
- exemption
Time Number - Strategy exemption time.
- name String
- The name of cc rule.
- project
Name 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:
- Enable
Count int - The total number of enabled rules within the rule group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Insert
Time string - The creation time of the rule group.
- Rule
Groups List<CcRule Rule Group> - Details of the rule group.
- Total
Count int - The total number of rules within the rule group.
- Enable
Count int - The total number of enabled rules within the rule group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Insert
Time string - The creation time of the rule group.
- Rule
Groups []CcRule Rule Group - Details of the rule group.
- Total
Count int - The total number of rules within the rule group.
- enable
Count Integer - The total number of enabled rules within the rule group.
- id String
- The provider-assigned unique ID for this managed resource.
- insert
Time String - The creation time of the rule group.
- rule
Groups List<CcRule Rule Group> - Details of the rule group.
- total
Count Integer - The total number of rules within the rule group.
- enable
Count number - The total number of enabled rules within the rule group.
- id string
- The provider-assigned unique ID for this managed resource.
- insert
Time string - The creation time of the rule group.
- rule
Groups CcRule Rule Group[] - Details of the rule group.
- total
Count 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[CcRule Rule Group] - Details of the rule group.
- total_
count int - The total number of rules within the rule group.
- enable
Count Number - The total number of enabled rules within the rule group.
- id String
- The provider-assigned unique ID for this managed resource.
- insert
Time String - The creation time of the rule group.
- rule
Groups List<Property Map> - Details of the rule group.
- total
Count 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.
- Accurate
Group CcRule Accurate Group - 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 List<CcRule Cron Conf> - 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 string
- statistical object.
- Host string
- Website domain names that require the setting of protection rules.
- Insert
Time string - The creation time of the rule group.
- Name string
- The name of cc rule.
- Path
Threshold int - The threshold of the total number of times the request path is accessed.
- Project
Name string - The Name of the affiliated project resource.
- Rule
Groups List<CcRule Rule Group> - 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 string
- The website request path that needs protection.
- Accurate
Group CcRule Accurate Group Args - 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 []CcRule Cron Conf Args - 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 string
- statistical object.
- Host string
- Website domain names that require the setting of protection rules.
- Insert
Time string - The creation time of the rule group.
- Name string
- The name of cc rule.
- Path
Threshold int - The threshold of the total number of times the request path is accessed.
- Project
Name string - The Name of the affiliated project resource.
- Rule
Groups []CcRule Rule Group Args - 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 string
- The website request path that needs protection.
- accurate
Group CcRule Accurate Group - Advanced conditions.
- advanced
Enable Boolean - Whether to enable advanced conditions.
- cc
Type Integer - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time Integer - The statistical period of the strategy.
- cron
Confs List<CcRule Cron Conf> - Details of the periodic loop configuration.
- cron
Enable Integer - Whether to set the cycle to take effect.
- effect
Time Integer - Limit the duration, that is, the effective duration of the action.
- enable Integer
- Whether to enable the rules.
- enable
Count Integer - The total number of enabled rules within the rule group.
- exemption
Time Integer - Strategy exemption time.
- field String
- statistical object.
- host String
- Website domain names that require the setting of protection rules.
- insert
Time String - The creation time of the rule group.
- name String
- The name of cc rule.
- path
Threshold Integer - The threshold of the total number of times the request path is accessed.
- project
Name String - The Name of the affiliated project resource.
- rule
Groups List<CcRule Rule Group> - Details of the rule group.
- rule
Priority Integer - Rule execution priority.
- single
Threshold Integer - The threshold of the number of times each statistical object accesses the request path.
- total
Count Integer - The total number of rules within the rule group.
- url String
- The website request path that needs protection.
- accurate
Group CcRule Accurate Group - Advanced conditions.
- advanced
Enable boolean - Whether to enable advanced conditions.
- cc
Type number - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time number - The statistical period of the strategy.
- cron
Confs CcRule Cron Conf[] - Details of the periodic loop configuration.
- cron
Enable number - Whether to set the cycle to take effect.
- effect
Time number - Limit the duration, that is, the effective duration of the action.
- enable number
- Whether to enable the rules.
- enable
Count number - The total number of enabled rules within the rule group.
- exemption
Time number - Strategy exemption time.
- field string
- statistical object.
- host string
- Website domain names that require the setting of protection rules.
- insert
Time string - The creation time of the rule group.
- name string
- The name of cc rule.
- path
Threshold number - The threshold of the total number of times the request path is accessed.
- project
Name string - The Name of the affiliated project resource.
- rule
Groups CcRule Rule Group[] - Details of the rule group.
- rule
Priority number - Rule execution priority.
- single
Threshold number - The threshold of the number of times each statistical object accesses the request path.
- total
Count number - The total number of rules within the rule group.
- url string
- The website request path that needs protection.
- accurate_
group CcRule Accurate Group Args - 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[CcRule Cron Conf Args] - 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[CcRule Rule Group Args] - 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.
- accurate
Group Property Map - Advanced conditions.
- advanced
Enable Boolean - Whether to enable advanced conditions.
- cc
Type Number - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time Number - The statistical period of the strategy.
- cron
Confs List<Property Map> - Details of the periodic loop configuration.
- cron
Enable Number - Whether to set the cycle to take effect.
- effect
Time Number - Limit the duration, that is, the effective duration of the action.
- enable Number
- Whether to enable the rules.
- enable
Count Number - The total number of enabled rules within the rule group.
- exemption
Time Number - Strategy exemption time.
- field String
- statistical object.
- host String
- Website domain names that require the setting of protection rules.
- insert
Time String - The creation time of the rule group.
- name String
- The name of cc rule.
- path
Threshold Number - The threshold of the total number of times the request path is accessed.
- project
Name String - The Name of the affiliated project resource.
- rule
Groups List<Property Map> - Details of the rule group.
- rule
Priority Number - Rule execution priority.
- single
Threshold Number - The threshold of the number of times each statistical object accesses the request path.
- total
Count Number - The total number of rules within the rule group.
- url String
- The website request path that needs protection.
Supporting Types
CcRuleAccurateGroup, CcRuleAccurateGroupArgs
- Accurate
Rules List<CcRule Accurate Group Accurate Rule> - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- Accurate
Rules []CcRule Accurate Group Accurate Rule - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<CcRule Accurate Group Accurate Rule> - Details of advanced conditions.
- logic Integer
- The logical relationship of advanced conditions.
- accurate
Rules CcRule Accurate Group Accurate Rule[] - Details of advanced conditions.
- logic number
- The logical relationship of advanced conditions.
- accurate_
rules Sequence[CcRule Accurate Group Accurate Rule] - Details of advanced conditions.
- logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<Property Map> - Details of advanced conditions.
- logic Number
- The logical relationship of advanced conditions.
CcRuleAccurateGroupAccurateRule, CcRuleAccurateGroupAccurateRuleArgs
- Http
Obj string - 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 string - The value to be matched.
- Http
Obj string - 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 string - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Integer - The matching field for HTTP objects.
- opretar Integer
- The logical operator for the condition.
- property Integer
- Operate the properties of the http object.
- value
String String - The value to be matched.
- http
Obj string - The HTTP object to be added to the advanced conditions.
- obj
Type number - The matching field for HTTP objects.
- opretar number
- The logical operator for the condition.
- property number
- Operate the properties of the http object.
- value
String 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.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Number - The matching field for HTTP objects.
- opretar Number
- The logical operator for the condition.
- property Number
- Operate the properties of the http object.
- value
String String - The value to be matched.
CcRuleCronConf, CcRuleCronConfArgs
- Crontab string
- 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.
- 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.
- path
Threshold Integer - The threshold of the number of requests for path access.
- single
Threshold Integer - The threshold of the number of visits to each statistical object.
- crontab string
- The weekly cycle days and cycle time periods.
- path
Threshold number - The threshold of the number of requests for path access.
- single
Threshold 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.
- path
Threshold Number - The threshold of the number of requests for path access.
- single
Threshold Number - The threshold of the number of visits to each statistical object.
CcRuleRuleGroup, CcRuleRuleGroupArgs
- Group
Cc
Rule Rule Group Group - Rule group information.
- Rules
List<Cc
Rule Rule Group Rule> - Specific rule information within the rule group.
- Group
Cc
Rule Rule Group Group - Rule group information.
- Rules
[]Cc
Rule Rule Group Rule - Specific rule information within the rule group.
- group
Cc
Rule Rule Group Group - Rule group information.
- rules
List<Cc
Rule Rule Group Rule> - Specific rule information within the rule group.
- group
Cc
Rule Rule Group Group - Rule group information.
- rules
Cc
Rule Rule Group Rule[] - Specific rule information within the rule group.
- group
Cc
Rule Rule Group Group - Rule group information.
- rules
Sequence[Cc
Rule Rule Group Rule] - 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
- Accurate
Group intPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- Accurate
Rules List<CcRule Rule Group Group Accurate Rule> - 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.
- Accurate
Group intPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- Accurate
Rules []CcRule Rule Group Group Accurate Rule - 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.
- accurate
Group IntegerPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate
Rules List<CcRule Rule Group Group Accurate Rule> - 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.
- accurate
Group numberPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate
Rules CcRule Rule Group Group Accurate Rule[] - 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_ intpriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate_
rules Sequence[CcRule Rule Group Group Accurate Rule] - 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.
- accurate
Group NumberPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate
Rules 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
- Http
Obj string - 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 string - The value to be matched.
- Http
Obj string - 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 string - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Integer - The matching field for HTTP objects.
- opretar Integer
- The logical operator for the condition.
- property Integer
- Operate the properties of the http object.
- value
String String - The value to be matched.
- http
Obj string - The HTTP object to be added to the advanced conditions.
- obj
Type number - The matching field for HTTP objects.
- opretar number
- The logical operator for the condition.
- property number
- Operate the properties of the http object.
- value
String 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.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Number - The matching field for HTTP objects.
- opretar Number
- The logical operator for the condition.
- property Number
- Operate the properties of the http object.
- value
String String - The value to be matched.
CcRuleRuleGroupRule, CcRuleRuleGroupRuleArgs
- Accurate
Group CcRule Rule Group Rule Accurate Group - Advanced conditions.
- Accurate
Group intPriority - 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 List<CcRule Rule Group Rule Cron Conf> - 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 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.
- Path
Threshold int - The threshold of the total number of times the request path is accessed.
- Rule
Priority int - Rule execution priority.
- Rule
Tag string - 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 string - Rule update time.
- Url string
- The website request path that needs protection.
- Accurate
Group CcRule Rule Group Rule Accurate Group - Advanced conditions.
- Accurate
Group intPriority - 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 []CcRule Rule Group Rule Cron Conf - 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 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.
- Path
Threshold int - The threshold of the total number of times the request path is accessed.
- Rule
Priority int - Rule execution priority.
- Rule
Tag string - 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 string - Rule update time.
- Url string
- The website request path that needs protection.
- accurate
Group CcRule Rule Group Rule Accurate Group - Advanced conditions.
- accurate
Group IntegerPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- cc
Type Integer - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time Integer - The statistical period of the strategy.
- cron
Confs List<CcRule Rule Group Rule Cron Conf> - Details of the periodic loop configuration.
- cron
Enable Integer - Whether to set the cycle to take effect.
- effect
Time Integer - Limit the duration, that is, the effective duration of the action.
- enable Integer
- Whether to enable the rules.
- exemption
Time 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.
- path
Threshold Integer - The threshold of the total number of times the request path is accessed.
- rule
Priority Integer - Rule execution priority.
- rule
Tag String - Rule label, that is, the complete rule ID.
- single
Threshold Integer - The threshold of the number of times each statistical object accesses the request path.
- update
Time String - Rule update time.
- url String
- The website request path that needs protection.
- accurate
Group CcRule Rule Group Rule Accurate Group - Advanced conditions.
- accurate
Group numberPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- cc
Type number - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time number - The statistical period of the strategy.
- cron
Confs CcRule Rule Group Rule Cron Conf[] - Details of the periodic loop configuration.
- cron
Enable number - Whether to set the cycle to take effect.
- effect
Time number - Limit the duration, that is, the effective duration of the action.
- enable number
- Whether to enable the rules.
- exemption
Time 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.
- path
Threshold number - The threshold of the total number of times the request path is accessed.
- rule
Priority number - Rule execution priority.
- rule
Tag string - Rule label, that is, the complete rule ID.
- single
Threshold number - The threshold of the number of times each statistical object accesses the request path.
- update
Time string - Rule update time.
- url string
- The website request path that needs protection.
- accurate_
group CcRule Rule Group Rule Accurate Group - Advanced conditions.
- accurate_
group_ intpriority - 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[CcRule Rule Group Rule Cron Conf] - 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.
- accurate
Group Property Map - Advanced conditions.
- accurate
Group NumberPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- cc
Type Number - The actions performed on subsequent requests after meeting the statistical conditions.
- count
Time Number - The statistical period of the strategy.
- cron
Confs List<Property Map> - Details of the periodic loop configuration.
- cron
Enable Number - Whether to set the cycle to take effect.
- effect
Time Number - Limit the duration, that is, the effective duration of the action.
- enable Number
- Whether to enable the rules.
- exemption
Time 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.
- path
Threshold Number - The threshold of the total number of times the request path is accessed.
- rule
Priority Number - Rule execution priority.
- rule
Tag String - Rule label, that is, the complete rule ID.
- single
Threshold Number - The threshold of the number of times each statistical object accesses the request path.
- update
Time String - Rule update time.
- url String
- The website request path that needs protection.
CcRuleRuleGroupRuleAccurateGroup, CcRuleRuleGroupRuleAccurateGroupArgs
- Accurate
Group intPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- Accurate
Rules List<CcRule Rule Group Rule Accurate Group Accurate Rule> - Details of advanced conditions.
- Id int
- The ID of Rule group.
- Logic int
- The logical relationship of advanced conditions.
- Accurate
Group intPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- Accurate
Rules []CcRule Rule Group Rule Accurate Group Accurate Rule - Details of advanced conditions.
- Id int
- The ID of Rule group.
- Logic int
- The logical relationship of advanced conditions.
- accurate
Group IntegerPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate
Rules List<CcRule Rule Group Rule Accurate Group Accurate Rule> - Details of advanced conditions.
- id Integer
- The ID of Rule group.
- logic Integer
- The logical relationship of advanced conditions.
- accurate
Group numberPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate
Rules CcRule Rule Group Rule Accurate Group Accurate Rule[] - Details of advanced conditions.
- id number
- The ID of Rule group.
- logic number
- The logical relationship of advanced conditions.
- accurate_
group_ intpriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate_
rules Sequence[CcRule Rule Group Rule Accurate Group Accurate Rule] - Details of advanced conditions.
- id int
- The ID of Rule group.
- logic int
- The logical relationship of advanced conditions.
- accurate
Group NumberPriority - After the rule creation is completed, the priority of the automatically generated rule group.
- accurate
Rules List<Property Map> - Details of advanced conditions.
- id Number
- The ID of Rule group.
- logic Number
- The logical relationship of advanced conditions.
CcRuleRuleGroupRuleAccurateGroupAccurateRule, CcRuleRuleGroupRuleAccurateGroupAccurateRuleArgs
- Http
Obj string - 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 string - The value to be matched.
- Http
Obj string - 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 string - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Integer - The matching field for HTTP objects.
- opretar Integer
- The logical operator for the condition.
- property Integer
- Operate the properties of the http object.
- value
String String - The value to be matched.
- http
Obj string - The HTTP object to be added to the advanced conditions.
- obj
Type number - The matching field for HTTP objects.
- opretar number
- The logical operator for the condition.
- property number
- Operate the properties of the http object.
- value
String 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.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Number - The matching field for HTTP objects.
- opretar Number
- The logical operator for the condition.
- property Number
- Operate the properties of the http object.
- value
String String - The value to be matched.
CcRuleRuleGroupRuleCronConf, CcRuleRuleGroupRuleCronConfArgs
- Crontab string
- 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.
- 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.
- path
Threshold Integer - The threshold of the number of requests for path access.
- single
Threshold Integer - The threshold of the number of visits to each statistical object.
- crontab string
- The weekly cycle days and cycle time periods.
- path
Threshold number - The threshold of the number of requests for path access.
- single
Threshold 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.
- path
Threshold Number - The threshold of the number of requests for path access.
- single
Threshold 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.