I have a schema parameter that sometimes needs to be Sensitive and sometimes does not. It depends on the value of another property.
resource “X” “Y” {
encrypted = false
entries = {
A = “B”
C = “D”
}
}
entries does NOT need to be sensitive because encrypted is false. However, if the user sets encrypted to true, then I need the entries to be sensitive. Is this possible? Is there some kind of custom func that I can write so that the schema changes to sensitive based on the value of another property? Is there a SensitiveWhenFunc?