github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/sam/enable_api_access_logging.cf.go (about) 1 package sam 2 3 var cloudFormationEnableApiAccessLoggingGoodExamples = []string{ 4 `--- 5 AWSTemplateFormatVersion: 2010-09-09 6 Description: Good Example of SAM API 7 Resources: 8 ApiGatewayApi: 9 Type: AWS::Serverless::Api 10 Properties: 11 Name: Good SAM API example 12 StageName: Prod 13 TracingEnabled: false 14 Domain: 15 SecurityPolicy: TLS_1_2 16 AccessLogSetting: 17 DestinationArn: gateway-logging 18 Format: json 19 `, 20 } 21 22 var cloudFormationEnableApiAccessLoggingBadExamples = []string{ 23 `--- 24 AWSTemplateFormatVersion: 2010-09-09 25 Description: Bad Example of SAM API 26 Resources: 27 ApiGatewayApi: 28 Type: AWS::Serverless::Api 29 Properties: 30 Name: Bad SAM API example 31 StageName: Prod 32 TracingEnabled: false 33 `, 34 } 35 36 var cloudFormationEnableApiAccessLoggingLinks = []string{} 37 38 var cloudFormationEnableApiAccessLoggingRemediationMarkdown = ``