api-gw-execution-logging-enabled
Checks if all methods in Amazon API Gateway stages have logging enabled. The rule is NON_COMPLIANT if logging is not enabled, or if loggingLevel
is neither ERROR nor INFO.
Identifier: API_GW_EXECUTION_LOGGING_ENABLED
Resource Types: AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage
Trigger type: Configuration changes
Amazon Web Services Region: All supported Amazon regions except US ISO West, Asia Pacific (Jakarta), US ISO East, Asia Pacific (Osaka), Asia Pacific (Malaysia), US ISOB East, Canada West (Calgary) Region
Parameters:
- loggingLevel (Optional)
- Type: String
- Default: ERROR,INFO
-
Comma-separated list of specific logging levels (for example, ERROR, INFO or ERROR,INFO).
Amazon CloudFormation template
To create Amazon Config managed rules with Amazon CloudFormation templates, see Creating Amazon Config Managed Rules With Amazon CloudFormation Templates.