Skip to main content

agents

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

Overview

Nameagents
TypeResource
Idaws.quicksight.agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
agentobjectThe full details of the agent, including its configuration, status, and associations.
request_idstringThe Amazon Web Services request ID for this operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_agentselectagent_id, aws_account_id, regionDescribes an agent.
search_agentsselectaws_account_id, regionmax-results, next-tokenSearches for agents based on specified filters.
list_agentsselectaws_account_id, regionmax-results, next-tokenLists all agents in an Amazon QuickSight account.
create_agentinsertaws_account_id, region, AgentId, NameCreates an agent in Amazon QuickSight.
update_agentupdateagent_id, aws_account_id, region, NameUpdates an existing agent.
delete_agentdeleteagent_id, aws_account_id, regionDeletes an agent.

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_idstringThe unique identifier for the agent to delete.
aws_account_idstringThe ID of the Amazon Web Services account that contains the agent.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes an agent.

SELECT
agent,
request_id
FROM aws.quicksight.agents
WHERE agent_id = '{{ agent_id }}' -- required
AND aws_account_id = '{{ aws_account_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an agent in Amazon QuickSight.

INSERT INTO aws.quicksight.agents (
Spaces,
ActionConnectors,
AgentId,
Name,
Description,
IconId,
StarterPrompts,
WelcomeMessage,
AgentLifecycle,
CustomPromptInput,
aws_account_id,
region
)
SELECT
'{{ Spaces }}',
'{{ ActionConnectors }}',
'{{ AgentId }}' /* required */,
'{{ Name }}' /* required */,
'{{ Description }}',
'{{ IconId }}',
'{{ StarterPrompts }}',
'{{ WelcomeMessage }}',
'{{ AgentLifecycle }}',
'{{ CustomPromptInput }}',
'{{ aws_account_id }}',
'{{ region }}'
RETURNING
agent_id,
agent_name,
agent_status,
arn,
request_id
;

UPDATE examples

Updates an existing agent.

UPDATE aws.quicksight.agents
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
IconId = '{{ IconId }}',
StarterPrompts = '{{ StarterPrompts }}',
WelcomeMessage = '{{ WelcomeMessage }}',
CustomPromptInput = '{{ CustomPromptInput }}',
SpacesToAdd = '{{ SpacesToAdd }}',
SpacesToRemove = '{{ SpacesToRemove }}',
ActionConnectorsToAdd = '{{ ActionConnectorsToAdd }}',
ActionConnectorsToRemove = '{{ ActionConnectorsToRemove }}'
WHERE
agent_id = '{{ agent_id }}' --required
AND aws_account_id = '{{ aws_account_id }}' --required
AND region = '{{ region }}' --required
AND Name = '{{ Name }}' --required
RETURNING
agent_id,
agent_status,
arn,
failed_to_add_action_connectors,
failed_to_add_spaces,
failed_to_remove_action_connectors,
failed_to_remove_spaces,
request_id;

DELETE examples

Deletes an agent.

DELETE FROM aws.quicksight.agents
WHERE agent_id = '{{ agent_id }}' --required
AND aws_account_id = '{{ aws_account_id }}' --required
AND region = '{{ region }}' --required
;