1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. WafApiSecSensitiveCustomEventRule
Viewing docs for tencentcloud 1.83.7
published on Tuesday, Jun 30, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.7
published on Tuesday, Jun 30, 2026 by tencentcloudstack

    Provides a resource to create a WAF api sec sensitive custom event rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafApiSecSensitiveCustomEventRule("example", {
        domain: "www.example.com",
        ruleName: "tf-example",
        status: 1,
        description: "tf example custom event rule",
        reqFrequencies: [
            10,
            1,
        ],
        riskLevel: "100",
        source: "custom",
        apiNameOps: [{
            op: "belong",
            values: ["/api/login"],
            apiNameMethods: [{
                apiName: "/api/login",
                method: "POST",
            }],
        }],
        matchRuleLists: [{
            key: "get_key",
            operate: "exist",
            values: [
                "admin",
                "root",
            ],
        }],
        statRuleLists: [{
            key: "status",
            operate: "num_gt",
            values: ["50"],
            name: "200",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafApiSecSensitiveCustomEventRule("example",
        domain="www.example.com",
        rule_name="tf-example",
        status=1,
        description="tf example custom event rule",
        req_frequencies=[
            10,
            1,
        ],
        risk_level="100",
        source="custom",
        api_name_ops=[{
            "op": "belong",
            "values": ["/api/login"],
            "api_name_methods": [{
                "api_name": "/api/login",
                "method": "POST",
            }],
        }],
        match_rule_lists=[{
            "key": "get_key",
            "operate": "exist",
            "values": [
                "admin",
                "root",
            ],
        }],
        stat_rule_lists=[{
            "key": "status",
            "operate": "num_gt",
            "values": ["50"],
            "name": "200",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewWafApiSecSensitiveCustomEventRule(ctx, "example", &tencentcloud.WafApiSecSensitiveCustomEventRuleArgs{
    			Domain:      pulumi.String("www.example.com"),
    			RuleName:    pulumi.String("tf-example"),
    			Status:      pulumi.Float64(1),
    			Description: pulumi.String("tf example custom event rule"),
    			ReqFrequencies: pulumi.Float64Array{
    				pulumi.Float64(10),
    				pulumi.Float64(1),
    			},
    			RiskLevel: pulumi.String("100"),
    			Source:    pulumi.String("custom"),
    			ApiNameOps: tencentcloud.WafApiSecSensitiveCustomEventRuleApiNameOpArray{
    				&tencentcloud.WafApiSecSensitiveCustomEventRuleApiNameOpArgs{
    					Op: pulumi.String("belong"),
    					Values: pulumi.StringArray{
    						pulumi.String("/api/login"),
    					},
    					ApiNameMethods: tencentcloud.WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethodArray{
    						&tencentcloud.WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethodArgs{
    							ApiName: pulumi.String("/api/login"),
    							Method:  pulumi.String("POST"),
    						},
    					},
    				},
    			},
    			MatchRuleLists: tencentcloud.WafApiSecSensitiveCustomEventRuleMatchRuleListArray{
    				&tencentcloud.WafApiSecSensitiveCustomEventRuleMatchRuleListArgs{
    					Key:     pulumi.String("get_key"),
    					Operate: pulumi.String("exist"),
    					Values: pulumi.StringArray{
    						pulumi.String("admin"),
    						pulumi.String("root"),
    					},
    				},
    			},
    			StatRuleLists: tencentcloud.WafApiSecSensitiveCustomEventRuleStatRuleListArray{
    				&tencentcloud.WafApiSecSensitiveCustomEventRuleStatRuleListArgs{
    					Key:     pulumi.String("status"),
    					Operate: pulumi.String("num_gt"),
    					Values: pulumi.StringArray{
    						pulumi.String("50"),
    					},
    					Name: pulumi.String("200"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafApiSecSensitiveCustomEventRule("example", new()
        {
            Domain = "www.example.com",
            RuleName = "tf-example",
            Status = 1,
            Description = "tf example custom event rule",
            ReqFrequencies = new[]
            {
                10,
                1,
            },
            RiskLevel = "100",
            Source = "custom",
            ApiNameOps = new[]
            {
                new Tencentcloud.Inputs.WafApiSecSensitiveCustomEventRuleApiNameOpArgs
                {
                    Op = "belong",
                    Values = new[]
                    {
                        "/api/login",
                    },
                    ApiNameMethods = new[]
                    {
                        new Tencentcloud.Inputs.WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethodArgs
                        {
                            ApiName = "/api/login",
                            Method = "POST",
                        },
                    },
                },
            },
            MatchRuleLists = new[]
            {
                new Tencentcloud.Inputs.WafApiSecSensitiveCustomEventRuleMatchRuleListArgs
                {
                    Key = "get_key",
                    Operate = "exist",
                    Values = new[]
                    {
                        "admin",
                        "root",
                    },
                },
            },
            StatRuleLists = new[]
            {
                new Tencentcloud.Inputs.WafApiSecSensitiveCustomEventRuleStatRuleListArgs
                {
                    Key = "status",
                    Operate = "num_gt",
                    Values = new[]
                    {
                        "50",
                    },
                    Name = "200",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafApiSecSensitiveCustomEventRule;
    import com.pulumi.tencentcloud.WafApiSecSensitiveCustomEventRuleArgs;
    import com.pulumi.tencentcloud.inputs.WafApiSecSensitiveCustomEventRuleApiNameOpArgs;
    import com.pulumi.tencentcloud.inputs.WafApiSecSensitiveCustomEventRuleMatchRuleListArgs;
    import com.pulumi.tencentcloud.inputs.WafApiSecSensitiveCustomEventRuleStatRuleListArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new WafApiSecSensitiveCustomEventRule("example", WafApiSecSensitiveCustomEventRuleArgs.builder()
                .domain("www.example.com")
                .ruleName("tf-example")
                .status(1.0)
                .description("tf example custom event rule")
                .reqFrequencies(            
                    10.0,
                    1.0)
                .riskLevel("100")
                .source("custom")
                .apiNameOps(WafApiSecSensitiveCustomEventRuleApiNameOpArgs.builder()
                    .op("belong")
                    .values("/api/login")
                    .apiNameMethods(WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethodArgs.builder()
                        .apiName("/api/login")
                        .method("POST")
                        .build())
                    .build())
                .matchRuleLists(WafApiSecSensitiveCustomEventRuleMatchRuleListArgs.builder()
                    .key("get_key")
                    .operate("exist")
                    .values(                
                        "admin",
                        "root")
                    .build())
                .statRuleLists(WafApiSecSensitiveCustomEventRuleStatRuleListArgs.builder()
                    .key("status")
                    .operate("num_gt")
                    .values("50")
                    .name("200")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafApiSecSensitiveCustomEventRule
        properties:
          domain: www.example.com
          ruleName: tf-example
          status: 1
          description: tf example custom event rule
          reqFrequencies:
            - 10
            - 1
          riskLevel: '100'
          source: custom
          apiNameOps:
            - op: belong
              values:
                - /api/login
              apiNameMethods:
                - apiName: /api/login
                  method: POST
          matchRuleLists:
            - key: get_key
              operate: exist
              values:
                - admin
                - root
          statRuleLists:
            - key: status
              operate: num_gt
              values:
                - '50'
              name: '200'
    
    Example coming soon!
    

    Create WafApiSecSensitiveCustomEventRule Resource

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

    Constructor syntax

    new WafApiSecSensitiveCustomEventRule(name: string, args: WafApiSecSensitiveCustomEventRuleArgs, opts?: CustomResourceOptions);
    @overload
    def WafApiSecSensitiveCustomEventRule(resource_name: str,
                                          args: WafApiSecSensitiveCustomEventRuleArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafApiSecSensitiveCustomEventRule(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          domain: Optional[str] = None,
                                          rule_name: Optional[str] = None,
                                          status: Optional[float] = None,
                                          api_name_ops: Optional[Sequence[WafApiSecSensitiveCustomEventRuleApiNameOpArgs]] = None,
                                          description: Optional[str] = None,
                                          match_rule_lists: Optional[Sequence[WafApiSecSensitiveCustomEventRuleMatchRuleListArgs]] = None,
                                          req_frequencies: Optional[Sequence[float]] = None,
                                          risk_level: Optional[str] = None,
                                          source: Optional[str] = None,
                                          stat_rule_lists: Optional[Sequence[WafApiSecSensitiveCustomEventRuleStatRuleListArgs]] = None,
                                          waf_api_sec_sensitive_custom_event_rule_id: Optional[str] = None)
    func NewWafApiSecSensitiveCustomEventRule(ctx *Context, name string, args WafApiSecSensitiveCustomEventRuleArgs, opts ...ResourceOption) (*WafApiSecSensitiveCustomEventRule, error)
    public WafApiSecSensitiveCustomEventRule(string name, WafApiSecSensitiveCustomEventRuleArgs args, CustomResourceOptions? opts = null)
    public WafApiSecSensitiveCustomEventRule(String name, WafApiSecSensitiveCustomEventRuleArgs args)
    public WafApiSecSensitiveCustomEventRule(String name, WafApiSecSensitiveCustomEventRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafApiSecSensitiveCustomEventRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_wafapisecsensitivecustomeventrule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args WafApiSecSensitiveCustomEventRuleArgs
    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 WafApiSecSensitiveCustomEventRuleArgs
    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 WafApiSecSensitiveCustomEventRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafApiSecSensitiveCustomEventRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafApiSecSensitiveCustomEventRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    Domain name.
    RuleName string
    Rule name.
    Status double
    Rule switch, 0: off, 1: on.
    ApiNameOps List<WafApiSecSensitiveCustomEventRuleApiNameOp>
    API match list.
    Description string
    Event description.
    MatchRuleLists List<WafApiSecSensitiveCustomEventRuleMatchRuleList>
    Match rule list.
    ReqFrequencies List<double>
    Access frequency, the first field represents the count, the second field represents the minute.
    RiskLevel string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    Source string
    Rule source.
    StatRuleLists List<WafApiSecSensitiveCustomEventRuleStatRuleList>
    Statistics rule list.
    WafApiSecSensitiveCustomEventRuleId string
    ID of the resource.
    Domain string
    Domain name.
    RuleName string
    Rule name.
    Status float64
    Rule switch, 0: off, 1: on.
    ApiNameOps []WafApiSecSensitiveCustomEventRuleApiNameOpArgs
    API match list.
    Description string
    Event description.
    MatchRuleLists []WafApiSecSensitiveCustomEventRuleMatchRuleListArgs
    Match rule list.
    ReqFrequencies []float64
    Access frequency, the first field represents the count, the second field represents the minute.
    RiskLevel string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    Source string
    Rule source.
    StatRuleLists []WafApiSecSensitiveCustomEventRuleStatRuleListArgs
    Statistics rule list.
    WafApiSecSensitiveCustomEventRuleId string
    ID of the resource.
    domain string
    Domain name.
    rule_name string
    Rule name.
    status number
    Rule switch, 0: off, 1: on.
    api_name_ops list(object)
    API match list.
    description string
    Event description.
    match_rule_lists list(object)
    Match rule list.
    req_frequencies list(number)
    Access frequency, the first field represents the count, the second field represents the minute.
    risk_level string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    source string
    Rule source.
    stat_rule_lists list(object)
    Statistics rule list.
    waf_api_sec_sensitive_custom_event_rule_id string
    ID of the resource.
    domain String
    Domain name.
    ruleName String
    Rule name.
    status Double
    Rule switch, 0: off, 1: on.
    apiNameOps List<WafApiSecSensitiveCustomEventRuleApiNameOp>
    API match list.
    description String
    Event description.
    matchRuleLists List<WafApiSecSensitiveCustomEventRuleMatchRuleList>
    Match rule list.
    reqFrequencies List<Double>
    Access frequency, the first field represents the count, the second field represents the minute.
    riskLevel String
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    source String
    Rule source.
    statRuleLists List<WafApiSecSensitiveCustomEventRuleStatRuleList>
    Statistics rule list.
    wafApiSecSensitiveCustomEventRuleId String
    ID of the resource.
    domain string
    Domain name.
    ruleName string
    Rule name.
    status number
    Rule switch, 0: off, 1: on.
    apiNameOps WafApiSecSensitiveCustomEventRuleApiNameOp[]
    API match list.
    description string
    Event description.
    matchRuleLists WafApiSecSensitiveCustomEventRuleMatchRuleList[]
    Match rule list.
    reqFrequencies number[]
    Access frequency, the first field represents the count, the second field represents the minute.
    riskLevel string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    source string
    Rule source.
    statRuleLists WafApiSecSensitiveCustomEventRuleStatRuleList[]
    Statistics rule list.
    wafApiSecSensitiveCustomEventRuleId string
    ID of the resource.
    domain str
    Domain name.
    rule_name str
    Rule name.
    status float
    Rule switch, 0: off, 1: on.
    api_name_ops Sequence[WafApiSecSensitiveCustomEventRuleApiNameOpArgs]
    API match list.
    description str
    Event description.
    match_rule_lists Sequence[WafApiSecSensitiveCustomEventRuleMatchRuleListArgs]
    Match rule list.
    req_frequencies Sequence[float]
    Access frequency, the first field represents the count, the second field represents the minute.
    risk_level str
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    source str
    Rule source.
    stat_rule_lists Sequence[WafApiSecSensitiveCustomEventRuleStatRuleListArgs]
    Statistics rule list.
    waf_api_sec_sensitive_custom_event_rule_id str
    ID of the resource.
    domain String
    Domain name.
    ruleName String
    Rule name.
    status Number
    Rule switch, 0: off, 1: on.
    apiNameOps List<Property Map>
    API match list.
    description String
    Event description.
    matchRuleLists List<Property Map>
    Match rule list.
    reqFrequencies List<Number>
    Access frequency, the first field represents the count, the second field represents the minute.
    riskLevel String
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    source String
    Rule source.
    statRuleLists List<Property Map>
    Statistics rule list.
    wafApiSecSensitiveCustomEventRuleId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime double
    Update timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime float64
    Update timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    update_time number
    Update timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime Double
    Update timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime number
    Update timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time float
    Update timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime Number
    Update timestamp.

    Look up Existing WafApiSecSensitiveCustomEventRule Resource

    Get an existing WafApiSecSensitiveCustomEventRule 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?: WafApiSecSensitiveCustomEventRuleState, opts?: CustomResourceOptions): WafApiSecSensitiveCustomEventRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_name_ops: Optional[Sequence[WafApiSecSensitiveCustomEventRuleApiNameOpArgs]] = None,
            description: Optional[str] = None,
            domain: Optional[str] = None,
            match_rule_lists: Optional[Sequence[WafApiSecSensitiveCustomEventRuleMatchRuleListArgs]] = None,
            req_frequencies: Optional[Sequence[float]] = None,
            risk_level: Optional[str] = None,
            rule_name: Optional[str] = None,
            source: Optional[str] = None,
            stat_rule_lists: Optional[Sequence[WafApiSecSensitiveCustomEventRuleStatRuleListArgs]] = None,
            status: Optional[float] = None,
            update_time: Optional[float] = None,
            waf_api_sec_sensitive_custom_event_rule_id: Optional[str] = None) -> WafApiSecSensitiveCustomEventRule
    func GetWafApiSecSensitiveCustomEventRule(ctx *Context, name string, id IDInput, state *WafApiSecSensitiveCustomEventRuleState, opts ...ResourceOption) (*WafApiSecSensitiveCustomEventRule, error)
    public static WafApiSecSensitiveCustomEventRule Get(string name, Input<string> id, WafApiSecSensitiveCustomEventRuleState? state, CustomResourceOptions? opts = null)
    public static WafApiSecSensitiveCustomEventRule get(String name, Output<String> id, WafApiSecSensitiveCustomEventRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafApiSecSensitiveCustomEventRule    get:      id: ${id}
    import {
      to = tencentcloud_wafapisecsensitivecustomeventrule.example
      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:
    ApiNameOps List<WafApiSecSensitiveCustomEventRuleApiNameOp>
    API match list.
    Description string
    Event description.
    Domain string
    Domain name.
    MatchRuleLists List<WafApiSecSensitiveCustomEventRuleMatchRuleList>
    Match rule list.
    ReqFrequencies List<double>
    Access frequency, the first field represents the count, the second field represents the minute.
    RiskLevel string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    RuleName string
    Rule name.
    Source string
    Rule source.
    StatRuleLists List<WafApiSecSensitiveCustomEventRuleStatRuleList>
    Statistics rule list.
    Status double
    Rule switch, 0: off, 1: on.
    UpdateTime double
    Update timestamp.
    WafApiSecSensitiveCustomEventRuleId string
    ID of the resource.
    ApiNameOps []WafApiSecSensitiveCustomEventRuleApiNameOpArgs
    API match list.
    Description string
    Event description.
    Domain string
    Domain name.
    MatchRuleLists []WafApiSecSensitiveCustomEventRuleMatchRuleListArgs
    Match rule list.
    ReqFrequencies []float64
    Access frequency, the first field represents the count, the second field represents the minute.
    RiskLevel string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    RuleName string
    Rule name.
    Source string
    Rule source.
    StatRuleLists []WafApiSecSensitiveCustomEventRuleStatRuleListArgs
    Statistics rule list.
    Status float64
    Rule switch, 0: off, 1: on.
    UpdateTime float64
    Update timestamp.
    WafApiSecSensitiveCustomEventRuleId string
    ID of the resource.
    api_name_ops list(object)
    API match list.
    description string
    Event description.
    domain string
    Domain name.
    match_rule_lists list(object)
    Match rule list.
    req_frequencies list(number)
    Access frequency, the first field represents the count, the second field represents the minute.
    risk_level string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    rule_name string
    Rule name.
    source string
    Rule source.
    stat_rule_lists list(object)
    Statistics rule list.
    status number
    Rule switch, 0: off, 1: on.
    update_time number
    Update timestamp.
    waf_api_sec_sensitive_custom_event_rule_id string
    ID of the resource.
    apiNameOps List<WafApiSecSensitiveCustomEventRuleApiNameOp>
    API match list.
    description String
    Event description.
    domain String
    Domain name.
    matchRuleLists List<WafApiSecSensitiveCustomEventRuleMatchRuleList>
    Match rule list.
    reqFrequencies List<Double>
    Access frequency, the first field represents the count, the second field represents the minute.
    riskLevel String
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    ruleName String
    Rule name.
    source String
    Rule source.
    statRuleLists List<WafApiSecSensitiveCustomEventRuleStatRuleList>
    Statistics rule list.
    status Double
    Rule switch, 0: off, 1: on.
    updateTime Double
    Update timestamp.
    wafApiSecSensitiveCustomEventRuleId String
    ID of the resource.
    apiNameOps WafApiSecSensitiveCustomEventRuleApiNameOp[]
    API match list.
    description string
    Event description.
    domain string
    Domain name.
    matchRuleLists WafApiSecSensitiveCustomEventRuleMatchRuleList[]
    Match rule list.
    reqFrequencies number[]
    Access frequency, the first field represents the count, the second field represents the minute.
    riskLevel string
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    ruleName string
    Rule name.
    source string
    Rule source.
    statRuleLists WafApiSecSensitiveCustomEventRuleStatRuleList[]
    Statistics rule list.
    status number
    Rule switch, 0: off, 1: on.
    updateTime number
    Update timestamp.
    wafApiSecSensitiveCustomEventRuleId string
    ID of the resource.
    api_name_ops Sequence[WafApiSecSensitiveCustomEventRuleApiNameOpArgs]
    API match list.
    description str
    Event description.
    domain str
    Domain name.
    match_rule_lists Sequence[WafApiSecSensitiveCustomEventRuleMatchRuleListArgs]
    Match rule list.
    req_frequencies Sequence[float]
    Access frequency, the first field represents the count, the second field represents the minute.
    risk_level str
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    rule_name str
    Rule name.
    source str
    Rule source.
    stat_rule_lists Sequence[WafApiSecSensitiveCustomEventRuleStatRuleListArgs]
    Statistics rule list.
    status float
    Rule switch, 0: off, 1: on.
    update_time float
    Update timestamp.
    waf_api_sec_sensitive_custom_event_rule_id str
    ID of the resource.
    apiNameOps List<Property Map>
    API match list.
    description String
    Event description.
    domain String
    Domain name.
    matchRuleLists List<Property Map>
    Match rule list.
    reqFrequencies List<Number>
    Access frequency, the first field represents the count, the second field represents the minute.
    riskLevel String
    Risk level, the value is 100, 200, 300, respectively representing low, medium, high risk.
    ruleName String
    Rule name.
    source String
    Rule source.
    statRuleLists List<Property Map>
    Statistics rule list.
    status Number
    Rule switch, 0: off, 1: on.
    updateTime Number
    Update timestamp.
    wafApiSecSensitiveCustomEventRuleId String
    ID of the resource.

    Supporting Types

    WafApiSecSensitiveCustomEventRuleApiNameOp, WafApiSecSensitiveCustomEventRuleApiNameOpArgs

    ApiNameMethods List<WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethod>
    When manually filtering, this structure should be passed.
    Op string
    Match method, such as belong and regex.
    Values List<string>
    Match value list.
    ApiNameMethods []WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethod
    When manually filtering, this structure should be passed.
    Op string
    Match method, such as belong and regex.
    Values []string
    Match value list.
    api_name_methods list(object)
    When manually filtering, this structure should be passed.
    op string
    Match method, such as belong and regex.
    values list(string)
    Match value list.
    apiNameMethods List<WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethod>
    When manually filtering, this structure should be passed.
    op String
    Match method, such as belong and regex.
    values List<String>
    Match value list.
    apiNameMethods WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethod[]
    When manually filtering, this structure should be passed.
    op string
    Match method, such as belong and regex.
    values string[]
    Match value list.
    api_name_methods Sequence[WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethod]
    When manually filtering, this structure should be passed.
    op str
    Match method, such as belong and regex.
    values Sequence[str]
    Match value list.
    apiNameMethods List<Property Map>
    When manually filtering, this structure should be passed.
    op String
    Match method, such as belong and regex.
    values List<String>
    Match value list.

    WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethod, WafApiSecSensitiveCustomEventRuleApiNameOpApiNameMethodArgs

    ApiName string
    API name.
    Count double
    API request count in the last 30 days.
    Labels List<string>
    API label.
    Method string
    API request method.
    ApiName string
    API name.
    Count float64
    API request count in the last 30 days.
    Labels []string
    API label.
    Method string
    API request method.
    api_name string
    API name.
    count number
    API request count in the last 30 days.
    labels list(string)
    API label.
    method string
    API request method.
    apiName String
    API name.
    count Double
    API request count in the last 30 days.
    labels List<String>
    API label.
    method String
    API request method.
    apiName string
    API name.
    count number
    API request count in the last 30 days.
    labels string[]
    API label.
    method string
    API request method.
    api_name str
    API name.
    count float
    API request count in the last 30 days.
    labels Sequence[str]
    API label.
    method str
    API request method.
    apiName String
    API name.
    count Number
    API request count in the last 30 days.
    labels List<String>
    API label.
    method String
    API request method.

    WafApiSecSensitiveCustomEventRuleMatchRuleList, WafApiSecSensitiveCustomEventRuleMatchRuleListArgs

    Key string
    Match field.
    Name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    Operate string
    Operator.
    Values List<string>
    Match value.
    Key string
    Match field.
    Name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    Operate string
    Operator.
    Values []string
    Match value.
    key string
    Match field.
    name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate string
    Operator.
    values list(string)
    Match value.
    key String
    Match field.
    name String
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate String
    Operator.
    values List<String>
    Match value.
    key string
    Match field.
    name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate string
    Operator.
    values string[]
    Match value.
    key str
    Match field.
    name str
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate str
    Operator.
    values Sequence[str]
    Match value.
    key String
    Match field.
    name String
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate String
    Operator.
    values List<String>
    Match value.

    WafApiSecSensitiveCustomEventRuleStatRuleList, WafApiSecSensitiveCustomEventRuleStatRuleListArgs

    Key string
    Match field.
    Name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    Operate string
    Operator.
    Values List<string>
    Match value.
    Key string
    Match field.
    Name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    Operate string
    Operator.
    Values []string
    Match value.
    key string
    Match field.
    name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate string
    Operator.
    values list(string)
    Match value.
    key String
    Match field.
    name String
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate String
    Operator.
    values List<String>
    Match value.
    key string
    Match field.
    name string
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate string
    Operator.
    values string[]
    Match value.
    key str
    Match field.
    name str
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate str
    Operator.
    values Sequence[str]
    Match value.
    key String
    Match field.
    name String
    When the match field is get parameter value, post parameter value, cookie parameter value, header parameter value or rsp parameter value, this field can be filled.
    operate String
    Operator.
    values List<String>
    Match value.

    Import

    WAF api sec sensitive custom event rule can be imported using the domain#ruleName, e.g.

    $ pulumi import tencentcloud:index/wafApiSecSensitiveCustomEventRule:WafApiSecSensitiveCustomEventRule example www.example.com#tf-example
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.7
    published on Tuesday, Jun 30, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial