Skip to content

Commit b1411d1

Browse files
austinvallebflad
andauthored
Update website/docs/plugin/framework/functions/parameters/dynamic.mdx
Co-authored-by: Brian Flad <[email protected]>
1 parent 54a8bd3 commit b1411d1

File tree

1 file changed

+6
-5
lines changed
  • website/docs/plugin/framework/functions/parameters

1 file changed

+6
-5
lines changed

website/docs/plugin/framework/functions/parameters/dynamic.mdx

+6-5
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,18 @@ func (f *ExampleFunction) Run(ctx context.Context, req function.RunRequest, resp
149149

150150
```
151151

152+
In these Terraform configuration examples, the function variadic argument will receive the following value types:
152153

153154
```hcl
154-
# Function variadic argument will receive `[]types.Dynamic{}`
155+
# []types.Dynamic{}
155156
provider::example::example()
156157
157-
# Function variadic argument will receive `[]types.Dynamic{types.String}`
158+
# []types.Dynamic{types.String}
158159
provider::example::example("hello world")
159160
160-
# Function variadic argument will receive `[]types.Dynamic{types.Bool, types.Number}`
161+
# []types.Dynamic{types.Bool, types.Number}
161162
provider::example::example(true, 1)
162163
163-
# Function variadic argument will receive `[]types.Dynamic{types.String, types.List[types.String]}`
164-
provider::example::example("hello", tolist(["one", "two"]))
164+
# []types.Dynamic{types.String, types.Tuple[types.String, types.String], types.List[types.String]}
165+
provider::example::example("hello", ["one", "two"], tolist(["one", "two"]))
165166
```

0 commit comments

Comments
 (0)