@@ -24,7 +24,7 @@ Simple attributes include attributes for boolean, float64, int64, number and str
24
24
25
25
#### Terraform Configuration
26
26
27
- Within Terraform configuration simple attributes are represented using the following syntax :
27
+ Use the following syntax in Terraform configuration for simple attributes :
28
28
29
29
``` hcl
30
30
resource "example_resource" "example" {
@@ -41,7 +41,7 @@ resource "example_resource" "example" {
41
41
42
42
#### Schema
43
43
44
- Within the schema, simple attributes are defined as follows:
44
+ Define simple attributes in the schema as follows:
45
45
46
46
``` go
47
47
func (e *exampleResource ) Schema (ctx context .Context , req resource .SchemaRequest , resp *resource .SchemaResponse ) {
@@ -77,7 +77,7 @@ Collection attributes include attributes for lists, maps and sets.
77
77
78
78
#### Terraform Configuration
79
79
80
- Within Terraform configuration, collection attributes are represented using the following syntax :
80
+ Use the following syntax in Terraform configuration for collection attributes :
81
81
82
82
``` hcl
83
83
resource "example_resource" "example" {
@@ -91,7 +91,7 @@ resource "example_resource" "example" {
91
91
92
92
#### Schema
93
93
94
- Within the schema collection attributes are defined as follows:
94
+ Define collection attributes in the schema as follows:
95
95
96
96
``` go
97
97
func (e *exampleResource ) Schema (ctx context .Context , req resource .SchemaRequest , resp *resource .SchemaResponse ) {
@@ -118,13 +118,13 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
118
118
119
119
### Object Attribute
120
120
121
- An object attribute is used when the attribute is an atomic unit and all fields defined within it need to be specified.
121
+ Use an object attribute when the attribute is an atomic unit and all fields defined within it need to be specified.
122
122
123
123
Nested attributes (i.e., ListNestedAttribute, MapNestedAttribute, SetNestedAttribute and SingleNestedAttribute) should be used when any of the inner fields should have their own flags or metadata (e.g., Required, Optional, Sensitive etc).
124
124
125
125
#### Terraform Configuration
126
126
127
- Within Terraform configuration, object attributes are represented using the following syntax :
127
+ Use the following syntax in Terraform configuration for object attributes :
128
128
129
129
``` hcl
130
130
resource "example_resource" "example" {
@@ -143,7 +143,7 @@ resource "example_resource" "example" {
143
143
144
144
#### Schema
145
145
146
- Within the schema, object attributes are defined as follows:
146
+ Define object attributes in the schema as follows:
147
147
148
148
``` go
149
149
func (e *exampleResource ) Schema (ctx context .Context , req resource .SchemaRequest , resp *resource .SchemaResponse ) {
@@ -171,7 +171,7 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
171
171
172
172
#### Terraform Configuration
173
173
174
- Within Terraform configuration, nested attributes are represented using the following syntax :
174
+ Use the following syntax in Terraform configuration for nested attributes :
175
175
176
176
``` hcl
177
177
resource "example_resource" "example" {
@@ -237,7 +237,7 @@ resource "example_resource" "example" {
237
237
238
238
#### Schema
239
239
240
- Within the schema, nested attributes are defined as follows:
240
+ Define nested attributes in the schema as follows:
241
241
242
242
``` go
243
243
func (e *exampleResource ) Schema (ctx context .Context , req resource .SchemaRequest , resp *resource .SchemaResponse ) {
@@ -324,7 +324,7 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
324
324
325
325
#### Terraform Configuration
326
326
327
- Within Terraform configuration, nested blocks are represented using the following syntax :
327
+ Use the following syntax in Terraform configuration for nested blocks :
328
328
329
329
``` hcl
330
330
resource "example_resource" "example" {
@@ -405,7 +405,7 @@ resource "example_resource" "example" {
405
405
406
406
#### Schema
407
407
408
- Within the schema, nested blocks are defined as follows:
408
+ Define nested blocks in the schema as follows:
409
409
410
410
``` go
411
411
func (e *exampleResource ) Schema (ctx context .Context , req resource .SchemaRequest , resp *resource .SchemaResponse ) {
@@ -502,7 +502,7 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
502
502
503
503
## Custom Types
504
504
505
- Custom types can be used for both attributes and blocks.
505
+ You can use custom types for both attributes and blocks.
506
506
507
507
### Custom Type and Value
508
508
@@ -579,7 +579,7 @@ resource "example_resource" "example" {
579
579
580
580
### Schema
581
581
582
- Within the schema, the custom type is used as follows:
582
+ Use the custom type in the schema as follows:
583
583
584
584
``` go
585
585
func (e *exampleResource ) Schema (ctx context .Context , req resource .SchemaRequest , resp *resource .SchemaResponse ) {
0 commit comments