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

variable "config" {
  type        = string
  description = "Name of the object in s3"
}

variable "args" {
  type        = map(string)
  description = "Allowed args are standard, long, short, ae_email, ddex"

  validation {
    condition = can(
      length(tolist(
        setsubtract(toset(keys(var.args)), toset(["standard", "long", "short", "ae_email", "ddex", "apollo_api_flow", "gdpr_appreciationengine_email", "ddex_release_flow"]))
      ))
    )
    error_message = "Unidentified argument in the list, must be in [\"standard\", \"long\", \"short\", \"ae_email\", \"ddex\", \"apollo_api_flow\", \"gdpr_appreciationengine_email\", \"ddex_release_flow\"]."
  }
}
