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",
});
}
}
Coming soon!
import pulumi
import pulumi_cloudflare as cloudflare
honey_pot = cloudflare.WafGroup("honeyPot",
group_id="de677e5818985db1285d0e80225f06e5",
mode="on",
zone_id="ae36f999674d196762efcc5abb06b345")import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const honeyPot = new cloudflare.WafGroup("honey_pot", {
groupId: "de677e5818985db1285d0e80225f06e5",
mode: "on",
zoneId: "ae36f999674d196762efcc5abb06b345",
});Create a WafGroup Resource
new WafGroup(name: string, args: WafGroupArgs, opts?: CustomResourceOptions);def WafGroup(resource_name, opts=None, group_id=None, mode=None, package_id=None, zone_id=None, __props__=None);func NewWafGroup(ctx *Context, name string, args WafGroupArgs, opts ...ResourceOption) (*WafGroup, error)public WafGroup(string name, WafGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args WafGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WafGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
WafGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The WafGroup resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the WafGroup resource produces the following output properties:
Look up an Existing WafGroup Resource
Get an existing WafGroup 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?: WafGroupState, opts?: CustomResourceOptions): WafGroupstatic get(resource_name, id, opts=None, group_id=None, mode=None, package_id=None, zone_id=None, __props__=None);func GetWafGroup(ctx *Context, name string, id IDInput, state *WafGroupState, opts ...ResourceOption) (*WafGroup, error)public static WafGroup Get(string name, Input<string> id, WafGroupState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.