String Plan Modifiers
String plan modifiers are used to modify the plan of a string attribute.
It will be used into the PlanModifiers field of the schema.StringAttribute struct.
How to use it
import (
fstringplanmodifier "github.com/FrangipaneTeam/terraform-plugin-framework-planmodifiers/stringplanmodifier"
)
List of Plan Modifiers
SetDefault
SetDefault- Sets a default value for the attribute.SetDefaultEnvVar- Sets a default value for the attribute from an environment variable.SetDefaultFunc- Sets a default value for the attribute from a function.SetDefaultEmptyString- Sets a empty string as default value for the attribute.
RequireReplace
RequireReplaceIfBool- Forces the resource to be replaced when the specified boolean attribute is changed.