Terraform: Referencing existing routing queues by name in data sources

What’s the best way to reference an existing Genesys Cloud routing queue by name using Terraform data sources? I’m setting up a new user role assignment and need to attach it to a queue that already exists in the environment. I don’t want to manage the queue lifecycle in this specific module, just reference it.

I’ve tried using genesyscloud_routing_queue data source like this:

data "genesyscloud_routing_queue" "existing_queue" {
 name = "Support Tier 1"
}

When I run terraform plan, it fails with an error saying the resource cannot be found. The queue definitely exists, and the name matches exactly. I checked the API directly via GET /api/v2/routing/queues and confirmed the name is “Support Tier 1” without any hidden characters.

Is there a specific attribute I should be matching against? Or maybe I need to use the genesyscloud_routing_queue_search data source instead? I tried that too, but it returns a list and I’m not sure how to index into the result safely if the name isn’t unique (which it shouldn’t be, but still).

Here’s the error snippet:

Error: error retrieving routing queue (Support Tier 1): not found

I’m using the latest version of the Genesys Cloud Terraform provider. Any pointers on the correct syntax?