# CfnAIPromptProps

Properties for defining a `CfnAIPrompt`.

Used as props by: [CfnAIPrompt](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wisdom.CfnAIPrompt.html)

- Source: Generated at build time
- Type last changed: v2.278.0 · 20 Nov 2026

## Example

TypeScript:

```ts
// 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',
  inferenceConfiguration: {
    maxTokensToSample: 123,
    temperature: 123,
    topK: 123,
    topP: 123,
  },
  name: 'name',
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wisdom as wisdom

cfn_ai_prompt_props = wisdom.CfnAIPromptProps(
    api_format="apiFormat",
    model_id="modelId",
    template_configuration=wisdom.CfnAIPrompt.AIPromptTemplateConfigurationProperty(
        text_full_ai_prompt_edit_template_configuration=wisdom.CfnAIPrompt.TextFullAIPromptEditTemplateConfigurationProperty(
            text="text"
        )
    ),
    template_type="templateType",
    type="type",

    # the properties below are optional
    assistant_id="assistantId",
    description="description",
    inference_configuration=wisdom.CfnAIPrompt.AIPromptInferenceConfigurationProperty(
        max_tokens_to_sample=123,
        temperature=123,
        top_k=123,
        top_p=123
    ),
    name="name",
    tags={
        "tags_key": "tags"
    }
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wisdom.*;

CfnAIPromptProps cfnAIPromptProps = CfnAIPromptProps.builder()
        .apiFormat("apiFormat")
        .modelId("modelId")
        .templateConfiguration(AIPromptTemplateConfigurationProperty.builder()
                .textFullAiPromptEditTemplateConfiguration(TextFullAIPromptEditTemplateConfigurationProperty.builder()
                        .text("text")
                        .build())
                .build())
        .templateType("templateType")
        .type("type")

        // the properties below are optional
        .assistantId("assistantId")
        .description("description")
        .inferenceConfiguration(AIPromptInferenceConfigurationProperty.builder()
                .maxTokensToSample(123)
                .temperature(123)
                .topK(123)
                .topP(123)
                .build())
        .name("name")
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Wisdom;

var cfnAIPromptProps = new CfnAIPromptProps {
    ApiFormat = "apiFormat",
    ModelId = "modelId",
    TemplateConfiguration = new AIPromptTemplateConfigurationProperty {
        TextFullAiPromptEditTemplateConfiguration = new TextFullAIPromptEditTemplateConfigurationProperty {
            Text = "text"
        }
    },
    TemplateType = "templateType",
    Type = "type",

    // the properties below are optional
    AssistantId = "assistantId",
    Description = "description",
    InferenceConfiguration = new AIPromptInferenceConfigurationProperty {
        MaxTokensToSample = 123,
        Temperature = 123,
        TopK = 123,
        TopP = 123
    },
    Name = "name",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAIPromptProps := &CfnAIPromptProps{
	ApiFormat: jsii.String("apiFormat"),
	ModelId: jsii.String("modelId"),
	TemplateConfiguration: &AIPromptTemplateConfigurationProperty{
		TextFullAiPromptEditTemplateConfiguration: &TextFullAIPromptEditTemplateConfigurationProperty{
			Text: jsii.String("text"),
		},
	},
	TemplateType: jsii.String("templateType"),
	Type: jsii.String("type"),

	// the properties below are optional
	AssistantId: jsii.String("assistantId"),
	Description: jsii.String("description"),
	InferenceConfiguration: &AIPromptInferenceConfigurationProperty{
		MaxTokensToSample: jsii.Number(123),
		Temperature: jsii.Number(123),
		TopK: jsii.Number(123),
		TopP: jsii.Number(123),
	},
	Name: jsii.String("name"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `apiFormat`: string (required) — The API format used for this AI Prompt.

- `assistantId`: string — The identifier of the Amazon Q in Connect assistant.

  Can be either the ID or the ARN. URLs cannot contain the ARN.

- `description`: string — The description of the AI Prompt.

- `inferenceConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAIPrompt.AIPromptInferenceConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wisdom.CfnAIPrompt.AIPromptInferenceConfigurationProperty.html)

- `modelId`: string (required) — 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`

- `name`: string — The name of the AI Prompt.

- `tags`: { [key: string]: string } — The tags used to organize, track, or control access for this resource.

- `templateConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAIPrompt.AIPromptTemplateConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wisdom.CfnAIPrompt.AIPromptTemplateConfigurationProperty.html) (required) — The configuration of the prompt template for this AI Prompt.

- `templateType`: string (required) — The type of the prompt template for this AI Prompt.

- `type`: string (required) — The type of this AI Prompt.
