validation

package
v1.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteOnlyAttributes

func WriteOnlyAttributes(schema *configschema.Block, v cty.Value, resAddr string) (diags tfdiags.Diagnostics)

WriteOnlyAttributes checks that the write-only attributes are not returned back with an actual value. This particular validation does not require to return the diags right away, but we can leave the flow move on. The diagnostics generated by this validation ensure that the provider works correctly and there is no issue in the provider SDK when it comes to the write-only attributes. Returning those with actual values can create unknown behavior leading to possible confidential information exposure. NOTE: Keep this in sync with the equivalent in internal/plugin/validation/write_only.go

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL