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.
Click to show internal directories.
Click to hide internal directories.