Batch checking contents of an S3 bucket with AWS lambda