github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/apigateway/enable_access_logging.cf.go (about) 1 package apigateway 2 3 var cloudFormationEnableAccessLoggingGoodExamples = []string{ 4 `--- 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 var cloudFormationEnableAccessLoggingBadExamples = []string{ 22 `--- 23 AWSTemplateFormatVersion: 2010-09-09 24 Description: Bad Example of ApiGateway 25 Resources: 26 BadApi: 27 Type: AWS::ApiGatewayV2::Api 28 BadApiStage: 29 Type: AWS::ApiGatewayV2::Stage 30 Properties: 31 AccessLogSettings: 32 Format: json 33 ApiId: !Ref BadApi 34 StageName: BadApiStage 35 `, 36 } 37 38 var cloudFormationEnableAccessLoggingLinks []string 39 40 var cloudFormationEnableAccessLoggingRemediationMarkdown = ``