interface FlowDefinitionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnFlowVersion.FlowDefinitionProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnFlowVersion_FlowDefinitionProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnFlowVersion.FlowDefinitionProperty |
![]() | aws_cdk.aws_bedrock.CfnFlowVersion.FlowDefinitionProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnFlowVersion » FlowDefinitionProperty |
The definition of the nodes and connections between nodes in the flow.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
declare const input: any;
declare const output: any;
const flowDefinitionProperty: bedrock.CfnFlowVersion.FlowDefinitionProperty = {
connections: [{
name: 'name',
source: 'source',
target: 'target',
type: 'type',
// the properties below are optional
configuration: {
conditional: {
condition: 'condition',
},
data: {
sourceOutput: 'sourceOutput',
targetInput: 'targetInput',
},
},
}],
nodes: [{
name: 'name',
type: 'type',
// the properties below are optional
configuration: {
condition: {
conditions: [{
name: 'name',
// the properties below are optional
expression: 'expression',
}],
},
input: input,
knowledgeBase: {
knowledgeBaseId: 'knowledgeBaseId',
// the properties below are optional
modelId: 'modelId',
},
lambdaFunction: {
lambdaArn: 'lambdaArn',
},
lex: {
botAliasArn: 'botAliasArn',
localeId: 'localeId',
},
output: output,
prompt: {
sourceConfiguration: {
inline: {
modelId: 'modelId',
templateConfiguration: {
text: {
text: 'text',
// the properties below are optional
inputVariables: [{
name: 'name',
}],
},
},
templateType: 'templateType',
// the properties below are optional
inferenceConfiguration: {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topK: 123,
topP: 123,
},
},
},
resource: {
promptArn: 'promptArn',
},
},
},
},
inputs: [{
expression: 'expression',
name: 'name',
type: 'type',
}],
outputs: [{
name: 'name',
type: 'type',
}],
}],
};
Properties
Name | Type | Description |
---|---|---|
connections? | IResolvable | IResolvable | Flow [] | An array of connection definitions in the flow. |
nodes? | IResolvable | IResolvable | Flow [] | An array of node definitions in the flow. |
connections?
Type:
IResolvable
|
IResolvable
|
Flow
[]
(optional)
An array of connection definitions in the flow.
nodes?
Type:
IResolvable
|
IResolvable
|
Flow
[]
(optional)
An array of node definitions in the flow.