output "distribution_ids" {
  description = "Map of distribution logical key to CloudFront distribution ID"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.id }
}

output "distribution_arns" {
  description = "Map of distribution logical key to distribution ARN"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.arn }
}

output "distribution_domain_names" {
  description = "Map of distribution logical key to CloudFront domain name"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.domain_name }
}

output "distribution_hosted_zone_ids" {
  description = "Map of distribution logical key to hosted zone ID (for alias records)"
  value       = { for k, v in aws_cloudfront_distribution.this : k => v.hosted_zone_id }
}

output "oac_ids" {
  description = "Map of OAC logical key to OAC ID"
  value       = { for k, v in aws_cloudfront_origin_access_control.this : k => v.id }
}
