title: How to read content of a file from a folder in S3 bucket using python?
body: <p>I was trying to read a file from a folder structure in S3 bucket using python with boto3.</p>
  <p>I want to return boolean value wether the report is present in S3 bucket or not.</p>
  <h3>Code</h3>
  <pre><code>import boto3
  import json
  
  S3_BUCKET_NAME = ''
  KEY = '@@@/%%%.json'
  
  
  def notification():
      report = get_report()
      print(report)
  
  
  def get_report():
      s3_client = boto3.client('s3')
      response = s3_client.get_object(Bucket=S3_BUCKET_NAME, Prefix=PREFIX, Key=KEY)
      data = response['Body'].read()
      report = json.loads(data)
      return report
  
  </code></pre>
  <p>How to check if the report is present and return a boolean value ?</p>