turbot/aws_compliance

Query: waf_rule_condition_attached

Usage

powerpipe query aws_compliance.query.waf_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) || ' attached conditions.'
end as reason
, region, account_id
from
aws_waf_rule;

Controls

The query is being used by the following controls: