interface TextPromptTemplateConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnPrompt_TextPromptTemplateConfigurationProperty |
Java | software.amazon.awscdk.services.bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty |
Python | aws_cdk.aws_bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnPrompt » TextPromptTemplateConfigurationProperty |
Contains configurations for a text prompt template.
To include a variable, enclose a word in double curly braces as in {{variable}} .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const textPromptTemplateConfigurationProperty: bedrock.CfnPrompt.TextPromptTemplateConfigurationProperty = {
cachePoint: {
type: 'type',
},
inputVariables: [{
name: 'name',
}],
text: 'text',
textS3Location: {
bucket: 'bucket',
key: 'key',
// the properties below are optional
version: 'version',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| cache | IResolvable | Cache | A cache checkpoint within a template configuration. |
| input | IResolvable | (IResolvable | Prompt)[] | An array of the variables in the prompt template. |
| text? | string | The message for the prompt. |
| text | IResolvable | Text | The Amazon S3 location of the prompt text. |
cachePoint?
Type:
IResolvable | Cache
(optional)
A cache checkpoint within a template configuration.
inputVariables?
Type:
IResolvable | (IResolvable | Prompt)[]
(optional)
An array of the variables in the prompt template.
text?
Type:
string
(optional)
The message for the prompt.
textS3Location?
Type:
IResolvable | Text
(optional)
The Amazon S3 location of the prompt text.

.NET
Go
Java
Python
TypeScript