variable "application_family" {
  description = "application_family tag to add (mandatory)"
  type        = string
}

variable "environment" {
  description = "environment tag to add (mandatory)"
  type        = string
}

variable "service_name" {
  description = "service_name tag to add (optional)"
  type        = string
  default     = ""
}

variable "additional_tags" {
  description = "Map of any other tags you want to add (optional)"
  type        = map(string)
  default     = {}
}

variable "team_name" {
  description = "Team name tag - must match a valid Datadog team handle"
  type        = string

  validation {
    condition     = contains(local.valid_team_names, var.team_name)
    error_message = "The team_name must be a valid Datadog team. Valid teams: ${join(", ", local.valid_team_names)}"
  }
}
