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",
});
}
}
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class WafGroup : CustomResource
Constructors
View SourceWafGroup(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 SourceGroupId
The WAF Rule Group ID.
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
ZoneId
The DNS zone ID to apply to.
Declaration
public Output<string> ZoneId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |