Definition of AWS::Wisdom::AIPrompt Resource Type
Create AiPrompt Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def AiPrompt(resource_name: str,
args: AiPromptArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiPrompt(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_format: Optional[AiPromptAiPromptApiFormat] = None,
model_id: Optional[str] = None,
template_configuration: Optional[AiPromptAiPromptTemplateConfigurationArgs] = None,
template_type: Optional[AiPromptAiPromptTemplateType] = None,
type: Optional[AiPromptAiPromptType] = None,
assistant_id: Optional[str] = None,
description: Optional[str] = None,
inference_configuration: Optional[AiPromptAiPromptInferenceConfigurationArgs] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
public AiPrompt(String name, AiPromptArgs args)
public AiPrompt(String name, AiPromptArgs args, CustomResourceOptions options)
type: aws-native:wisdom:AiPrompt
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_wisdom_ai_prompt" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
AiPromptArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
AiPromptArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
AiPromptArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
AiPromptArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
AiPromptArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
AiPrompt Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AiPrompt resource accepts the following input properties:
- ApiFormat
AiPromptAiPromptApiFormat
- The API format used for this AI Prompt.
- ModelId
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
AiPromptAiPromptTemplateConfigurationArgs
- The configuration of the prompt template for this AI Prompt.
- TemplateType
AiPromptAiPromptTemplateType
- The type of the prompt template for this AI Prompt.
- Type
AiPromptAiPromptType
- The type of 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
AiPromptAiPromptInferenceConfigurationArgs
- Name
string
- The name of the AI Prompt
- Tags
map[string]string
- The tags used to organize, track, or control access for this resource.
- apiFormat
AiPromptAiPromptApiFormat
- The API format used for this AI Prompt.
- modelId
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
AiPromptAiPromptTemplateConfiguration
- The configuration of the prompt template for this AI Prompt.
- templateType
AiPromptAiPromptTemplateType
- The type of the prompt template for this AI Prompt.
- type
AiPromptAiPromptType
- The type of 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
AiPromptAiPromptInferenceConfiguration
- name
String
- The name of the AI Prompt
- tags
Map<String,String>
- The tags used to organize, track, or control access for this resource.
- apiFormat
AiPromptAiPromptApiFormat
- The API format used for this AI Prompt.
- modelId
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
AiPromptAiPromptTemplateConfiguration
- The configuration of the prompt template for this AI Prompt.
- templateType
AiPromptAiPromptTemplateType
- The type of the prompt template for this AI Prompt.
- type
AiPromptAiPromptType
- The type of 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
AiPromptAiPromptInferenceConfiguration
- name
string
- The name of the AI Prompt
- tags
{[key: string]: string}
- The tags used to organize, track, or control access for this resource.
- api_format
AiPromptAiPromptApiFormat
- The API format used for this AI Prompt.
- model_id
str
- 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
- template_configuration
AiPromptAiPromptTemplateConfigurationArgs
- The configuration of the prompt template for this AI Prompt.
- template_type
AiPromptAiPromptTemplateType
- The type of the prompt template for this AI Prompt.
- type
AiPromptAiPromptType
- The type of this AI Prompt.
- assistant_id
str
- The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- description
str
- The description of the AI Prompt.
- inference_configuration
AiPromptAiPromptInferenceConfigurationArgs
- name
str
- The name of the AI Prompt
- tags
Mapping[str, str]
- The tags used to organize, track, or control access for this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AiPrompt resource produces the following output properties:
- AiPromptArn
string
- The Amazon Resource Name (ARN) of the AI Prompt.
- AiPromptId
string
- The identifier of the Amazon Q in Connect AI prompt.
- AssistantArn
string
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ModifiedTimeSeconds
double
- AiPromptArn
string
- The Amazon Resource Name (ARN) of the AI Prompt.
- AiPromptId
string
- The identifier of the Amazon Q in Connect AI prompt.
- AssistantArn
string
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ModifiedTimeSeconds
float64
- ai_prompt_arn
string
- The Amazon Resource Name (ARN) of the AI Prompt.
- ai_prompt_id
string
- The identifier of the Amazon Q in Connect AI prompt.
- assistant_arn
string
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- id
string
- The provider-assigned unique ID for this managed resource.
- modified_time_seconds
number
- aiPromptArn
String
- The Amazon Resource Name (ARN) of the AI Prompt.
- aiPromptId
String
- The identifier of the Amazon Q in Connect AI prompt.
- assistantArn
String
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- id
String
- The provider-assigned unique ID for this managed resource.
- modifiedTimeSeconds
Double
- aiPromptArn
string
- The Amazon Resource Name (ARN) of the AI Prompt.
- aiPromptId
string
- The identifier of the Amazon Q in Connect AI prompt.
- assistantArn
string
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- id
string
- The provider-assigned unique ID for this managed resource.
- modifiedTimeSeconds
number
- ai_prompt_arn
str
- The Amazon Resource Name (ARN) of the AI Prompt.
- ai_prompt_id
str
- The identifier of the Amazon Q in Connect AI prompt.
- assistant_arn
str
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- id
str
- The provider-assigned unique ID for this managed resource.
- modified_time_seconds
float
- aiPromptArn
String
- The Amazon Resource Name (ARN) of the AI Prompt.
- aiPromptId
String
- The identifier of the Amazon Q in Connect AI prompt.
- assistantArn
String
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- id
String
- The provider-assigned unique ID for this managed resource.
- modifiedTimeSeconds
Number
Look up Existing AiPrompt Resource
Get an existing AiPrompt resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static AiPrompt get(String name, Output<String> id, CustomResourceOptions options)
resources: existingAiPrompt: type: aws-native:wisdom:AiPrompt get: id: ${id}
import {
to = aws-native_wisdom_ai_prompt.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
AiPromptState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
| Name | Value |
|---|
| AnthropicClaudeMessages | ANTHROPIC_CLAUDE_MESSAGES |
| AnthropicClaudeTextCompletions | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
| Messages | MESSAGES |
| TextCompletions | TEXT_COMPLETIONS |
| Name | Value |
|---|
| AiPromptAiPromptApiFormatAnthropicClaudeMessages | ANTHROPIC_CLAUDE_MESSAGES |
| AiPromptAiPromptApiFormatAnthropicClaudeTextCompletions | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
| AiPromptAiPromptApiFormatMessages | MESSAGES |
| AiPromptAiPromptApiFormatTextCompletions | TEXT_COMPLETIONS |
| Value |
|---|
ANTHROPIC_CLAUDE_MESSAGES |
ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
MESSAGES |
TEXT_COMPLETIONS |
| Name | Value |
|---|
| AnthropicClaudeMessages | ANTHROPIC_CLAUDE_MESSAGES |
| AnthropicClaudeTextCompletions | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
| Messages | MESSAGES |
| TextCompletions | TEXT_COMPLETIONS |
| Name | Value |
|---|
| AnthropicClaudeMessages | ANTHROPIC_CLAUDE_MESSAGES |
| AnthropicClaudeTextCompletions | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
| Messages | MESSAGES |
| TextCompletions | TEXT_COMPLETIONS |
| Name | Value |
|---|
| ANTHROPIC_CLAUDE_MESSAGES | ANTHROPIC_CLAUDE_MESSAGES |
| ANTHROPIC_CLAUDE_TEXT_COMPLETIONS | ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
| MESSAGES | MESSAGES |
| TEXT_COMPLETIONS | TEXT_COMPLETIONS |
| Value |
|---|
ANTHROPIC_CLAUDE_MESSAGES |
ANTHROPIC_CLAUDE_TEXT_COMPLETIONS |
MESSAGES |
TEXT_COMPLETIONS |
AiPromptAiPromptInferenceConfiguration, AiPromptAiPromptInferenceConfigurationArgs
AiPromptAiPromptTemplateConfiguration, AiPromptAiPromptTemplateConfigurationArgs
AiPromptAiPromptTemplateType
| Name | Value |
|---|
| AiPromptAiPromptTemplateTypeText | TEXT |
AiPromptAiPromptType
| Name | Value |
|---|
| AnswerGeneration | ANSWER_GENERATION |
| IntentLabelingGeneration | INTENT_LABELING_GENERATION |
| QueryReformulation | QUERY_REFORMULATION |
| SelfServicePreProcessing | SELF_SERVICE_PRE_PROCESSING |
| SelfServiceAnswerGeneration | SELF_SERVICE_ANSWER_GENERATION |
| EmailResponse | EMAIL_RESPONSE |
| EmailOverview | EMAIL_OVERVIEW |
| EmailGenerativeAnswer | EMAIL_GENERATIVE_ANSWER |
| EmailQueryReformulation | EMAIL_QUERY_REFORMULATION |
| Orchestration | ORCHESTRATION |
| NoteTaking | NOTE_TAKING |
| CaseSummarization | CASE_SUMMARIZATION |
| Name | Value |
|---|
| AiPromptAiPromptTypeAnswerGeneration | ANSWER_GENERATION |
| AiPromptAiPromptTypeIntentLabelingGeneration | INTENT_LABELING_GENERATION |
| AiPromptAiPromptTypeQueryReformulation | QUERY_REFORMULATION |
| AiPromptAiPromptTypeSelfServicePreProcessing | SELF_SERVICE_PRE_PROCESSING |
| AiPromptAiPromptTypeSelfServiceAnswerGeneration | SELF_SERVICE_ANSWER_GENERATION |
| AiPromptAiPromptTypeEmailResponse | EMAIL_RESPONSE |
| AiPromptAiPromptTypeEmailOverview | EMAIL_OVERVIEW |
| AiPromptAiPromptTypeEmailGenerativeAnswer | EMAIL_GENERATIVE_ANSWER |
| AiPromptAiPromptTypeEmailQueryReformulation | EMAIL_QUERY_REFORMULATION |
| AiPromptAiPromptTypeOrchestration | ORCHESTRATION |
| AiPromptAiPromptTypeNoteTaking | NOTE_TAKING |
| AiPromptAiPromptTypeCaseSummarization | CASE_SUMMARIZATION |
| Value |
|---|
ANSWER_GENERATION |
INTENT_LABELING_GENERATION |
QUERY_REFORMULATION |
SELF_SERVICE_PRE_PROCESSING |
SELF_SERVICE_ANSWER_GENERATION |
EMAIL_RESPONSE |
EMAIL_OVERVIEW |
EMAIL_GENERATIVE_ANSWER |
EMAIL_QUERY_REFORMULATION |
ORCHESTRATION |
NOTE_TAKING |
CASE_SUMMARIZATION |
| Name | Value |
|---|
| AnswerGeneration | ANSWER_GENERATION |
| IntentLabelingGeneration | INTENT_LABELING_GENERATION |
| QueryReformulation | QUERY_REFORMULATION |
| SelfServicePreProcessing | SELF_SERVICE_PRE_PROCESSING |
| SelfServiceAnswerGeneration | SELF_SERVICE_ANSWER_GENERATION |
| EmailResponse | EMAIL_RESPONSE |
| EmailOverview | EMAIL_OVERVIEW |
| EmailGenerativeAnswer | EMAIL_GENERATIVE_ANSWER |
| EmailQueryReformulation | EMAIL_QUERY_REFORMULATION |
| Orchestration | ORCHESTRATION |
| NoteTaking | NOTE_TAKING |
| CaseSummarization | CASE_SUMMARIZATION |
| Name | Value |
|---|
| AnswerGeneration | ANSWER_GENERATION |
| IntentLabelingGeneration | INTENT_LABELING_GENERATION |
| QueryReformulation | QUERY_REFORMULATION |
| SelfServicePreProcessing | SELF_SERVICE_PRE_PROCESSING |
| SelfServiceAnswerGeneration | SELF_SERVICE_ANSWER_GENERATION |
| EmailResponse | EMAIL_RESPONSE |
| EmailOverview | EMAIL_OVERVIEW |
| EmailGenerativeAnswer | EMAIL_GENERATIVE_ANSWER |
| EmailQueryReformulation | EMAIL_QUERY_REFORMULATION |
| Orchestration | ORCHESTRATION |
| NoteTaking | NOTE_TAKING |
| CaseSummarization | CASE_SUMMARIZATION |
| Name | Value |
|---|
| ANSWER_GENERATION | ANSWER_GENERATION |
| INTENT_LABELING_GENERATION | INTENT_LABELING_GENERATION |
| QUERY_REFORMULATION | QUERY_REFORMULATION |
| SELF_SERVICE_PRE_PROCESSING | SELF_SERVICE_PRE_PROCESSING |
| SELF_SERVICE_ANSWER_GENERATION | SELF_SERVICE_ANSWER_GENERATION |
| EMAIL_RESPONSE | EMAIL_RESPONSE |
| EMAIL_OVERVIEW | EMAIL_OVERVIEW |
| EMAIL_GENERATIVE_ANSWER | EMAIL_GENERATIVE_ANSWER |
| EMAIL_QUERY_REFORMULATION | EMAIL_QUERY_REFORMULATION |
| ORCHESTRATION | ORCHESTRATION |
| NOTE_TAKING | NOTE_TAKING |
| CASE_SUMMARIZATION | CASE_SUMMARIZATION |
| Value |
|---|
ANSWER_GENERATION |
INTENT_LABELING_GENERATION |
QUERY_REFORMULATION |
SELF_SERVICE_PRE_PROCESSING |
SELF_SERVICE_ANSWER_GENERATION |
EMAIL_RESPONSE |
EMAIL_OVERVIEW |
EMAIL_GENERATIVE_ANSWER |
EMAIL_QUERY_REFORMULATION |
ORCHESTRATION |
NOTE_TAKING |
CASE_SUMMARIZATION |
AiPromptTextFullAiPromptEditTemplateConfiguration, AiPromptTextFullAiPromptEditTemplateConfigurationArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0