interface FlowNodeProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnFlow.FlowNodeProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnFlow_FlowNodeProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnFlow.FlowNodeProperty |
![]() | aws_cdk.aws_bedrock.CfnFlow.FlowNodeProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnFlow » FlowNodeProperty |
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 { aws_bedrock as bedrock } from 'aws-cdk-lib';
declare const collector: any;
declare const input: any;
declare const iterator: any;
declare const output: any;
const flowNodeProperty: bedrock.CfnFlow.FlowNodeProperty = {
name: 'name',
type: 'type',
// the properties below are optional
configuration: {
agent: {
agentAliasArn: 'agentAliasArn',
},
collector: collector,
condition: {
conditions: [{
name: 'name',
// the properties below are optional
expression: 'expression',
}],
},
input: input,
iterator: iterator,
knowledgeBase: {
knowledgeBaseId: 'knowledgeBaseId',
// the properties below are optional
guardrailConfiguration: {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
},
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,
topP: 123,
},
},
},
resource: {
promptArn: 'promptArn',
},
},
// the properties below are optional
guardrailConfiguration: {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
},
},
retrieval: {
serviceConfiguration: {
s3: {
bucketName: 'bucketName',
},
},
},
storage: {
serviceConfiguration: {
s3: {
bucketName: 'bucketName',
},
},
},
},
inputs: [{
expression: 'expression',
name: 'name',
type: 'type',
}],
outputs: [{
name: 'name',
type: 'type',
}],
};
Properties
Name | Type | Description |
---|---|---|
name | string | A name for the node. |
type | string | The type of node. |
configuration? | IResolvable | Flow | Contains configurations for the node. |
inputs? | IResolvable | IResolvable | Flow [] | An array of objects, each of which contains information about an input into the node. |
outputs? | IResolvable | IResolvable | Flow [] | A list of objects, each of which contains information about an output from the node. |
name
Type:
string
A name for the node.
type
Type:
string
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.
configuration?
Type:
IResolvable
|
Flow
(optional)
Contains configurations for the node.
inputs?
Type:
IResolvable
|
IResolvable
|
Flow
[]
(optional)
An array of objects, each of which contains information about an input into the node.
outputs?
Type:
IResolvable
|
IResolvable
|
Flow
[]
(optional)
A list of objects, each of which contains information about an output from the node.