Skip to main content

agent_status

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

Overview

Nameagent_status
TypeResource
Idaws.connect.agent_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agent_status_arnstringThe Amazon Resource Name (ARN) of the agent status.
agent_status_idstringThe identifier of the agent status.
descriptionstringThe description of the agent status.
display_orderintegerThe display order of the 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.
statestringThe state of the agent status. (ENABLED, DISABLED)
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
typestringThe type of agent status. (ROUTABLE, CUSTOM, OFFLINE)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_agent_statusselectinstance_id, agent_status_id, regionDescribes an agent status.
create_agent_statusinsertinstance_id, region, Name, StateCreates an agent status for the specified Connect Customer instance.
update_agent_statusupdateinstance_id, agent_status_id, regionUpdates agent status.

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
agent_status_idstringThe identifier of the agent status.
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)

SELECT examples

Describes an agent status.

SELECT
agent_status_arn,
agent_status_id,
description,
display_order,
last_modified_region,
last_modified_time,
name,
state,
tags,
type
FROM aws.connect.agent_status
WHERE instance_id = '{{ instance_id }}' -- required
AND agent_status_id = '{{ agent_status_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an agent status for the specified Connect Customer instance.

INSERT INTO aws.connect.agent_status (
Name,
Description,
State,
DisplayOrder,
Tags,
instance_id,
region
)
SELECT
'{{ Name }}' /* required */,
'{{ Description }}',
'{{ State }}' /* required */,
{{ DisplayOrder }},
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
agent_status_arn,
agent_status_id
;

UPDATE examples

Updates agent status.

UPDATE aws.connect.agent_status
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
State = '{{ State }}',
DisplayOrder = {{ DisplayOrder }},
ResetOrderNumber = {{ ResetOrderNumber }}
WHERE
instance_id = '{{ instance_id }}' --required
AND agent_status_id = '{{ agent_status_id }}' --required
AND region = '{{ region }}' --required;