Terraform for_each with YAML file for Genesys queues fails on parse

Trying to generate multiple Genesys Cloud queues using for_each driven by a YAML variable file, but the provider chokes on the map conversion. Here’s the snippet:

variable "queues" {
 type = map(object({
 name = string
 }))
}

resource "genesyscloud_routing_queue" "dynamic_queues" {
 for_each = var.queues
 name = each.value.name
}

Error is Invalid value for var.queues: ... must be a map of objects. How do I properly inject the YAML data into this map structure?