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

tencentcloud.WafCustomWhiteRule

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a waf custom white rule

    NOTE: If job_type is TimedJob, Then expire_time must select the maximum time value of the end_date_time in the parameter list timed.

    Example Usage

    Create a standard custom white rule

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafCustomWhiteRule("example", {
        bypass: "geoip,cc,owasp",
        domain: "test.com",
        expireTime: "0",
        sortId: "30",
        status: "1",
        strategies: [{
            arg: "",
            compareFunc: "ipmatch",
            content: "1.1.1.1",
            field: "IP",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafCustomWhiteRule("example",
        bypass="geoip,cc,owasp",
        domain="test.com",
        expire_time="0",
        sort_id="30",
        status="1",
        strategies=[{
            "arg": "",
            "compare_func": "ipmatch",
            "content": "1.1.1.1",
            "field": "IP",
        }])
    
    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.NewWafCustomWhiteRule(ctx, "example", &tencentcloud.WafCustomWhiteRuleArgs{
    			Bypass:     pulumi.String("geoip,cc,owasp"),
    			Domain:     pulumi.String("test.com"),
    			ExpireTime: pulumi.String("0"),
    			SortId:     pulumi.String("30"),
    			Status:     pulumi.String("1"),
    			Strategies: tencentcloud.WafCustomWhiteRuleStrategyArray{
    				&tencentcloud.WafCustomWhiteRuleStrategyArgs{
    					Arg:         pulumi.String(""),
    					CompareFunc: pulumi.String("ipmatch"),
    					Content:     pulumi.String("1.1.1.1"),
    					Field:       pulumi.String("IP"),
    				},
    			},
    		})
    		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.WafCustomWhiteRule("example", new()
        {
            Bypass = "geoip,cc,owasp",
            Domain = "test.com",
            ExpireTime = "0",
            SortId = "30",
            Status = "1",
            Strategies = new[]
            {
                new Tencentcloud.Inputs.WafCustomWhiteRuleStrategyArgs
                {
                    Arg = "",
                    CompareFunc = "ipmatch",
                    Content = "1.1.1.1",
                    Field = "IP",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafCustomWhiteRule;
    import com.pulumi.tencentcloud.WafCustomWhiteRuleArgs;
    import com.pulumi.tencentcloud.inputs.WafCustomWhiteRuleStrategyArgs;
    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 WafCustomWhiteRule("example", WafCustomWhiteRuleArgs.builder()
                .bypass("geoip,cc,owasp")
                .domain("test.com")
                .expireTime("0")
                .sortId("30")
                .status("1")
                .strategies(WafCustomWhiteRuleStrategyArgs.builder()
                    .arg("")
                    .compareFunc("ipmatch")
                    .content("1.1.1.1")
                    .field("IP")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafCustomWhiteRule
        properties:
          bypass: geoip,cc,owasp
          domain: test.com
          expireTime: '0'
          sortId: '30'
          status: '1'
          strategies:
            - arg: ""
              compareFunc: ipmatch
              content: 1.1.1.1
              field: IP
    

    Create a timed resource for execution

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafCustomWhiteRule("example", {
        bypass: "geoip,cc,owasp",
        domain: "test.com",
        expireTime: "1740672000",
        jobDateTime: {
            timeTZone: "UTC+8",
            timeds: [{
                endDateTime: 1740672000,
                startDateTime: 1740585600,
            }],
        },
        jobType: "TimedJob",
        sortId: "30",
        status: "1",
        strategies: [
            {
                arg: "",
                compareFunc: "ipmatch",
                content: "1.1.1.1",
                field: "IP",
            },
            {
                arg: "",
                caseNotSensitive: 1,
                compareFunc: "strprefix",
                content: "/demo/path",
                field: "URL",
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafCustomWhiteRule("example",
        bypass="geoip,cc,owasp",
        domain="test.com",
        expire_time="1740672000",
        job_date_time={
            "time_t_zone": "UTC+8",
            "timeds": [{
                "end_date_time": 1740672000,
                "start_date_time": 1740585600,
            }],
        },
        job_type="TimedJob",
        sort_id="30",
        status="1",
        strategies=[
            {
                "arg": "",
                "compare_func": "ipmatch",
                "content": "1.1.1.1",
                "field": "IP",
            },
            {
                "arg": "",
                "case_not_sensitive": 1,
                "compare_func": "strprefix",
                "content": "/demo/path",
                "field": "URL",
            },
        ])
    
    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.NewWafCustomWhiteRule(ctx, "example", &tencentcloud.WafCustomWhiteRuleArgs{
    			Bypass:     pulumi.String("geoip,cc,owasp"),
    			Domain:     pulumi.String("test.com"),
    			ExpireTime: pulumi.String("1740672000"),
    			JobDateTime: &tencentcloud.WafCustomWhiteRuleJobDateTimeArgs{
    				TimeTZone: pulumi.String("UTC+8"),
    				Timeds: tencentcloud.WafCustomWhiteRuleJobDateTimeTimedArray{
    					&tencentcloud.WafCustomWhiteRuleJobDateTimeTimedArgs{
    						EndDateTime:   pulumi.Float64(1740672000),
    						StartDateTime: pulumi.Float64(1740585600),
    					},
    				},
    			},
    			JobType: pulumi.String("TimedJob"),
    			SortId:  pulumi.String("30"),
    			Status:  pulumi.String("1"),
    			Strategies: tencentcloud.WafCustomWhiteRuleStrategyArray{
    				&tencentcloud.WafCustomWhiteRuleStrategyArgs{
    					Arg:         pulumi.String(""),
    					CompareFunc: pulumi.String("ipmatch"),
    					Content:     pulumi.String("1.1.1.1"),
    					Field:       pulumi.String("IP"),
    				},
    				&tencentcloud.WafCustomWhiteRuleStrategyArgs{
    					Arg:              pulumi.String(""),
    					CaseNotSensitive: pulumi.Float64(1),
    					CompareFunc:      pulumi.String("strprefix"),
    					Content:          pulumi.String("/demo/path"),
    					Field:            pulumi.String("URL"),
    				},
    			},
    		})
    		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.WafCustomWhiteRule("example", new()
        {
            Bypass = "geoip,cc,owasp",
            Domain = "test.com",
            ExpireTime = "1740672000",
            JobDateTime = new Tencentcloud.Inputs.WafCustomWhiteRuleJobDateTimeArgs
            {
                TimeTZone = "UTC+8",
                Timeds = new[]
                {
                    new Tencentcloud.Inputs.WafCustomWhiteRuleJobDateTimeTimedArgs
                    {
                        EndDateTime = 1740672000,
                        StartDateTime = 1740585600,
                    },
                },
            },
            JobType = "TimedJob",
            SortId = "30",
            Status = "1",
            Strategies = new[]
            {
                new Tencentcloud.Inputs.WafCustomWhiteRuleStrategyArgs
                {
                    Arg = "",
                    CompareFunc = "ipmatch",
                    Content = "1.1.1.1",
                    Field = "IP",
                },
                new Tencentcloud.Inputs.WafCustomWhiteRuleStrategyArgs
                {
                    Arg = "",
                    CaseNotSensitive = 1,
                    CompareFunc = "strprefix",
                    Content = "/demo/path",
                    Field = "URL",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafCustomWhiteRule;
    import com.pulumi.tencentcloud.WafCustomWhiteRuleArgs;
    import com.pulumi.tencentcloud.inputs.WafCustomWhiteRuleJobDateTimeArgs;
    import com.pulumi.tencentcloud.inputs.WafCustomWhiteRuleStrategyArgs;
    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 WafCustomWhiteRule("example", WafCustomWhiteRuleArgs.builder()
                .bypass("geoip,cc,owasp")
                .domain("test.com")
                .expireTime("1740672000")
                .jobDateTime(WafCustomWhiteRuleJobDateTimeArgs.builder()
                    .timeTZone("UTC+8")
                    .timeds(WafCustomWhiteRuleJobDateTimeTimedArgs.builder()
                        .endDateTime(1740672000)
                        .startDateTime(1740585600)
                        .build())
                    .build())
                .jobType("TimedJob")
                .sortId("30")
                .status("1")
                .strategies(            
                    WafCustomWhiteRuleStrategyArgs.builder()
                        .arg("")
                        .compareFunc("ipmatch")
                        .content("1.1.1.1")
                        .field("IP")
                        .build(),
                    WafCustomWhiteRuleStrategyArgs.builder()
                        .arg("")
                        .caseNotSensitive(1)
                        .compareFunc("strprefix")
                        .content("/demo/path")
                        .field("URL")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafCustomWhiteRule
        properties:
          bypass: geoip,cc,owasp
          domain: test.com
          expireTime: '1740672000'
          jobDateTime:
            timeTZone: UTC+8
            timeds:
              - endDateTime: 1.740672e+09
                startDateTime: 1.7405856e+09
          jobType: TimedJob
          sortId: '30'
          status: '1'
          strategies:
            - arg: ""
              compareFunc: ipmatch
              content: 1.1.1.1
              field: IP
            - arg: ""
              caseNotSensitive: 1
              compareFunc: strprefix
              content: /demo/path
              field: URL
    

    Create a cron resource for execution

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafCustomWhiteRule("example", {
        bypass: "geoip,cc,owasp",
        domain: "www.tencent.com",
        expireTime: "0",
        jobDateTime: {
            crons: [{
                endTime: "03:00:00",
                startTime: "01:00:00",
                wDays: [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                ],
            }],
            timeTZone: "UTC+8",
        },
        jobType: "CronJob",
        sortId: "30",
        status: "1",
        strategies: [
            {
                arg: "",
                compareFunc: "ipmatch",
                content: "1.1.1.1",
                field: "IP",
            },
            {
                arg: "",
                caseNotSensitive: 1,
                compareFunc: "strprefix",
                content: "/demo/path",
                field: "URL",
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafCustomWhiteRule("example",
        bypass="geoip,cc,owasp",
        domain="www.tencent.com",
        expire_time="0",
        job_date_time={
            "crons": [{
                "end_time": "03:00:00",
                "start_time": "01:00:00",
                "w_days": [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                ],
            }],
            "time_t_zone": "UTC+8",
        },
        job_type="CronJob",
        sort_id="30",
        status="1",
        strategies=[
            {
                "arg": "",
                "compare_func": "ipmatch",
                "content": "1.1.1.1",
                "field": "IP",
            },
            {
                "arg": "",
                "case_not_sensitive": 1,
                "compare_func": "strprefix",
                "content": "/demo/path",
                "field": "URL",
            },
        ])
    
    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.NewWafCustomWhiteRule(ctx, "example", &tencentcloud.WafCustomWhiteRuleArgs{
    			Bypass:     pulumi.String("geoip,cc,owasp"),
    			Domain:     pulumi.String("www.tencent.com"),
    			ExpireTime: pulumi.String("0"),
    			JobDateTime: &tencentcloud.WafCustomWhiteRuleJobDateTimeArgs{
    				Crons: tencentcloud.WafCustomWhiteRuleJobDateTimeCronArray{
    					&tencentcloud.WafCustomWhiteRuleJobDateTimeCronArgs{
    						EndTime:   pulumi.String("03:00:00"),
    						StartTime: pulumi.String("01:00:00"),
    						WDays: pulumi.Float64Array{
    							pulumi.Float64(0),
    							pulumi.Float64(1),
    							pulumi.Float64(2),
    							pulumi.Float64(3),
    							pulumi.Float64(4),
    							pulumi.Float64(5),
    							pulumi.Float64(6),
    						},
    					},
    				},
    				TimeTZone: pulumi.String("UTC+8"),
    			},
    			JobType: pulumi.String("CronJob"),
    			SortId:  pulumi.String("30"),
    			Status:  pulumi.String("1"),
    			Strategies: tencentcloud.WafCustomWhiteRuleStrategyArray{
    				&tencentcloud.WafCustomWhiteRuleStrategyArgs{
    					Arg:         pulumi.String(""),
    					CompareFunc: pulumi.String("ipmatch"),
    					Content:     pulumi.String("1.1.1.1"),
    					Field:       pulumi.String("IP"),
    				},
    				&tencentcloud.WafCustomWhiteRuleStrategyArgs{
    					Arg:              pulumi.String(""),
    					CaseNotSensitive: pulumi.Float64(1),
    					CompareFunc:      pulumi.String("strprefix"),
    					Content:          pulumi.String("/demo/path"),
    					Field:            pulumi.String("URL"),
    				},
    			},
    		})
    		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.WafCustomWhiteRule("example", new()
        {
            Bypass = "geoip,cc,owasp",
            Domain = "www.tencent.com",
            ExpireTime = "0",
            JobDateTime = new Tencentcloud.Inputs.WafCustomWhiteRuleJobDateTimeArgs
            {
                Crons = new[]
                {
                    new Tencentcloud.Inputs.WafCustomWhiteRuleJobDateTimeCronArgs
                    {
                        EndTime = "03:00:00",
                        StartTime = "01:00:00",
                        WDays = new[]
                        {
                            0,
                            1,
                            2,
                            3,
                            4,
                            5,
                            6,
                        },
                    },
                },
                TimeTZone = "UTC+8",
            },
            JobType = "CronJob",
            SortId = "30",
            Status = "1",
            Strategies = new[]
            {
                new Tencentcloud.Inputs.WafCustomWhiteRuleStrategyArgs
                {
                    Arg = "",
                    CompareFunc = "ipmatch",
                    Content = "1.1.1.1",
                    Field = "IP",
                },
                new Tencentcloud.Inputs.WafCustomWhiteRuleStrategyArgs
                {
                    Arg = "",
                    CaseNotSensitive = 1,
                    CompareFunc = "strprefix",
                    Content = "/demo/path",
                    Field = "URL",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafCustomWhiteRule;
    import com.pulumi.tencentcloud.WafCustomWhiteRuleArgs;
    import com.pulumi.tencentcloud.inputs.WafCustomWhiteRuleJobDateTimeArgs;
    import com.pulumi.tencentcloud.inputs.WafCustomWhiteRuleStrategyArgs;
    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 WafCustomWhiteRule("example", WafCustomWhiteRuleArgs.builder()
                .bypass("geoip,cc,owasp")
                .domain("www.tencent.com")
                .expireTime("0")
                .jobDateTime(WafCustomWhiteRuleJobDateTimeArgs.builder()
                    .crons(WafCustomWhiteRuleJobDateTimeCronArgs.builder()
                        .endTime("03:00:00")
                        .startTime("01:00:00")
                        .wDays(                    
                            0,
                            1,
                            2,
                            3,
                            4,
                            5,
                            6)
                        .build())
                    .timeTZone("UTC+8")
                    .build())
                .jobType("CronJob")
                .sortId("30")
                .status("1")
                .strategies(            
                    WafCustomWhiteRuleStrategyArgs.builder()
                        .arg("")
                        .compareFunc("ipmatch")
                        .content("1.1.1.1")
                        .field("IP")
                        .build(),
                    WafCustomWhiteRuleStrategyArgs.builder()
                        .arg("")
                        .caseNotSensitive(1)
                        .compareFunc("strprefix")
                        .content("/demo/path")
                        .field("URL")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafCustomWhiteRule
        properties:
          bypass: geoip,cc,owasp
          domain: www.tencent.com
          expireTime: '0'
          jobDateTime:
            crons:
              - endTime: 03:00:00
                startTime: 01:00:00
                wDays:
                  - 0
                  - 1
                  - 2
                  - 3
                  - 4
                  - 5
                  - 6
            timeTZone: UTC+8
          jobType: CronJob
          sortId: '30'
          status: '1'
          strategies:
            - arg: ""
              compareFunc: ipmatch
              content: 1.1.1.1
              field: IP
            - arg: ""
              caseNotSensitive: 1
              compareFunc: strprefix
              content: /demo/path
              field: URL
    

    Create WafCustomWhiteRule Resource

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

    Constructor syntax

    new WafCustomWhiteRule(name: string, args: WafCustomWhiteRuleArgs, opts?: CustomResourceOptions);
    @overload
    def WafCustomWhiteRule(resource_name: str,
                           args: WafCustomWhiteRuleArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafCustomWhiteRule(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           bypass: Optional[str] = None,
                           domain: Optional[str] = None,
                           expire_time: Optional[str] = None,
                           sort_id: Optional[str] = None,
                           strategies: Optional[Sequence[WafCustomWhiteRuleStrategyArgs]] = None,
                           job_date_time: Optional[WafCustomWhiteRuleJobDateTimeArgs] = None,
                           job_type: Optional[str] = None,
                           name: Optional[str] = None,
                           status: Optional[str] = None,
                           waf_custom_white_rule_id: Optional[str] = None)
    func NewWafCustomWhiteRule(ctx *Context, name string, args WafCustomWhiteRuleArgs, opts ...ResourceOption) (*WafCustomWhiteRule, error)
    public WafCustomWhiteRule(string name, WafCustomWhiteRuleArgs args, CustomResourceOptions? opts = null)
    public WafCustomWhiteRule(String name, WafCustomWhiteRuleArgs args)
    public WafCustomWhiteRule(String name, WafCustomWhiteRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafCustomWhiteRule
    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 WafCustomWhiteRuleArgs
    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 WafCustomWhiteRuleArgs
    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 WafCustomWhiteRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafCustomWhiteRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafCustomWhiteRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Bypass string
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    Domain string
    Domain name that needs to add policy.
    ExpireTime string
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    SortId string
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    Strategies List<WafCustomWhiteRuleStrategy>
    Strategies detail.
    JobDateTime WafCustomWhiteRuleJobDateTime
    Rule execution time.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Name string
    Rule Name.
    Status string
    The status of the switch, 1 is on, 0 is off, default 1.
    WafCustomWhiteRuleId string
    ID of the resource.
    Bypass string
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    Domain string
    Domain name that needs to add policy.
    ExpireTime string
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    SortId string
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    Strategies []WafCustomWhiteRuleStrategyArgs
    Strategies detail.
    JobDateTime WafCustomWhiteRuleJobDateTimeArgs
    Rule execution time.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Name string
    Rule Name.
    Status string
    The status of the switch, 1 is on, 0 is off, default 1.
    WafCustomWhiteRuleId string
    ID of the resource.
    bypass String
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain String
    Domain name that needs to add policy.
    expireTime String
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    sortId String
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    strategies List<WafCustomWhiteRuleStrategy>
    Strategies detail.
    jobDateTime WafCustomWhiteRuleJobDateTime
    Rule execution time.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name String
    Rule Name.
    status String
    The status of the switch, 1 is on, 0 is off, default 1.
    wafCustomWhiteRuleId String
    ID of the resource.
    bypass string
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain string
    Domain name that needs to add policy.
    expireTime string
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    sortId string
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    strategies WafCustomWhiteRuleStrategy[]
    Strategies detail.
    jobDateTime WafCustomWhiteRuleJobDateTime
    Rule execution time.
    jobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name string
    Rule Name.
    status string
    The status of the switch, 1 is on, 0 is off, default 1.
    wafCustomWhiteRuleId string
    ID of the resource.
    bypass str
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain str
    Domain name that needs to add policy.
    expire_time str
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    sort_id str
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    strategies Sequence[WafCustomWhiteRuleStrategyArgs]
    Strategies detail.
    job_date_time WafCustomWhiteRuleJobDateTimeArgs
    Rule execution time.
    job_type str
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name str
    Rule Name.
    status str
    The status of the switch, 1 is on, 0 is off, default 1.
    waf_custom_white_rule_id str
    ID of the resource.
    bypass String
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain String
    Domain name that needs to add policy.
    expireTime String
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    sortId String
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    strategies List<Property Map>
    Strategies detail.
    jobDateTime Property Map
    Rule execution time.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name String
    Rule Name.
    status String
    The status of the switch, 1 is on, 0 is off, default 1.
    wafCustomWhiteRuleId String
    ID of the resource.

    Outputs

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

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

    Look up Existing WafCustomWhiteRule Resource

    Get an existing WafCustomWhiteRule 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?: WafCustomWhiteRuleState, opts?: CustomResourceOptions): WafCustomWhiteRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bypass: Optional[str] = None,
            domain: Optional[str] = None,
            expire_time: Optional[str] = None,
            job_date_time: Optional[WafCustomWhiteRuleJobDateTimeArgs] = None,
            job_type: Optional[str] = None,
            name: Optional[str] = None,
            rule_id: Optional[str] = None,
            sort_id: Optional[str] = None,
            status: Optional[str] = None,
            strategies: Optional[Sequence[WafCustomWhiteRuleStrategyArgs]] = None,
            waf_custom_white_rule_id: Optional[str] = None) -> WafCustomWhiteRule
    func GetWafCustomWhiteRule(ctx *Context, name string, id IDInput, state *WafCustomWhiteRuleState, opts ...ResourceOption) (*WafCustomWhiteRule, error)
    public static WafCustomWhiteRule Get(string name, Input<string> id, WafCustomWhiteRuleState? state, CustomResourceOptions? opts = null)
    public static WafCustomWhiteRule get(String name, Output<String> id, WafCustomWhiteRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafCustomWhiteRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Bypass string
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    Domain string
    Domain name that needs to add policy.
    ExpireTime string
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    JobDateTime WafCustomWhiteRuleJobDateTime
    Rule execution time.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Name string
    Rule Name.
    RuleId string
    rule ID.
    SortId string
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    Status string
    The status of the switch, 1 is on, 0 is off, default 1.
    Strategies List<WafCustomWhiteRuleStrategy>
    Strategies detail.
    WafCustomWhiteRuleId string
    ID of the resource.
    Bypass string
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    Domain string
    Domain name that needs to add policy.
    ExpireTime string
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    JobDateTime WafCustomWhiteRuleJobDateTimeArgs
    Rule execution time.
    JobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    Name string
    Rule Name.
    RuleId string
    rule ID.
    SortId string
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    Status string
    The status of the switch, 1 is on, 0 is off, default 1.
    Strategies []WafCustomWhiteRuleStrategyArgs
    Strategies detail.
    WafCustomWhiteRuleId string
    ID of the resource.
    bypass String
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain String
    Domain name that needs to add policy.
    expireTime String
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    jobDateTime WafCustomWhiteRuleJobDateTime
    Rule execution time.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name String
    Rule Name.
    ruleId String
    rule ID.
    sortId String
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    status String
    The status of the switch, 1 is on, 0 is off, default 1.
    strategies List<WafCustomWhiteRuleStrategy>
    Strategies detail.
    wafCustomWhiteRuleId String
    ID of the resource.
    bypass string
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain string
    Domain name that needs to add policy.
    expireTime string
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    jobDateTime WafCustomWhiteRuleJobDateTime
    Rule execution time.
    jobType string
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name string
    Rule Name.
    ruleId string
    rule ID.
    sortId string
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    status string
    The status of the switch, 1 is on, 0 is off, default 1.
    strategies WafCustomWhiteRuleStrategy[]
    Strategies detail.
    wafCustomWhiteRuleId string
    ID of the resource.
    bypass str
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain str
    Domain name that needs to add policy.
    expire_time str
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    job_date_time WafCustomWhiteRuleJobDateTimeArgs
    Rule execution time.
    job_type str
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name str
    Rule Name.
    rule_id str
    rule ID.
    sort_id str
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    status str
    The status of the switch, 1 is on, 0 is off, default 1.
    strategies Sequence[WafCustomWhiteRuleStrategyArgs]
    Strategies detail.
    waf_custom_white_rule_id str
    ID of the resource.
    bypass String
    The bypass modules are connected by commas between multiple modules. Supported modules ACL (Custom Rules), OWASP (Rule Engine), Webshell (Malicious File Detection), GeoIP (Geographic Block), BWIP (IP Black and White List), CC, BotRPC (BOT Protection), AntiLeakage (Information Leakage Prevention), API (API Security), AI (AI Engine), ip_outo_deny (IP Block), Applet (Mini Program Traffic Risk Control).
    domain String
    Domain name that needs to add policy.
    expireTime String
    Expiration time in second-level timestamp, for example, 1677254399 indicates the expiration time is 2023-02-24 23:59:59; 0 indicates it will never expire.
    jobDateTime Property Map
    Rule execution time.
    jobType String
    Rule execution mode: TimedJob indicates scheduled execution. CronJob indicates periodic execution.
    name String
    Rule Name.
    ruleId String
    rule ID.
    sortId String
    Priority, value range 1-100, The smaller the number, the higher the execution priority of this rule.
    status String
    The status of the switch, 1 is on, 0 is off, default 1.
    strategies List<Property Map>
    Strategies detail.
    wafCustomWhiteRuleId String
    ID of the resource.

    Supporting Types

    WafCustomWhiteRuleJobDateTime, WafCustomWhiteRuleJobDateTimeArgs

    Crons List<WafCustomWhiteRuleJobDateTimeCron>
    Time parameters for periodic execution. Note: This field may return null, indicating that no valid values can be obtained.
    TimeTZone string
    Time zone. Note: This field may return null, indicating that no valid values can be obtained.
    Timeds List<WafCustomWhiteRuleJobDateTimeTimed>
    Time parameters for scheduled execution. Note: This field may return null, indicating that no valid values can be obtained.
    Crons []WafCustomWhiteRuleJobDateTimeCron
    Time parameters for periodic execution. Note: This field may return null, indicating that no valid values can be obtained.
    TimeTZone string
    Time zone. Note: This field may return null, indicating that no valid values can be obtained.
    Timeds []WafCustomWhiteRuleJobDateTimeTimed
    Time parameters for scheduled execution. Note: This field may return null, indicating that no valid values can be obtained.
    crons List<WafCustomWhiteRuleJobDateTimeCron>
    Time parameters for periodic execution. Note: This field may return null, indicating that no valid values can be obtained.
    timeTZone String
    Time zone. Note: This field may return null, indicating that no valid values can be obtained.
    timeds List<WafCustomWhiteRuleJobDateTimeTimed>
    Time parameters for scheduled execution. Note: This field may return null, indicating that no valid values can be obtained.
    crons WafCustomWhiteRuleJobDateTimeCron[]
    Time parameters for periodic execution. Note: This field may return null, indicating that no valid values can be obtained.
    timeTZone string
    Time zone. Note: This field may return null, indicating that no valid values can be obtained.
    timeds WafCustomWhiteRuleJobDateTimeTimed[]
    Time parameters for scheduled execution. Note: This field may return null, indicating that no valid values can be obtained.
    crons Sequence[WafCustomWhiteRuleJobDateTimeCron]
    Time parameters for periodic execution. Note: This field may return null, indicating that no valid values can be obtained.
    time_t_zone str
    Time zone. Note: This field may return null, indicating that no valid values can be obtained.
    timeds Sequence[WafCustomWhiteRuleJobDateTimeTimed]
    Time parameters for scheduled execution. Note: This field may return null, indicating that no valid values can be obtained.
    crons List<Property Map>
    Time parameters for periodic execution. Note: This field may return null, indicating that no valid values can be obtained.
    timeTZone String
    Time zone. Note: This field may return null, indicating that no valid values can be obtained.
    timeds List<Property Map>
    Time parameters for scheduled execution. Note: This field may return null, indicating that no valid values can be obtained.

    WafCustomWhiteRuleJobDateTimeCron, WafCustomWhiteRuleJobDateTimeCronArgs

    Days List<double>
    Days in each month for execution. Note: This field may return null, indicating that no valid values can be obtained.
    EndTime string
    End time. Note: This field may return null, indicating that no valid values can be obtained.
    StartTime string
    Start time. Note: This field may return null, indicating that no valid values can be obtained.
    WDays List<double>
    Days of each week for execution. Note: This field may return null, indicating that no valid values can be obtained.
    Days []float64
    Days in each month for execution. Note: This field may return null, indicating that no valid values can be obtained.
    EndTime string
    End time. Note: This field may return null, indicating that no valid values can be obtained.
    StartTime string
    Start time. Note: This field may return null, indicating that no valid values can be obtained.
    WDays []float64
    Days of each week for execution. Note: This field may return null, indicating that no valid values can be obtained.
    days List<Double>
    Days in each month for execution. Note: This field may return null, indicating that no valid values can be obtained.
    endTime String
    End time. Note: This field may return null, indicating that no valid values can be obtained.
    startTime String
    Start time. Note: This field may return null, indicating that no valid values can be obtained.
    wDays List<Double>
    Days of each week for execution. Note: This field may return null, indicating that no valid values can be obtained.
    days number[]
    Days in each month for execution. Note: This field may return null, indicating that no valid values can be obtained.
    endTime string
    End time. Note: This field may return null, indicating that no valid values can be obtained.
    startTime string
    Start time. Note: This field may return null, indicating that no valid values can be obtained.
    wDays number[]
    Days of each week for execution. Note: This field may return null, indicating that no valid values can be obtained.
    days Sequence[float]
    Days in each month for execution. Note: This field may return null, indicating that no valid values can be obtained.
    end_time str
    End time. Note: This field may return null, indicating that no valid values can be obtained.
    start_time str
    Start time. Note: This field may return null, indicating that no valid values can be obtained.
    w_days Sequence[float]
    Days of each week for execution. Note: This field may return null, indicating that no valid values can be obtained.
    days List<Number>
    Days in each month for execution. Note: This field may return null, indicating that no valid values can be obtained.
    endTime String
    End time. Note: This field may return null, indicating that no valid values can be obtained.
    startTime String
    Start time. Note: This field may return null, indicating that no valid values can be obtained.
    wDays List<Number>
    Days of each week for execution. Note: This field may return null, indicating that no valid values can be obtained.

    WafCustomWhiteRuleJobDateTimeTimed, WafCustomWhiteRuleJobDateTimeTimedArgs

    EndDateTime double
    End timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    StartDateTime double
    Start timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    EndDateTime float64
    End timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    StartDateTime float64
    Start timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    endDateTime Double
    End timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    startDateTime Double
    Start timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    endDateTime number
    End timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    startDateTime number
    Start timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    end_date_time float
    End timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    start_date_time float
    Start timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    endDateTime Number
    End timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.
    startDateTime Number
    Start timestamp, in seconds. Note: This field may return null, indicating that no valid values can be obtained.

    WafCustomWhiteRuleStrategy, WafCustomWhiteRuleStrategyArgs

    Arg string
    Matching parameter There are two types of configuration parameters: unsupported parameters and supported parameters. The matching parameter can be entered only when the matching field is one of the following four. Otherwise, the parameter is not supported. GET (GET parameter value) POST (POST parameter value) ARGS_COOKIE (Cookie parameter value) ARGS_HEADER (Header parameter value) Note: This field may return null, indicating that no valid values can be obtained.
    CompareFunc string
    Logic symbol Logical symbols are divided into the following types: empty (content is empty) null (do not exist) eq (equal to) neq (not equal to) contains (contain) ncontains (do not contain) strprefix (prefix matching) strsuffix (suffix matching) len_eq (length equals to) len_gt (length is greater than) len_lt (length is less than) ipmatch (belong to) ipnmatch (do not belong to) Different matching fields correspond to different logical operators. For details, see the matching field table above. Note: This field may return null, indicating that no valid values can be obtained.
    Content string
    Matching content Currently, when the matching field is COOKIE (cookie), the matching content is not required. In other scenes, the matching content is required. Note: This field may return null, indicating that no valid values can be obtained.
    Field string
    Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows:

    CaseNotSensitive double
    0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.
    Arg string
    Matching parameter There are two types of configuration parameters: unsupported parameters and supported parameters. The matching parameter can be entered only when the matching field is one of the following four. Otherwise, the parameter is not supported. GET (GET parameter value) POST (POST parameter value) ARGS_COOKIE (Cookie parameter value) ARGS_HEADER (Header parameter value) Note: This field may return null, indicating that no valid values can be obtained.
    CompareFunc string
    Logic symbol Logical symbols are divided into the following types: empty (content is empty) null (do not exist) eq (equal to) neq (not equal to) contains (contain) ncontains (do not contain) strprefix (prefix matching) strsuffix (suffix matching) len_eq (length equals to) len_gt (length is greater than) len_lt (length is less than) ipmatch (belong to) ipnmatch (do not belong to) Different matching fields correspond to different logical operators. For details, see the matching field table above. Note: This field may return null, indicating that no valid values can be obtained.
    Content string
    Matching content Currently, when the matching field is COOKIE (cookie), the matching content is not required. In other scenes, the matching content is required. Note: This field may return null, indicating that no valid values can be obtained.
    Field string
    Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows:

    CaseNotSensitive float64
    0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.
    arg String
    Matching parameter There are two types of configuration parameters: unsupported parameters and supported parameters. The matching parameter can be entered only when the matching field is one of the following four. Otherwise, the parameter is not supported. GET (GET parameter value) POST (POST parameter value) ARGS_COOKIE (Cookie parameter value) ARGS_HEADER (Header parameter value) Note: This field may return null, indicating that no valid values can be obtained.
    compareFunc String
    Logic symbol Logical symbols are divided into the following types: empty (content is empty) null (do not exist) eq (equal to) neq (not equal to) contains (contain) ncontains (do not contain) strprefix (prefix matching) strsuffix (suffix matching) len_eq (length equals to) len_gt (length is greater than) len_lt (length is less than) ipmatch (belong to) ipnmatch (do not belong to) Different matching fields correspond to different logical operators. For details, see the matching field table above. Note: This field may return null, indicating that no valid values can be obtained.
    content String
    Matching content Currently, when the matching field is COOKIE (cookie), the matching content is not required. In other scenes, the matching content is required. Note: This field may return null, indicating that no valid values can be obtained.
    field String
    Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows:

    caseNotSensitive Double
    0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.
    arg string
    Matching parameter There are two types of configuration parameters: unsupported parameters and supported parameters. The matching parameter can be entered only when the matching field is one of the following four. Otherwise, the parameter is not supported. GET (GET parameter value) POST (POST parameter value) ARGS_COOKIE (Cookie parameter value) ARGS_HEADER (Header parameter value) Note: This field may return null, indicating that no valid values can be obtained.
    compareFunc string
    Logic symbol Logical symbols are divided into the following types: empty (content is empty) null (do not exist) eq (equal to) neq (not equal to) contains (contain) ncontains (do not contain) strprefix (prefix matching) strsuffix (suffix matching) len_eq (length equals to) len_gt (length is greater than) len_lt (length is less than) ipmatch (belong to) ipnmatch (do not belong to) Different matching fields correspond to different logical operators. For details, see the matching field table above. Note: This field may return null, indicating that no valid values can be obtained.
    content string
    Matching content Currently, when the matching field is COOKIE (cookie), the matching content is not required. In other scenes, the matching content is required. Note: This field may return null, indicating that no valid values can be obtained.
    field string
    Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows:

    caseNotSensitive number
    0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.
    arg str
    Matching parameter There are two types of configuration parameters: unsupported parameters and supported parameters. The matching parameter can be entered only when the matching field is one of the following four. Otherwise, the parameter is not supported. GET (GET parameter value) POST (POST parameter value) ARGS_COOKIE (Cookie parameter value) ARGS_HEADER (Header parameter value) Note: This field may return null, indicating that no valid values can be obtained.
    compare_func str
    Logic symbol Logical symbols are divided into the following types: empty (content is empty) null (do not exist) eq (equal to) neq (not equal to) contains (contain) ncontains (do not contain) strprefix (prefix matching) strsuffix (suffix matching) len_eq (length equals to) len_gt (length is greater than) len_lt (length is less than) ipmatch (belong to) ipnmatch (do not belong to) Different matching fields correspond to different logical operators. For details, see the matching field table above. Note: This field may return null, indicating that no valid values can be obtained.
    content str
    Matching content Currently, when the matching field is COOKIE (cookie), the matching content is not required. In other scenes, the matching content is required. Note: This field may return null, indicating that no valid values can be obtained.
    field str
    Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows:

    case_not_sensitive float
    0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.
    arg String
    Matching parameter There are two types of configuration parameters: unsupported parameters and supported parameters. The matching parameter can be entered only when the matching field is one of the following four. Otherwise, the parameter is not supported. GET (GET parameter value) POST (POST parameter value) ARGS_COOKIE (Cookie parameter value) ARGS_HEADER (Header parameter value) Note: This field may return null, indicating that no valid values can be obtained.
    compareFunc String
    Logic symbol Logical symbols are divided into the following types: empty (content is empty) null (do not exist) eq (equal to) neq (not equal to) contains (contain) ncontains (do not contain) strprefix (prefix matching) strsuffix (suffix matching) len_eq (length equals to) len_gt (length is greater than) len_lt (length is less than) ipmatch (belong to) ipnmatch (do not belong to) Different matching fields correspond to different logical operators. For details, see the matching field table above. Note: This field may return null, indicating that no valid values can be obtained.
    content String
    Matching content Currently, when the matching field is COOKIE (cookie), the matching content is not required. In other scenes, the matching content is required. Note: This field may return null, indicating that no valid values can be obtained.
    field String
    Matching field Different matching fields result in different matching parameters, logical operators, and matching contents. The details are as follows:

    caseNotSensitive Number
    0: case-sensitive, 1: case-insensitive. Note: This field may return null, indicating that no valid values can be obtained.

    Import

    waf custom white rule can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/wafCustomWhiteRule:WafCustomWhiteRule example test.com#1100310837
    

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

    Package Details

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