Interface CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlowVersion
@Stability(Stable)
public static interface CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains configurations for a prompt and whether it is from Prompt management or defined inline.
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.*;
PromptFlowNodeSourceConfigurationProperty promptFlowNodeSourceConfigurationProperty = PromptFlowNodeSourceConfigurationProperty.builder()
.inline(PromptFlowNodeInlineConfigurationProperty.builder()
.modelId("modelId")
.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())
.build())
.resource(PromptFlowNodeResourceConfigurationProperty.builder()
.promptArn("promptArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFlowVersion.PromptFlowNodeSourceConfigurationPropertystatic final classAn implementation forCfnFlowVersion.PromptFlowNodeSourceConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInline
Contains configurations for a prompt that is defined inline.Returns union: either
IResolvableorCfnFlowVersion.PromptFlowNodeInlineConfigurationProperty- See Also:
-
getResource
Contains configurations for a prompt from Prompt management.Returns union: either
IResolvableorCfnFlowVersion.PromptFlowNodeResourceConfigurationProperty- See Also:
-
builder
@Stability(Stable) static CfnFlowVersion.PromptFlowNodeSourceConfigurationProperty.Builder builder()
-