Limiting evaluation to your API paths - AWS WAF, AWS Firewall Manager, AWS Shield Advanced, and AWS Shield network security director
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Introducing a new console experience for AWS WAF

You can now use the updated experience to access AWS WAF functionality anywhere in the console. For more details, see Working with the console.

Limiting evaluation to your API paths

A scope-down statement narrows the requests the rule group evaluates. It is the primary cost control for this rule group. Scoping to the paths that serve your APIs also keeps your web front end out of the behavioral baseline.

Excluded traffic is excluded from the baseline as well as from billing. Scope to the endpoints you want to protect, rather than to a sample of them.

{ "Name": "AWS-AWSManagedRulesAPISecurityRuleSet", "Priority": 100, "Statement": { "ManagedRuleGroupStatement": { "VendorName": "AWS", "Name": "AWSManagedRulesAPISecurityRuleSet", "ScopeDownStatement": { "ByteMatchStatement": { "SearchString": "/api/", "FieldToMatch": { "UriPath": {} }, "TextTransformations": [ { "Priority": 0, "Type": "NONE" } ], "PositionalConstraint": "STARTS_WITH" } } } }, "OverrideAction": { "None": {} }, "VisibilityConfig": { "SampledRequestsEnabled": true, "CloudWatchMetricsEnabled": true, "MetricName": "AWS-AWSManagedRulesAPISecurityRuleSet" } }