variable "lambda" {
  description = "List of Lambda function configurations"
  type = list(object({
    name                        = string
    description                 = string
    runtime                     = string
    memory_size                 = number
    timeout                     = number
    log_group_retention_in_days = number
    subnet_ids                  = list(string)
    security_group_ids          = list(string)
    environment_variables       = map(string)
    alerts_topic_arn            = string
  }))
}

variable "service_name" {
  description = "Service name prefix for shared resources (e.g. client-stage)"
  type        = string
}

variable "s3_bucket_arns" {
  description = "S3 bucket ARNs (bucket + objects) the Lambda functions need access to"
  type        = list(string)
  default     = []
}

variable "service_tags" {
  description = "Resource tags"
  type        = map(string)
  default     = {}
}
