Class CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty
Contains configurations for a text prompt template.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty : CfnPromptVersionPropsMixin.ITextPromptTemplateConfigurationProperty
Syntax (vb)
Public Class CfnPromptVersionPropsMixin.TextPromptTemplateConfigurationProperty Implements CfnPromptVersionPropsMixin.ITextPromptTemplateConfigurationProperty
Remarks
To include a variable, enclose a word in double curly braces as in {{variable}} .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins;
var textPromptTemplateConfigurationProperty = new TextPromptTemplateConfigurationProperty {
CachePoint = new CachePointBlockProperty {
Type = "type"
},
InputVariables = new [] { new PromptInputVariableProperty {
Name = "name"
} },
Text = "text"
};
Synopsis
Constructors
| TextPromptTemplateConfigurationProperty() | Contains configurations for a text prompt template. |
Properties
| CachePoint | A cache checkpoint within a template configuration. |
| InputVariables | An array of the variables in the prompt template. |
| Text | The message for the prompt. |
Constructors
TextPromptTemplateConfigurationProperty()
Contains configurations for a text prompt template.
public TextPromptTemplateConfigurationProperty()
Remarks
To include a variable, enclose a word in double curly braces as in {{variable}} .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins;
var textPromptTemplateConfigurationProperty = new TextPromptTemplateConfigurationProperty {
CachePoint = new CachePointBlockProperty {
Type = "type"
},
InputVariables = new [] { new PromptInputVariableProperty {
Name = "name"
} },
Text = "text"
};
Properties
CachePoint
A cache checkpoint within a template configuration.
public object? CachePoint { get; set; }
Property Value
Remarks
InputVariables
An array of the variables in the prompt template.
public object? InputVariables { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnPromptVersionPropsMixin.IPromptInputVariableProperty)[]
Text
The message for the prompt.
public string? Text { get; set; }