github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/sam/enable_http_api_access_logging.cf.go (about) 1 package sam 2 3 var cloudFormationEnableHttpApiAccessLoggingGoodExamples = []string{ 4 `--- 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 var cloudFormationEnableHttpApiAccessLoggingBadExamples = []string{ 21 `--- 22 AWSTemplateFormatVersion: 2010-09-09 23 Description: Bad Example of SAM API 24 Resources: 25 HttpApi: 26 Type: AWS::Serverless::HttpApi 27 Properties: 28 Name: Good SAM API example 29 StageName: Prod 30 Tracing: Passthrough 31 `, 32 } 33 34 var cloudFormationEnableHttpApiAccessLoggingLinks = []string{} 35 36 var cloudFormationEnableHttpApiAccessLoggingRemediationMarkdown = ``