outputs.tf (19 lines of code) (raw):
output "private_endpoints" {
description = <<DESCRIPTION
A map of the private endpoints created.
DESCRIPTION
value = var.private_endpoints_manage_dns_zone_group ? azurerm_private_endpoint.this : azurerm_private_endpoint.this_unmanaged_dns_zone_groups
}
# Module owners should include the full resource via a 'resource' output
# https://azure.github.io/Azure-Verified-Modules/specs/terraform/#id-tffr2---category-outputs---additional-terraform-outputs
output "resource" {
description = "This is the full output for the resource."
sensitive = true
value = try(azurerm_eventhub_namespace.this[0], data.azurerm_eventhub_namespace.this[0])
}
output "resource_eventhubs" {
description = "A map of event hubs. The map key is the supplied input to var.event_hubs. The map value is the entire azurerm_event_hubs resource."
value = azurerm_eventhub.this
}
output "resource_id" {
description = "This is the full output for the resource."
value = try(azurerm_eventhub_namespace.this[0].id, data.azurerm_eventhub_namespace.this[0].id)
}