tencentcloud.WafBotStatusConfig
Explore with Pulumi AI
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.
- Instance
Id string - Instance ID.
- Status string
- Bot status. 1 - enable; 0 - disable.
- Waf
Bot stringStatus Config Id - ID of the resource.
- Domain string
- Domain.
- Instance
Id string - Instance ID.
- Status string
- Bot status. 1 - enable; 0 - disable.
- Waf
Bot stringStatus Config Id - ID of the resource.
- domain String
- Domain.
- instance
Id String - Instance ID.
- status String
- Bot status. 1 - enable; 0 - disable.
- waf
Bot StringStatus Config Id - ID of the resource.
- domain string
- Domain.
- instance
Id string - Instance ID.
- status string
- Bot status. 1 - enable; 0 - disable.
- waf
Bot stringStatus Config Id - ID of the resource.
- domain str
- Domain.
- instance_
id str - Instance ID.
- status str
- Bot status. 1 - enable; 0 - disable.
- waf_
bot_ strstatus_ config_ id - ID of the resource.
- domain String
- Domain.
- instance
Id String - Instance ID.
- status String
- Bot status. 1 - enable; 0 - disable.
- waf
Bot StringStatus Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafBotStatusConfig resource produces the following output properties:
- Current
Global List<WafScenes Bot Status Config Current Global Scene> - The currently enabled scenario with a global matching range and the highest priority.
- Custom
Rule doubleNums - Total number of custom rules, excluding BOT whitelist.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scene
Count double - Scene total count.
- Valid
Scene doubleCount - Number of effective scenarios.
- Current
Global []WafScenes Bot Status Config Current Global Scene - The currently enabled scenario with a global matching range and the highest priority.
- Custom
Rule float64Nums - Total number of custom rules, excluding BOT whitelist.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scene
Count float64 - Scene total count.
- Valid
Scene float64Count - Number of effective scenarios.
- current
Global List<WafScenes Bot Status Config Current Global Scene> - The currently enabled scenario with a global matching range and the highest priority.
- custom
Rule DoubleNums - Total number of custom rules, excluding BOT whitelist.
- id String
- The provider-assigned unique ID for this managed resource.
- scene
Count Double - Scene total count.
- valid
Scene DoubleCount - Number of effective scenarios.
- current
Global WafScenes Bot Status Config Current Global Scene[] - The currently enabled scenario with a global matching range and the highest priority.
- custom
Rule numberNums - Total number of custom rules, excluding BOT whitelist.
- id string
- The provider-assigned unique ID for this managed resource.
- scene
Count number - Scene total count.
- valid
Scene numberCount - Number of effective scenarios.
- current_
global_ Sequence[Wafscenes Bot Status Config Current Global Scene] - The currently enabled scenario with a global matching range and the highest priority.
- custom_
rule_ floatnums - 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_ floatcount - Number of effective scenarios.
- current
Global List<Property Map>Scenes - The currently enabled scenario with a global matching range and the highest priority.
- custom
Rule NumberNums - Total number of custom rules, excluding BOT whitelist.
- id String
- The provider-assigned unique ID for this managed resource.
- scene
Count Number - Scene total count.
- valid
Scene NumberCount - 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.
- Current
Global List<WafScenes Bot Status Config Current Global Scene> - The currently enabled scenario with a global matching range and the highest priority.
- Custom
Rule doubleNums - Total number of custom rules, excluding BOT whitelist.
- Domain string
- Domain.
- Instance
Id string - Instance ID.
- Scene
Count double - Scene total count.
- Status string
- Bot status. 1 - enable; 0 - disable.
- Valid
Scene doubleCount - Number of effective scenarios.
- Waf
Bot stringStatus Config Id - ID of the resource.
- Current
Global []WafScenes Bot Status Config Current Global Scene Args - The currently enabled scenario with a global matching range and the highest priority.
- Custom
Rule float64Nums - Total number of custom rules, excluding BOT whitelist.
- Domain string
- Domain.
- Instance
Id string - Instance ID.
- Scene
Count float64 - Scene total count.
- Status string
- Bot status. 1 - enable; 0 - disable.
- Valid
Scene float64Count - Number of effective scenarios.
- Waf
Bot stringStatus Config Id - ID of the resource.
- current
Global List<WafScenes Bot Status Config Current Global Scene> - The currently enabled scenario with a global matching range and the highest priority.
- custom
Rule DoubleNums - Total number of custom rules, excluding BOT whitelist.
- domain String
- Domain.
- instance
Id String - Instance ID.
- scene
Count Double - Scene total count.
- status String
- Bot status. 1 - enable; 0 - disable.
- valid
Scene DoubleCount - Number of effective scenarios.
- waf
Bot StringStatus Config Id - ID of the resource.
- current
Global WafScenes Bot Status Config Current Global Scene[] - The currently enabled scenario with a global matching range and the highest priority.
- custom
Rule numberNums - Total number of custom rules, excluding BOT whitelist.
- domain string
- Domain.
- instance
Id string - Instance ID.
- scene
Count number - Scene total count.
- status string
- Bot status. 1 - enable; 0 - disable.
- valid
Scene numberCount - Number of effective scenarios.
- waf
Bot stringStatus Config Id - ID of the resource.
- current_
global_ Sequence[Wafscenes Bot Status Config Current Global Scene Args] - The currently enabled scenario with a global matching range and the highest priority.
- custom_
rule_ floatnums - 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_ floatcount - Number of effective scenarios.
- waf_
bot_ strstatus_ config_ id - ID of the resource.
- current
Global List<Property Map>Scenes - The currently enabled scenario with a global matching range and the highest priority.
- custom
Rule NumberNums - Total number of custom rules, excluding BOT whitelist.
- domain String
- Domain.
- instance
Id String - Instance ID.
- scene
Count Number - Scene total count.
- status String
- Bot status. 1 - enable; 0 - disable.
- valid
Scene NumberCount - Number of effective scenarios.
- waf
Bot StringStatus Config Id - ID of the resource.
Supporting Types
WafBotStatusConfigCurrentGlobalScene, WafBotStatusConfigCurrentGlobalSceneArgs
- Priority double
- Priority.
- Scene
Id string - Scene ID.
- Scene
Name string - Scene name.
- Update
Time double - Update time.
- Priority float64
- Priority.
- Scene
Id string - Scene ID.
- Scene
Name string - Scene name.
- Update
Time float64 - Update time.
- priority Double
- Priority.
- scene
Id String - Scene ID.
- scene
Name String - Scene name.
- update
Time Double - Update time.
- priority number
- Priority.
- scene
Id string - Scene ID.
- scene
Name string - Scene name.
- update
Time number - Update time.
- priority float
- Priority.
- scene_
id str - Scene ID.
- scene_
name str - Scene name.
- update_
time float - Update time.
- priority Number
- Priority.
- scene
Id String - Scene ID.
- scene
Name String - Scene name.
- update
Time 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.