Interface CfnPrompt.TextPromptTemplateConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPrompt.TextPromptTemplateConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnPrompt
@Stability(Stable)
public static interface CfnPrompt.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()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.text("text")
.textS3Location(TextS3LocationProperty.builder()
.bucket("bucket")
.key("key")
// the properties below are optional
.version("version")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPrompt.TextPromptTemplateConfigurationPropertystatic final classAn implementation forCfnPrompt.TextPromptTemplateConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCachePoint
A cache checkpoint within a template configuration.Returns union: either
IResolvableorCfnPrompt.CachePointBlockProperty- See Also:
-
getInputVariables
An array of the variables in the prompt template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPrompt.PromptInputVariableProperty>- See Also:
-
getText
The message for the prompt.- See Also:
-
getTextS3Location
The Amazon S3 location of the prompt text.Returns union: either
IResolvableorCfnPrompt.TextS3LocationProperty- See Also:
-
builder
-