2021-10-07 09:17:46 +00:00
|
|
|
package azurerm
|
|
|
|
|
2021-12-06 13:29:39 +00:00
|
|
|
import "github.com/snyk/driftctl/pkg/resource"
|
2021-10-07 09:17:46 +00:00
|
|
|
|
|
|
|
const AzureFirewallResourceType = "azurerm_firewall"
|
|
|
|
|
|
|
|
func initAzureFirewallMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
|
|
resourceSchemaRepository.SetHumanReadableAttributesFunc(AzureFirewallResourceType, 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
|
|
|
|
})
|
|
|
|
}
|