variable "statuspage_base_url" {
  description = "Page URL shown in the StatiBeat Terraform > Setup workspace."
  type        = string

  validation {
    condition     = can(regex("^https://", var.statuspage_base_url))
    error_message = "statuspage_base_url must use HTTPS."
  }
}

variable "statuspage_public_slug" {
  description = "Public slug shown in the StatiBeat Terraform > Setup workspace."
  type        = string

  validation {
    condition     = can(regex("^[a-z0-9][a-z0-9-]*[a-z0-9]$", var.statuspage_public_slug))
    error_message = "Use a lowercase public slug containing letters, numbers, and hyphens."
  }
}
