azurerm_policy_definitionNivis Nix constructor for the azurerm_policy_definition resource (provider azurerm). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
display_name,
mode,
policy_type,
description ? null,
id ? null,
management_group_id ? null,
metadata ? null,
cfg_name ? null,
parameters ? null,
policy_rule ? null,
timeouts ? null,
overrides ? {}
}Required arguments
display_namemodepolicy_type
Optional arguments
description(defaults tonull)id(defaults tonull)management_group_id(defaults tonull)metadata(defaults tonull)cfg_name(defaults tonull)parameters(defaults tonull)policy_rule(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
role_definition_ids
Example
azurerm_policy_definition {
name = "policy_definition";
display_name = …; # required
mode = …; # required
policy_type = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.