flexibleengine.WafRuleWebTamperProtection
Explore with Pulumi AI
Manages a WAF Web Tamper Protection Rule resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const policy1 = new flexibleengine.WafPolicy("policy1", {});
const rule1 = new flexibleengine.WafRuleWebTamperProtection("rule1", {
policyId: policy1.wafPolicyId,
domain: "www.abc.com",
path: "/a",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
policy1 = flexibleengine.WafPolicy("policy1")
rule1 = flexibleengine.WafRuleWebTamperProtection("rule1",
policy_id=policy1.waf_policy_id,
domain="www.abc.com",
path="/a")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
policy1, err := flexibleengine.NewWafPolicy(ctx, "policy1", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewWafRuleWebTamperProtection(ctx, "rule1", &flexibleengine.WafRuleWebTamperProtectionArgs{
PolicyId: policy1.WafPolicyId,
Domain: pulumi.String("www.abc.com"),
Path: pulumi.String("/a"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var policy1 = new Flexibleengine.WafPolicy("policy1");
var rule1 = new Flexibleengine.WafRuleWebTamperProtection("rule1", new()
{
PolicyId = policy1.WafPolicyId,
Domain = "www.abc.com",
Path = "/a",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.WafPolicy;
import com.pulumi.flexibleengine.WafRuleWebTamperProtection;
import com.pulumi.flexibleengine.WafRuleWebTamperProtectionArgs;
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 policy1 = new WafPolicy("policy1");
var rule1 = new WafRuleWebTamperProtection("rule1", WafRuleWebTamperProtectionArgs.builder()
.policyId(policy1.wafPolicyId())
.domain("www.abc.com")
.path("/a")
.build());
}
}
resources:
policy1:
type: flexibleengine:WafPolicy
rule1:
type: flexibleengine:WafRuleWebTamperProtection
properties:
policyId: ${policy1.wafPolicyId}
domain: www.abc.com
path: /a
Create WafRuleWebTamperProtection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafRuleWebTamperProtection(name: string, args: WafRuleWebTamperProtectionArgs, opts?: CustomResourceOptions);
@overload
def WafRuleWebTamperProtection(resource_name: str,
args: WafRuleWebTamperProtectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafRuleWebTamperProtection(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
path: Optional[str] = None,
policy_id: Optional[str] = None,
waf_rule_web_tamper_protection_id: Optional[str] = None)
func NewWafRuleWebTamperProtection(ctx *Context, name string, args WafRuleWebTamperProtectionArgs, opts ...ResourceOption) (*WafRuleWebTamperProtection, error)
public WafRuleWebTamperProtection(string name, WafRuleWebTamperProtectionArgs args, CustomResourceOptions? opts = null)
public WafRuleWebTamperProtection(String name, WafRuleWebTamperProtectionArgs args)
public WafRuleWebTamperProtection(String name, WafRuleWebTamperProtectionArgs args, CustomResourceOptions options)
type: flexibleengine:WafRuleWebTamperProtection
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 WafRuleWebTamperProtectionArgs
- 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 WafRuleWebTamperProtectionArgs
- 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 WafRuleWebTamperProtectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafRuleWebTamperProtectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafRuleWebTamperProtectionArgs
- 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 wafRuleWebTamperProtectionResource = new Flexibleengine.WafRuleWebTamperProtection("wafRuleWebTamperProtectionResource", new()
{
Domain = "string",
Path = "string",
PolicyId = "string",
WafRuleWebTamperProtectionId = "string",
});
example, err := flexibleengine.NewWafRuleWebTamperProtection(ctx, "wafRuleWebTamperProtectionResource", &flexibleengine.WafRuleWebTamperProtectionArgs{
Domain: pulumi.String("string"),
Path: pulumi.String("string"),
PolicyId: pulumi.String("string"),
WafRuleWebTamperProtectionId: pulumi.String("string"),
})
var wafRuleWebTamperProtectionResource = new WafRuleWebTamperProtection("wafRuleWebTamperProtectionResource", WafRuleWebTamperProtectionArgs.builder()
.domain("string")
.path("string")
.policyId("string")
.wafRuleWebTamperProtectionId("string")
.build());
waf_rule_web_tamper_protection_resource = flexibleengine.WafRuleWebTamperProtection("wafRuleWebTamperProtectionResource",
domain="string",
path="string",
policy_id="string",
waf_rule_web_tamper_protection_id="string")
const wafRuleWebTamperProtectionResource = new flexibleengine.WafRuleWebTamperProtection("wafRuleWebTamperProtectionResource", {
domain: "string",
path: "string",
policyId: "string",
wafRuleWebTamperProtectionId: "string",
});
type: flexibleengine:WafRuleWebTamperProtection
properties:
domain: string
path: string
policyId: string
wafRuleWebTamperProtectionId: string
WafRuleWebTamperProtection 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 WafRuleWebTamperProtection resource accepts the following input properties:
- Domain string
- Specifies the domain name. Changing this creates a new rule.
- Path string
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringWeb Tamper Protection Id - The rule ID in UUID format.
- Domain string
- Specifies the domain name. Changing this creates a new rule.
- Path string
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringWeb Tamper Protection Id - The rule ID in UUID format.
- domain String
- Specifies the domain name. Changing this creates a new rule.
- path String
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringWeb Tamper Protection Id - The rule ID in UUID format.
- domain string
- Specifies the domain name. Changing this creates a new rule.
- path string
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule stringWeb Tamper Protection Id - The rule ID in UUID format.
- domain str
- Specifies the domain name. Changing this creates a new rule.
- path str
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy_
id str - Specifies the WAF policy ID. Changing this creates a new rule.
- waf_
rule_ strweb_ tamper_ protection_ id - The rule ID in UUID format.
- domain String
- Specifies the domain name. Changing this creates a new rule.
- path String
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringWeb Tamper Protection Id - The rule ID in UUID format.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafRuleWebTamperProtection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing WafRuleWebTamperProtection Resource
Get an existing WafRuleWebTamperProtection 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?: WafRuleWebTamperProtectionState, opts?: CustomResourceOptions): WafRuleWebTamperProtection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
path: Optional[str] = None,
policy_id: Optional[str] = None,
waf_rule_web_tamper_protection_id: Optional[str] = None) -> WafRuleWebTamperProtection
func GetWafRuleWebTamperProtection(ctx *Context, name string, id IDInput, state *WafRuleWebTamperProtectionState, opts ...ResourceOption) (*WafRuleWebTamperProtection, error)
public static WafRuleWebTamperProtection Get(string name, Input<string> id, WafRuleWebTamperProtectionState? state, CustomResourceOptions? opts = null)
public static WafRuleWebTamperProtection get(String name, Output<String> id, WafRuleWebTamperProtectionState state, CustomResourceOptions options)
resources: _: type: flexibleengine:WafRuleWebTamperProtection 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.
- Domain string
- Specifies the domain name. Changing this creates a new rule.
- Path string
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringWeb Tamper Protection Id - The rule ID in UUID format.
- Domain string
- Specifies the domain name. Changing this creates a new rule.
- Path string
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringWeb Tamper Protection Id - The rule ID in UUID format.
- domain String
- Specifies the domain name. Changing this creates a new rule.
- path String
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringWeb Tamper Protection Id - The rule ID in UUID format.
- domain string
- Specifies the domain name. Changing this creates a new rule.
- path string
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule stringWeb Tamper Protection Id - The rule ID in UUID format.
- domain str
- Specifies the domain name. Changing this creates a new rule.
- path str
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy_
id str - Specifies the WAF policy ID. Changing this creates a new rule.
- waf_
rule_ strweb_ tamper_ protection_ id - The rule ID in UUID format.
- domain String
- Specifies the domain name. Changing this creates a new rule.
- path String
- Specifies the URL protected by the web tamper protection rule, excluding a domain name. Changing this creates a new rule.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringWeb Tamper Protection Id - The rule ID in UUID format.
Import
Web Tamper Protection Rules can be imported using the policy ID and rule ID
separated by a slash, e.g.:
$ pulumi import flexibleengine:index/wafRuleWebTamperProtection:WafRuleWebTamperProtection rule_1 523083f4543c497faecd25fcfcc0b2a0/5b3b07fedc3642d18e424b2e45aebc8a
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.