docstr: Fetches the configuration for a service
  Args:
      options (argparse.Namespace): Basically a namedtuple with the service setting
      config (StreamAlert.config): The configuration of StreamAlert
  Returns:
      bool: False if errors occurred, True otherwise
docstr_tok: ["Fetches","the","configuration","for","a","service","Args",":","options","(","argparse.Namespace",")",":","Basically","a","namedtuple","with","the","service","setting","config","(","StreamAlert.config",")",":","The","configuration","of","StreamAlert","Returns",":","bool",":","False","if","errors","occurred",",","True","otherwise"]
code: def handler(cls, options, config):
      """Fetches the configuration for a service
      Args:
          options (argparse.Namespace): Basically a namedtuple with the service setting
          config (StreamAlert.config): The configuration of StreamAlert
      Returns:
          bool: False if errors occurred, True otherwise
      """
      service = options.service
      output = StreamAlertOutput.create_dispatcher(service, config)
  
      # Get the descriptors for the service. No need to check service
      # as this is handled by argparse choices
      configured_descriptors = [
          descriptor
          for descriptor in config["outputs"][service]
          if "sample" not in descriptor
      ]
  
      # Set the descriptors to get the secrets for
      descriptors = (
          options.descriptors
          if options.descriptors
          else configured_descriptors
      )
  
      LOGGER.debug(
          "Getting secrets for service %s and descriptors %s",
          service,
          descriptors,
      )
  
      credentials = []
      for descriptor in descriptors:
          if descriptor not in configured_descriptors:
              LOGGER.error(
                  "Invalid descriptor %s, it doesn't exist", descriptor
              )
              return False
  
          creds = output._load_creds(
              descriptor
          )  # pylint: disable=protected-access
          creds["descriptor"] = descriptor
          credentials.append(creds)
  
      print("\nService Name:", service)
      print(json.dumps(credentials, indent=2, sort_keys=True), "\n")
  
imports: import json
  from streamalert.shared.logger import get_logger
  from streamalert.alert_processor.outputs.output_base import StreamAlertOutput, OutputCredentialsProvider
  from streamalert_cli.helpers import user_input, response_is_valid
  from streamalert_cli.outputs.helpers import output_exists
  from streamalert_cli.utils import CLICommand, generate_subparser
label_desc: Use image node_id 2 for calling the OutputGetSubCommand obj's underlying member method code with example usage: obj.handler(cls, options, config) and returns: False