github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/internal/terraform/transform_attach_config_provider.go (about)

     1  package terraform
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/internal/addrs"
     5  	"github.com/hashicorp/terraform/internal/configs"
     6  )
     7  
     8  // GraphNodeAttachProvider is an interface that must be implemented by nodes
     9  // that want provider configurations attached.
    10  type GraphNodeAttachProvider interface {
    11  	// ProviderName with no module prefix. Example: "aws".
    12  	ProviderAddr() addrs.AbsProviderConfig
    13  
    14  	// Sets the configuration
    15  	AttachProvider(*configs.Provider)
    16  }