1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafBotStatusConfig
tencentcloud 1.81.193 published on Saturday, May 17, 2025 by tencentcloudstack

tencentcloud.WafBotStatusConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.193 published on Saturday, May 17, 2025 by tencentcloudstack

    Provides a resource to create a WAF bot status config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafBotStatusConfig("example", {
        domain: "example.com",
        instanceId: "waf_2kxtlbky11bbcr4b",
        status: "0",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafBotStatusConfig("example",
        domain="example.com",
        instance_id="waf_2kxtlbky11bbcr4b",
        status="0")
    
    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.NewWafBotStatusConfig(ctx, "example", &tencentcloud.WafBotStatusConfigArgs{
    			Domain:     pulumi.String("example.com"),
    			InstanceId: pulumi.String("waf_2kxtlbky11bbcr4b"),
    			Status:     pulumi.String("0"),
    		})
    		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.WafBotStatusConfig("example", new()
        {
            Domain = "example.com",
            InstanceId = "waf_2kxtlbky11bbcr4b",
            Status = "0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafBotStatusConfig;
    import com.pulumi.tencentcloud.WafBotStatusConfigArgs;
    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 WafBotStatusConfig("example", WafBotStatusConfigArgs.builder()
                .domain("example.com")
                .instanceId("waf_2kxtlbky11bbcr4b")
                .status("0")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafBotStatusConfig
        properties:
          domain: example.com
          instanceId: waf_2kxtlbky11bbcr4b
          status: '0'
    

    Create WafBotStatusConfig Resource

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

    Constructor syntax

    new WafBotStatusConfig(name: string, args: WafBotStatusConfigArgs, opts?: CustomResourceOptions);
    @overload
    def WafBotStatusConfig(resource_name: str,
                           args: WafBotStatusConfigArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafBotStatusConfig(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           domain: Optional[str] = None,
                           instance_id: Optional[str] = None,
                           status: Optional[str] = None,
                           waf_bot_status_config_id: Optional[str] = None)
    func NewWafBotStatusConfig(ctx *Context, name string, args WafBotStatusConfigArgs, opts ...ResourceOption) (*WafBotStatusConfig, error)
    public WafBotStatusConfig(string name, WafBotStatusConfigArgs args, CustomResourceOptions? opts = null)
    public WafBotStatusConfig(String name, WafBotStatusConfigArgs args)
    public WafBotStatusConfig(String name, WafBotStatusConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafBotStatusConfig
    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 WafBotStatusConfigArgs
    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 WafBotStatusConfigArgs
    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 WafBotStatusConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafBotStatusConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafBotStatusConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    Domain.
    InstanceId string
    Instance ID.
    Status string
    Bot status. 1 - enable; 0 - disable.
    WafBotStatusConfigId string
    ID of the resource.
    Domain string
    Domain.
    InstanceId string
    Instance ID.
    Status string
    Bot status. 1 - enable; 0 - disable.
    WafBotStatusConfigId string
    ID of the resource.
    domain String
    Domain.
    instanceId String
    Instance ID.
    status String
    Bot status. 1 - enable; 0 - disable.
    wafBotStatusConfigId String
    ID of the resource.
    domain string
    Domain.
    instanceId string
    Instance ID.
    status string
    Bot status. 1 - enable; 0 - disable.
    wafBotStatusConfigId string
    ID of the resource.
    domain str
    Domain.
    instance_id str
    Instance ID.
    status str
    Bot status. 1 - enable; 0 - disable.
    waf_bot_status_config_id str
    ID of the resource.
    domain String
    Domain.
    instanceId String
    Instance ID.
    status String
    Bot status. 1 - enable; 0 - disable.
    wafBotStatusConfigId String
    ID of the resource.

    Outputs

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

    CurrentGlobalScenes List<WafBotStatusConfigCurrentGlobalScene>
    The currently enabled scenario with a global matching range and the highest priority.
    CustomRuleNums double
    Total number of custom rules, excluding BOT whitelist.
    Id string
    The provider-assigned unique ID for this managed resource.
    SceneCount double
    Scene total count.
    ValidSceneCount double
    Number of effective scenarios.
    CurrentGlobalScenes []WafBotStatusConfigCurrentGlobalScene
    The currently enabled scenario with a global matching range and the highest priority.
    CustomRuleNums float64
    Total number of custom rules, excluding BOT whitelist.
    Id string
    The provider-assigned unique ID for this managed resource.
    SceneCount float64
    Scene total count.
    ValidSceneCount float64
    Number of effective scenarios.
    currentGlobalScenes List<WafBotStatusConfigCurrentGlobalScene>
    The currently enabled scenario with a global matching range and the highest priority.
    customRuleNums Double
    Total number of custom rules, excluding BOT whitelist.
    id String
    The provider-assigned unique ID for this managed resource.
    sceneCount Double
    Scene total count.
    validSceneCount Double
    Number of effective scenarios.
    currentGlobalScenes WafBotStatusConfigCurrentGlobalScene[]
    The currently enabled scenario with a global matching range and the highest priority.
    customRuleNums number
    Total number of custom rules, excluding BOT whitelist.
    id string
    The provider-assigned unique ID for this managed resource.
    sceneCount number
    Scene total count.
    validSceneCount number
    Number of effective scenarios.
    current_global_scenes Sequence[WafBotStatusConfigCurrentGlobalScene]
    The currently enabled scenario with a global matching range and the highest priority.
    custom_rule_nums float
    Total number of custom rules, excluding BOT whitelist.
    id str
    The provider-assigned unique ID for this managed resource.
    scene_count float
    Scene total count.
    valid_scene_count float
    Number of effective scenarios.
    currentGlobalScenes List<Property Map>
    The currently enabled scenario with a global matching range and the highest priority.
    customRuleNums Number
    Total number of custom rules, excluding BOT whitelist.
    id String
    The provider-assigned unique ID for this managed resource.
    sceneCount Number
    Scene total count.
    validSceneCount Number
    Number of effective scenarios.

    Look up Existing WafBotStatusConfig Resource

    Get an existing WafBotStatusConfig 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?: WafBotStatusConfigState, opts?: CustomResourceOptions): WafBotStatusConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            current_global_scenes: Optional[Sequence[WafBotStatusConfigCurrentGlobalSceneArgs]] = None,
            custom_rule_nums: Optional[float] = None,
            domain: Optional[str] = None,
            instance_id: Optional[str] = None,
            scene_count: Optional[float] = None,
            status: Optional[str] = None,
            valid_scene_count: Optional[float] = None,
            waf_bot_status_config_id: Optional[str] = None) -> WafBotStatusConfig
    func GetWafBotStatusConfig(ctx *Context, name string, id IDInput, state *WafBotStatusConfigState, opts ...ResourceOption) (*WafBotStatusConfig, error)
    public static WafBotStatusConfig Get(string name, Input<string> id, WafBotStatusConfigState? state, CustomResourceOptions? opts = null)
    public static WafBotStatusConfig get(String name, Output<String> id, WafBotStatusConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafBotStatusConfig    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:
    CurrentGlobalScenes List<WafBotStatusConfigCurrentGlobalScene>
    The currently enabled scenario with a global matching range and the highest priority.
    CustomRuleNums double
    Total number of custom rules, excluding BOT whitelist.
    Domain string
    Domain.
    InstanceId string
    Instance ID.
    SceneCount double
    Scene total count.
    Status string
    Bot status. 1 - enable; 0 - disable.
    ValidSceneCount double
    Number of effective scenarios.
    WafBotStatusConfigId string
    ID of the resource.
    CurrentGlobalScenes []WafBotStatusConfigCurrentGlobalSceneArgs
    The currently enabled scenario with a global matching range and the highest priority.
    CustomRuleNums float64
    Total number of custom rules, excluding BOT whitelist.
    Domain string
    Domain.
    InstanceId string
    Instance ID.
    SceneCount float64
    Scene total count.
    Status string
    Bot status. 1 - enable; 0 - disable.
    ValidSceneCount float64
    Number of effective scenarios.
    WafBotStatusConfigId string
    ID of the resource.
    currentGlobalScenes List<WafBotStatusConfigCurrentGlobalScene>
    The currently enabled scenario with a global matching range and the highest priority.
    customRuleNums Double
    Total number of custom rules, excluding BOT whitelist.
    domain String
    Domain.
    instanceId String
    Instance ID.
    sceneCount Double
    Scene total count.
    status String
    Bot status. 1 - enable; 0 - disable.
    validSceneCount Double
    Number of effective scenarios.
    wafBotStatusConfigId String
    ID of the resource.
    currentGlobalScenes WafBotStatusConfigCurrentGlobalScene[]
    The currently enabled scenario with a global matching range and the highest priority.
    customRuleNums number
    Total number of custom rules, excluding BOT whitelist.
    domain string
    Domain.
    instanceId string
    Instance ID.
    sceneCount number
    Scene total count.
    status string
    Bot status. 1 - enable; 0 - disable.
    validSceneCount number
    Number of effective scenarios.
    wafBotStatusConfigId string
    ID of the resource.
    current_global_scenes Sequence[WafBotStatusConfigCurrentGlobalSceneArgs]
    The currently enabled scenario with a global matching range and the highest priority.
    custom_rule_nums float
    Total number of custom rules, excluding BOT whitelist.
    domain str
    Domain.
    instance_id str
    Instance ID.
    scene_count float
    Scene total count.
    status str
    Bot status. 1 - enable; 0 - disable.
    valid_scene_count float
    Number of effective scenarios.
    waf_bot_status_config_id str
    ID of the resource.
    currentGlobalScenes List<Property Map>
    The currently enabled scenario with a global matching range and the highest priority.
    customRuleNums Number
    Total number of custom rules, excluding BOT whitelist.
    domain String
    Domain.
    instanceId String
    Instance ID.
    sceneCount Number
    Scene total count.
    status String
    Bot status. 1 - enable; 0 - disable.
    validSceneCount Number
    Number of effective scenarios.
    wafBotStatusConfigId String
    ID of the resource.

    Supporting Types

    WafBotStatusConfigCurrentGlobalScene, WafBotStatusConfigCurrentGlobalSceneArgs

    Priority double
    Priority.
    SceneId string
    Scene ID.
    SceneName string
    Scene name.
    UpdateTime double
    Update time.
    Priority float64
    Priority.
    SceneId string
    Scene ID.
    SceneName string
    Scene name.
    UpdateTime float64
    Update time.
    priority Double
    Priority.
    sceneId String
    Scene ID.
    sceneName String
    Scene name.
    updateTime Double
    Update time.
    priority number
    Priority.
    sceneId string
    Scene ID.
    sceneName string
    Scene name.
    updateTime number
    Update time.
    priority float
    Priority.
    scene_id str
    Scene ID.
    scene_name str
    Scene name.
    update_time float
    Update time.
    priority Number
    Priority.
    sceneId String
    Scene ID.
    sceneName String
    Scene name.
    updateTime Number
    Update time.

    Import

    WAF bot status config can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/wafBotStatusConfig:WafBotStatusConfig example waf_2kxtlbky11bbcr4b#example.com
    

    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.193 published on Saturday, May 17, 2025 by tencentcloudstack