Documentation ¶
Overview ¶
NOTE! copied from terraform-provider-tls
NOTE! copied from terraform-provider-tls
NOTE! copied from terraform-provider-tls
Index ¶
- func AttributeChanged(ctx context.Context, p path.Path, plan tfsdk.Plan, state tfsdk.State) (bool, diag.Diagnostics)
- func AttributeStateDefined(ctx context.Context, p path.Path, state tfsdk.State) (bool, diag.Diagnostics)
- func BoolDefaultValue(v bool) planmodifier.Bool
- func CheckAvailableMigration(ctx context.Context, plan tfsdk.Plan, state tfsdk.State, ...) (bool, diag.Diagnostics)
- func HasAttribute(ctx context.Context, p path.Path, plan tfsdk.Plan) (bool, diag.Diagnostics)
- func SetDefaultValue(elemType attr.Type, value []attr.Value) planmodifier.Set
- func StringDefaultValue(v string) planmodifier.String
- func UseStateForUnknownUnlessMigrationIsRequired(resourceKind string, isNullable bool) useStateForUnknownUnlessMigrationIsRequired
- type PlanModifierResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeChanged ¶
func AttributeStateDefined ¶ added in v0.10.0
func BoolDefaultValue ¶
func BoolDefaultValue(v bool) planmodifier.Bool
func CheckAvailableMigration ¶ added in v0.10.0
func HasAttribute ¶
func SetDefaultValue ¶
func StringDefaultValue ¶
func StringDefaultValue(v string) planmodifier.String
func UseStateForUnknownUnlessMigrationIsRequired ¶ added in v0.10.0
func UseStateForUnknownUnlessMigrationIsRequired(resourceKind string, isNullable bool) useStateForUnknownUnlessMigrationIsRequired
UseStateForUnknownUnlessMigrationIsRequired Use current state for a topology's attribute, unless one of the following scenarios occurs:
- The attribute is not nullable (`isNullable = false`) and the topology's state is nil
- The deployment template attribute has changed
- `migrate_to_latest_hardware` is set to `true` and there is a migration available to be performed
Types ¶
type PlanModifierResponse ¶ added in v0.10.0
type PlanModifierResponse interface { planmodifier.StringResponse | planmodifier.Int64Response }
Click to show internal directories.
Click to hide internal directories.