View a markdown version of this page

Counting strict compliance violations without acting on them - AWS WAF, AWS Firewall Manager, AWS Shield Advanced, and AWS Shield network security director

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.