Skip to content

Commit f5badab

Browse files
authored
add dev doc for tf:"suppress_diff", tf:"force_new" and tf:"sensitive" tags (#1465)
1 parent 8064876 commit f5badab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ Some interesting points to note here:
110110
* `default:X` to set a default value for a field
111111
* `max_items:N` to set the maximum number of items for a multi-valued parameter
112112
* `slice_set` to indicate that a the parameter should accept a set instead of a list
113+
* `sensitive` to mark a field as sensitive and prevent Terraform from showing its value in the plan or apply output
114+
* `force_new` to indicate a change in this value requires the replacement (destroy and create) of the resource
115+
* `suppress_diff` to allow comparison based on something other than primitive, list or map equality, either via a `CustomizeDiffFunc`, or the default diff for the type of the schema
113116
* Do not use bare references to structs in the model; rather, use pointers to structs. Maps and slices are permitted, as well as the following primitive types: int, int32, int64, float64, bool, string.
114117
See `typeToSchema` in `common/reflect_resource.go` for the up-to-date list of all supported field types and values for the `tf` tag.
115118

0 commit comments

Comments
 (0)