volcengine.waf.SystemBot
Explore with Pulumi AI
Provides a resource to manage waf system bot
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.waf.SystemBot("foo", {
action: "observe",
botType: "feed_fetcher",
enable: 0,
host: "www.tf-test.com",
projectName: "default",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.waf.SystemBot("foo",
action="observe",
bot_type="feed_fetcher",
enable=0,
host="www.tf-test.com",
project_name="default")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/waf"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.NewSystemBot(ctx, "foo", &waf.SystemBotArgs{
Action: pulumi.String("observe"),
BotType: pulumi.String("feed_fetcher"),
Enable: pulumi.Int(0),
Host: pulumi.String("www.tf-test.com"),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Waf.SystemBot("foo", new()
{
Action = "observe",
BotType = "feed_fetcher",
Enable = 0,
Host = "www.tf-test.com",
ProjectName = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.waf.SystemBot;
import com.pulumi.volcengine.waf.SystemBotArgs;
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 foo = new SystemBot("foo", SystemBotArgs.builder()
.action("observe")
.botType("feed_fetcher")
.enable(0)
.host("www.tf-test.com")
.projectName("default")
.build());
}
}
resources:
foo:
type: volcengine:waf:SystemBot
properties:
action: observe
botType: feed_fetcher
enable: 0
host: www.tf-test.com
projectName: default
Create SystemBot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SystemBot(name: string, args: SystemBotArgs, opts?: CustomResourceOptions);
@overload
def SystemBot(resource_name: str,
args: SystemBotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SystemBot(resource_name: str,
opts: Optional[ResourceOptions] = None,
bot_type: Optional[str] = None,
host: Optional[str] = None,
action: Optional[str] = None,
enable: Optional[int] = None,
project_name: Optional[str] = None)
func NewSystemBot(ctx *Context, name string, args SystemBotArgs, opts ...ResourceOption) (*SystemBot, error)
public SystemBot(string name, SystemBotArgs args, CustomResourceOptions? opts = null)
public SystemBot(String name, SystemBotArgs args)
public SystemBot(String name, SystemBotArgs args, CustomResourceOptions options)
type: volcengine:waf:SystemBot
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 SystemBotArgs
- 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 SystemBotArgs
- 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 SystemBotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SystemBotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SystemBotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var systemBotResource = new Volcengine.Waf.SystemBot("systemBotResource", new()
{
BotType = "string",
Host = "string",
Action = "string",
Enable = 0,
ProjectName = "string",
});
example, err := waf.NewSystemBot(ctx, "systemBotResource", &waf.SystemBotArgs{
BotType: pulumi.String("string"),
Host: pulumi.String("string"),
Action: pulumi.String("string"),
Enable: pulumi.Int(0),
ProjectName: pulumi.String("string"),
})
var systemBotResource = new SystemBot("systemBotResource", SystemBotArgs.builder()
.botType("string")
.host("string")
.action("string")
.enable(0)
.projectName("string")
.build());
system_bot_resource = volcengine.waf.SystemBot("systemBotResource",
bot_type="string",
host="string",
action="string",
enable=0,
project_name="string")
const systemBotResource = new volcengine.waf.SystemBot("systemBotResource", {
botType: "string",
host: "string",
action: "string",
enable: 0,
projectName: "string",
});
type: volcengine:waf:SystemBot
properties:
action: string
botType: string
enable: 0
host: string
projectName: string
SystemBot 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 SystemBot resource accepts the following input properties:
- Bot
Type string - The name of bot.
- Host string
- Domain name information.
- Action string
- The execution action of the Bot.
- Enable int
- Whether to enable bot.
- Project
Name string - The Name of the affiliated project resource.
- Bot
Type string - The name of bot.
- Host string
- Domain name information.
- Action string
- The execution action of the Bot.
- Enable int
- Whether to enable bot.
- Project
Name string - The Name of the affiliated project resource.
- bot
Type String - The name of bot.
- host String
- Domain name information.
- action String
- The execution action of the Bot.
- enable Integer
- Whether to enable bot.
- project
Name String - The Name of the affiliated project resource.
- bot
Type string - The name of bot.
- host string
- Domain name information.
- action string
- The execution action of the Bot.
- enable number
- Whether to enable bot.
- project
Name string - The Name of the affiliated project resource.
- bot_
type str - The name of bot.
- host str
- Domain name information.
- action str
- The execution action of the Bot.
- enable int
- Whether to enable bot.
- project_
name str - The Name of the affiliated project resource.
- bot
Type String - The name of bot.
- host String
- Domain name information.
- action String
- The execution action of the Bot.
- enable Number
- Whether to enable bot.
- project
Name String - The Name of the affiliated project resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SystemBot resource produces the following output properties:
- Description string
- The description of the Bot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Tag string - The ID of the Bot rule.
- Description string
- The description of the Bot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rule
Tag string - The ID of the Bot rule.
- description String
- The description of the Bot.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Tag String - The ID of the Bot rule.
- description string
- The description of the Bot.
- id string
- The provider-assigned unique ID for this managed resource.
- rule
Tag string - The ID of the Bot rule.
- description str
- The description of the Bot.
- id str
- The provider-assigned unique ID for this managed resource.
- rule_
tag str - The ID of the Bot rule.
- description String
- The description of the Bot.
- id String
- The provider-assigned unique ID for this managed resource.
- rule
Tag String - The ID of the Bot rule.
Look up Existing SystemBot Resource
Get an existing SystemBot 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?: SystemBotState, opts?: CustomResourceOptions): SystemBot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
bot_type: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[int] = None,
host: Optional[str] = None,
project_name: Optional[str] = None,
rule_tag: Optional[str] = None) -> SystemBot
func GetSystemBot(ctx *Context, name string, id IDInput, state *SystemBotState, opts ...ResourceOption) (*SystemBot, error)
public static SystemBot Get(string name, Input<string> id, SystemBotState? state, CustomResourceOptions? opts = null)
public static SystemBot get(String name, Output<String> id, SystemBotState state, CustomResourceOptions options)
resources: _: type: volcengine:waf:SystemBot 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.
- Action string
- The execution action of the Bot.
- Bot
Type string - The name of bot.
- Description string
- The description of the Bot.
- Enable int
- Whether to enable bot.
- Host string
- Domain name information.
- Project
Name string - The Name of the affiliated project resource.
- Rule
Tag string - The ID of the Bot rule.
- Action string
- The execution action of the Bot.
- Bot
Type string - The name of bot.
- Description string
- The description of the Bot.
- Enable int
- Whether to enable bot.
- Host string
- Domain name information.
- Project
Name string - The Name of the affiliated project resource.
- Rule
Tag string - The ID of the Bot rule.
- action String
- The execution action of the Bot.
- bot
Type String - The name of bot.
- description String
- The description of the Bot.
- enable Integer
- Whether to enable bot.
- host String
- Domain name information.
- project
Name String - The Name of the affiliated project resource.
- rule
Tag String - The ID of the Bot rule.
- action string
- The execution action of the Bot.
- bot
Type string - The name of bot.
- description string
- The description of the Bot.
- enable number
- Whether to enable bot.
- host string
- Domain name information.
- project
Name string - The Name of the affiliated project resource.
- rule
Tag string - The ID of the Bot rule.
- action str
- The execution action of the Bot.
- bot_
type str - The name of bot.
- description str
- The description of the Bot.
- enable int
- Whether to enable bot.
- host str
- Domain name information.
- project_
name str - The Name of the affiliated project resource.
- rule_
tag str - The ID of the Bot rule.
- action String
- The execution action of the Bot.
- bot
Type String - The name of bot.
- description String
- The description of the Bot.
- enable Number
- Whether to enable bot.
- host String
- Domain name information.
- project
Name String - The Name of the affiliated project resource.
- rule
Tag String - The ID of the Bot rule.
Import
WafSystemBot can be imported using the id, e.g.
$ pulumi import volcengine:waf/systemBot:SystemBot default BotType:Host
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.