AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Wisdom::AIPrompt

CfnAIPrompt

Creates an Amazon Q in Connect AI Prompt.

Import

import { CfnAIPrompt } from 'aws-cdk-lib/aws-wisdom';

Or use the module namespace:

import * as wisdom from 'aws-cdk-lib/aws-wisdom';
// wisdom.CfnAIPrompt

Properties

Configuration passed to the constructor as CfnAIPromptProps.

apiFormatRequired
string

The API format used for this AI Prompt.

modelIdRequired
string

The identifier of the model used for this AI Prompt. The following model Ids are supported:. - `anthropic.claude-3-haiku--v1:0` - `apac.amazon.nova-lite-v1:0` - `apac.amazon.nova-micro-v1:0` - `apac.amazon.nova-pro-v1:0` - `apac.anthropic.claude-3-5-sonnet--v2:0` - `apac.anthropic.claude-3-haiku-20240307-v1:0` - `eu.amazon.nova-lite-v1:0` - `eu.amazon.nova-micro-v1:0` - `eu.amazon.nova-pro-v1:0` - `eu.anthropic.claude-3-7-sonnet-20250219-v1:0` - `eu.anthropic.claude-3-haiku-20240307-v1:0` - `us.amazon.nova-lite-v1:0` - `us.amazon.nova-micro-v1:0` - `us.amazon.nova-pro-v1:0` - `us.anthropic.claude-3-5-haiku-20241022-v1:0` - `us.anthropic.claude-3-7-sonnet-20250219-v1:0` - `us.anthropic.claude-3-haiku-20240307-v1:0`

templateConfigurationRequired
IResolvable | AIPromptTemplateConfigurationProperty

The configuration of the prompt template for this AI Prompt.

templateTypeRequired
string

The type of the prompt template for this AI Prompt.

typeRequired
string

The type of this AI Prompt.

assistantIdOptional
string

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

descriptionOptional
string

The description of the AI Prompt.

nameOptional
string

The name of the AI Prompt.

tagsOptional
{ [key: string]: string }

The tags used to organize, track, or control access for this resource.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter