class_docstr: Centralized config for handling configuration loading/parsing
class_docstr_tok: ["Centralized","config","for","handling","configuration","loading\/parsing"]
docstr: Save the current state in the aws ssm paramater store
  
  Raises:
      AppStateError: If the parameter is not able to be saved
docstr_tok: ["Save","the","current","state","in","the","aws","ssm","paramater","store","Raises",":","AppStateError",":","If","the","parameter","is","not","able","to","be","saved"]
code: def _save_state(self):
      """Save the current state in the aws ssm paramater store
  
      Raises:
          AppStateError: If the parameter is not able to be saved
      """
      try:
          param_value = json.dumps(
              {
                  self._TIME_KEY: self.last_timestamp,
                  self._STATE_KEY: self.current_state,
                  self._CONTEXT_KEY: self.context,
              }
          )
      except TypeError as err:
          raise AppStateError(
              "Could not serialize state for name '{}'. Error: "
              "{}".format(self._state_name, str(err))
          )
  
      @backoff.on_exception(
          backoff.expo,
          ClientError,
          max_tries=self.MAX_STATE_SAVE_TRIES,
          jitter=backoff.full_jitter,
      )
      def save():
          """Function to save the value of the state dictionary to parameter store"""
          self.SSM_CLIENT.put_parameter(
              Name=self._state_name,
              Description=self._STATE_DESCRIPTION.format(
                  self._app_type, self.function_name
              ),
              Value=param_value,
              Type="SecureString",
              Overwrite=True,
          )
  
      try:
          save()
      except ClientError as err:
          raise AppStateError(
              "Could not save current state to parameter "
              "store with name '{}'. Response: "
              "{}".format(self._state_name, err.response)
          )
  
imports: import calendar
  from datetime import datetime
  import json
  import re
  import time
  import backoff
  import boto3
  from botocore import client
  from botocore.exceptions import ClientError
  from streamalert.apps.exceptions import AppAuthError, AppConfigError, AppStateError
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 16 for calling the AppConfig obj's underlying member method code with example usage: obj._save_state() without return types