# General settings
variable "environment" {
  type        = string
  description = "Available values: dev, qa, prod."
  default     = "dev"
}

variable "location" {
  type        = string
  description = "Location of VMWare cluster, e.g. ny, avl."
  default     = null
}

variable "service_name" {
  type        = string
  description = "Name of service"
  default     = "backup-vmware"
}

variable "tier" {
  type        = string
  description = "Tier of VMWare cluster, e.g. tier1, tier0."
  default     = null
}

# Backup settings
variable "backup_schedule" {
  type        = string
  description = "Backup schedule in AWS cron format (UTC)"
  default     = "cron(0 5 * * ? *)"
}

variable "backup_hypervisor_id" {
  type        = string
  description = "Hypervisor ID used to limit virtual machines for backup. Used to filter virtual machines in conjunction with tier, location, and backup_enabled tags"
  default     = ""
}

variable "backup_start_window_minutes" {
  type        = number
  description = "Specifies the number of minutes before beginning a backup"
  default     = 60
}

variable "backup_completion_window_minutes" {
  type        = number
  description = "Specifies the number of minutes the backup window has to complete"
  default     = 720
}

variable "backup_cold_storage_after_days" {
  type        = number
  description = "Specifies the number of days after creation that a recovery point is moved to cold storage"
  default     = 30
}

variable "backup_delete_after_days" {
  type        = number
  description = "Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than var.backup_cold_storage_after_days"
  default     = null
}