def get_function_name(stack_outputs, function_logical_id):
    """Obtains the function name from given stack outputs.

    :type stack_outputs: dict
    :param stack_outputs: CloudFormation stack outputs.

    :type function_logical_id: str
    :param function_logical_id: logical ID of the function resource.

    :rtype: str
    :return: function name.
    """
    return stack_outputs[f'{function_logical_id}Name']