View Source Ash.Resource.Validation.AttributeEquals (ash v2.0.0-pre.0)

A validation that fails unless the attribute equals a specific value before changes are applied.

Creates, however, will take into account the changes.