planmodifiers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

planmodifiers

import "github.com/SuperBuker/terraform-provider-dns-he-net/internal/planmodifiers"

Index

func UseStateOrDftForUnknown

func UseStateOrDftForUnknown(dft string) planmodifier.String

UseStateOrDftForUnknown returns a plan modifier that copies a known prior state value into the planned value, or a default value if not known prior state exists. Use this when it is known that an unconfigured value will remain the same after a resource update.

To prevent Terraform errors, the framework automatically sets unconfigured and Computed attributes to an unknown value "(known after apply)" on update. Using this plan modifier will instead display the prior state value in the plan, unless a prior plan modifier adjusts the value.

type useStateOrDftForUnknownModifier

useStateForUnknownModifier implements the plan modifier.

type useStateOrDftForUnknownModifier struct {
    dft string
}
func (useStateOrDftForUnknownModifier) Description
func (useStateOrDftForUnknownModifier) Description(context.Context) string

Description returns a human-readable description of the plan modifier.

func (useStateOrDftForUnknownModifier) MarkdownDescription
func (useStateOrDftForUnknownModifier) MarkdownDescription(context.Context) string

MarkdownDescription returns a markdown description of the plan modifier.

func (useStateOrDftForUnknownModifier) PlanModifyString
func (m useStateOrDftForUnknownModifier) PlanModifyString(_ context.Context, req planmodifier.StringRequest, resp *planmodifier.StringResponse)

PlanModifyString implements the plan modification logic.

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseStateOrDftForUnknown

func UseStateOrDftForUnknown(dft string) planmodifier.String

UseStateOrDftForUnknown returns a plan modifier that copies a known prior state value into the planned value, or a default value if not known prior state exists. Use this when it is known that an unconfigured value will remain the same after a resource update.

To prevent Terraform errors, the framework automatically sets unconfigured and Computed attributes to an unknown value "(known after apply)" on update. Using this plan modifier will instead display the prior state value in the plan, unless a prior plan modifier adjusts the value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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