azurerm_monitor_diagnostic_setting

Nivis 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 to null)
  • eventhub_name (defaults to null)
  • id (defaults to null)
  • log_analytics_destination_type (defaults to null)
  • log_analytics_workspace_id (defaults to null)
  • cfg_name (defaults to null)
  • partner_solution_id (defaults to null)
  • storage_account_id (defaults to null)
  • enabled_log (defaults to null)
  • enabled_metric (defaults to null)
  • timeouts (defaults to null)
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.