Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RuleGroup
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.WafRegional
Assembly: Pulumi.Aws.dll
Syntax
public class RuleGroup : CustomResource

Constructors

View Source

RuleGroup(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 Source

ActivatedRules

A list of activated rules, see below

Declaration
public Output<ImmutableArray<RuleGroupActivatedRule>> ActivatedRules { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<RuleGroupActivatedRule>>
View Source

Arn

The ARN of the WAF Regional Rule Group.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

MetricName

A friendly name for the metrics from the rule group

Declaration
public Output<string> MetricName { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A friendly name of the rule group

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.