variable "service_tags" {
  description = "Resource tags"
  type        = map(string)

  default = {}
}

variable "cdn" {
  type = list(object({
    name                = string
    public_dns          = list(string)
    ssl_cert_arn        = string
    ssl_cert_verified   = bool
    waf_acl_id          = string
    origin_type         = optional(string, "custom")
    lb_dns_name         = optional(string, "")
    s3_bucket_arn       = optional(string, "")
    s3_bucket_domain    = optional(string, "")
    default_root_object = optional(string, "")
  }))
  description = "List of CloudFront distribution configurations"
}

variable "region" {
  type        = string
  description = "AWS region for the CloudFront provider"
  default     = "us-east-1"
}

variable "access_logs_bucket" {
  type        = string
  description = "Access logs bucket"
  default     = ""
}
