class_docstr: Class containing helper functions for aws ssm
docstr: puts a parameter into SSM Parameter store
  
  Args:
      name (str): The name of the parameter to save
      value (str or dict): The value of the parameter to save
      region (str): AWS region
      kms_key_alias (str): The kms key alias in use for secrets
  
  Returns:
      bool: True if successful else False
docstr_tok: ["puts","a","parameter","into","SSM","Parameter","store","Args",":","name","(","str",")",":","The","name","of","the","parameter","to","save","value","(","str","or","dict",")",":","The","value","of","the","parameter","to","save","region","(","str",")",":","AWS","region","kms_key_alias","(","str",")",":","The","kms","key","alias","in","use","for","secrets","Returns",":","bool",":","True","if","successful","else","False"]
code: def put_parameter(name, value, region, kms_key_alias):
      """puts a parameter into SSM Parameter store
  
      Args:
          name (str): The name of the parameter to save
          value (str or dict): The value of the parameter to save
          region (str): AWS region
          kms_key_alias (str): The kms key alias in use for secrets
  
      Returns:
          bool: True if successful else False
      """
      client = boto3.client("ssm", config=default_config(region=region))
      result = False
  
      key_id = "alias/{}".format(kms_key_alias)
      parameter_value = (
          json.dumps(value) if isinstance(value, dict) else str(value)
      )
      try:
          client.put_parameter(
              Name=name,
              Description="StreamAlert Secret",
              Value=parameter_value,
              Type="SecureString",
              KeyId=key_id,
              Overwrite=True,
              Tier="Standard",
          )
      except ClientError as err:
          LOGGER.exception(
              "Error saving parameter %s to SSM Param Store\n%s",
              name,
              err,
          )
          result = False
      else:
          result = True
  
      return result
  
file_path: streamalert/streamalert/shared/helpers/aws_api_client.py
imports: import json
  import boto3
  from botocore.exceptions import ClientError
  from streamalert.shared.helpers.boto import default_config
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 2 for calling the AwsSsm obj's underlying member method code with example usage: obj.put_parameter(name, value, region, kms_key_alias) and returns: result