2020-12-09 15:31:34 +00:00
|
|
|
package terraform
|
|
|
|
|
|
|
|
import (
|
2021-12-06 13:29:39 +00:00
|
|
|
"github.com/snyk/driftctl/pkg/resource"
|
2020-12-09 15:31:34 +00:00
|
|
|
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ResourceReader interface {
|
|
|
|
ReadResource(args ReadResourceArgs) (*cty.Value, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReadResourceArgs struct {
|
|
|
|
Ty resource.ResourceType
|
|
|
|
ID string
|
|
|
|
Attributes map[string]string
|
|
|
|
}
|