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

variable "project_group" {
  type        = string
  description = "Project group name, lowercased"
}

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

variable "common_tags" {
  type        = map(string)
  description = "Common tags to add for the objects"
  default     = {}
}

variable "cluster_arn" {
  type        = string
  description = "ARN of ECS cluster of the environment"
}

variable "subnets" {
  type        = list(string)
  description = "List of subnets which ECS Service will use"
}

variable "security_groups" {
  type        = list(string)
  description = "List of security groups which will be applied to ECS Service"
}

variable "scheduler_role_arn" {
  type        = string
  description = "ARN of the role under which will be used to shedulerun"
}

variable "task_count" {
  type        = number
  description = "Amount of tasks running that will be executed on a single run"
  default     = 1
}

variable "schedule_expression" {
  type        = map(object({ expression = string, enabled = bool }))
  description = "A map of schedule expressions"
}

variable "task_definition_arn" {
  type        = string
  description = "The task ARN."
}

variable "cw_event_target_input" {
  type        = string
  description = "Valid JSON text passed to the target."
  default     = null
}
