interface CfnAIPromptProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Wisdom.CfnAIPromptProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awswisdom#CfnAIPromptProps |
Java | software.amazon.awscdk.services.wisdom.CfnAIPromptProps |
Python | aws_cdk.aws_wisdom.CfnAIPromptProps |
TypeScript | aws-cdk-lib » aws_wisdom » CfnAIPromptProps |
Properties for defining a CfnAIPrompt.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-aiprompt.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wisdom as wisdom } from 'aws-cdk-lib';
const cfnAIPromptProps: wisdom.CfnAIPromptProps = {
apiFormat: 'apiFormat',
modelId: 'modelId',
templateConfiguration: {
textFullAiPromptEditTemplateConfiguration: {
text: 'text',
},
},
templateType: 'templateType',
type: 'type',
// the properties below are optional
assistantId: 'assistantId',
description: 'description',
name: 'name',
tags: {
tagsKey: 'tags',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| api | string | The API format used for this AI Prompt. |
| model | string | The identifier of the model used for this AI Prompt. The following model Ids are supported:. |
| template | IResolvable | AIPrompt | The configuration of the prompt template for this AI Prompt. |
| template | string | The type of the prompt template for this AI Prompt. |
| type | string | The type of this AI Prompt. |
| assistant | string | The identifier of the Amazon Q in Connect assistant. |
| description? | string | The description of the AI Prompt. |
| name? | string | The name of the AI Prompt. |
| tags? | { [string]: string } | The tags used to organize, track, or control access for this resource. |
apiFormat
Type:
string
The API format used for this AI Prompt.
modelId
Type:
string
The identifier of the model used for this AI Prompt. The following model Ids are supported:.
anthropic.claude-3-haiku--v1:0apac.amazon.nova-lite-v1:0apac.amazon.nova-micro-v1:0apac.amazon.nova-pro-v1:0apac.anthropic.claude-3-5-sonnet--v2:0apac.anthropic.claude-3-haiku-20240307-v1:0eu.amazon.nova-lite-v1:0eu.amazon.nova-micro-v1:0eu.amazon.nova-pro-v1:0eu.anthropic.claude-3-7-sonnet-20250219-v1:0eu.anthropic.claude-3-haiku-20240307-v1:0us.amazon.nova-lite-v1:0us.amazon.nova-micro-v1:0us.amazon.nova-pro-v1:0us.anthropic.claude-3-5-haiku-20241022-v1:0us.anthropic.claude-3-7-sonnet-20250219-v1:0us.anthropic.claude-3-haiku-20240307-v1:0
templateConfiguration
Type:
IResolvable | AIPrompt
The configuration of the prompt template for this AI Prompt.
templateType
Type:
string
The type of the prompt template for this AI Prompt.
type
Type:
string
The type of this AI Prompt.
assistantId?
Type:
string
(optional)
The identifier of the Amazon Q in Connect assistant.
Can be either the ID or the ARN. URLs cannot contain the ARN.
description?
Type:
string
(optional)
The description of the AI Prompt.
name?
Type:
string
(optional)
The name of the AI Prompt.
tags?
Type:
{ [string]: string }
(optional)
The tags used to organize, track, or control access for this resource.

.NET
Go
Java
Python
TypeScript