stringplanmodifier

package
v0.132.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequiresRefreshIf

func RequiresRefreshIf(f RequiresRefreshIfFunc, description, markdownDescription string) planmodifier.String

RequiresRefreshIf returns a plan modifier that conditionally requires attribute refreshment if:

  • The resource is planned for update.
  • The given function returns true. Returning false will not unset any prior resource refreshment.

Types

type RequiresRefreshIfFunc

RequiresRefreshIfFunc is a conditional function used in the RequiresRefreshIf plan modifier to determine whether the attribute requires refreshment.

type RequiresRefreshIfFuncResponse

type RequiresRefreshIfFuncResponse struct {
	// Diagnostics report errors or warnings related to this logic. An empty
	// or unset slice indicates success, with no warnings or errors generated.
	Diagnostics diag.Diagnostics

	// RequiresRefresh should be enabled if the resource should be refreshed.
	RequiresRefresh bool
}

RequiresRefreshIfFuncResponse is the response type for a RequiresRefreshIfFunc.

Jump to

Keyboard shortcuts

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