@@ -311,32 +311,33 @@ type Schema struct {
311
311
// "parent_block_name.0.child_attribute_name".
312
312
RequiredWith []string
313
313
314
- // Deprecated defines warning diagnostic details to display to
315
- // practitioners configuring this attribute or block. The warning
314
+ // Deprecated defines warning diagnostic details to display when
315
+ // practitioner configurations use this attribute or block. The warning
316
316
// diagnostic summary is automatically set to "Argument is deprecated"
317
317
// along with configuration source file and line information.
318
318
//
319
- // This warning diagnostic is only displayed during Terraform's validation
320
- // phase when this field is a non-empty string, when the attribute is
321
- // Required or Optional, and if the practitioner configuration attempts to
322
- // set the attribute value to a known value. It cannot detect practitioner
323
- // configuration values that are unknown ("known after apply").
319
+ // Set this field to a practitioner actionable message such as:
324
320
//
325
- // This field has no effect when the attribute is Computed-only (read-only;
326
- // not Required or Optional) and a practitioner attempts to reference
327
- // this attribute value in their configuration. There is a Terraform
328
- // feature request to support this type of functionality:
321
+ // - "Configure other_attribute instead. This attribute will be removed
322
+ // in the next major version of the provider."
323
+ // - "Remove this attribute's configuration as it no longer is used and
324
+ // the attribute will be removed in the next major version of the
325
+ // provider."
329
326
//
330
- // https://github.com/hashicorp/terraform/issues/7569
327
+ // In Terraform 1.2.7 and later, this warning diagnostic is displayed any
328
+ // time a practitioner attempts to configure a known value for this
329
+ // attribute and certain scenarios where this attribute is referenced.
331
330
//
332
- // Set this field to a practitioner actionable message such as:
331
+ // In Terraform 1.2.6 and earlier, this warning diagnostic is only
332
+ // displayed when the attribute is Required or Optional, and if the
333
+ // practitioner configuration attempts to set the attribute value to a
334
+ // known value. It cannot detect practitioner configuration values that
335
+ // are unknown ("known after apply").
333
336
//
334
- // - "Configure other_attribute instead. This attribute will be removed
335
- // in the next major version of the provider."
336
- // - "Remove this attribute's configuration as it no longer is used and
337
- // the attribute will be removed in the next major version of the
338
- // provider."
337
+ // Additional information about deprecation enhancements for read-only
338
+ // attributes can be found in:
339
339
//
340
+ // - https://github.com/hashicorp/terraform/issues/7569
340
341
Deprecated string
341
342
342
343
// ValidateFunc allows individual fields to define arbitrary validation
0 commit comments