Skip to main content

ai_prompts

Creates, updates, deletes or gets an ai_prompt resource or lists ai_prompts in a region

Overview

Nameai_prompts
TypeResource
DescriptionDefinition of AWS::Wisdom::AIPrompt Resource Type
Idaws.wisdom.ai_prompts

Fields

NameDatatypeDescription
a_iprompt_idstring
a_iprompt_arnstring
api_formatstring
assistant_idstring
assistant_arnstring
descriptionstring
model_idstring
namestring
tagsobject
template_configurationobject
template_typestring
typestring
modified_time_secondsnumber
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTApiFormat, ModelId, TemplateConfiguration, TemplateType, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all ai_prompts in a region.

SELECT
region,
a_iprompt_id,
a_iprompt_arn,
api_format,
assistant_id,
assistant_arn,
description,
model_id,
name,
tags,
template_configuration,
template_type,
type,
modified_time_seconds
FROM aws.wisdom.ai_prompts
WHERE region = 'us-east-1';

Gets all properties from an individual ai_prompt.

SELECT
region,
a_iprompt_id,
a_iprompt_arn,
api_format,
assistant_id,
assistant_arn,
description,
model_id,
name,
tags,
template_configuration,
template_type,
type,
modified_time_seconds
FROM aws.wisdom.ai_prompts
WHERE region = 'us-east-1' AND data__Identifier = '<AIPromptId>|<AssistantId>';

INSERT example

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

/*+ create */
INSERT INTO aws.wisdom.ai_prompts (
ApiFormat,
ModelId,
TemplateConfiguration,
TemplateType,
Type,
region
)
SELECT
'{{ ApiFormat }}',
'{{ ModelId }}',
'{{ TemplateConfiguration }}',
'{{ TemplateType }}',
'{{ Type }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

wisdom:CreateAIPrompt,
wisdom:TagResource

Read

wisdom:GetAIPrompt

Update

wisdom:UpdateAIPrompt

Delete

wisdom:DeleteAIPrompt

List

wisdom:ListAIPrompts