ai_prompts
Creates, updates, deletes or gets an ai_prompt
resource or lists ai_prompts
in a region
Overview
Name | ai_prompts |
Type | Resource |
Description | Definition of AWS::Wisdom::AIPrompt Resource Type |
Id | aws.wisdom.ai_prompts |
Fields
Name | Datatype | Description |
---|---|---|
a_iprompt_id | string | |
a_iprompt_arn | string | |
api_format | string | |
assistant_id | string | |
assistant_arn | string | |
description | string | |
model_id | string | |
name | string | |
tags | object | |
template_configuration | object | |
template_type | string | |
type | string | |
modified_time_seconds | number | |
region | string | AWS region. |
For more information, see AWS::Wisdom::AIPrompt
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ApiFormat, ModelId, TemplateConfiguration, TemplateType, Type, 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_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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.wisdom.ai_prompts (
ApiFormat,
ModelId,
TemplateConfiguration,
TemplateType,
Type,
region
)
SELECT
'{{ ApiFormat }}',
'{{ ModelId }}',
'{{ TemplateConfiguration }}',
'{{ TemplateType }}',
'{{ Type }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.wisdom.ai_prompts (
ApiFormat,
AssistantId,
Description,
ModelId,
Name,
Tags,
TemplateConfiguration,
TemplateType,
Type,
region
)
SELECT
'{{ ApiFormat }}',
'{{ AssistantId }}',
'{{ Description }}',
'{{ ModelId }}',
'{{ Name }}',
'{{ Tags }}',
'{{ TemplateConfiguration }}',
'{{ TemplateType }}',
'{{ Type }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: ai_prompt
props:
- name: ApiFormat
value: '{{ ApiFormat }}'
- name: AssistantId
value: '{{ AssistantId }}'
- name: Description
value: '{{ Description }}'
- name: ModelId
value: '{{ ModelId }}'
- name: Name
value: '{{ Name }}'
- name: Tags
value: {}
- name: TemplateConfiguration
value: {}
- name: TemplateType
value: '{{ TemplateType }}'
- name: Type
value: '{{ Type }}'
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