ai_agent_versions
Creates, updates, deletes or gets an ai_agent_version
resource or lists ai_agent_versions
in a region
Overview
Name | ai_agent_versions |
Type | Resource |
Description | Definition of AWS::Wisdom::AIAgentVersion Resource Type |
Id | aws.wisdom.ai_agent_versions |
Fields
Name | Datatype | Description |
---|---|---|
a_iagent_arn | string | |
assistant_arn | string | |
a_iagent_id | string | |
assistant_id | string | |
a_iagent_version_id | string | |
version_number | number | |
modified_time_seconds | number | |
region | string | AWS region. |
For more information, see AWS::Wisdom::AIAgentVersion
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | AssistantId, AIAgentId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.wisdom.ai_agent_versions (
AIAgentId,
AssistantId,
region
)
SELECT
'{{ AIAgentId }}',
'{{ AssistantId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.wisdom.ai_agent_versions (
AIAgentId,
AssistantId,
ModifiedTimeSeconds,
region
)
SELECT
'{{ AIAgentId }}',
'{{ AssistantId }}',
'{{ ModifiedTimeSeconds }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: ai_agent_version
props:
- name: AIAgentId
value: '{{ AIAgentId }}'
- name: AssistantId
value: '{{ AssistantId }}'
- name: ModifiedTimeSeconds
value: null
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