UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

96 lines (95 loc) 3.53 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage waf instance ctl * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.waf.InstanceCtl("foo", { * allowEnable: 0, * blockEnable: 1, * projectName: "default", * }); * ``` * * ## Import * * WafInstanceCtl can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:waf/instanceCtl:InstanceCtl default resource_id * ``` */ export declare class InstanceCtl extends pulumi.CustomResource { /** * Get an existing InstanceCtl 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?: InstanceCtlState, opts?: pulumi.CustomResourceOptions): InstanceCtl; /** * Returns true if the given object is an instance of InstanceCtl. 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 InstanceCtl; /** * Whether to enable the allowed access list policy for the instance corresponding to the current region. */ readonly allowEnable: pulumi.Output<number>; /** * Whether to enable the prohibited access list policy for the instance corresponding to the current region. */ readonly blockEnable: pulumi.Output<number>; /** * The name of the project associated with the current resource. */ readonly projectName: pulumi.Output<string | undefined>; /** * Create a InstanceCtl 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?: InstanceCtlArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InstanceCtl resources. */ export interface InstanceCtlState { /** * Whether to enable the allowed access list policy for the instance corresponding to the current region. */ allowEnable?: pulumi.Input<number>; /** * Whether to enable the prohibited access list policy for the instance corresponding to the current region. */ blockEnable?: pulumi.Input<number>; /** * The name of the project associated with the current resource. */ projectName?: pulumi.Input<string>; } /** * The set of arguments for constructing a InstanceCtl resource. */ export interface InstanceCtlArgs { /** * Whether to enable the allowed access list policy for the instance corresponding to the current region. */ allowEnable?: pulumi.Input<number>; /** * Whether to enable the prohibited access list policy for the instance corresponding to the current region. */ blockEnable?: pulumi.Input<number>; /** * The name of the project associated with the current resource. */ projectName?: pulumi.Input<string>; }