Get the availability state of the agent in Amazon Connect Agent Workspace - Agent Workspace

Get the availability state of the agent in Amazon Connect Agent Workspace

Returns the Amazon Connect Agent Workspace agent's current AgentState object indicating their availability state type. This object contains the following fields:

  • agentStateARN: The agent's current state ARN.

  • name: The name of the agent's current availability state.

  • startTimestamp: A Date object that indicates when the state was set.

  • type: The agent's current availability state type, as per the AgentStateType enumeration.

async getState(): Promise<AgentState>

Permissions required:

User.Status.View