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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourceai_agent_versionsINSERTAssistantId, AIAgentId, region
delete_resourceai_agent_versionsDELETEIdentifier, region
update_resourceai_agent_versionsUPDATEIdentifier, PatchDocument, region
list_resourcesai_agent_versions_list_onlySELECTregion
get_resourceai_agent_versionsSELECTIdentifier, region

SELECT examples

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 awscc.wisdom.ai_agent_versions
WHERE
region = '{{ region }}' AND
Identifier = '{{ assistant_id }}|{{ a_iagent_id }}|{{ version_number }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.wisdom.ai_agent_versions (
AIAgentId,
AssistantId,
region
)
SELECT
'{{ a_iagent_id }}',
'{{ assistant_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.wisdom.ai_agent_versions
WHERE
Identifier = '{{ assistant_id }}|{{ a_iagent_id }}|{{ version_number }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

wisdom:CreateAIAgentVersion