Counting strict compliance violations without acting on them - AWS WAF, AWS Firewall Manager, and AWS Shield Advanced
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.

Counting strict compliance violations without acting on them

The strict compliance rules count by default. The following rule matches the strict MCP level label, protocol_compliance_level:strict:mcp, and publishes the matches under its own metric name.

{ "Name": "Count-strict-mcp-compliance", "Priority": 130, "Statement": { "LabelMatchStatement": { "Scope": "LABEL", "Key": "awswaf:managed:aws:ai-security:protocol_compliance_level:strict:mcp" } }, "Action": { "Count": {} }, "VisibilityConfig": { "SampledRequestsEnabled": true, "CloudWatchMetricsEnabled": true, "MetricName": "Count-strict-mcp-compliance" } }

The strict level includes the baseline checks, so this rule also counts requests that fail a baseline check. To count one individual check instead, match its per-check label, in the form protocol_compliance_check:<check>. The checks are listed on AWS WAF AI Security rule group.