issensitive Function

issensitive takes any value and returns true if Terraform treats it as sensitive, with the same meaning and behavior as for sensitive input variables.

If a value not marked as sensitive is passed the function returns false.

See sensitive, nonsensitive, and sensitive input variables for more information on sensitive values.

Examples

> issensitive(sensitive("secret"))
true
> issensitive("hello")
false
> sensitive(var.my-var-with-sensitive-set-to-true)
true