azurerm_resource_group_policy_assignmentNivis Nix constructor for the azurerm_resource_group_policy_assignment 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,
policy_definition_id,
resource_group_id,
description ? null,
display_name ? null,
enforce ? null,
id ? null,
location ? null,
metadata ? null,
cfg_name ? null,
not_scopes ? null,
parameters ? null,
identity ? null,
non_compliance_message ? null,
cfg_overrides ? null,
resource_selectors ? null,
timeouts ? null,
overrides ? {}
}Required arguments
policy_definition_idresource_group_id
Optional arguments
description(defaults tonull)display_name(defaults tonull)enforce(defaults tonull)id(defaults tonull)location(defaults tonull)metadata(defaults tonull)cfg_name(defaults tonull)not_scopes(defaults tonull)parameters(defaults tonull)identity(defaults tonull)non_compliance_message(defaults tonull)cfg_overrides(defaults tonull)resource_selectors(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
(none)
Example
azurerm_resource_group_policy_assignment {
name = "resource_group_policy_assignment";
policy_definition_id = …; # required
resource_group_id = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.