code: def save_api_creds_info(region, overwrite=False):
      """Function to add API creds information to parameter store
  
      Args:
          info (dict): Required values needed to save the requested credentials
              information to AWS Parameter Store
      """
      # Get all of the required credentials from the user for API calls
      required_creds = {
          "api_user": {
              "description": (
                  "API username to retrieve IOCs via API calls. "
                  "This should be an email address."
              ),
              "format": re.compile(r"^[a-zA-Z].*@.*"),
          },
          "api_key": {
              "description": (
                  "API key to retrieve IOCs via API calls. "
                  "This should be a string of 40 alphanumeric characters."
              ),
              "format": re.compile(r"^[a-zA-Z0-9]{40}$"),
          },
      }
  
      creds_dict = {
          auth_key: user_input(
              info["description"], False, info["format"]
          )
          for auth_key, info in required_creds.items()
      }
  
      description = (
          "Required credentials for the Threat Intel Downloader"
      )
  
      # Save these to the parameter store
      saved = save_parameter(
          region,
          ThreatStream.CRED_PARAMETER_NAME,
          creds_dict,
          description,
          overwrite,
      )
      if saved:
          LOGGER.info(
              "Threat Intel Downloader credentials were successfully "
              "saved to parameter store."
          )
      else:
          LOGGER.error(
              "Threat Intel Downloader credentials were not saved to "
              "parameter store."
          )
  
      return saved
  
file_path: streamalert/streamalert_cli/threat_intel_downloader/handler.py
imports: import re
  from streamalert.shared.logger import get_logger
  from streamalert.threat_intel_downloader.main import ThreatStream
  from streamalert_cli.helpers import user_input, save_parameter
  from streamalert_cli.utils import add_memory_arg, add_schedule_expression_arg, add_timeout_arg, CLICommand, generate_subparser, UniqueSortedListAction
label_desc: Use image node_id 1 for calling a global function with example usage: save_api_creds_info(region, overwrite) and returns: saved