-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Agent ARN from the Connect Stream. #70
Comments
There isn't currently, but we're aware of the need and are already tracking it on our side. |
Hi @ninjamike54 , is there any update on this issue? 🤔 |
Any update on this issue? |
Sorry for the long wait time. We are still tracking this issue on our end. |
I have an alternative that until the official API will be released. The Sample agent event stream says that the "name" of the agent queue is null.
And the ID part of the agent queue is the same as the agent's ID.(For now...) const AGENT_QUEUE_PATTERN = new RegExp('arn:aws:connect:([\\w|\\-]+):(\\w+):instance/([\\w|\\-]+)/queue/agent/([\\w|\\-]+)');
connect.agent((agent) => {
const agentQueue = agent.getConfiguration().routingProfile.queues.filter(queue => queue.name === null)
// group[0] all
// group[1] region
// group[2] AWS AccountID
// group[3] Amazon Connect InstanceID
// group[4] AgentID
const groups = AGENT_QUEUE_PATTERN.exec(agentQueue[0].queueARN);
const agentArn = `arn:aws:connect:${groups[1]}:${groups[2]}:instance/${groups[3]}/agent/${groups[4]}`;
console.log(agentArn);
} |
Can we get this fixed? can't understand why this has been open for 5 years now. |
agentARN should be always present in the object returned from agent.getConfiguration(). It'd be appreciated if you could share the repro steps for the empty agentARN scenario. |
getAgentARN API has been added to the newest update in Streams! https://github.com/amazon-connect/amazon-connect-streams/releases/tag/v2.13.1 |
Hi,
We know the 'Username' we are retrieving with help of agent.getConfiguration().username using the Connect Stream.
Similarly, Is there any way to retrieve the Agent ARN through the Connect Stream?
The text was updated successfully, but these errors were encountered: