driftctl/pkg/resource/google/google_compute_image.go

14 lines
458 B
Go
Raw Normal View History

2022-07-21 08:37:03 +00:00
package google
import "github.com/snyk/driftctl/enumeration/resource"
const GoogleComputeImageResourceType = "google_compute_image"
func initGoogleComputeImageMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeImageResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{
"Name": *res.Attributes().GetString("name"),
}
})
}