planmodifiers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultValue

func DefaultValue(val attr.Value) tfsdk.AttributePlanModifier

DefaultValue accepts an attr.Value and uses the supplied value to set a default if the config for the attribute is null.

func NumberNumericAttributePlanModifier

func NumberNumericAttributePlanModifier() tfsdk.AttributePlanModifier

func RequiresReplace

func RequiresReplace() tfsdk.AttributePlanModifier

RequiresReplace returns an attribute plan modifier that is identical to resource.RequiresReplace() with the exception that there is no check for `configRaw.IsNull && attrSchema.Computed` as a replacement needs to be triggered when the attribute has been removed from the config.

func RequiresReplaceIfValuesNotNull

func RequiresReplaceIfValuesNotNull() tfsdk.AttributePlanModifier

Types

type RequiresReplaceModifier

type RequiresReplaceModifier struct{}

func (RequiresReplaceModifier) Description

func (r RequiresReplaceModifier) Description(ctx context.Context) string

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

func (RequiresReplaceModifier) MarkdownDescription

func (r RequiresReplaceModifier) MarkdownDescription(ctx context.Context) string

MarkdownDescription returns a markdown description of the plan modifier.

func (RequiresReplaceModifier) Modify

Modify will trigger replacement (i.e., destroy-create) when `configRaw.IsNull && attrSchema.Computed`, which differs from the behaviour of `resource.RequiresReplace()`.

Jump to

Keyboard shortcuts

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