aws_lambda_decorators/classes.py
def extract_value(self, dict_value):
        """
        Calculate and decode the value of the variable in the given path.

        Used by the extract_validated_value.

        Args:
            dict_value (dict): dictionary to be parsed.

        Returns:
            The extracted value
        """
        for path_key in filter(lambda item: item != "", self._path.split(PATH_DIVIDER)):
            real_key, annotation = Parameter.get_annotations_from_key(path_key)
            if dict_value and real_key in dict_value:
                dict_value = decode(annotation, dict_value[real_key])
            else:
                dict_value = self._default

        if not self._name:
            self._name = real_key

        if dict_value and self._transform:
            dict_value = self._transform(dict_value)

        return dict_value

        Calculate and decode the value of the variable in the given path.

        Used by the extract_validated_value.

        Args:
            dict_value (dict): dictionary to be parsed.

        Returns:
            The extracted value
        
Calculate and decode the value of the variable in the given path.
Used by the extract_validated_value.
Calculate and decode the value of the variable in the given path . Used by the extract_validated_value .
def extract_value(self, dict_value):
        for path_key in filter(lambda item: item != "", self._path.split(PATH_DIVIDER)):
            real_key, annotation = Parameter.get_annotations_from_key(path_key)
            if dict_value and real_key in dict_value:
                dict_value = decode(annotation, dict_value[real_key])
            else:
                dict_value = self._default
        if not self._name:
            self._name = real_key
        if dict_value and self._transform:
            dict_value = self._transform(dict_value)
        return dict_value
def extract_value ( self , dict_value ) : for path_key in filter ( lambda item : item != "" , self . _path . split ( PATH_DIVIDER ) ) : real_key , annotation = Parameter . get_annotations_from_key ( path_key ) if dict_value and real_key in dict_value : dict_value = decode ( annotation , dict_value [ real_key ] ) else : dict_value = self . _default if not self . _name : self . _name = real_key if dict_value and self . _transform : dict_value = self . _transform ( dict_value ) return dict_value
Calculate and decode the value of the variable in the given path.
Calculate and decode the value of the variable in the given path .
"""
        Calculate and decode the value of the variable in the given path.

        Used by the extract_validated_value.

        Args:
            dict_value (dict): dictionary to be parsed.

        Returns:
            The extracted value
        """
The extracted value
The extracted value
self
dict_value
dictionary to be parsed.
dictionary to be parsed .