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() .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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPrompt.TextPromptTemplateConfigurationProperty
static final class
An implementation forCfnPrompt.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.- See Also:
-
getText
The message for the prompt.- See Also:
-
getTextS3Location
The Amazon S3 location of the prompt text.- See Also:
-
builder
-