turbot/aws_insights

Query: cloudfront_distribution_restrictions

Usage

powerpipe query aws_insights.query.cloudfront_distribution_restrictions

SQL

select
restrictions -> 'GeoRestriction' -> 'Items' as "Geo Restriction Items",
restrictions -> 'GeoRestriction' ->> 'Quantity' as "Geo Restriction Quantity",
restrictions -> 'GeoRestriction' ->> 'RestrictionType' as "Geo Restriction Restriction Type"
from
aws_cloudfront_distribution
where
arn = $1
and account_id = split_part($1,':',5);

Dashboards

The query is used in the dashboards: