You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"azurerm_monitor_diagnostic_setting" {
source="./modules/azurerm/r/azurerm_monitor_diagnostic_setting"# eventhub_authorization_rule_id - (optional) is a type of stringeventhub_authorization_rule_id=null# eventhub_name - (optional) is a type of stringeventhub_name=null# log_analytics_destination_type - (optional) is a type of stringlog_analytics_destination_type=null# log_analytics_workspace_id - (optional) is a type of stringlog_analytics_workspace_id=null# name - (required) is a type of stringname=null# storage_account_id - (optional) is a type of stringstorage_account_id=null# target_resource_id - (required) is a type of stringtarget_resource_id=nulllog=[{
category =null
enabled =null
retention_policy = [{
days =null
enabled =null
}]
}]
metric=[{
category =null
enabled =null
retention_policy = [{
days =null
enabled =null
}]
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
}
resource"azurerm_monitor_diagnostic_setting""this" {
# eventhub_authorization_rule_id - (optional) is a type of stringeventhub_authorization_rule_id=var.eventhub_authorization_rule_id# eventhub_name - (optional) is a type of stringeventhub_name=var.eventhub_name# log_analytics_destination_type - (optional) is a type of stringlog_analytics_destination_type=var.log_analytics_destination_type# log_analytics_workspace_id - (optional) is a type of stringlog_analytics_workspace_id=var.log_analytics_workspace_id# name - (required) is a type of stringname=var.name# storage_account_id - (optional) is a type of stringstorage_account_id=var.storage_account_id# target_resource_id - (required) is a type of stringtarget_resource_id=var.target_resource_iddynamic"log" {
for_each=var.logcontent {
# category - (required) is a type of stringcategory=log.value["category"]
# enabled - (optional) is a type of boolenabled=log.value["enabled"]
dynamic"retention_policy" {
for_each=log.value.retention_policycontent {
# days - (optional) is a type of numberdays=retention_policy.value["days"]
# enabled - (required) is a type of boolenabled=retention_policy.value["enabled"]
}
}
}
}
dynamic"metric" {
for_each=var.metriccontent {
# category - (required) is a type of stringcategory=metric.value["category"]
# enabled - (optional) is a type of boolenabled=metric.value["enabled"]
dynamic"retention_policy" {
for_each=metric.value.retention_policycontent {
# days - (optional) is a type of numberdays=retention_policy.value["days"]
# enabled - (required) is a type of boolenabled=retention_policy.value["enabled"]
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}