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: website/docs/language/expressions/types.mdx
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,16 @@ The Terraform language uses the following types for its values:
21
21
numbers like `15` and fractional values like `6.283185`.
22
22
*`bool`: a boolean value, either `true` or `false`. `bool` values can be used in conditional
23
23
logic.
24
-
*`list` (or `tuple`): a sequence of values, like
25
-
`["us-west-1a", "us-west-1c"]`. Elements in a list or tuple are identified by
26
-
consecutive whole numbers, starting with zero.
27
-
*`map` (or `object`): a group of values identified by named labels, like
24
+
*`list`: a sequence of values, like `["us-west-1a", "us-west-1c"]`. Identify elements in a list with consecutive whole numbers, starting with zero.
25
+
*`set`: a collection of unique values that do not have any secondary identifiers or ordering.
26
+
*`map`: a group of values identified by named labels, like
28
27
`{name = "Mabel", age = 52}`.
29
28
30
-
Strings, numbers, and bools are sometimes called _primitive types._ Lists/tuples and maps/objects are sometimes called _complex types,__structural types,_ or _collection types._
29
+
Strings, numbers, and bools are sometimes called _primitive types._ Lists and sets are forms
30
+
of tuples. Maps are a form of objects. Tuples and objects are sometimes called _complex types,_
31
+
_structural types,_ or _collection types._ See
32
+
[Type Constraints](/terraform/language/expressions/type-constraints) for a more detailed
33
+
description of complex types.
31
34
32
35
Finally, there is one special value that has _no_ type:
0 commit comments