turbot/terraform_aws_compliance

Query: apigatewayv2_route_set_authorization_type

Usage

powerpipe query terraform_aws_compliance.query.apigatewayv2_route_set_authorization_type

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'authorization_type') in ('AWS_IAM', 'CUSTOM', 'JWT') then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'authorization_type') in ('AWS_IAM', 'CUSTOM', 'JWT') then ' defines an authorization type'
else ' does not define an authorization type'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_apigatewayv2_route';

Controls

The query is being used by the following controls: