Class RuleGroup
Provides a WAF Regional Rule Group Resource
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleRule = new Aws.WafRegional.Rule("exampleRule", new Aws.WafRegional.RuleArgs
{
MetricName = "example",
});
var exampleRuleGroup = new Aws.WafRegional.RuleGroup("exampleRuleGroup", new Aws.WafRegional.RuleGroupArgs
{
ActivatedRules =
{
new Aws.WafRegional.Inputs.RuleGroupActivatedRuleArgs
{
Action = new Aws.WafRegional.Inputs.RuleGroupActivatedRuleActionArgs
{
Type = "COUNT",
},
Priority = 50,
RuleId = exampleRule.Id,
},
},
MetricName = "example",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.WafRegional
Assembly: Pulumi.Aws.dll
Syntax
public class RuleGroup : CustomResource
Constructors
View SourceRuleGroup(String, RuleGroupArgs, CustomResourceOptions)
Create a RuleGroup resource with the given unique name, arguments, and options.
Declaration
public RuleGroup(string name, RuleGroupArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RuleGroupArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActivatedRules
A list of activated rules, see below
Declaration
public Output<ImmutableArray<RuleGroupActivatedRule>> ActivatedRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<RuleGroupActivatedRule>> |
Arn
The ARN of the WAF Regional Rule Group.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MetricName
A friendly name for the metrics from the rule group
Declaration
public Output<string> MetricName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
A friendly name of the rule group
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value map of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, RuleGroupState, CustomResourceOptions)
Get an existing RuleGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static RuleGroup Get(string name, Input<string> id, RuleGroupState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| RuleGroupState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| RuleGroup |