CfnAIPromptProps Struct
Properties for defining a CfnAIPrompt.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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" }
}
};
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
The API format used for this AI Prompt.
assistantIdoptionalstringassistant_idoptionalstrassistantIdoptionalStringAssistantIdoptionalstringAssistantIdoptional*string #The identifier of the Amazon Q in Connect assistant.
Can be either the ID or the ARN. URLs cannot contain the ARN.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the AI Prompt.
inferenceConfigurationoptionalIResolvable | CfnAIPrompt.inference_configurationoptionaltyping.Union[IResolvable, AIPromptInferenceConfigurationProperty]inferenceConfigurationoptionalIResolvableInferenceConfigurationoptionalIResolvableInferenceConfigurationoptionalinterface{} #The identifier of the model used for this AI Prompt. The following model Ids are supported:.
notes
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
The name of the AI Prompt.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #The tags used to organize, track, or control access for this resource.
templateConfigurationIResolvable | CfnAIPrompt.template_configurationtyping.Union[IResolvable, AIPromptTemplateConfigurationProperty]templateConfigurationIResolvableTemplateConfigurationIResolvableTemplateConfigurationinterface{} required #The configuration of the prompt template for this AI Prompt.
templateTypestringtemplate_typestrtemplateTypeStringTemplateTypestringTemplateType*string required #The type of the prompt template for this AI Prompt.
The type of this AI Prompt.