Skip to main content

agent_statuses

Creates, updates, deletes, gets or lists an agent_statuses resource.

Overview

Nameagent_statuses
TypeResource
Idaws.connect.agent_statuses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) for the agent status.
idstringThe identifier for an agent status.
last_modified_regionstringThe Amazon Web Services Region where this resource was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when this resource was last modified.
namestringThe name of the agent status.
typestringThe type of the agent status. (ROUTABLE, CUSTOM, OFFLINE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_agent_statusesselectinstance_id, regionnextToken, maxResults, AgentStatusTypesLists agent statuses.
search_agent_statusesselectregionSearches AgentStatuses in an Connect Customer instance, with optional filtering.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
AgentStatusTypesarrayAvailable agent status types.
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Lists agent statuses.

SELECT
arn,
id,
last_modified_region,
last_modified_time,
name,
type
FROM aws.connect.agent_statuses
WHERE instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND AgentStatusTypes = '{{ AgentStatusTypes }}'
;