Class WafPackage
Provides a Cloudflare WAF rule package resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall packages.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var owasp = new Cloudflare.WafPackage("owasp", new Cloudflare.WafPackageArgs
{
ActionMode = "simulate",
PackageId = "a25a9a7e9c00afc1fb2e0245519d725b",
Sensitivity = "medium",
ZoneId = "ae36f999674d196762efcc5abb06b345",
});
}
}
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class WafPackage : CustomResource
Constructors
View SourceWafPackage(String, WafPackageArgs, CustomResourceOptions)
Create a WafPackage resource with the given unique name, arguments, and options.
Declaration
public WafPackage(string name, WafPackageArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| WafPackageArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActionMode
The action mode of the package, can be one of ["block", "challenge", "simulate"].
Declaration
public Output<string> ActionMode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PackageId
The WAF Package ID.
Declaration
public Output<string> PackageId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Sensitivity
The sensitivity of the package, can be one of ["high", "medium", "low", "off"].
Declaration
public Output<string> Sensitivity { 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>, WafPackageState, CustomResourceOptions)
Get an existing WafPackage resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static WafPackage Get(string name, Input<string> id, WafPackageState 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. |
| WafPackageState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| WafPackage |