variable "aws_region" {
  default     = "us-east-1"
  description = "All elements of the state machine execution flow have to be placed in the same region."
}

variable "environment" {
  description = "Available values:  dev, qa, prod."
  default     = "prod"
}

variable "service_name" {
  default = "ows-timed-release"
}

variable "LOGGER_HANDLER_ASYNC" {
  default = "1"
}

variable "RDS_MYSQL_PORT" {
  description = "Most MySQL connections will be to this port, but it's nice to give the option to override"
  default     = "3306"
}

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

variable "team" {
  description = "Datadog team slug"
  default     = "content-creation-management"
}

variable "secrets_manager_secret_names" {
  type = list(string)
  default = [
    "RDS_DB_URL",
    "RDS_MYSQL_PASSWORD",
    "RDS_MYSQL_USER",
    "LOGGER_DSN",
    "RDS_MYSQL_DATABASE",
    "RDS_MYSQL_HOST",
    "RDS_MYSQL_PORT",
    "AR_MYSQL_PASSWORD",
  ]
}

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 @oncall-content-creation-management"
}

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

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

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

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

variable "dependent_applications" {
  description = "List of dependent applications"
  default     = ["oa"]
}
