interface FlowNodeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnFlowPropsMixin.FlowNodeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnFlowPropsMixin_FlowNodeProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnFlowPropsMixin.FlowNodeProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnFlowPropsMixin.FlowNodeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnFlowPropsMixin » 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 { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
declare const additionalModelRequestFields: any;
declare const collector: any;
declare const flowNodeProperty_: bedrock_mixins.CfnFlowPropsMixin.FlowNodeProperty;
declare const input: any;
declare const iterator: any;
declare const loopInput: any;
declare const output: any;
const flowNodeProperty: bedrock_mixins.CfnFlowPropsMixin.FlowNodeProperty = {
configuration: {
agent: {
agentAliasArn: 'agentAliasArn',
},
collector: collector,
condition: {
conditions: [{
expression: 'expression',
name: 'name',
}],
},
inlineCode: {
code: 'code',
language: 'language',
},
input: input,
iterator: iterator,
knowledgeBase: {
guardrailConfiguration: {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
},
inferenceConfiguration: {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topP: 123,
},
},
knowledgeBaseId: 'knowledgeBaseId',
modelId: 'modelId',
numberOfResults: 123,
orchestrationConfiguration: {
additionalModelRequestFields: additionalModelRequestFields,
inferenceConfig: {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topP: 123,
},
},
performanceConfig: {
latency: 'latency',
},
promptTemplate: {
textPromptTemplate: 'textPromptTemplate',
},
},
promptTemplate: {
textPromptTemplate: 'textPromptTemplate',
},
rerankingConfiguration: {
bedrockRerankingConfiguration: {
metadataConfiguration: {
selectionMode: 'selectionMode',
selectiveModeConfiguration: {
fieldsToExclude: [{
fieldName: 'fieldName',
}],
fieldsToInclude: [{
fieldName: 'fieldName',
}],
},
},
modelConfiguration: {
additionalModelRequestFields: additionalModelRequestFields,
modelArn: 'modelArn',
},
numberOfRerankedResults: 123,
},
type: 'type',
},
},
lambdaFunction: {
lambdaArn: 'lambdaArn',
},
lex: {
botAliasArn: 'botAliasArn',
localeId: 'localeId',
},
loop: {
definition: {
connections: [{
configuration: {
conditional: {
condition: 'condition',
},
data: {
sourceOutput: 'sourceOutput',
targetInput: 'targetInput',
},
},
name: 'name',
source: 'source',
target: 'target',
type: 'type',
}],
nodes: [flowNodeProperty_],
},
},
loopController: {
continueCondition: {
expression: 'expression',
name: 'name',
},
maxIterations: 123,
},
loopInput: loopInput,
output: output,
prompt: {
guardrailConfiguration: {
guardrailIdentifier: 'guardrailIdentifier',
guardrailVersion: 'guardrailVersion',
},
sourceConfiguration: {
inline: {
inferenceConfiguration: {
text: {
maxTokens: 123,
stopSequences: ['stopSequences'],
temperature: 123,
topP: 123,
},
},
modelId: 'modelId',
templateConfiguration: {
text: {
inputVariables: [{
name: 'name',
}],
text: 'text',
},
},
templateType: 'templateType',
},
resource: {
promptArn: 'promptArn',
},
},
},
retrieval: {
serviceConfiguration: {
s3: {
bucketName: 'bucketName',
},
},
},
storage: {
serviceConfiguration: {
s3: {
bucketName: 'bucketName',
},
},
},
},
inputs: [{
category: 'category',
expression: 'expression',
name: 'name',
type: 'type',
}],
name: 'name',
outputs: [{
name: 'name',
type: 'type',
}],
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| 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. |
| name? | string | A name for the node. |
| outputs? | IResolvable | (IResolvable | Flow)[] | A list of objects, each of which contains information about an output from the node. |
| type? | string | The type of node. |
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.
name?
Type:
string
(optional)
A name for the node.
outputs?
Type:
IResolvable | (IResolvable | Flow)[]
(optional)
A list of objects, each of which contains information about an output from the node.
type?
Type:
string
(optional)
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.

.NET
Go
Java
Python
TypeScript