class_docstr: A class to load, modify, and display the StreamAlertCLI Config
docstr: Check if this alarm name is already used somewhere. CloudWatch alarm
  names must be unique to an AWS account
  
  Args:
      alarm_name (str): The name of the alarm being created
  
  Returns:
      bool: True if the the alarm name is already present in the config
docstr_tok: ["Check","if","this","alarm","name","is","already","used","somewhere",".","CloudWatch","alarm","names","must","be","unique","to","an","AWS","account","Args",":","alarm_name","(","str",")",":","The","name","of","the","alarm","being","created","Returns",":","bool",":","True","if","the","the","alarm","name","is","already","present","in","the","config"]
code: def _alarm_exists(self, alarm_name):
      """Check if this alarm name is already used somewhere. CloudWatch alarm
      names must be unique to an AWS account
  
      Args:
          alarm_name (str): The name of the alarm being created
  
      Returns:
          bool: True if the the alarm name is already present in the config
      """
      message = (
          "CloudWatch metric alarm names must be unique "
          "within each AWS account. Please remove this alarm "
          "so it can be updated or choose another name."
      )
      funcs = {metrics.CLASSIFIER_FUNCTION_NAME}
      for func in funcs:
          func_config = "{}_config".format(func)
          for cluster, cluster_config in self.config[
              "clusters"
          ].items():
              func_alarms = cluster_config[func_config].get(
                  "custom_metric_alarms", {}
              )
              if alarm_name in func_alarms:
                  LOGGER.error(
                      "An alarm with name '%s' already exists in the "
                      "'conf/clusters/%s.json' cluster. %s",
                      alarm_name,
                      cluster,
                      message,
                  )
                  return True
  
      for func, global_lambda_config in self.config["lambda"].items():
          if alarm_name in global_lambda_config.get(
              "custom_metric_alarms", {}
          ):
              LOGGER.error(
                  "An alarm with name '%s' already exists in the "
                  "'conf/lambda.json' in function config '%s'. %s",
                  alarm_name,
                  func,
                  message,
              )
              return True
  
      return False
  
imports: import json
  import os
  import re
  import shutil
  import string
  import tempfile
  from streamalert.apps import StreamAlertApp
  from streamalert.shared import CLUSTERED_FUNCTIONS, config, metrics
  from streamalert.shared.logger import get_logger
  from streamalert_cli.terraform import TERRAFORM_FILES_PATH
  from streamalert_cli.apps.helpers import save_app_auth_info
  from streamalert_cli.helpers import continue_prompt
label_desc: Use image node_id 16 for calling the CLIConfig obj's underlying member method code with example usage: obj._alarm_exists(alarm_name) and returns: False, True, True