Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyPlanForDefaultProjectChange ¶
func ModifyPlanForDefaultProjectChange(ctx context.Context, providerDefaultProject string, state tfsdk.State, configAttributes, planAttributes AttrGettable, resp *resource.ModifyPlanResponse)
ModifyPlanForDefaultProjectChange modifies a resource plan if the provider's default project has changed and differs from the resource's project when it doesn't set the project_id itself. Modifying the resource plan makes the resource sensitive to the provider's default configuration updates keeping the resource in sync with the configuration inherited from the provider.
Types ¶
type AttrGettable ¶
type AttrGettable interface {
GetAttribute(ctx context.Context, path path.Path, target interface{}) diag.Diagnostics
}
AttrGettable is a small enabler for helper functions that need to read one attribute of a Configuration, Plan, or State.
Click to show internal directories.
Click to hide internal directories.