Interface CfnFlowVersion.FlowNodeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFlowVersion.FlowNodeProperty.Jsii$Proxy
- Enclosing class:
CfnFlowVersion
@Stability(Stable)
public static interface CfnFlowVersion.FlowNodeProperty
extends software.amazon.jsii.JsiiSerializable
Contains configurations about a node in the flow.
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 collector; Object input; Object iterator; Object output; FlowNodeProperty flowNodeProperty = FlowNodeProperty.builder() .name("name") .type("type") // the properties below are optional .configuration(FlowNodeConfigurationProperty.builder() .agent(AgentFlowNodeConfigurationProperty.builder() .agentAliasArn("agentAliasArn") .build()) .collector(collector) .condition(ConditionFlowNodeConfigurationProperty.builder() .conditions(List.of(FlowConditionProperty.builder() .name("name") // the properties below are optional .expression("expression") .build())) .build()) .input(input) .iterator(iterator) .knowledgeBase(KnowledgeBaseFlowNodeConfigurationProperty.builder() .knowledgeBaseId("knowledgeBaseId") // the properties below are optional .guardrailConfiguration(GuardrailConfigurationProperty.builder() .guardrailIdentifier("guardrailIdentifier") .guardrailVersion("guardrailVersion") .build()) .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) .topP(123) .build()) .build()) .build()) .resource(PromptFlowNodeResourceConfigurationProperty.builder() .promptArn("promptArn") .build()) .build()) // the properties below are optional .guardrailConfiguration(GuardrailConfigurationProperty.builder() .guardrailIdentifier("guardrailIdentifier") .guardrailVersion("guardrailVersion") .build()) .build()) .retrieval(RetrievalFlowNodeConfigurationProperty.builder() .serviceConfiguration(RetrievalFlowNodeServiceConfigurationProperty.builder() .s3(RetrievalFlowNodeS3ConfigurationProperty.builder() .bucketName("bucketName") .build()) .build()) .build()) .storage(StorageFlowNodeConfigurationProperty.builder() .serviceConfiguration(StorageFlowNodeServiceConfigurationProperty.builder() .s3(StorageFlowNodeS3ConfigurationProperty.builder() .bucketName("bucketName") .build()) .build()) .build()) .build()) .inputs(List.of(FlowNodeInputProperty.builder() .expression("expression") .name("name") .type("type") .build())) .outputs(List.of(FlowNodeOutputProperty.builder() .name("name") .type("type") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFlowVersion.FlowNodeProperty
static final class
An implementation forCfnFlowVersion.FlowNodeProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Contains configurations for the node.default Object
An array of objects, each of which contains information about an input into the node.getName()
A name for the node.default Object
A list of objects, each of which contains information about an output from the node.getType()
The type of node.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
A name for the node.- See Also:
-
getType
The type of node.This value must match the name of the key that you provide in the configuration you provide in the
FlowNodeConfiguration
field.- See Also:
-
getConfiguration
Contains configurations for the node.- See Also:
-
getInputs
An array of objects, each of which contains information about an input into the node.- See Also:
-
getOutputs
A list of objects, each of which contains information about an output from the node.- See Also:
-
builder
-