Skip to content
v2.277.0

CfnAIPromptProps Struct ​

Properties for defining a CfnAIPrompt.

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',
  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",
    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")
        .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",
    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"),
	Name: jsii.String("name"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}

Properties ​

apiFormatstringapi_formatstrapiFormatStringApiFormatstringApiFormat*string required #
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.
modelIdstringmodel_idstrmodelIdStringModelIdstringModelId*string required #
The identifier of the model used for this AI Prompt. The following model Ids are supported:.
notes
  • 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
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
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.AIPromptTemplateConfigurationPropertytemplate_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.
typestringtypestrtypeStringTypestringType*string required #
The type of this AI Prompt.