github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/sam/enable_api_tracing.cf.go (about) 1 package sam 2 3 var cloudFormationEnableApiTracingGoodExamples = []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: true 14 `, 15 } 16 17 var cloudFormationEnableApiTracingBadExamples = []string{ 18 `--- 19 AWSTemplateFormatVersion: 2010-09-09 20 Description: Bad Example of SAM API 21 Resources: 22 ApiGatewayApi: 23 Type: AWS::Serverless::Api 24 Properties: 25 Name: Bad SAM API example 26 StageName: Prod 27 TracingEnabled: false 28 `, `--- 29 AWSTemplateFormatVersion: 2010-09-09 30 Description: Bad Example of SAM API 31 Resources: 32 ApiGatewayApi: 33 Type: AWS::Serverless::Api 34 Properties: 35 Name: Bad SAM API example 36 StageName: Prod 37 `, 38 } 39 40 var cloudFormationEnableApiTracingLinks = []string{} 41 42 var cloudFormationEnableApiTracingRemediationMarkdown = ``