Can't add s3 notification for lambda using boto3
<p>I want to use boto3 to configure an s3 bucket to  invoke an AWS lambda every time an object is created in that bucket. Here is my code:</p>

<pre><code>s3 = ..boto3 resource
bucket_notification = s3.BucketNotification(bucket_name)
lambda_arn = .. arn for lambda

response = bucket_notification.put(
   NotificationConfiguration={'LambdaFunctionConfigurations': [
      {
                'LambdaFunctionArn': lambda_arn,
                'Events': [
                    's3:ObjectCreated:*'
                ],

      },
]})
</code></pre>

<p>I get the error:</p>

<blockquote>
  <p>botocore.exceptions.ClientError: An error occurred (InvalidArgument)
  when calling the PutBucketNotificationConfiguration operation: Unable
  to validate the following destination configurations</p>
</blockquote>