turbot/aws_compliance

Query: directory_service_directory_sns_notifications_enabled

Usage

powerpipe query aws_compliance.query.directory_service_directory_sns_notifications_enabled

SQL

select
arn as resource,
case
when jsonb_array_length(event_topics) > 0 then 'ok'
else 'alarm'
end as status,
case
when jsonb_array_length(event_topics) > 0 then title || ' SNS notifications enabled.'
else title || ' SNS notifications disabled.'
end as reason
, region, account_id
from
aws_directory_service_directory;

Controls

The query is being used by the following controls: