variable "name" {
  type        = string
  description = "Name tag for the load balancer and child resources."
  default     = "app"
}

variable "subnets" {
  type        = string
  description = "Comma-separated subnet ids (ref to vpc)."
}

variable "security_group" {
  type        = string
  description = "Security group id for the load balancer."
  default     = null
}

variable "port" {
  type        = number
  description = "Listener port (default 80)."
  default     = 80
}

variable "protocol" {
  type        = string
  description = "Listener protocol (default HTTP)."
  default     = "HTTP"
}

variable "region" {
  type        = string
  description = "AWS region (provider-level; not a resource arg)."
  default     = null
}

variable "load_balancer_type" {
  type        = string
  description = "Load balancer type (application or network)."
  default     = "application"
}

variable "target_type" {
  type        = string
  description = "Target group target type (ip or instance)."
  default     = "ip"
}

variable "vpc_id" {
  type        = string
  description = "VPC ID for the target group (ref to vpc or platform VPC)."
  default     = null
}
