github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/apigateway/AVD-AWS-0001/CloudFormation.md (about) 1 2 Enable logging for API Gateway stages 3 4 ```yaml--- 5 AWSTemplateFormatVersion: 2010-09-09 6 Description: Good Example of ApiGateway 7 Resources: 8 GoodApi: 9 Type: AWS::ApiGatewayV2::Api 10 GoodApiStage: 11 Type: AWS::ApiGatewayV2::Stage 12 Properties: 13 AccessLogSettings: 14 DestinationArn: gateway-logging 15 Format: json 16 ApiId: !Ref GoodApi 17 StageName: GoodApiStage 18 19 ``` 20 21