code: func NewCloudWatchEventedReactor(reactor CloudWatchReactor,
  	eventPatterns map[string]map[string]interface{},
  	additionalLambdaPermissions []sparta.IAMRolePrivilege) (*sparta.LambdaAWSInfo, error) {
  
  	subscriptions := make(map[string]sparta.CloudWatchEventsRule)
  	for eachName, eachPattern := range eventPatterns {
  		subscriptions[eachName] = sparta.CloudWatchEventsRule{
  			EventPattern: eachPattern,
  		}
  	}
  	return NewCloudWatchReactor(reactor, subscriptions, additionalLambdaPermissions)
  }
docs: // NewCloudWatchEventedReactor returns a CloudWatch logs reactor lambda function
  // that executes in response to the given events. The eventPatterns map is a map of names
  // to map[string]interface{} values that represents the events to listen to. See
  // https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEventsandEventPatterns.html
  // for the proper syntax. Example:
  // 	map[string]interface{}{
  //		"source":      []string{"aws.ec2"},
  //		"detail-type": []string{"EC2 Instance state change"},
  //	}