variable "bootstrap_servers" {
  type        = list(string)
  description = "A list of bootstrap servers to configure Kafka provider"
  default = [
    "b-1.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",
    "b-3.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094"
  ]
}

variable "one_month_ms" {
  description = "Milliseconds in a month (30 days)"
  default     = 30 * 24 * 60 * 60 * 1000
}

variable "one_week_ms" {
  description = "Milliseconds in a week (7 days)"
  default     = 7 * 24 * 60 * 60 * 1000
}

variable "one_day_ms" {
  description = "Milliseconds in a day"
  default     = 24 * 60 * 60 * 1000
}

variable "kafka_default_retention_ms" {
  description = "Default retention period in milliseconds for Kafka topics"
  default     = 7 * (24 * 60 * 60 * 1000)  # 7 * one_day_ms == seven_days_ms
}

variable "four_hours_ms" {
  description = "Milliseconds in 4 hours"
  default     = 4 * 60 * 60 * 1000
}

variable "fifteen_days_retention_ms" {
  description = "fifteen days retention period in milliseconds for Kafka topics"
  default     = 15 * (24 * 60 * 60 * 1000) # 15 * one_day_ms == fifteen_days_ms
}

variable "kafka_minimum_replication_factor" {
  description = "Recommended minimum replication factor for Kafka topics"
  default     = 3
}

variable "kafka_default_partitions" {
  description = "Default number of partitions for Kafka topics"
  default     = 1
}

variable "kafka_default_replication_factor" {
  description = "Default number of replication factor"
  default     = 3
}

