code: def save_parameter(
      region, name, value, description, force_overwrite=False
  ):
      """Function to save the designated value to parameter store
  
      Args:
          name (str): Name of the parameter being saved
          value (str): Value to be saved to the parameter store
      """
      ssm_client = boto3.client("ssm", region_name=region)
  
      param_value = json.dumps(value)
  
      # The name of the parameter should follow the format of:
      # <function_name>_<type> where <type> is one of {'auth', 'config', 'state'}
      # and <function_name> follows the the format:
      # '<prefix>_<cluster>_<service>_<app_name>_app'
      # Example: prefix_prod_duo_auth_production_collector_app_config
      def save(overwrite=False):
          ssm_client.put_parameter(
              Name=name,
              Description=description,
              Value=param_value,
              Type="SecureString",
              Overwrite=overwrite,
          )
  
      try:
          save(overwrite=force_overwrite)
      except ClientError as err:
          if err.response["Error"]["Code"] == "ExpiredTokenException":
              # Log an error if this response was due to no credentials being found
              LOGGER.error(
                  "Could not save '%s' to parameter store because no "
                  "valid credentials were loaded.",
                  name,
              )
  
          if err.response["Error"]["Code"] != "ParameterAlreadyExists":
              raise
  
          prompt = (
              "A parameter already exists with name '{}'. Would you like "
              "to overwrite the existing value?".format(name)
          )
  
          # Ask to overwrite
          if not continue_prompt(message=prompt):
              return False
  
          save(overwrite=True)
  
      return True
  
file_path: streamalert/streamalert_cli/helpers.py
imports: from getpass import getpass
  import json
  import os
  import re
  import subprocess
  import boto3
  from botocore.exceptions import ClientError, NoCredentialsError
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 6 for calling a global function with example usage: save_parameter(region, name, value, description, force_overwrite) and returns: True, False