@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
183 lines (182 loc) • 7.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a WAF web tamper protection rule resource within HuaweiCloud.
*
* > **NOTE:** All WAF resources depend on WAF instances, and the WAF instances need to be purchased before they can be
* used. The web tamper protection rule resource can be used in Cloud Mode and Dedicated Mode.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const enterpriseProjectId = config.requireObject("enterpriseProjectId");
* const policyId = config.requireObject("policyId");
* const test = new huaweicloud.waf.RuleWebTamperProtection("test", {
* policyId: policyId,
* enterpriseProjectId: enterpriseProjectId,
* domain: "www.your-domain.com",
* path: "/payment",
* description: "test description",
* });
* ```
*
* ## Import
*
* There are two ways to import WAF rule web tamper protection state. * Using `policy_id` and `rule_id`, separated by a slash, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Waf/ruleWebTamperProtection:RuleWebTamperProtection test <policy_id>/<rule_id>
* ```
*
* * Using `policy_id`, `rule_id` and `enterprise_project_id`, separated by slashes, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Waf/ruleWebTamperProtection:RuleWebTamperProtection test <policy_id>/<rule_id>/<enterprise_project_id>
* ```
*/
export declare class RuleWebTamperProtection extends pulumi.CustomResource {
/**
* Get an existing RuleWebTamperProtection 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?: RuleWebTamperProtectionState, opts?: pulumi.CustomResourceOptions): RuleWebTamperProtection;
/**
* Returns true if the given object is an instance of RuleWebTamperProtection. 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 RuleWebTamperProtection;
/**
* Specifies the description of WAF web tamper protection rule.
* Changing this creates a new rule.
*/
readonly description: pulumi.Output<string>;
/**
* Specifies the domain name. Changing this creates a new rule.
*/
readonly domain: pulumi.Output<string>;
/**
* Specifies the enterprise project ID of WAF tamper protection
* rule. For enterprise users, if omitted, default enterprise project will be used.
* Changing this parameter will create a new resource.
*/
readonly enterpriseProjectId: pulumi.Output<string | undefined>;
/**
* Specifies the URL protected by the web tamper protection rule, excluding a
* domain name. Changing this creates a new rule.
*/
readonly path: pulumi.Output<string>;
/**
* Specifies the WAF policy ID. Changing this creates a new rule.
*/
readonly policyId: pulumi.Output<string>;
/**
* Specifies the region in which to create the WAF web tamper protection rules
* resource. If omitted, the provider-level region will be used. Changing this creates a new rule.
*/
readonly region: pulumi.Output<string>;
/**
* Specifies the status of WAF web tamper protection rule.
* Valid values are as follows:
* + `0`: Disabled.
* + `1`: Enabled.
*/
readonly status: pulumi.Output<number | undefined>;
/**
* Create a RuleWebTamperProtection 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: RuleWebTamperProtectionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering RuleWebTamperProtection resources.
*/
export interface RuleWebTamperProtectionState {
/**
* Specifies the description of WAF web tamper protection rule.
* Changing this creates a new rule.
*/
description?: pulumi.Input<string>;
/**
* Specifies the domain name. Changing this creates a new rule.
*/
domain?: pulumi.Input<string>;
/**
* Specifies the enterprise project ID of WAF tamper protection
* rule. For enterprise users, if omitted, default enterprise project will be used.
* Changing this parameter will create a new resource.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the URL protected by the web tamper protection rule, excluding a
* domain name. Changing this creates a new rule.
*/
path?: pulumi.Input<string>;
/**
* Specifies the WAF policy ID. Changing this creates a new rule.
*/
policyId?: pulumi.Input<string>;
/**
* Specifies the region in which to create the WAF web tamper protection rules
* resource. If omitted, the provider-level region will be used. Changing this creates a new rule.
*/
region?: pulumi.Input<string>;
/**
* Specifies the status of WAF web tamper protection rule.
* Valid values are as follows:
* + `0`: Disabled.
* + `1`: Enabled.
*/
status?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a RuleWebTamperProtection resource.
*/
export interface RuleWebTamperProtectionArgs {
/**
* Specifies the description of WAF web tamper protection rule.
* Changing this creates a new rule.
*/
description?: pulumi.Input<string>;
/**
* Specifies the domain name. Changing this creates a new rule.
*/
domain: pulumi.Input<string>;
/**
* Specifies the enterprise project ID of WAF tamper protection
* rule. For enterprise users, if omitted, default enterprise project will be used.
* Changing this parameter will create a new resource.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the URL protected by the web tamper protection rule, excluding a
* domain name. Changing this creates a new rule.
*/
path: pulumi.Input<string>;
/**
* Specifies the WAF policy ID. Changing this creates a new rule.
*/
policyId: pulumi.Input<string>;
/**
* Specifies the region in which to create the WAF web tamper protection rules
* resource. If omitted, the provider-level region will be used. Changing this creates a new rule.
*/
region?: pulumi.Input<string>;
/**
* Specifies the status of WAF web tamper protection rule.
* Valid values are as follows:
* + `0`: Disabled.
* + `1`: Enabled.
*/
status?: pulumi.Input<number>;
}