class_docstr: Classify, map source, and parse a raw record into its declared type.
class_docstr_tok: ["Classify",",","map","source",",","and","parse","a","raw","record","into","its","declared","type","."]
docstr: Load the log types for this service type and resource value
  
  Args:
      service (str): Source service
      resource (str): Resource within the service
  
  Returns:
      bool: True if the resource's log sources loaded properly
docstr_tok: ["Load","the","log","types","for","this","service","type","and","resource","value","Args",":","service","(","str",")",":","Source","service","resource","(","str",")",":","Resource","within","the","service","Returns",":","bool",":","True","if","the","resource","'s","log","sources","loaded","properly"]
code: def _load_logs_for_resource(self, service, resource):
      """Load the log types for this service type and resource value
  
      Args:
          service (str): Source service
          resource (str): Resource within the service
  
      Returns:
          bool: True if the resource's log sources loaded properly
      """
      # Get all logs for the configured service/entity (s3, kinesis, or sns)
      resources = self._config["clusters"][self._cluster][
          "data_sources"
      ].get(service)
      if not resources:
          error = "Service [{}] not declared in sources configuration for resource [{}]".format(
              service, resource
          )
          raise ConfigError(error)
  
      source_config = resources.get(resource)
      if not source_config:
          error = "Resource [{}] not declared in sources configuration for service [{}]".format(
              resource, service
          )
          raise ConfigError(error)
  
      # Get the log schemas for source(s)
      return OrderedDict(
          (source, self.config["logs"][source])
          for source in self.config["logs"].keys()
          if source.split(":")[0] in source_config
      )
  
imports: from collections import OrderedDict
  import os
  import logging
  from streamalert.classifier.clients import SQSClient
  from streamalert.shared.firehose import FirehoseClient
  from streamalert.classifier.parsers import get_parser
  from streamalert.classifier.payload.payload_base import StreamPayload
  from streamalert.shared import config, CLASSIFIER_FUNCTION_NAME
  from streamalert.shared.artifact_extractor import ArtifactExtractor
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.logger import get_logger
  from streamalert.shared.metrics import MetricLogger
  from streamalert.shared.normalize import Normalizer
label_desc: Use image node_id 7 for calling the Classifier obj's underlying member method code with example usage: obj._load_logs_for_resource(service, resource) and returns: OrderedDict