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: ADateobject that indicates when the state was set. -
type: The agent's current availability state type, as per theAgentStateTypeenumeration. The different values are as follows:-
routable -
not_routable -
after_call_work -
system -
error -
offline
-
async getState(): Promise<AgentState>
Permissions required:
User.Status.View