17 lines
522 B
Go
17 lines
522 B
Go
package azurerm
|
|
|
|
import "github.com/cloudskiff/driftctl/pkg/resource"
|
|
|
|
const AzurePublicIPResourceType = "azurerm_public_ip"
|
|
|
|
func initAzurePublicIPMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
resourceSchemaRepository.SetHumanReadableAttributesFunc(AzurePublicIPResourceType, func(res *resource.Resource) map[string]string {
|
|
val := res.Attrs
|
|
attrs := make(map[string]string)
|
|
if name := val.GetString("name"); name != nil && *name != "" {
|
|
attrs["Name"] = *name
|
|
}
|
|
return attrs
|
|
})
|
|
}
|