docs: def poller_processor_handler(event, context):  # pylint: disable=W0613
      """
      Historical S3 Poller Processor.
  
      This will receive events from the Poller Tasker, and will list all objects of a given technology for an
      account/region pair. This will generate `polling events` which simulate changes. These polling events contain
      configuration data such as the account/region defining where the collector should attempt to gather data from.
      """
      LOG.debug('[@] Running Poller...')
  
      queue_url = get_queue_url(os.environ.get('POLLER_QUEUE_NAME', 'HistoricalS3Poller'))
  
      records = deserialize_records(event['Records'])
  
      for record in records:
          # Skip accounts that have role assumption errors:
          try:
              # List all buckets in the account:
              all_buckets = list_buckets(account_number=record['account_id'],
                                         assume_role=HISTORICAL_ROLE,
                                         session_name="historical-cloudwatch-s3list",
                                         region=record['region'])["Buckets"]
  
              events = [S3_POLLING_SCHEMA.serialize_me(record['account_id'], bucket) for bucket in all_buckets]
              produce_events(events, queue_url, randomize_delay=RANDOMIZE_POLLER)
          except ClientError as exc:
              LOG.error(f"[X] Unable to generate events for account. Account Id: {record['account_id']} Reason: {exc}")
  
          LOG.debug(f"[@] Finished generating polling events for account: {record['account_id']}. Events Created:"
                    f" {len(record['account_id'])}")