# Outputs for Enhanced Key Vault Module

output "key_vault_id" {
  value       = azurerm_key_vault.main.id
  description = "Key Vault ID"
}

output "key_vault_name" {
  value       = azurerm_key_vault.main.name
  description = "Key Vault name"
}

output "key_vault_uri" {
  value       = azurerm_key_vault.main.vault_uri
  description = "Key Vault URI"
}

output "private_endpoint_id" {
  value       = var.enable_private_endpoint && var.private_endpoint_subnet_id != "" ? azurerm_private_endpoint.keyvault[0].id : null
  description = "Private Endpoint ID"
}

output "private_dns_zone_id" {
  value       = var.enable_private_endpoint ? azurerm_private_dns_zone.keyvault[0].id : null
  description = "Private DNS Zone ID"
}

