published on Tuesday, Jun 30, 2026 by tencentcloudstack
published on Tuesday, Jun 30, 2026 by tencentcloudstack
Provides a resource to create a WAF api sec sensitive custom api exclude rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafApiSecSensitiveCustomApiExcludeRule("example", {
domain: "www.example.com",
ruleName: "tf-example",
status: 1,
matchType: "regex",
content: "/static",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafApiSecSensitiveCustomApiExcludeRule("example",
domain="www.example.com",
rule_name="tf-example",
status=1,
match_type="regex",
content="/static")
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.NewWafApiSecSensitiveCustomApiExcludeRule(ctx, "example", &tencentcloud.WafApiSecSensitiveCustomApiExcludeRuleArgs{
Domain: pulumi.String("www.example.com"),
RuleName: pulumi.String("tf-example"),
Status: pulumi.Float64(1),
MatchType: pulumi.String("regex"),
Content: pulumi.String("/static"),
})
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.WafApiSecSensitiveCustomApiExcludeRule("example", new()
{
Domain = "www.example.com",
RuleName = "tf-example",
Status = 1,
MatchType = "regex",
Content = "/static",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafApiSecSensitiveCustomApiExcludeRule;
import com.pulumi.tencentcloud.WafApiSecSensitiveCustomApiExcludeRuleArgs;
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 WafApiSecSensitiveCustomApiExcludeRule("example", WafApiSecSensitiveCustomApiExcludeRuleArgs.builder()
.domain("www.example.com")
.ruleName("tf-example")
.status(1.0)
.matchType("regex")
.content("/static")
.build());
}
}
resources:
example:
type: tencentcloud:WafApiSecSensitiveCustomApiExcludeRule
properties:
domain: www.example.com
ruleName: tf-example
status: 1
matchType: regex
content: /static
Example coming soon!
Create WafApiSecSensitiveCustomApiExcludeRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafApiSecSensitiveCustomApiExcludeRule(name: string, args: WafApiSecSensitiveCustomApiExcludeRuleArgs, opts?: CustomResourceOptions);@overload
def WafApiSecSensitiveCustomApiExcludeRule(resource_name: str,
args: WafApiSecSensitiveCustomApiExcludeRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafApiSecSensitiveCustomApiExcludeRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
rule_name: Optional[str] = None,
status: Optional[float] = None,
content: Optional[str] = None,
match_type: Optional[str] = None,
waf_api_sec_sensitive_custom_api_exclude_rule_id: Optional[str] = None)func NewWafApiSecSensitiveCustomApiExcludeRule(ctx *Context, name string, args WafApiSecSensitiveCustomApiExcludeRuleArgs, opts ...ResourceOption) (*WafApiSecSensitiveCustomApiExcludeRule, error)public WafApiSecSensitiveCustomApiExcludeRule(string name, WafApiSecSensitiveCustomApiExcludeRuleArgs args, CustomResourceOptions? opts = null)
public WafApiSecSensitiveCustomApiExcludeRule(String name, WafApiSecSensitiveCustomApiExcludeRuleArgs args)
public WafApiSecSensitiveCustomApiExcludeRule(String name, WafApiSecSensitiveCustomApiExcludeRuleArgs args, CustomResourceOptions options)
type: tencentcloud:WafApiSecSensitiveCustomApiExcludeRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_wafapisecsensitivecustomapiexcluderule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args WafApiSecSensitiveCustomApiExcludeRuleArgs
- 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 WafApiSecSensitiveCustomApiExcludeRuleArgs
- 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 WafApiSecSensitiveCustomApiExcludeRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafApiSecSensitiveCustomApiExcludeRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafApiSecSensitiveCustomApiExcludeRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafApiSecSensitiveCustomApiExcludeRule 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 WafApiSecSensitiveCustomApiExcludeRule resource accepts the following input properties:
- domain string
- Domain name.
- rule_
name string - Rule name.
- status number
- Rule switch, 0: off, 1: on.
- content string
- Match content.
- match_
type string - Match type, regex, prefix, suffix, contain match mode.
- waf_
api_ stringsec_ sensitive_ custom_ api_ exclude_ rule_ id - ID of the resource.
- domain str
- Domain name.
- rule_
name str - Rule name.
- status float
- Rule switch, 0: off, 1: on.
- content str
- Match content.
- match_
type str - Match type, regex, prefix, suffix, contain match mode.
- waf_
api_ strsec_ sensitive_ custom_ api_ exclude_ rule_ id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafApiSecSensitiveCustomApiExcludeRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time double - Update timestamp.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time float64 - Update timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- update_
time number - Update timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time Double - Update timestamp.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time number - Update timestamp.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time float - Update timestamp.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time Number - Update timestamp.
Look up Existing WafApiSecSensitiveCustomApiExcludeRule Resource
Get an existing WafApiSecSensitiveCustomApiExcludeRule 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?: WafApiSecSensitiveCustomApiExcludeRuleState, opts?: CustomResourceOptions): WafApiSecSensitiveCustomApiExcludeRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
domain: Optional[str] = None,
match_type: Optional[str] = None,
rule_name: Optional[str] = None,
status: Optional[float] = None,
update_time: Optional[float] = None,
waf_api_sec_sensitive_custom_api_exclude_rule_id: Optional[str] = None) -> WafApiSecSensitiveCustomApiExcludeRulefunc GetWafApiSecSensitiveCustomApiExcludeRule(ctx *Context, name string, id IDInput, state *WafApiSecSensitiveCustomApiExcludeRuleState, opts ...ResourceOption) (*WafApiSecSensitiveCustomApiExcludeRule, error)public static WafApiSecSensitiveCustomApiExcludeRule Get(string name, Input<string> id, WafApiSecSensitiveCustomApiExcludeRuleState? state, CustomResourceOptions? opts = null)public static WafApiSecSensitiveCustomApiExcludeRule get(String name, Output<String> id, WafApiSecSensitiveCustomApiExcludeRuleState state, CustomResourceOptions options)resources: _: type: tencentcloud:WafApiSecSensitiveCustomApiExcludeRule get: id: ${id}import {
to = tencentcloud_wafapisecsensitivecustomapiexcluderule.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Content string
- Match content.
- Domain string
- Domain name.
- Match
Type string - Match type, regex, prefix, suffix, contain match mode.
- Rule
Name string - Rule name.
- Status double
- Rule switch, 0: off, 1: on.
- Update
Time double - Update timestamp.
- Waf
Api stringSec Sensitive Custom Api Exclude Rule Id - ID of the resource.
- Content string
- Match content.
- Domain string
- Domain name.
- Match
Type string - Match type, regex, prefix, suffix, contain match mode.
- Rule
Name string - Rule name.
- Status float64
- Rule switch, 0: off, 1: on.
- Update
Time float64 - Update timestamp.
- Waf
Api stringSec Sensitive Custom Api Exclude Rule Id - ID of the resource.
- content string
- Match content.
- domain string
- Domain name.
- match_
type string - Match type, regex, prefix, suffix, contain match mode.
- rule_
name string - Rule name.
- status number
- Rule switch, 0: off, 1: on.
- update_
time number - Update timestamp.
- waf_
api_ stringsec_ sensitive_ custom_ api_ exclude_ rule_ id - ID of the resource.
- content String
- Match content.
- domain String
- Domain name.
- match
Type String - Match type, regex, prefix, suffix, contain match mode.
- rule
Name String - Rule name.
- status Double
- Rule switch, 0: off, 1: on.
- update
Time Double - Update timestamp.
- waf
Api StringSec Sensitive Custom Api Exclude Rule Id - ID of the resource.
- content string
- Match content.
- domain string
- Domain name.
- match
Type string - Match type, regex, prefix, suffix, contain match mode.
- rule
Name string - Rule name.
- status number
- Rule switch, 0: off, 1: on.
- update
Time number - Update timestamp.
- waf
Api stringSec Sensitive Custom Api Exclude Rule Id - ID of the resource.
- content str
- Match content.
- domain str
- Domain name.
- match_
type str - Match type, regex, prefix, suffix, contain match mode.
- rule_
name str - Rule name.
- status float
- Rule switch, 0: off, 1: on.
- update_
time float - Update timestamp.
- waf_
api_ strsec_ sensitive_ custom_ api_ exclude_ rule_ id - ID of the resource.
- content String
- Match content.
- domain String
- Domain name.
- match
Type String - Match type, regex, prefix, suffix, contain match mode.
- rule
Name String - Rule name.
- status Number
- Rule switch, 0: off, 1: on.
- update
Time Number - Update timestamp.
- waf
Api StringSec Sensitive Custom Api Exclude Rule Id - ID of the resource.
Import
WAF api sec sensitive custom api exclude rule can be imported using the domain#ruleName, e.g.
$ pulumi import tencentcloud:index/wafApiSecSensitiveCustomApiExcludeRule:WafApiSecSensitiveCustomApiExcludeRule example www.example.com#tf-example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Tuesday, Jun 30, 2026 by tencentcloudstack