Skip to main content

ai_prompt_versions

Creates, updates, deletes or gets an ai_prompt_version resource or lists ai_prompt_versions in a region

Overview

Nameai_prompt_versions
TypeResource
DescriptionDefinition of AWS::Wisdom::AIPromptVersion Resource Type
Idaws.wisdom.ai_prompt_versions

Fields

NameDatatypeDescription
a_iprompt_arnstring
assistant_arnstring
a_iprompt_idstring
assistant_idstring
a_iprompt_version_idstring
version_numbernumber
modified_time_secondsnumber
regionstringAWS region.

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

Methods

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

SELECT examples

Gets all ai_prompt_versions in a region.

SELECT
region,
a_iprompt_arn,
assistant_arn,
a_iprompt_id,
assistant_id,
a_iprompt_version_id,
version_number,
modified_time_seconds
FROM aws.wisdom.ai_prompt_versions
WHERE region = 'us-east-1';

Gets all properties from an individual ai_prompt_version.

SELECT
region,
a_iprompt_arn,
assistant_arn,
a_iprompt_id,
assistant_id,
a_iprompt_version_id,
version_number,
modified_time_seconds
FROM aws.wisdom.ai_prompt_versions
WHERE region = 'us-east-1' AND data__Identifier = '<AssistantId>|<AIPromptId>|<VersionNumber>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

wisdom:CreateAIPromptVersion

Read

wisdom:GetAIPrompt,
wisdom:GetAIPromptVersion

Update

wisdom:GetAIPrompt,
wisdom:GetAIPromptVersion

Delete

wisdom:DeleteAIPromptVersion

List

wisdom:ListAIPromptVersions