class_docstr: Class to be used as a decorator to register all StreamPayload subclasses
class_docstr_tok: ["Class","to","be","used","as","a","decorator","to","register","all","StreamPayload","subclasses"]
docstr: Returns the right StreamPayload subclass for this service
  
  Args:
      service (str): service name to load class for
      resource (str): resource for this service
      raw_record (str): record raw payload data
  
  Returns:
      StreamPayload: Loaded subclass of StreamPayload for the proper payload type
docstr_tok: ["Returns","the","right","StreamPayload","subclass","for","this","service","Args",":","service","(","str",")",":","service","name","to","load","class","for","resource","(","str",")",":","resource","for","this","service","raw_record","(","str",")",":","record","raw","payload","data","Returns",":","StreamPayload",":","Loaded","subclass","of","StreamPayload","for","the","proper","payload","type"]
code: def load_for_service(cls, service, resource, raw_record):
      """Returns the right StreamPayload subclass for this service
  
      Args:
          service (str): service name to load class for
          resource (str): resource for this service
          raw_record (str): record raw payload data
  
      Returns:
          StreamPayload: Loaded subclass of StreamPayload for the proper payload type
      """
      payload = cls._get_payload_class(service)
      if not payload:
          return False
  
      return payload(resource=resource, raw_record=raw_record)
  
imports: from abc import ABCMeta, abstractmethod, abstractproperty
  import json
  import logging
  import os
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 2 for calling the RegisterInput obj's underlying member method code with example usage: obj.load_for_service(cls, service, resource, raw_record) and returns: payload, False