The slug as a plain string. project.name and project.slug are Outputs, which would interpolate as "Output<...>" in an error message thrown outside an apply.
project.name
project.slug
Output
apply
The slug as a plain string.
project.nameandproject.slugareOutputs, which would interpolate as "Output<...>" in an error message thrown outside anapply.