variable "region" {
  default     = "us-east-1"
  description = "region"
}

variable "environment" {
  default     = "prod"
  description = "environment"
}

variable "service_name" {
  default     = "ows-artist"
  description = "Name of the service"
}

variable "application_family" {
  default = "product-builder"
}

variable "notification_endpoints" {
  description = "Endpoints for alerts. Can be email, slack, pagerduty, etc"
  type        = string
  default     = "@slack-The_Orchard-content-creation-mgmt-alerts"
}

variable "escalation_notification_endpoints" {
  description = "Endpoints for escalation alerts. Can be email, slack, pagerduty, etc"
  type        = string
  default     = "@slack-The_Orchard-content-creation-mgmt-alerts"
}

variable "critical_number_5xx" {
  description = "Number of 5xx requests (per 5m) for critical alerts"
  default     = 5
}

variable "critical_recovery_number_5xx" {
  description = "Number of 5xx requests (per 5m) for critical recovery"
  default     = 2
}

variable "warning_number_5xx" {
  description = "Number of 5xx requests (per 5m) for warnings"
  default     = 2
}

variable "warning_recovery_number_5xx" {
  description = "Number of 5xx requests (per 5m) for warning recovery"
  default     = 0
}

variable "secrets_manager_secret_names" {
  type = set(string)
  default = [
    "AR_MYSQL_DATABASE",
    "AR_MYSQL_PASSWORD",
    "AR_MYSQL_PORT",
    "AR_MYSQL_USER",
    "MUSIC_KIT_KEY_ID",
    "MUSIC_KIT_PRIVATE_KEY",
    "OWS_ACCOUNT_URL",
    "SPOTIFY_CLIENT_ID",
    "SPOTIFY_SECRET_ID",
  ]
}

variable "dependent_applications" {
  default = ["moneyhub", "insights", "workstation", "content"]
}
