I'm trying to create an iterable function using Python/Boto3 where if a user is not listed in the Connect user list they are removed from Quick Connects. I've looked at the list-queue-quick-connects API and the connect list-users API, however it seems like list-users only gives an email field, and the list-queue-quick-connects API gives just Name. I'm trying to figure out a way to setup a comparison and then execute the deletequickconnect api to delete the quick connect since Quick Connects are not automatically deleted when a user is deleted from Connect.
I can list connect users this way - aws connect list-users --instance-id --query 'UserSummaryList[*].Username' --output text
and quick connect users this way - aws connect list-queue-quick-connects --instance-id --queue-id --query 'QuickConnectSummaryList[*].Name' --output text.
Can anyone provide any assistance? I would really appreciate any help!