docs: def lambda_handler(event, context):
      """Main handler."""
      auth = check_auth(event, role=["admin"])
      if not auth['success']:
          return auth
  
      table = boto3.resource("dynamodb").Table(os.environ['database'])
      results = table.scan()
      output = {'success': True, 'events': list(), 'eventsCount': 0}
      for item in results.get('Items', list()):
          output['events'].append(item)
      output['eventsCount'] = len(output['events'])
      return output