github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/msk/enable_logging.cf.go (about)

     1  package msk
     2  
     3  var cloudFormationEnableLoggingGoodExamples = []string{
     4  	`---
     5  AWSTemplateFormatVersion: 2010-09-09
     6  Description: Good example
     7  Resources:
     8    Cluster:
     9      Type: AWS::MSK::Cluster
    10      Properties:
    11        LoggingInfo:
    12          BrokerLogs:
    13            S3:
    14              Enabled: true
    15  
    16  
    17  `,
    18  }
    19  
    20  var cloudFormationEnableLoggingBadExamples = []string{
    21  	`---
    22  AWSTemplateFormatVersion: 2010-09-09
    23  Description: Bad example
    24  Resources:
    25    Cluster:
    26      Type: AWS::MSK::Cluster
    27      Properties:
    28        LoggingInfo:
    29          BrokerLogs:
    30            CloudWatchLogs:
    31              Enabled: false
    32  
    33  `,
    34  }
    35  
    36  var cloudFormationEnableLoggingLinks = []string{}
    37  
    38  var cloudFormationEnableLoggingRemediationMarkdown = ``