github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/sam/AVD-AWS-0116/CloudFormation.md (about)

     1  
     2  Enable logging for API Gateway stages
     3  
     4  ```yaml---
     5  AWSTemplateFormatVersion: 2010-09-09
     6  Description: Good Example of SAM API
     7  Resources:
     8    ApiGatewayApi:
     9      Type: AWS::Serverless::HttpApi
    10      Properties:
    11        Name: Good SAM API example
    12        StageName: Prod
    13        Tracing: Activey
    14        AccessLogSettings:
    15          DestinationArn: gateway-logging
    16          Format: json
    17  
    18  ```
    19  
    20