1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafOwaspRuleTypeConfig
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack

    Provides a resource to create a WAF owasp rule type config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafOwaspRuleTypeConfig("example", {
        domain: "demo.com",
        typeId: "30000000",
        ruleTypeStatus: 1,
        ruleTypeAction: 1,
        ruleTypeLevel: 200,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafOwaspRuleTypeConfig("example",
        domain="demo.com",
        type_id="30000000",
        rule_type_status=1,
        rule_type_action=1,
        rule_type_level=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.NewWafOwaspRuleTypeConfig(ctx, "example", &tencentcloud.WafOwaspRuleTypeConfigArgs{
    			Domain:         pulumi.String("demo.com"),
    			TypeId:         pulumi.String("30000000"),
    			RuleTypeStatus: pulumi.Float64(1),
    			RuleTypeAction: pulumi.Float64(1),
    			RuleTypeLevel:  pulumi.Float64(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.WafOwaspRuleTypeConfig("example", new()
        {
            Domain = "demo.com",
            TypeId = "30000000",
            RuleTypeStatus = 1,
            RuleTypeAction = 1,
            RuleTypeLevel = 200,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafOwaspRuleTypeConfig;
    import com.pulumi.tencentcloud.WafOwaspRuleTypeConfigArgs;
    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 WafOwaspRuleTypeConfig("example", WafOwaspRuleTypeConfigArgs.builder()
                .domain("demo.com")
                .typeId("30000000")
                .ruleTypeStatus(1.0)
                .ruleTypeAction(1.0)
                .ruleTypeLevel(200.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafOwaspRuleTypeConfig
        properties:
          domain: demo.com
          typeId: '30000000'
          ruleTypeStatus: 1
          ruleTypeAction: 1
          ruleTypeLevel: 200
    

    Create WafOwaspRuleTypeConfig Resource

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

    Constructor syntax

    new WafOwaspRuleTypeConfig(name: string, args: WafOwaspRuleTypeConfigArgs, opts?: CustomResourceOptions);
    @overload
    def WafOwaspRuleTypeConfig(resource_name: str,
                               args: WafOwaspRuleTypeConfigArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafOwaspRuleTypeConfig(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               domain: Optional[str] = None,
                               type_id: Optional[str] = None,
                               rule_type_action: Optional[float] = None,
                               rule_type_level: Optional[float] = None,
                               rule_type_status: Optional[float] = None,
                               waf_owasp_rule_type_config_id: Optional[str] = None)
    func NewWafOwaspRuleTypeConfig(ctx *Context, name string, args WafOwaspRuleTypeConfigArgs, opts ...ResourceOption) (*WafOwaspRuleTypeConfig, error)
    public WafOwaspRuleTypeConfig(string name, WafOwaspRuleTypeConfigArgs args, CustomResourceOptions? opts = null)
    public WafOwaspRuleTypeConfig(String name, WafOwaspRuleTypeConfigArgs args)
    public WafOwaspRuleTypeConfig(String name, WafOwaspRuleTypeConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafOwaspRuleTypeConfig
    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 WafOwaspRuleTypeConfigArgs
    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 WafOwaspRuleTypeConfigArgs
    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 WafOwaspRuleTypeConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafOwaspRuleTypeConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafOwaspRuleTypeConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    Domain name.
    TypeId string
    Rule type ID.
    RuleTypeAction double
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    RuleTypeLevel double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    RuleTypeStatus double
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    WafOwaspRuleTypeConfigId string
    ID of the resource.
    Domain string
    Domain name.
    TypeId string
    Rule type ID.
    RuleTypeAction float64
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    RuleTypeLevel float64
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    RuleTypeStatus float64
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    WafOwaspRuleTypeConfigId string
    ID of the resource.
    domain String
    Domain name.
    typeId String
    Rule type ID.
    ruleTypeAction Double
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ruleTypeLevel Double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    ruleTypeStatus Double
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    wafOwaspRuleTypeConfigId String
    ID of the resource.
    domain string
    Domain name.
    typeId string
    Rule type ID.
    ruleTypeAction number
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ruleTypeLevel number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    ruleTypeStatus number
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    wafOwaspRuleTypeConfigId string
    ID of the resource.
    domain str
    Domain name.
    type_id str
    Rule type ID.
    rule_type_action float
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    rule_type_level float
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    rule_type_status float
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    waf_owasp_rule_type_config_id str
    ID of the resource.
    domain String
    Domain name.
    typeId String
    Rule type ID.
    ruleTypeAction Number
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ruleTypeLevel Number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    ruleTypeStatus Number
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    wafOwaspRuleTypeConfigId String
    ID of the resource.

    Outputs

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

    ActiveRule double
    Indicates the total number of rules enabled under the rule type.
    Classification string
    Data type category.
    Description string
    Rule type description.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleTypeName string
    Rule type name.
    TotalRule double
    Specifies all rules under the rule type. always.
    ActiveRule float64
    Indicates the total number of rules enabled under the rule type.
    Classification string
    Data type category.
    Description string
    Rule type description.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleTypeName string
    Rule type name.
    TotalRule float64
    Specifies all rules under the rule type. always.
    activeRule Double
    Indicates the total number of rules enabled under the rule type.
    classification String
    Data type category.
    description String
    Rule type description.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleTypeName String
    Rule type name.
    totalRule Double
    Specifies all rules under the rule type. always.
    activeRule number
    Indicates the total number of rules enabled under the rule type.
    classification string
    Data type category.
    description string
    Rule type description.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleTypeName string
    Rule type name.
    totalRule number
    Specifies all rules under the rule type. always.
    active_rule float
    Indicates the total number of rules enabled under the rule type.
    classification str
    Data type category.
    description str
    Rule type description.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_type_name str
    Rule type name.
    total_rule float
    Specifies all rules under the rule type. always.
    activeRule Number
    Indicates the total number of rules enabled under the rule type.
    classification String
    Data type category.
    description String
    Rule type description.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleTypeName String
    Rule type name.
    totalRule Number
    Specifies all rules under the rule type. always.

    Look up Existing WafOwaspRuleTypeConfig Resource

    Get an existing WafOwaspRuleTypeConfig 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?: WafOwaspRuleTypeConfigState, opts?: CustomResourceOptions): WafOwaspRuleTypeConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active_rule: Optional[float] = None,
            classification: Optional[str] = None,
            description: Optional[str] = None,
            domain: Optional[str] = None,
            rule_type_action: Optional[float] = None,
            rule_type_level: Optional[float] = None,
            rule_type_name: Optional[str] = None,
            rule_type_status: Optional[float] = None,
            total_rule: Optional[float] = None,
            type_id: Optional[str] = None,
            waf_owasp_rule_type_config_id: Optional[str] = None) -> WafOwaspRuleTypeConfig
    func GetWafOwaspRuleTypeConfig(ctx *Context, name string, id IDInput, state *WafOwaspRuleTypeConfigState, opts ...ResourceOption) (*WafOwaspRuleTypeConfig, error)
    public static WafOwaspRuleTypeConfig Get(string name, Input<string> id, WafOwaspRuleTypeConfigState? state, CustomResourceOptions? opts = null)
    public static WafOwaspRuleTypeConfig get(String name, Output<String> id, WafOwaspRuleTypeConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafOwaspRuleTypeConfig    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:
    ActiveRule double
    Indicates the total number of rules enabled under the rule type.
    Classification string
    Data type category.
    Description string
    Rule type description.
    Domain string
    Domain name.
    RuleTypeAction double
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    RuleTypeLevel double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    RuleTypeName string
    Rule type name.
    RuleTypeStatus double
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    TotalRule double
    Specifies all rules under the rule type. always.
    TypeId string
    Rule type ID.
    WafOwaspRuleTypeConfigId string
    ID of the resource.
    ActiveRule float64
    Indicates the total number of rules enabled under the rule type.
    Classification string
    Data type category.
    Description string
    Rule type description.
    Domain string
    Domain name.
    RuleTypeAction float64
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    RuleTypeLevel float64
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    RuleTypeName string
    Rule type name.
    RuleTypeStatus float64
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    TotalRule float64
    Specifies all rules under the rule type. always.
    TypeId string
    Rule type ID.
    WafOwaspRuleTypeConfigId string
    ID of the resource.
    activeRule Double
    Indicates the total number of rules enabled under the rule type.
    classification String
    Data type category.
    description String
    Rule type description.
    domain String
    Domain name.
    ruleTypeAction Double
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ruleTypeLevel Double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    ruleTypeName String
    Rule type name.
    ruleTypeStatus Double
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    totalRule Double
    Specifies all rules under the rule type. always.
    typeId String
    Rule type ID.
    wafOwaspRuleTypeConfigId String
    ID of the resource.
    activeRule number
    Indicates the total number of rules enabled under the rule type.
    classification string
    Data type category.
    description string
    Rule type description.
    domain string
    Domain name.
    ruleTypeAction number
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ruleTypeLevel number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    ruleTypeName string
    Rule type name.
    ruleTypeStatus number
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    totalRule number
    Specifies all rules under the rule type. always.
    typeId string
    Rule type ID.
    wafOwaspRuleTypeConfigId string
    ID of the resource.
    active_rule float
    Indicates the total number of rules enabled under the rule type.
    classification str
    Data type category.
    description str
    Rule type description.
    domain str
    Domain name.
    rule_type_action float
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    rule_type_level float
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    rule_type_name str
    Rule type name.
    rule_type_status float
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    total_rule float
    Specifies all rules under the rule type. always.
    type_id str
    Rule type ID.
    waf_owasp_rule_type_config_id str
    ID of the resource.
    activeRule Number
    Indicates the total number of rules enabled under the rule type.
    classification String
    Data type category.
    description String
    Rule type description.
    domain String
    Domain name.
    ruleTypeAction Number
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ruleTypeLevel Number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    ruleTypeName String
    Rule type name.
    ruleTypeStatus Number
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    totalRule Number
    Specifies all rules under the rule type. always.
    typeId String
    Rule type ID.
    wafOwaspRuleTypeConfigId String
    ID of the resource.

    Import

    WAF owasp rule type config can be imported using the domain#typeId, e.g.

    $ pulumi import tencentcloud:index/wafOwaspRuleTypeConfig:WafOwaspRuleTypeConfig example demo.com#30000000
    

    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.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate