interface TextPromptTemplateConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.aws_bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnFlowVersion_TextPromptTemplateConfigurationProperty |
Java | software.amazon.awscdk.services.bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty |
Python | aws_cdk.aws_bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnFlowVersion » 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.CfnFlowVersion.TextPromptTemplateConfigurationProperty = {
text: 'text',
// the properties below are optional
inputVariables: [{
name: 'name',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| text | string | The message for the prompt. |
| input | IResolvable | (IResolvable | Prompt)[] | An array of the variables in the prompt template. |
text
Type:
string
The message for the prompt.
inputVariables?
Type:
IResolvable | (IResolvable | Prompt)[]
(optional)
An array of the variables in the prompt template.

.NET
Go
Java
Python
TypeScript