github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/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