planmodifiers

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

NOTE! copied from terraform-provider-tls

NOTE! copied from terraform-provider-tls

NOTE! copied from terraform-provider-tls

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeChanged

func AttributeChanged(ctx context.Context, p path.Path, plan tfsdk.Plan, state tfsdk.State) (bool, diag.Diagnostics)

func AttributeStateDefined added in v0.10.0

func AttributeStateDefined(ctx context.Context, p path.Path, state tfsdk.State) (bool, diag.Diagnostics)

func BoolDefaultValue

func BoolDefaultValue(v bool) planmodifier.Bool

func CheckAvailableMigration added in v0.10.0

func CheckAvailableMigration(ctx context.Context, plan tfsdk.Plan, state tfsdk.State, topologyPath path.Path) (bool, diag.Diagnostics)

func HasAttribute

func HasAttribute(ctx context.Context, p path.Path, plan tfsdk.Plan) (bool, diag.Diagnostics)

func SetDefaultValue

func SetDefaultValue(elemType attr.Type, value []attr.Value) planmodifier.Set

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:

  1. The attribute is not nullable (`isNullable = false`) and the topology's state is nil
  2. The deployment template attribute has changed
  3. `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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL