Provides a resource to create a WAF owasp rule status config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafOwaspRuleStatusConfig("example", {
domain: "demo.com",
ruleId: "106251141",
ruleStatus: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafOwaspRuleStatusConfig("example",
domain="demo.com",
rule_id="106251141",
rule_status=1)
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.NewWafOwaspRuleStatusConfig(ctx, "example", &tencentcloud.WafOwaspRuleStatusConfigArgs{
Domain: pulumi.String("demo.com"),
RuleId: pulumi.String("106251141"),
RuleStatus: pulumi.Float64(1),
})
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.WafOwaspRuleStatusConfig("example", new()
{
Domain = "demo.com",
RuleId = "106251141",
RuleStatus = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafOwaspRuleStatusConfig;
import com.pulumi.tencentcloud.WafOwaspRuleStatusConfigArgs;
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 WafOwaspRuleStatusConfig("example", WafOwaspRuleStatusConfigArgs.builder()
.domain("demo.com")
.ruleId("106251141")
.ruleStatus(1.0)
.build());
}
}
resources:
example:
type: tencentcloud:WafOwaspRuleStatusConfig
properties:
domain: demo.com
ruleId: '106251141'
ruleStatus: 1
Create WafOwaspRuleStatusConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafOwaspRuleStatusConfig(name: string, args: WafOwaspRuleStatusConfigArgs, opts?: CustomResourceOptions);@overload
def WafOwaspRuleStatusConfig(resource_name: str,
args: WafOwaspRuleStatusConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafOwaspRuleStatusConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
rule_id: Optional[str] = None,
rule_status: Optional[float] = None,
reason: Optional[float] = None,
type_id: Optional[float] = None,
waf_owasp_rule_status_config_id: Optional[str] = None)func NewWafOwaspRuleStatusConfig(ctx *Context, name string, args WafOwaspRuleStatusConfigArgs, opts ...ResourceOption) (*WafOwaspRuleStatusConfig, error)public WafOwaspRuleStatusConfig(string name, WafOwaspRuleStatusConfigArgs args, CustomResourceOptions? opts = null)
public WafOwaspRuleStatusConfig(String name, WafOwaspRuleStatusConfigArgs args)
public WafOwaspRuleStatusConfig(String name, WafOwaspRuleStatusConfigArgs args, CustomResourceOptions options)
type: tencentcloud:WafOwaspRuleStatusConfig
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 WafOwaspRuleStatusConfigArgs
- 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 WafOwaspRuleStatusConfigArgs
- 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 WafOwaspRuleStatusConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafOwaspRuleStatusConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafOwaspRuleStatusConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafOwaspRuleStatusConfig 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 WafOwaspRuleStatusConfig resource accepts the following input properties:
- Domain string
- Domain name.
- Rule
Id string - Rule ID.
- Rule
Status double - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- Reason double
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- Type
Id double - If reverse requires the input of data type.
- Waf
Owasp stringRule Status Config Id - ID of the resource.
- Domain string
- Domain name.
- Rule
Id string - Rule ID.
- Rule
Status float64 - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- Reason float64
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- Type
Id float64 - If reverse requires the input of data type.
- Waf
Owasp stringRule Status Config Id - ID of the resource.
- domain String
- Domain name.
- rule
Id String - Rule ID.
- rule
Status Double - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- reason Double
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- type
Id Double - If reverse requires the input of data type.
- waf
Owasp StringRule Status Config Id - ID of the resource.
- domain string
- Domain name.
- rule
Id string - Rule ID.
- rule
Status number - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- reason number
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- type
Id number - If reverse requires the input of data type.
- waf
Owasp stringRule Status Config Id - ID of the resource.
- domain str
- Domain name.
- rule_
id str - Rule ID.
- rule_
status float - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- reason float
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- type_
id float - If reverse requires the input of data type.
- waf_
owasp_ strrule_ status_ config_ id - ID of the resource.
- domain String
- Domain name.
- rule
Id String - Rule ID.
- rule
Status Number - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- reason Number
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- type
Id Number - If reverse requires the input of data type.
- waf
Owasp StringRule Status Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafOwaspRuleStatusConfig resource produces the following output properties:
- Cve
Id string - CVE ID.
- Description string
- Rule description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Level double
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Locked double
- Whether the user is locked.
- Vul
Level double - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- Cve
Id string - CVE ID.
- Description string
- Rule description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Level float64
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Locked float64
- Whether the user is locked.
- Vul
Level float64 - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- cve
Id String - CVE ID.
- description String
- Rule description.
- id String
- The provider-assigned unique ID for this managed resource.
- level Double
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked Double
- Whether the user is locked.
- vul
Level Double - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- cve
Id string - CVE ID.
- description string
- Rule description.
- id string
- The provider-assigned unique ID for this managed resource.
- level number
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked number
- Whether the user is locked.
- vul
Level number - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- cve_
id str - CVE ID.
- description str
- Rule description.
- id str
- The provider-assigned unique ID for this managed resource.
- level float
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked float
- Whether the user is locked.
- vul_
level float - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- cve
Id String - CVE ID.
- description String
- Rule description.
- id String
- The provider-assigned unique ID for this managed resource.
- level Number
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked Number
- Whether the user is locked.
- vul
Level Number - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
Look up Existing WafOwaspRuleStatusConfig Resource
Get an existing WafOwaspRuleStatusConfig 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?: WafOwaspRuleStatusConfigState, opts?: CustomResourceOptions): WafOwaspRuleStatusConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cve_id: Optional[str] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
level: Optional[float] = None,
locked: Optional[float] = None,
reason: Optional[float] = None,
rule_id: Optional[str] = None,
rule_status: Optional[float] = None,
type_id: Optional[float] = None,
vul_level: Optional[float] = None,
waf_owasp_rule_status_config_id: Optional[str] = None) -> WafOwaspRuleStatusConfigfunc GetWafOwaspRuleStatusConfig(ctx *Context, name string, id IDInput, state *WafOwaspRuleStatusConfigState, opts ...ResourceOption) (*WafOwaspRuleStatusConfig, error)public static WafOwaspRuleStatusConfig Get(string name, Input<string> id, WafOwaspRuleStatusConfigState? state, CustomResourceOptions? opts = null)public static WafOwaspRuleStatusConfig get(String name, Output<String> id, WafOwaspRuleStatusConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:WafOwaspRuleStatusConfig 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.
- Cve
Id string - CVE ID.
- Description string
- Rule description.
- Domain string
- Domain name.
- Level double
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Locked double
- Whether the user is locked.
- Reason double
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- Rule
Id string - Rule ID.
- Rule
Status double - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- Type
Id double - If reverse requires the input of data type.
- Vul
Level double - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- Waf
Owasp stringRule Status Config Id - ID of the resource.
- Cve
Id string - CVE ID.
- Description string
- Rule description.
- Domain string
- Domain name.
- Level float64
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- Locked float64
- Whether the user is locked.
- Reason float64
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- Rule
Id string - Rule ID.
- Rule
Status float64 - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- Type
Id float64 - If reverse requires the input of data type.
- Vul
Level float64 - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- Waf
Owasp stringRule Status Config Id - ID of the resource.
- cve
Id String - CVE ID.
- description String
- Rule description.
- domain String
- Domain name.
- level Double
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked Double
- Whether the user is locked.
- reason Double
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- rule
Id String - Rule ID.
- rule
Status Double - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type
Id Double - If reverse requires the input of data type.
- vul
Level Double - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- waf
Owasp StringRule Status Config Id - ID of the resource.
- cve
Id string - CVE ID.
- description string
- Rule description.
- domain string
- Domain name.
- level number
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked number
- Whether the user is locked.
- reason number
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- rule
Id string - Rule ID.
- rule
Status number - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type
Id number - If reverse requires the input of data type.
- vul
Level number - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- waf
Owasp stringRule Status Config Id - ID of the resource.
- cve_
id str - CVE ID.
- description str
- Rule description.
- domain str
- Domain name.
- level float
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked float
- Whether the user is locked.
- reason float
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- rule_
id str - Rule ID.
- rule_
status float - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type_
id float - If reverse requires the input of data type.
- vul_
level float - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- waf_
owasp_ strrule_ status_ config_ id - ID of the resource.
- cve
Id String - CVE ID.
- description String
- Rule description.
- domain String
- Domain name.
- level Number
- Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
- locked Number
- Whether the user is locked.
- reason Number
- Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
- rule
Id String - Rule ID.
- rule
Status Number - Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
- type
Id Number - If reverse requires the input of data type.
- vul
Level Number - Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
- waf
Owasp StringRule Status Config Id - ID of the resource.
Import
WAF owasp rule status config can be imported using the domain#ruleId, e.g.
$ pulumi import tencentcloud:index/wafOwaspRuleStatusConfig:WafOwaspRuleStatusConfig example demo.com#106251141
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.
