Skip to content

Bool Plan Modifiers

Bool plan modifiers are used to modify the plan of a bool attribute. I will be used into the PlanModifiers field of the schema.BoolAttribute struct.

How to use it

import (
    fboolplanmodifier "github.com/FrangipaneTeam/terraform-plugin-framework-planmodifiers/boolplanmodifier"
)

List of Plan Modifiers

  • 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.

RequireReplace

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