Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequiresReplaceIfCleared ¶
func RequiresReplaceIfCleared(summary, detail string) planmodifier.String
RequiresReplaceIfCleared returns a plan modifier that triggers resource replacement when an attribute that was previously set is cleared from the configuration. This is intended for API fields that accept a value on create/update but cannot be unset afterward — the only way to remove the value is to destroy and recreate the resource.
The modifier is a no-op during initial creation (state is null) and when the attribute was never set (state value is null or empty). It only fires when the state holds a non-empty value and the config removes it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.