@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
192 lines (191 loc) • 5.24 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage waf custom bot
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.waf.CustomBot("foo", {
* accurate: {
* accurateRules: [
* {
* httpObj: "request.uri",
* objType: 1,
* opretar: 2,
* property: 0,
* valueString: "tf",
* },
* {
* httpObj: "request.schema",
* objType: 0,
* opretar: 2,
* property: 0,
* valueString: "tf-2",
* },
* ],
* logic: 2,
* },
* action: "observe",
* botType: "tf-test",
* description: "tf-test",
* enable: 1,
* host: "www.tf-test.com",
* projectName: "default",
* });
* ```
*
* ## Import
*
* WafCustomBot can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:waf/customBot:CustomBot default resource_id
* ```
*/
export declare class CustomBot extends pulumi.CustomResource {
/**
* Get an existing CustomBot resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomBotState, opts?: pulumi.CustomResourceOptions): CustomBot;
/**
* Returns true if the given object is an instance of CustomBot. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is CustomBot;
/**
* Advanced conditions.
*/
readonly accurate: pulumi.Output<outputs.waf.CustomBotAccurate>;
/**
* The execution action of the Bot.
*/
readonly action: pulumi.Output<string>;
/**
* Whether to set advanced conditions.
*/
readonly advanced: pulumi.Output<number>;
/**
* bot name.
*/
readonly botType: pulumi.Output<string>;
/**
* The description of bot.
*/
readonly description: pulumi.Output<string>;
/**
* Whether to enable bot.
*/
readonly enable: pulumi.Output<number>;
/**
* Domain name information.
*/
readonly host: pulumi.Output<string>;
/**
* The Name of the affiliated project resource.
*/
readonly projectName: pulumi.Output<string | undefined>;
/**
* Rule unique identifier.
*/
readonly ruleTag: pulumi.Output<string>;
/**
* The update time.
*/
readonly updateTime: pulumi.Output<string>;
/**
* Create a CustomBot resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: CustomBotArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CustomBot resources.
*/
export interface CustomBotState {
/**
* Advanced conditions.
*/
accurate?: pulumi.Input<inputs.waf.CustomBotAccurate>;
/**
* The execution action of the Bot.
*/
action?: pulumi.Input<string>;
/**
* Whether to set advanced conditions.
*/
advanced?: pulumi.Input<number>;
/**
* bot name.
*/
botType?: pulumi.Input<string>;
/**
* The description of bot.
*/
description?: pulumi.Input<string>;
/**
* Whether to enable bot.
*/
enable?: pulumi.Input<number>;
/**
* Domain name information.
*/
host?: pulumi.Input<string>;
/**
* The Name of the affiliated project resource.
*/
projectName?: pulumi.Input<string>;
/**
* Rule unique identifier.
*/
ruleTag?: pulumi.Input<string>;
/**
* The update time.
*/
updateTime?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a CustomBot resource.
*/
export interface CustomBotArgs {
/**
* Advanced conditions.
*/
accurate: pulumi.Input<inputs.waf.CustomBotAccurate>;
/**
* The execution action of the Bot.
*/
action: pulumi.Input<string>;
/**
* bot name.
*/
botType: pulumi.Input<string>;
/**
* The description of bot.
*/
description?: pulumi.Input<string>;
/**
* Whether to enable bot.
*/
enable: pulumi.Input<number>;
/**
* Domain name information.
*/
host: pulumi.Input<string>;
/**
* The Name of the affiliated project resource.
*/
projectName?: pulumi.Input<string>;
}