Interface CfnPromptVersion.PromptVariantProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPromptVersion.PromptVariantProperty.Jsii$Proxy
Enclosing class:
CfnPromptVersion

@Stability(Stable) public static interface CfnPromptVersion.PromptVariantProperty extends software.amazon.jsii.JsiiSerializable
Contains details about a variant of the prompt.

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.*;
 PromptVariantProperty promptVariantProperty = PromptVariantProperty.builder()
         .name("name")
         .templateConfiguration(PromptTemplateConfigurationProperty.builder()
                 .text(TextPromptTemplateConfigurationProperty.builder()
                         .text("text")
                         // the properties below are optional
                         .inputVariables(List.of(PromptInputVariableProperty.builder()
                                 .name("name")
                                 .build()))
                         .build())
                 .build())
         .templateType("templateType")
         // the properties below are optional
         .inferenceConfiguration(PromptInferenceConfigurationProperty.builder()
                 .text(PromptModelInferenceConfigurationProperty.builder()
                         .maxTokens(123)
                         .stopSequences(List.of("stopSequences"))
                         .temperature(123)
                         .topP(123)
                         .build())
                 .build())
         .modelId("modelId")
         .build();
 

See Also: