class_docstr: Class containing helper functions for aws ssm
docstr: gets the parameter_name from SSM Parameter store
  
  Args:
      parameter_name (str): The name of the parameter to fetch
      region (str): AWS region
      with_decryption (bool): Should decryption be attempted via this call
  
  Returns:
      str: The parameter either encrypted or not
  
  Raises:
      ClientError
docstr_tok: ["gets","the","parameter_name","from","SSM","Parameter","store","Args",":","parameter_name","(","str",")",":","The","name","of","the","parameter","to","fetch","region","(","str",")",":","AWS","region","with_decryption","(","bool",")",":","Should","decryption","be","attempted","via","this","call","Returns",":","str",":","The","parameter","either","encrypted","or","not","Raises",":","ClientError"]
code: def get_parameter(parameter_name, region, with_decryption=True):
      """gets the parameter_name from SSM Parameter store
  
      Args:
          parameter_name (str): The name of the parameter to fetch
          region (str): AWS region
          with_decryption (bool): Should decryption be attempted via this call
  
      Returns:
          str: The parameter either encrypted or not
  
      Raises:
          ClientError
      """
      client = boto3.client("ssm", config=default_config(region=region))
  
      try:
          response = client.get_parameter(
              Name=parameter_name, WithDecryption=with_decryption
          )
      except ClientError:
          LOGGER.error("Error getting parameter %s", parameter_name)
          raise
      else:
          return response["Parameter"]["Value"]
  
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 1 for calling the AwsSsm obj's underlying member method code with example usage: obj.get_parameter(parameter_name, region, with_decryption) and returns: response