variable "env_prefix" {
  description = "Prefix of environment"
  type        = string
}

variable "project_group" {
  description = "Project group"
  type        = string
}

variable "project" {
  description = "Project name"
  type        = string
}

variable "common_tags" {
  description = "Common tags which will be applied to created resources"
  default     = {}
}

variable "resource_id" {
  description = "The resource type and unique identifier string for the resource associated with the scaling policy."
  type        = string
}

variable "min_capacity" {
  description = "The min capacity of the scalable target."
  type        = number
}

variable "max_capacity" {
  description = "The max capacity of the scalable target."
  type        = number
}

variable "upscaling_adjustment" {
  description = "Number of tasks to add on upscaling event. Should be a positive number. "
  type        = number
  default     = 1
  validation {
    condition     = var.upscaling_adjustment >= 0
    error_message = "Upscaling adjustment should be a positive number or zero (in case you want to temporary disable it)."
  }
}

variable "downscaling_adjustment" {
  description = "Number of tasks to remove on downscaling event. Should be a negative number."
  type        = number
  default     = -1
  validation {
    condition     = var.downscaling_adjustment <= 0
    error_message = "Downscaling adjustment should be a negative number or zero (in case you want to temporary disable it)."
  }
}
