docstr: Main handler for the Kinesis parser
  
  Args:
      options (argparse.Namespace): Parsed arguments
      config (CLIConfig): Loaded StreamAlert config
  
  Returns:
      bool: False if errors occurred, True otherwise
docstr_tok: ["Main","handler","for","the","Kinesis","parser","Args",":","options","(","argparse.Namespace",")",":","Parsed","arguments","config","(","CLIConfig",")",":","Loaded","StreamAlert","config","Returns",":","bool",":","False","if","errors","occurred",",","True","otherwise"]
code: def handler(cls, options, config):
      """Main handler for the Kinesis parser
  
      Args:
          options (argparse.Namespace): Parsed arguments
          config (CLIConfig): Loaded StreamAlert config
  
      Returns:
          bool: False if errors occurred, True otherwise
      """
      enable = options.action == "enable-events"
      LOGGER.info(
          "%s Kinesis Events", "Enabling" if enable else "Disabling"
      )
  
      for cluster in options.clusters or config.clusters():
          if "kinesis_events" in config["clusters"][cluster]["modules"]:
              config["clusters"][cluster]["modules"]["kinesis_events"][
                  "enabled"
              ] = enable
  
      config.write()
  
      if options.skip_terraform:
          return True  # not an error
  
      if not terraform_generate_handler(config):
          return False
  
      return terraform_runner(
          config,
          targets=[
              "module.{}_{}".format("kinesis_events", cluster)
              for cluster in config.clusters()
          ],
      )
  
file_path: streamalert/streamalert_cli/kinesis/handler.py
imports: from streamalert.shared.logger import get_logger
  from streamalert_cli.terraform.generate import terraform_generate_handler
  from streamalert_cli.terraform.helpers import terraform_runner
  from streamalert_cli.utils import CLICommand, set_parser_epilog, add_clusters_arg
label_desc: Use image node_id 2 for calling the KinesisCommand obj's underlying member method code with example usage: obj.handler(cls, options, config) and returns: terraform_runner, True, False