variable "name" {
  type        = string
  description = ""
}

variable "rds_proxy_role_arn" {
  type        = string
  description = ""
}

variable "db_instance_id" {
  type        = string
  description = "Either db_instance_id or db_cluster_id should be set"
  default     = null
}

variable "db_cluster_id" {
  type        = string
  description = "Either db_instance_id or db_cluster_id should be set"
  default     = null
}

variable "creds_secrets" {
  type        = list(string)
  description = "List of arns of secrets with db credentials"
}

variable "vpc_security_group_ids" {
  type        = list(string)
  description = ""
}

variable "vpc_subnet_ids" {
  type        = list(string)
  description = ""
}

variable "debug_logging" {
  type        = bool
  description = ""
  default     = false
}

variable "engine_family" {
  type        = string
  description = "Valid values are MYSQL and POSTGRESQL"
  default     = "POSTGRESQL"
}

variable "idle_client_timeout" {
  type        = number
  description = ""
  default     = null
}

variable "require_tls" {
  type        = bool
  description = ""
  default     = false
}

variable "iam_auth" {
  type        = bool
  description = ""
  default     = false
}

variable "connection_borrow_timeout" {
  type        = number
  description = ""
  default     = null
}

variable "init_query" {
  type        = string
  description = ""
  default     = null
}

variable "max_connections_percent" {
  type        = number
  description = ""
  default     = 80
}

variable "max_idle_connections_percent" {
  type        = number
  description = ""
  default     = null
}

variable "session_pinning_filters" {
  type        = list(string)
  description = ""
  default     = null
}

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

variable "read_only_endpoint_enabled" {
  type        = bool
  description = "Enable read only endpoint for Aurora clusters"
  default     = true
}
