Documentation ¶
Overview ¶
Package int64planmodifier provides a plan modifier for int64 values.
Package int64planmodifier provides a plan modifier for int64 values.
Package int64planmodifier provides a plan modifier for int64 values.
Package int64planmodifier provides a plan modifier for int64 values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireReplaceIfBool ¶
func RequireReplaceIfBool(path path.Path, exceptedValue bool) planmodifier.Int64
RequireReplaceIfBool
returns a plan modifier that requires replacement if the attribute value is equal to the excepted value.
func SetDefault ¶
func SetDefault(i int64) planmodifier.Int64
SetDefault
SetDefault returns a plan modifier that sets the plan value to the provided value if the following conditions are met:
- The resource is planned for update.
- The plan and state values are not equal.
- The plan or state values are not null or known
func SetDefaultEnvVar ¶
func SetDefaultEnvVar(envVar string) planmodifier.Int64
SetDefaultEnvVar returns a plan modifier that conditionally requires resource replacement if:
- The resource is planned for update.
- The plan and state values are not equal.
- The plan or state values are not null or known
func SetDefaultFunc ¶
func SetDefaultFunc(f DefaultFunc) planmodifier.Int64
SetDefaultFunc returns a plan modifier that conditionally requires resource replacement if:
- The resource is planned for update.
- The plan and state values are not equal.
- The plan or state values are not null or known
Types ¶
type DefaultFunc ¶
type DefaultFunc func(context.Context, planmodifier.Int64Request, *DefaultFuncResponse)
DefaultFunc is a function that can be used to set a default value for a int64 attribute.
type DefaultFuncResponse ¶
type DefaultFuncResponse 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 // Value is the value to use by default if the attribute is not configured. Value int64 }
DefaultFuncResponse is the response type for a DefaultFunc.