variable "environment" {
  type = string
}

variable "service_name" {
  type = string
}

variable "view_arn" {
  type        = string
  description = "ARN of Resource explorer view to search resources in."
  default     = "arn:aws:resource-explorer-2:us-east-1:970903126758:view/all-pde-security-groups/a0508e0f-f13e-42ac-8595-d2793416ff80"
}

variable "view_region" {
  default = "us-east-1"
}

variable "security_group_type" {
  description = "Type of the security group to search for. Valid values are: lb, task, lambda."
  default     = "task"
  validation {
    condition     = contains(["lb", "task", "lambda"], var.security_group_type)
    error_message = "Invalid security type. Valid values are: lb, task, lambda."
  }
}
