Skip to main content

ai_agents

Creates, updates, deletes or gets an ai_agent resource or lists ai_agents in a region

Overview

Nameai_agents
TypeResource
DescriptionDefinition of AWS::Wisdom::AIAgent Resource Type
Idaws.wisdom.ai_agents

Fields

NameDatatypeDescription
a_iagent_idstring
a_iagent_arnstring
assistant_idstring
assistant_arnstring
configurationundefined
descriptionstring
namestring
tagsobject
typestring
modified_time_secondsnumber
regionstringAWS region.

For more information, see AWS::Wisdom::AIAgent.

Methods

NameAccessible byRequired Params
create_resourceINSERTAssistantId, Configuration, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all ai_agents in a region.

SELECT
region,
a_iagent_id,
a_iagent_arn,
assistant_id,
assistant_arn,
configuration,
description,
name,
tags,
type,
modified_time_seconds
FROM aws.wisdom.ai_agents
WHERE region = 'us-east-1';

Gets all properties from an individual ai_agent.

SELECT
region,
a_iagent_id,
a_iagent_arn,
assistant_id,
assistant_arn,
configuration,
description,
name,
tags,
type,
modified_time_seconds
FROM aws.wisdom.ai_agents
WHERE region = 'us-east-1' AND data__Identifier = '<AIAgentId>|<AssistantId>';

INSERT example

Use the following StackQL query and manifest file to create a new ai_agent resource, using stack-deploy.

/*+ create */
INSERT INTO aws.wisdom.ai_agents (
AssistantId,
Configuration,
Type,
region
)
SELECT
'{{ AssistantId }}',
'{{ Configuration }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.wisdom.ai_agents
WHERE data__Identifier = '<AIAgentId|AssistantId>'
AND region = 'us-east-1';

Permissions

To operate on the ai_agents resource, the following permissions are required:

Create

wisdom:CreateAIAgent,
wisdom:TagResource

Read

wisdom:GetAIAgent

Update

wisdom:UpdateAIAgent

Delete

wisdom:DeleteAIAgent

List

wisdom:ListAIAgents