Amazon Connect now provides new APIs that enable you to programmatically list resources such as queues, phone numbers, contact flows, and hours of operations in an Amazon Connect instance. For example, now you can use the List Queues API to retrieve queue IDs at run time and use them with the queue metrics API to filter the data returned.

from Recent Announcements https://aws.amazon.com/about-aws/whats-new/2019/10/amazon-connect-launches-additional-apis-to-list-contact-center-resources/