azurerm_monitor_diagnostic_settingNivis Nix constructor for the azurerm_monitor_diagnostic_setting 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,
target_resource_id,
eventhub_authorization_rule_id ? null,
eventhub_name ? null,
id ? null,
log_analytics_destination_type ? null,
log_analytics_workspace_id ? null,
cfg_name ? null,
partner_solution_id ? null,
storage_account_id ? null,
enabled_log ? null,
enabled_metric ? null,
timeouts ? null,
overrides ? {}
}Required arguments
target_resource_id
Optional arguments
eventhub_authorization_rule_id(defaults tonull)eventhub_name(defaults tonull)id(defaults tonull)log_analytics_destination_type(defaults tonull)log_analytics_workspace_id(defaults tonull)cfg_name(defaults tonull)partner_solution_id(defaults tonull)storage_account_id(defaults tonull)enabled_log(defaults tonull)enabled_metric(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
(none)
Example
azurerm_monitor_diagnostic_setting {
name = "monitor_diagnostic_setting";
target_resource_id = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.