planmodifiers

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolUseDefaultIfUnknown

func BoolUseDefaultIfUnknown(defaultValue bool) planmodifier.Bool

func StringSetUnknownIf added in v0.15.2

func StringSetUnknownIf(description string, shouldSetUnknown StringShouldSetUnknownFunc) planmodifier.String

StringSetUnknownIf returns a planmodifier.String that sets the plan value to Unknown when shouldSetUnknown returns true. The modifier is a no-op when either state or config is absent (create / destroy), so callers don't need to guard for those cases inside shouldSetUnknown.

func StringUseDefaultIfUnknown

func StringUseDefaultIfUnknown(defaultValue string) planmodifier.String

Types

type StringShouldSetUnknownFunc added in v0.15.2

type StringShouldSetUnknownFunc func(ctx context.Context, req planmodifier.StringRequest, resp *planmodifier.StringResponse) bool

StringShouldSetUnknownFunc is invoked by StringSetUnknownIf to determine whether the planned value should be replaced with Unknown. Implementations may append diagnostics to resp; any error diagnostics short-circuit the modifier without replacing the plan value.

Jump to

Keyboard shortcuts

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