turbot/steampipe-mod-aws-compliance

Control: API Gateway methods request parameter should be validated

Description

This control checks whether API Gateway method request parameter is validated. This rule is non-compliant if API Gateway method request parameter is not validated.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.api_gateway_method_request_parameter_validated

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.api_gateway_method_request_parameter_validated --share

SQL

This control uses a named query:

select
resource_id as resource,
case
when request_validator_id is null then 'alarm'
else 'ok'
end as status,
case
when request_validator_id is null then title || ' request parameter not validated.'
else title || ' request parameter validated.'
end as reason
, region, account_id
from
aws_api_gateway_method;

Tags