title: How to define multiple triggers for lambda function in SAM template?
body: <p>I created a lambda function from a SAM template, and defined multiple triggers, but only one of these triggers is being created in cloudformation. This is my sam template:</p>
  
  <pre><code>Myfunc:
      Type: AWS::Serverless::Function
      Properties:
          FunctionName: name
          CodeUri: /
          Handler: app.lambdaHandler
          Runtime: nodejs12.x
          Role: myrole            
          Events:
              Trigger:
                  Type: CloudWatchEvent
                  Properties:
                      EventBusName: mybus
                      Pattern:
                          source: 
                              - a
                          detail-type:
                              - b
              Trigger:
                  Type: CloudWatchEvent
                  Properties:
                      EventBusName: mybus
                      Pattern:
                          source:
                              - c
  </code></pre>
  
  <p>This template deploys correctly but creates only one rule, and in the aws console, on the sam template it shows:</p>
  
  <pre><code>Events:
      Trigger:
        Type: CloudWatchEvent
        Properties:
          EventBusName: mybus
          Pattern:
            source:
            - c
  </code></pre>
  
  <p>Any idea how to define multiple triggers for a lambda in the sam template? Is it impossible?</p>