variable "container_image" {
  type        = string
  description = "Container image for the uptime-kuma service."
  default     = "louislam/uptime-kuma:1"
}

variable "region" {
  type        = string
  description = "AWS region (provider-level; not a resource arg)."
  default     = null
}

variable "uptime_url" {
  type        = string
  description = "The uptime-kuma URL (output)."
  default     = null
}

variable "monitored_endpoints" {
  type        = any
  description = "List of monitored endpoint objects."
  default     = []
}

variable "static_checks" {
  type        = any
  description = "Static check configuration."
  default     = null
}

variable "alert_channels" {
  type        = any
  description = "Alert channel configuration."
  default     = {}
}

variable "feature_flag_enabled" {
  type        = bool
  description = "Feature flag to enable/disable the uptime service."
  default     = true
}

variable "cpu" {
  type        = number
  description = "Task CPU units (Fargate)."
  default     = 256
}

variable "memory" {
  type        = number
  description = "Task memory (MiB, Fargate)."
  default     = 512
}

variable "subnets" {
  type        = string
  description = "Comma-separated subnet IDs for the ECS service ENIs."
  default     = ""
}

variable "security_group" {
  type        = string
  description = "Security group ID for the ECS service ENIs."
  default     = ""
}

variable "cluster_arn" {
  type        = string
  description = "ECS cluster ARN to deploy the service into."
  default     = ""
}

variable "enabled" {
  type        = bool
  description = "Feature flag: enable/disable this module. Set to false to skip resource creation."
  default     = true
}
