Skip to content

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

RequireReplace

  • RequireReplaceIfBool - Forces the resource to be replaced when the specified boolean attribute is changed.

StringChange

  • ToLower - Converts the string to lowercase.
  • ToUpper - Converts the string to uppercase.