planmodifier

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImmutableFieldModifier

type ImmutableFieldModifier struct{}

ImmutableFieldModifier is a plan modifier that enforces immutability of an attribute. This should be used with attribute's that can't be changed after resource creation and you want to show error to user during `tf plan` rather than `tf apply`.

It should NOT be used for attribute's having "Computed: true" as they are already Read-Only.

For nested attribute types, applying this plan modifier at root attribute is enough.

func (ImmutableFieldModifier) Description

func (m ImmutableFieldModifier) Description(ctx context.Context) string

func (ImmutableFieldModifier) MarkdownDescription

func (m ImmutableFieldModifier) MarkdownDescription(ctx context.Context) string

func (ImmutableFieldModifier) Modify

Jump to

Keyboard shortcuts

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