validation

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MPL-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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