Show / Hide Table of Contents

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

}
Inheritance
System.Object
Resource
CustomResource
WafPackage
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 WafPackage : CustomResource

Constructors

View Source

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

ActionMode

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>
View Source

PackageId

The WAF Package ID.

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

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