docs: def handler(event, context):
      """
      Historical {{cookiecutter.technology_name}}  event poller.
  
      This poller is run at a set interval in order to ensure that changes do not go undetected by historical.
  
      Historical pollers 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. Configuration: {}'.format(event))
  
      for account in get_historical_accounts():
          try:
              # TODO describe all items
              # Example::
              #
              # groups = describe_security_groups(
              #     account_number=account['id'],
              #     assume_role=HISTORICAL_ROLE,
              #     region=CURRENT_REGION
              # )
              # events = [security_group_polling_schema.serialize(account['id'], g) for g in groups['SecurityGroups']]
              events = []
              produce_events(events, os.environ.get('HISTORICAL_STREAM', 'Historical{{cookiecutter.technology_slug | titlecase }}PollerStream'))
              log.debug('Finished generating polling events. Account: {} Events Created: {}'.format(account['id'], len(events)))
          except ClientError as e:
              log.warning('Unable to generate events for account. AccountId: {account_id} Reason: {reason}'.format(
                  account_id=account['id'],
                  reason=e
              ))