Interface CfnFlowVersion.TextPromptTemplateConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlowVersion.TextPromptTemplateConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlowVersion
@Stability(Stable)
public static interface CfnFlowVersion.TextPromptTemplateConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.bedrock.*;
TextPromptTemplateConfigurationProperty textPromptTemplateConfigurationProperty = TextPromptTemplateConfigurationProperty.builder()
.text("text")
// the properties below are optional
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFlowVersion.TextPromptTemplateConfigurationPropertystatic final classAn implementation forCfnFlowVersion.TextPromptTemplateConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getText
The message for the prompt.- See Also:
-
getInputVariables
An array of the variables in the prompt template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFlowVersion.PromptInputVariableProperty>- See Also:
-
builder
-