Skip to main content

ai_agent_versions

Creates, updates, deletes or gets an ai_agent_version resource or lists ai_agent_versions in a region

Overview

Nameai_agent_versions
TypeResource
DescriptionDefinition of AWS::Wisdom::AIAgentVersion Resource Type
Idaws.wisdom.ai_agent_versions

Fields

NameDatatypeDescription
a_iagent_arnstring
assistant_arnstring
a_iagent_idstring
assistant_idstring
a_iagent_version_idstring
version_numbernumber
modified_time_secondsnumber
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTAssistantId, AIAgentId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all ai_agent_versions in a region.

SELECT
region,
a_iagent_arn,
assistant_arn,
a_iagent_id,
assistant_id,
a_iagent_version_id,
version_number,
modified_time_seconds
FROM aws.wisdom.ai_agent_versions
WHERE region = 'us-east-1';

Gets all properties from an individual ai_agent_version.

SELECT
region,
a_iagent_arn,
assistant_arn,
a_iagent_id,
assistant_id,
a_iagent_version_id,
version_number,
modified_time_seconds
FROM aws.wisdom.ai_agent_versions
WHERE region = 'us-east-1' AND data__Identifier = '<AssistantId>|<AIAgentId>|<VersionNumber>';

INSERT example

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

/*+ create */
INSERT INTO aws.wisdom.ai_agent_versions (
AIAgentId,
AssistantId,
region
)
SELECT
'{{ AIAgentId }}',
'{{ AssistantId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

wisdom:CreateAIAgentVersion

Read

wisdom:GetAIAgent,
wisdom:GetAIAgentVersion

Update

wisdom:GetAIAgent,
wisdom:GetAIAgentVersion

Delete

wisdom:DeleteAIAgentVersion

List

wisdom:ListAIAgentVersions