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.
- Type
Id string - Rule type ID.
- Rule
Type doubleAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- Rule
Type doubleLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Rule
Type doubleStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- Waf
Owasp stringRule Type Config Id - ID of the resource.
- Domain string
- Domain name.
- Type
Id string - Rule type ID.
- Rule
Type float64Action - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- Rule
Type float64Level - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Rule
Type float64Status - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- Waf
Owasp stringRule Type Config Id - ID of the resource.
- domain String
- Domain name.
- type
Id String - Rule type ID.
- rule
Type DoubleAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule
Type DoubleLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule
Type DoubleStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- waf
Owasp StringRule Type Config Id - ID of the resource.
- domain string
- Domain name.
- type
Id string - Rule type ID.
- rule
Type numberAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule
Type numberLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule
Type numberStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- waf
Owasp stringRule Type Config Id - ID of the resource.
- domain str
- Domain name.
- type_
id str - Rule type ID.
- rule_
type_ floataction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule_
type_ floatlevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule_
type_ floatstatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- waf_
owasp_ strrule_ type_ config_ id - ID of the resource.
- domain String
- Domain name.
- type
Id String - Rule type ID.
- rule
Type NumberAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule
Type NumberLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule
Type NumberStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- waf
Owasp StringRule Type Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafOwaspRuleTypeConfig resource produces the following output properties:
- Active
Rule 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.
- Rule
Type stringName - Rule type name.
- Total
Rule double - Specifies all rules under the rule type. always.
- Active
Rule 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.
- Rule
Type stringName - Rule type name.
- Total
Rule float64 - Specifies all rules under the rule type. always.
- active
Rule 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.
- rule
Type StringName - Rule type name.
- total
Rule Double - Specifies all rules under the rule type. always.
- active
Rule 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.
- rule
Type stringName - Rule type name.
- total
Rule 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_ strname - Rule type name.
- total_
rule float - Specifies all rules under the rule type. always.
- active
Rule 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.
- rule
Type StringName - Rule type name.
- total
Rule 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) -> WafOwaspRuleTypeConfigfunc 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.
- Active
Rule 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.
- Rule
Type doubleAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- Rule
Type doubleLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Rule
Type stringName - Rule type name.
- Rule
Type doubleStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- Total
Rule double - Specifies all rules under the rule type. always.
- Type
Id string - Rule type ID.
- Waf
Owasp stringRule Type Config Id - ID of the resource.
- Active
Rule 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.
- Rule
Type float64Action - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- Rule
Type float64Level - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Rule
Type stringName - Rule type name.
- Rule
Type float64Status - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- Total
Rule float64 - Specifies all rules under the rule type. always.
- Type
Id string - Rule type ID.
- Waf
Owasp stringRule Type Config Id - ID of the resource.
- active
Rule 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.
- rule
Type DoubleAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule
Type DoubleLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule
Type StringName - Rule type name.
- rule
Type DoubleStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- total
Rule Double - Specifies all rules under the rule type. always.
- type
Id String - Rule type ID.
- waf
Owasp StringRule Type Config Id - ID of the resource.
- active
Rule 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.
- rule
Type numberAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule
Type numberLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule
Type stringName - Rule type name.
- rule
Type numberStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- total
Rule number - Specifies all rules under the rule type. always.
- type
Id string - Rule type ID.
- waf
Owasp stringRule Type Config Id - 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_ floataction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule_
type_ floatlevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule_
type_ strname - Rule type name.
- rule_
type_ floatstatus - 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_ strrule_ type_ config_ id - ID of the resource.
- active
Rule 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.
- rule
Type NumberAction - Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
- rule
Type NumberLevel - Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- rule
Type StringName - Rule type name.
- rule
Type NumberStatus - The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
- total
Rule Number - Specifies all rules under the rule type. always.
- type
Id String - Rule type ID.
- waf
Owasp StringRule Type Config Id - 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
tencentcloudTerraform Provider.
