Using AWS CLI, we can use the AWS Amazon Connect command list-agent-statuses to find the Amazon Connect Status ARN values.
Syntax:
aws connect list-agent-statuses --instance-id <Amazon Connect Instance Id>
Example:
aws connect list-agent-statuses --instance-id <Amazon Connect Instance Id> --no-paginate
Here, –no-paginate is used to avoid pagination for the results.