Interface CfnFlow.FlowNodeConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlow.FlowNodeConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFlow
@Stability(Stable)
public static interface CfnFlow.FlowNodeConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains configurations for a node in your flow.
For more information, see Node types in Amazon Bedrock works in the Amazon Bedrock User Guide.
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.*;
Object input;
Object output;
FlowNodeConfigurationProperty flowNodeConfigurationProperty = FlowNodeConfigurationProperty.builder()
.condition(ConditionFlowNodeConfigurationProperty.builder()
.conditions(List.of(FlowConditionProperty.builder()
.name("name")
// the properties below are optional
.expression("expression")
.build()))
.build())
.input(input)
.knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder()
.knowledgeBaseId("knowledgeBaseId")
// the properties below are optional
.modelId("modelId")
.build())
.lambdaFunction(LambdaFunctionFlowNodeConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.build())
.lex(LexFlowNodeConfigurationProperty.builder()
.botAliasArn("botAliasArn")
.localeId("localeId")
.build())
.output(output)
.prompt(PromptFlowNodeConfigurationProperty.builder()
.sourceConfiguration(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)
.topK(123)
.topP(123)
.build())
.build())
.build())
.resource(PromptFlowNodeResourceConfigurationProperty.builder()
.promptArn("promptArn")
.build())
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFlow.FlowNodeConfigurationPropertystatic final classAn implementation forCfnFlow.FlowNodeConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectContains configurations for a Condition node in your flow.default ObjectgetInput()Contains configurations for an input flow node in your flow.default ObjectContains configurations for a knowledge base node in your flow.default ObjectContains configurations for a Lambda function node in your flow.default ObjectgetLex()Contains configurations for a Lex node in your flow.default ObjectContains configurations for an output flow node in your flow.default ObjectContains configurations for a prompt node in your flow.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCondition
Contains configurations for a Condition node in your flow.Defines conditions that lead to different branches of the flow.
- See Also:
-
getInput
Contains configurations for an input flow node in your flow.The first node in the flow.
inputscan't be specified for this node.- See Also:
-
getKnowledgeBase
Contains configurations for a knowledge base node in your flow.Queries a knowledge base and returns the retrieved results or generated response.
- See Also:
-
getLambdaFunction
Contains configurations for a Lambda function node in your flow.Invokes an AWS Lambda function.
- See Also:
-
getLex
Contains configurations for a Lex node in your flow.Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
- See Also:
-
getOutput
Contains configurations for an output flow node in your flow.The last node in the flow.
outputscan't be specified for this node.- See Also:
-
getPrompt
Contains configurations for a prompt node in your flow.Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
- See Also:
-
builder
-