Skip to content

Commit 6b9e434

Browse files
authored
plugin/how-terraform-works: Further clarify nested attributes benefits (#76)
Reference: hashicorp/terraform-plugin-framework#214 Reference: hashicorp/terraform-plugin-sdk#819 Reference: hashicorp/terraform-plugin-sdk#201 As part of investigating some differences between sdk/v2 and framework, the individual sensitivity configuration offered by nested attributes in protocol version 6 is important to call out explicitly.
1 parent 33b992f commit 6b9e434

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

website/docs/plugin/how-terraform-works.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ Major versions of the protocol delineate Terraform CLI and Terraform Plugin comp
123123

124124
Protocol version 6 is compatible with Terraform CLI version 1.0 and later. Protocol version 6 includes all version 5 functionality for providers, plus:
125125

126-
* **Nested Attributes**: You can define `SchemaAttribute` with the `NestedType` field. This enables complex schemas using [argument syntax](/language/syntax/configuration#arguments) instead of [block syntax](/language/syntax/configuration#blocks) and is preferred going forward.
126+
* **Nested Attributes**: Define `SchemaAttribute` with the `NestedType` field.
127+
* Enable practitioners to use easier [argument syntax](/language/syntax/configuration#arguments) instead of [block syntax](/language/syntax/configuration#blocks).
128+
* Configure value sensitivity on individual nested attributes, rather than an entire read-only (`Computed` only) attribute.
127129

128130
Implementations include:
129131

0 commit comments

Comments
 (0)