flexibleengine.WafRuleAlarmMasking
Explore with Pulumi AI
Manages a WAF False Alarm Masking 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.WafRuleAlarmMasking("rule1", {
policyId: policy1.wafPolicyId,
path: "/a",
eventId: "3737fb122f2140f39292f597ad3b7e9a",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
policy1 = flexibleengine.WafPolicy("policy1")
rule1 = flexibleengine.WafRuleAlarmMasking("rule1",
policy_id=policy1.waf_policy_id,
path="/a",
event_id="3737fb122f2140f39292f597ad3b7e9a")
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.NewWafRuleAlarmMasking(ctx, "rule1", &flexibleengine.WafRuleAlarmMaskingArgs{
PolicyId: policy1.WafPolicyId,
Path: pulumi.String("/a"),
EventId: pulumi.String("3737fb122f2140f39292f597ad3b7e9a"),
})
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.WafRuleAlarmMasking("rule1", new()
{
PolicyId = policy1.WafPolicyId,
Path = "/a",
EventId = "3737fb122f2140f39292f597ad3b7e9a",
});
});
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.WafRuleAlarmMasking;
import com.pulumi.flexibleengine.WafRuleAlarmMaskingArgs;
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 WafRuleAlarmMasking("rule1", WafRuleAlarmMaskingArgs.builder()
.policyId(policy1.wafPolicyId())
.path("/a")
.eventId("3737fb122f2140f39292f597ad3b7e9a")
.build());
}
}
resources:
policy1:
type: flexibleengine:WafPolicy
rule1:
type: flexibleengine:WafRuleAlarmMasking
properties:
policyId: ${policy1.wafPolicyId}
path: /a
eventId: 3737fb122f2140f39292f597ad3b7e9a
Create WafRuleAlarmMasking Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafRuleAlarmMasking(name: string, args: WafRuleAlarmMaskingArgs, opts?: CustomResourceOptions);
@overload
def WafRuleAlarmMasking(resource_name: str,
args: WafRuleAlarmMaskingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafRuleAlarmMasking(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_id: Optional[str] = None,
path: Optional[str] = None,
policy_id: Optional[str] = None,
waf_rule_alarm_masking_id: Optional[str] = None)
func NewWafRuleAlarmMasking(ctx *Context, name string, args WafRuleAlarmMaskingArgs, opts ...ResourceOption) (*WafRuleAlarmMasking, error)
public WafRuleAlarmMasking(string name, WafRuleAlarmMaskingArgs args, CustomResourceOptions? opts = null)
public WafRuleAlarmMasking(String name, WafRuleAlarmMaskingArgs args)
public WafRuleAlarmMasking(String name, WafRuleAlarmMaskingArgs args, CustomResourceOptions options)
type: flexibleengine:WafRuleAlarmMasking
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 WafRuleAlarmMaskingArgs
- 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 WafRuleAlarmMaskingArgs
- 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 WafRuleAlarmMaskingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafRuleAlarmMaskingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafRuleAlarmMaskingArgs
- 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 wafRuleAlarmMaskingResource = new Flexibleengine.WafRuleAlarmMasking("wafRuleAlarmMaskingResource", new()
{
EventId = "string",
Path = "string",
PolicyId = "string",
WafRuleAlarmMaskingId = "string",
});
example, err := flexibleengine.NewWafRuleAlarmMasking(ctx, "wafRuleAlarmMaskingResource", &flexibleengine.WafRuleAlarmMaskingArgs{
EventId: pulumi.String("string"),
Path: pulumi.String("string"),
PolicyId: pulumi.String("string"),
WafRuleAlarmMaskingId: pulumi.String("string"),
})
var wafRuleAlarmMaskingResource = new WafRuleAlarmMasking("wafRuleAlarmMaskingResource", WafRuleAlarmMaskingArgs.builder()
.eventId("string")
.path("string")
.policyId("string")
.wafRuleAlarmMaskingId("string")
.build());
waf_rule_alarm_masking_resource = flexibleengine.WafRuleAlarmMasking("wafRuleAlarmMaskingResource",
event_id="string",
path="string",
policy_id="string",
waf_rule_alarm_masking_id="string")
const wafRuleAlarmMaskingResource = new flexibleengine.WafRuleAlarmMasking("wafRuleAlarmMaskingResource", {
eventId: "string",
path: "string",
policyId: "string",
wafRuleAlarmMaskingId: "string",
});
type: flexibleengine:WafRuleAlarmMasking
properties:
eventId: string
path: string
policyId: string
wafRuleAlarmMaskingId: string
WafRuleAlarmMasking 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 WafRuleAlarmMasking resource accepts the following input properties:
- Event
Id string - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- Path string
- Specifies a misreported URL excluding a domain name.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringAlarm Masking Id - The rule ID in UUID format.
- Event
Id string - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- Path string
- Specifies a misreported URL excluding a domain name.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringAlarm Masking Id - The rule ID in UUID format.
- event
Id String - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- path String
- Specifies a misreported URL excluding a domain name.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringAlarm Masking Id - The rule ID in UUID format.
- event
Id string - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- path string
- Specifies a misreported URL excluding a domain name.
- policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule stringAlarm Masking Id - The rule ID in UUID format.
- event_
id str - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- path str
- Specifies a misreported URL excluding a domain name.
- policy_
id str - Specifies the WAF policy ID. Changing this creates a new rule.
- waf_
rule_ stralarm_ masking_ id - The rule ID in UUID format.
- event
Id String - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- path String
- Specifies a misreported URL excluding a domain name.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringAlarm Masking Id - The rule ID in UUID format.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafRuleAlarmMasking resource produces the following output properties:
- event_
type str - The event type.
- id str
- The provider-assigned unique ID for this managed resource.
Look up Existing WafRuleAlarmMasking Resource
Get an existing WafRuleAlarmMasking 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?: WafRuleAlarmMaskingState, opts?: CustomResourceOptions): WafRuleAlarmMasking
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
event_id: Optional[str] = None,
event_type: Optional[str] = None,
path: Optional[str] = None,
policy_id: Optional[str] = None,
waf_rule_alarm_masking_id: Optional[str] = None) -> WafRuleAlarmMasking
func GetWafRuleAlarmMasking(ctx *Context, name string, id IDInput, state *WafRuleAlarmMaskingState, opts ...ResourceOption) (*WafRuleAlarmMasking, error)
public static WafRuleAlarmMasking Get(string name, Input<string> id, WafRuleAlarmMaskingState? state, CustomResourceOptions? opts = null)
public static WafRuleAlarmMasking get(String name, Output<String> id, WafRuleAlarmMaskingState state, CustomResourceOptions options)
resources: _: type: flexibleengine:WafRuleAlarmMasking 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.
- Event
Id string - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- Event
Type string - The event type.
- Path string
- Specifies a misreported URL excluding a domain name.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringAlarm Masking Id - The rule ID in UUID format.
- Event
Id string - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- Event
Type string - The event type.
- Path string
- Specifies a misreported URL excluding a domain name.
- Policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- Waf
Rule stringAlarm Masking Id - The rule ID in UUID format.
- event
Id String - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- event
Type String - The event type.
- path String
- Specifies a misreported URL excluding a domain name.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringAlarm Masking Id - The rule ID in UUID format.
- event
Id string - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- event
Type string - The event type.
- path string
- Specifies a misreported URL excluding a domain name.
- policy
Id string - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule stringAlarm Masking Id - The rule ID in UUID format.
- event_
id str - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- event_
type str - The event type.
- path str
- Specifies a misreported URL excluding a domain name.
- policy_
id str - Specifies the WAF policy ID. Changing this creates a new rule.
- waf_
rule_ stralarm_ masking_ id - The rule ID in UUID format.
- event
Id String - Specifies the event ID. It is the ID of a misreported event in Events whose type is not Custom.
- event
Type String - The event type.
- path String
- Specifies a misreported URL excluding a domain name.
- policy
Id String - Specifies the WAF policy ID. Changing this creates a new rule.
- waf
Rule StringAlarm Masking Id - The rule ID in UUID format.
Import
Alarm Masking Rules can be imported using the policy ID and rule ID
separated by a slash, e.g.:
$ pulumi import flexibleengine:index/wafRuleAlarmMasking:WafRuleAlarmMasking rule_1 44d887434169475794b2717438f7fa78/6cdc116040d444f6b3e1bf1dd629f1d0
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.