Skip navigation links

Package software.amazon.awscdk.services.wafv2

AWS::WAFv2 Construct Library

See: Description

Package software.amazon.awscdk.services.wafv2 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.

 import software.amazon.awscdk.services.wafv2.*;
 

Examples

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