variable "aws_region" {
  default     = "us-east-1"
  description = "Name of a region"
}

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

variable "service_name" {
  default = "ows-product-digital"
}

variable "service_version" {
  default = "1.0.0"
}

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 "kafka_bootstrap_servers" {
  default = "b-1.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094,b-3.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094,b-2.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094"
}

variable "kafka_digital_product_topic" {
  description = "Topic name for digital product events."
  default     = "event.owsProductDigital.product"
}

variable "schema_registry_url" {
  default = "https://prod-schema-registry.theorchard.io"
}

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

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

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

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

variable "splitio_preforked" {
  default = "false"
}

variable "dependent_applications" {
  description = "List of dependent applications"
  type        = list(string)
  default     = ["content", "oa", "collaborator-suite", "workstation", "moneyhub"]
}

variable "NEO4J_MAX_RETRY_TIME" {
  default     = 30
  description = "Neo4j DB max_retry time in seconds."
}

variable "NEO4J_SETUP_READY" {
  default     = false
  description = "True if Neo4j DB creds are setup in secrets manager and are ready for use."
}

variable "NEO4J_URL" {
  default = "neo4j+s://prod-neo4j-cluster.theorchard.io:7687"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "NEO4J_USERNAME",
    "NEO4J_PASSWORD",
  ]
}
