Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseDefaultModifier ¶
func UseDefaultModifier(value attr.Value) tfsdk.AttributePlanModifier
UseDefaultModifier returns a new DefaultModifier
Types ¶
type DefaultModifier ¶
type DefaultModifier struct { tfsdk.AttributePlanModifier // contains filtered or unexported fields }
DefaultModifier ensures a new value with null value will always be set to default
func (DefaultModifier) Description ¶
func (r DefaultModifier) Description(ctx context.Context) string
Description returns a human-readable description of the plan modifier.
func (DefaultModifier) MarkdownDescription ¶
func (r DefaultModifier) MarkdownDescription(ctx context.Context) string
MarkdownDescription returns a markdown description of the plan modifier.
func (DefaultModifier) Modify ¶
func (r DefaultModifier) Modify(ctx context.Context, req tfsdk.ModifyAttributePlanRequest, resp *tfsdk.ModifyAttributePlanResponse)
Modify sets the default value if not known or empty
Click to show internal directories.
Click to hide internal directories.