This PR implements manual deferred action support for ReadResource, ReadDataSource, ImportResourceState, and PlanResourceChange RPCs. It adds new resource.DeferredResponse and datasource.DeferredResponse structs so that providers can indicate a deferral to the Terraform client.
Deferred actions is an experimental feature introduced in Terraform v1.9.0-alpha20240404 and is only available in experimental Terraform builds.
A follow up PR will implement automatic deferred action support for PROVIDER_CONFIG_UNKNOWN during the ConfigureProvider RPC.
Ref: https://github.com/hashicorp/terraform-plugin-go/pull/403
This PR implements manual deferred action support for ReadResource, ReadDataSource, ImportResourceState, and PlanResourceChange RPCs. It adds new
resource.DeferredResponse
anddatasource.DeferredResponse
structs so that providers can indicate a deferral to the Terraform client.Deferred actions is an experimental feature introduced in Terraform v1.9.0-alpha20240404 and is only available in experimental Terraform builds.
A follow up PR will implement automatic deferred action support for
PROVIDER_CONFIG_UNKNOWN
during the ConfigureProvider RPC.