diff --git a/internal/providers/provider.go b/internal/providers/provider.go index 39779342d53f..8cb80eeeb857 100644 --- a/internal/providers/provider.go +++ b/internal/providers/provider.go @@ -243,15 +243,19 @@ type ReadResourceRequest struct { DeferralAllowed bool } + +type DeferredReason int32 + const ( - DEFERRED_REASON_UNKNOWN = 0 - DEFERRED_REASON_RESOURCE_CONFIG_UNKNOWN = 1 - DEFERRED_REASON_PROVIDER_CONFIG_UNKNOWN = 2 - DEFERRED_REASON_ABSENT_PREREQ = 3 + DeferredReasonUnknown DeferredReason = iota + DeferredReasonResourceConfigUnknown + DeferredReasonProviderConfigUnknown + DeferredReasonResourceConfigUnknown + DeferredReasonAbsentPrereq ) type Deferred struct { - Reason int32 + Reason DeferredReason } type ReadResourceResponse struct {