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 ¶
func (r RequiresReplaceModifier) Modify(ctx context.Context, req tfsdk.ModifyAttributePlanRequest, resp *tfsdk.ModifyAttributePlanResponse)
Modify will trigger replacement (i.e., destroy-create) when `configRaw.IsNull && attrSchema.Computed`, which differs from the behaviour of `resource.RequiresReplace()`.