You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/topics/reference-naming.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,11 @@ Here are some general guidelines you can turn to when naming properties:
32
32
* Properties that represent percentage values should be appended with `_percentage` e.g.
33
33
> `sampling_percentage`
34
34
35
+
## Resource ID Reference
36
+
37
+
Properties that are a reference to another resource's ID should be in the format of `{resource_name}_id` where `{resource_name}` is the full name minus the provider prefix (`azurerm_`). e.g.
38
+
> A property that expects a reference to the `azurerm_api_management` ID becomes `api_management_id`
39
+
35
40
## Boolean Property Naming Conventions
36
41
37
42
* As a general rule, booleans should be appended with `_enabled` e.g.
0 commit comments