Skip navigation links


AWS::WAFv2 Construct Library

See: Description

Package Description

AWS::WAFv2 Construct Library


cfn-resources: Stable

All classes with the Cfn prefix in this module (CFN Resources) are always stable and safe to use.

This module is part of the AWS Cloud Development Kit project.



Create a simple WebACL resource.

 var WebACL = new CfnWebACL(this, "WebACL", new CfnWebACLProps{
    Name = "MyWebACL",
    Scope = "REGIONAL",
    DefaultAction =  new CfnWebACL.DefaultActionProperty {
        Allow = new CfnWebACL.AllowActionProperty{}
    VisibilityConfig = new CfnWebACL.VisibilityConfigProperty {
        SampledRequestsEnabled = true,
        CloudWatchMetricsEnabled = true,
        MetricName = "WebACL",
    Rules = new CfnWebACL.RuleProperty[] {}
Skip navigation links