UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

127 lines (126 loc) 4.63 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a CFW IPS rule mode change resource within HuaweiCloud. * * > This resource is only a one-time action resource for operating the API. * Deleting this resource will not clear the corresponding request record, * but will only remove the resource information from the tfstate file. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const objectId = config.requireObject("objectId"); * const ipsIds = config.requireObject("ipsIds"); * const status = config.requireObject("status"); * const test = new huaweicloud.cfw.IpsRuleModeChange("test", { * objectId: objectId, * ipsIds: ipsIds, * status: status, * }); * ``` */ export declare class IpsRuleModeChange extends pulumi.CustomResource { /** * Get an existing IpsRuleModeChange 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?: IpsRuleModeChangeState, opts?: pulumi.CustomResourceOptions): IpsRuleModeChange; /** * Returns true if the given object is an instance of IpsRuleModeChange. 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 IpsRuleModeChange; /** * Specifies the enterprise project ID. */ readonly enterpriseProjectId: pulumi.Output<string | undefined>; /** * Specifies the IPS rule ID list. */ readonly ipsIds: pulumi.Output<string[] | undefined>; /** * Specifies the protected object ID. */ readonly objectId: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this will create new resource. */ readonly region: pulumi.Output<string>; /** * Specifies the IPS rule status. * The valid value can be **OBSERVE**, **ENABLE**, **CLOSE**, **DEFAULT** or **ALL_DEFAULT**. */ readonly status: pulumi.Output<string>; /** * Create a IpsRuleModeChange 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: IpsRuleModeChangeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IpsRuleModeChange resources. */ export interface IpsRuleModeChangeState { /** * Specifies the enterprise project ID. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the IPS rule ID list. */ ipsIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the protected object ID. */ objectId?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this will create new resource. */ region?: pulumi.Input<string>; /** * Specifies the IPS rule status. * The valid value can be **OBSERVE**, **ENABLE**, **CLOSE**, **DEFAULT** or **ALL_DEFAULT**. */ status?: pulumi.Input<string>; } /** * The set of arguments for constructing a IpsRuleModeChange resource. */ export interface IpsRuleModeChangeArgs { /** * Specifies the enterprise project ID. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the IPS rule ID list. */ ipsIds?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the protected object ID. */ objectId: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this will create new resource. */ region?: pulumi.Input<string>; /** * Specifies the IPS rule status. * The valid value can be **OBSERVE**, **ENABLE**, **CLOSE**, **DEFAULT** or **ALL_DEFAULT**. */ status: pulumi.Input<string>; }