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