def bool_str(val):
    """CloudFormation Template formatted boolean string.

    CloudFormation uses all lowercase for boolean values, which means that
    str() will not work correctly for boolean values.

    Args:
        val (bool) : Boolean value to convert to a string

    Returns:
        (string) : String of representing the boolean value
    """
    return "true" if val else "false"