turbot/aws_compliance

Query: waf_regional_rule_condition_attached

Usage

powerpipe query aws_compliance.query.waf_regional_rule_condition_attached

Steampipe Tables

SQL

select
rule_id as resource,
case
when predicates is null
or jsonb_array_length(predicates) = 0 then 'alarm'
else 'ok'
end as status,
case
when predicates is null
or jsonb_array_length(predicates) = 0 then title || ' has no attached conditions.'
else title || ' has ' || jsonb_array_length(predicates) || ' condition(s) attached.'
end as reason,
region,
account_id
from
aws_wafregional_rule;

Controls

The query is being used by the following controls: