Show / Hide Table of Contents

Class WafGroup

Provides a Cloudflare WAF rule group resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall groups.

Example Usage

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
public MyStack()
{
    var honeyPot = new Cloudflare.WafGroup("honeyPot", new Cloudflare.WafGroupArgs
    {
        GroupId = "de677e5818985db1285d0e80225f06e5",
        Mode = "on",
        ZoneId = "ae36f999674d196762efcc5abb06b345",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
WafGroup
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.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class WafGroup : CustomResource

Constructors

View Source

WafGroup(String, WafGroupArgs, CustomResourceOptions)

Create a WafGroup resource with the given unique name, arguments, and options.

Declaration
public WafGroup(string name, WafGroupArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

WafGroupArgs 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

GroupId

The WAF Rule Group ID.

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

Mode

The mode of the group, can be one of ["on", "off"].

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

PackageId

The ID of the WAF Rule Package that contains the group.

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

ZoneId

The DNS zone ID to apply to.

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

Methods

View Source

Get(String, Input<String>, WafGroupState, CustomResourceOptions)

Get an existing WafGroup resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static WafGroup Get(string name, Input<string> id, WafGroupState 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.

WafGroupState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
WafGroup
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.