title: AWS CDK Logging - after a cdk deploy, i get the error message : props.destination.bind is not a function
body: <p>Im using the following bit of code to create a log group and a subscription filter : </p>
  
  <pre><code>lo = logs_.LogGroup(self, 'LogGroup',  retention=logs_.RetentionDays.ONE_WEEK )
  
  logs_.SubscriptionFilter(self, 'Subscription', 
      log_group=lo,
      destination=apiFunction,
      filter_pattern=logs_.FilterPattern.all_events()
  )
  </code></pre>
  
  <p>however, I get the following error message when I attempt to deploy : "props.destination.bind is not a function"</p>
  
  <p>Also, is this the correct way to create a cloud watch log ?  there is barely any python examples on how to create a cloud watch log</p>