Show / Hide Table of Contents

Class CfnFlowVersionPropsMixin.LoopFlowNodeConfigurationProperty

Contains configurations for the nodes of a DoWhile loop in your flow.

Inheritance
object
CfnFlowVersionPropsMixin.LoopFlowNodeConfigurationProperty
Implements
CfnFlowVersionPropsMixin.ILoopFlowNodeConfigurationProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Bedrock
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnFlowVersionPropsMixin.LoopFlowNodeConfigurationProperty : CfnFlowVersionPropsMixin.ILoopFlowNodeConfigurationProperty
Syntax (vb)
Public Class CfnFlowVersionPropsMixin.LoopFlowNodeConfigurationProperty Implements CfnFlowVersionPropsMixin.ILoopFlowNodeConfigurationProperty
Remarks

A DoWhile loop is made up of the following nodes:

    These nodes work together to create a loop that runs at least once and continues until a specified condition is met or a maximum number of iterations is reached.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-loopflownodeconfiguration.html

    ExampleMetadata: fixture=_generated

    Examples
    // The code below shows an example of how to instantiate this type.
                 // The values are placeholders you should change.
                 using Amazon.CDK.CfnPropertyMixins.AWS.Bedrock;
    
                 var additionalModelRequestFields;
                 var collector;
                 var input;
                 var iterator;
                 LoopFlowNodeConfigurationProperty loopFlowNodeConfigurationProperty_;
                 var loopInput;
                 var output;
    
                 var loopFlowNodeConfigurationProperty = new LoopFlowNodeConfigurationProperty {
                     Definition = new FlowDefinitionProperty {
                         Connections = new [] { new FlowConnectionProperty {
                             Configuration = new FlowConnectionConfigurationProperty {
                                 Conditional = new FlowConditionalConnectionConfigurationProperty {
                                     Condition = "condition"
                                 },
                                 Data = new FlowDataConnectionConfigurationProperty {
                                     SourceOutput = "sourceOutput",
                                     TargetInput = "targetInput"
                                 }
                             },
                             Name = "name",
                             Source = "source",
                             Target = "target",
                             Type = "type"
                         } },
                         Nodes = new [] { new FlowNodeProperty {
                             Configuration = new FlowNodeConfigurationProperty {
                                 Agent = new AgentFlowNodeConfigurationProperty {
                                     AgentAliasArn = "agentAliasArn"
                                 },
                                 Collector = collector,
                                 Condition = new ConditionFlowNodeConfigurationProperty {
                                     Conditions = new [] { new FlowConditionProperty {
                                         Expression = "expression",
                                         Name = "name"
                                     } }
                                 },
                                 InlineCode = new InlineCodeFlowNodeConfigurationProperty {
                                     Code = "code",
                                     Language = "language"
                                 },
                                 Input = input,
                                 Iterator = iterator,
                                 KnowledgeBase = new KnowledgeBaseFlowNodeConfigurationProperty {
                                     GuardrailConfiguration = new GuardrailConfigurationProperty {
                                         GuardrailIdentifier = "guardrailIdentifier",
                                         GuardrailVersion = "guardrailVersion"
                                     },
                                     InferenceConfiguration = new PromptInferenceConfigurationProperty {
                                         Text = new PromptModelInferenceConfigurationProperty {
                                             MaxTokens = 123,
                                             StopSequences = new [] { "stopSequences" },
                                             Temperature = 123,
                                             TopP = 123
                                         }
                                     },
                                     KnowledgeBaseId = "knowledgeBaseId",
                                     ModelId = "modelId",
                                     NumberOfResults = 123,
                                     OrchestrationConfiguration = new KnowledgeBaseOrchestrationConfigurationProperty {
                                         AdditionalModelRequestFields = additionalModelRequestFields,
                                         InferenceConfig = new PromptInferenceConfigurationProperty {
                                             Text = new PromptModelInferenceConfigurationProperty {
                                                 MaxTokens = 123,
                                                 StopSequences = new [] { "stopSequences" },
                                                 Temperature = 123,
                                                 TopP = 123
                                             }
                                         },
                                         PerformanceConfig = new PerformanceConfigurationProperty {
                                             Latency = "latency"
                                         },
                                         PromptTemplate = new KnowledgeBasePromptTemplateProperty {
                                             TextPromptTemplate = "textPromptTemplate"
                                         }
                                     },
                                     PromptTemplate = new KnowledgeBasePromptTemplateProperty {
                                         TextPromptTemplate = "textPromptTemplate"
                                     },
                                     RerankingConfiguration = new VectorSearchRerankingConfigurationProperty {
                                         BedrockRerankingConfiguration = new VectorSearchBedrockRerankingConfigurationProperty {
                                             MetadataConfiguration = new MetadataConfigurationForRerankingProperty {
                                                 SelectionMode = "selectionMode",
                                                 SelectiveModeConfiguration = new RerankingMetadataSelectiveModeConfigurationProperty {
                                                     FieldsToExclude = new [] { new FieldForRerankingProperty {
                                                         FieldName = "fieldName"
                                                     } },
                                                     FieldsToInclude = new [] { new FieldForRerankingProperty {
                                                         FieldName = "fieldName"
                                                     } }
                                                 }
                                             },
                                             ModelConfiguration = new VectorSearchBedrockRerankingModelConfigurationProperty {
                                                 AdditionalModelRequestFields = additionalModelRequestFields,
                                                 ModelArn = "modelArn"
                                             },
                                             NumberOfRerankedResults = 123
                                         },
                                         Type = "type"
                                     }
                                 },
                                 LambdaFunction = new LambdaFunctionFlowNodeConfigurationProperty {
                                     LambdaArn = "lambdaArn"
                                 },
                                 Lex = new LexFlowNodeConfigurationProperty {
                                     BotAliasArn = "botAliasArn",
                                     LocaleId = "localeId"
                                 },
                                 Loop = loopFlowNodeConfigurationProperty_,
                                 LoopController = new LoopControllerFlowNodeConfigurationProperty {
                                     ContinueCondition = new FlowConditionProperty {
                                         Expression = "expression",
                                         Name = "name"
                                     },
                                     MaxIterations = 123
                                 },
                                 LoopInput = loopInput,
                                 Output = output,
                                 Prompt = new PromptFlowNodeConfigurationProperty {
                                     GuardrailConfiguration = new GuardrailConfigurationProperty {
                                         GuardrailIdentifier = "guardrailIdentifier",
                                         GuardrailVersion = "guardrailVersion"
                                     },
                                     SourceConfiguration = new PromptFlowNodeSourceConfigurationProperty {
                                         Inline = new PromptFlowNodeInlineConfigurationProperty {
                                             InferenceConfiguration = new PromptInferenceConfigurationProperty {
                                                 Text = new PromptModelInferenceConfigurationProperty {
                                                     MaxTokens = 123,
                                                     StopSequences = new [] { "stopSequences" },
                                                     Temperature = 123,
                                                     TopP = 123
                                                 }
                                             },
                                             ModelId = "modelId",
                                             TemplateConfiguration = new PromptTemplateConfigurationProperty {
                                                 Text = new TextPromptTemplateConfigurationProperty {
                                                     InputVariables = new [] { new PromptInputVariableProperty {
                                                         Name = "name"
                                                     } },
                                                     Text = "text"
                                                 }
                                             },
                                             TemplateType = "templateType"
                                         },
                                         Resource = new PromptFlowNodeResourceConfigurationProperty {
                                             PromptArn = "promptArn"
                                         }
                                     }
                                 },
                                 Retrieval = new RetrievalFlowNodeConfigurationProperty {
                                     ServiceConfiguration = new RetrievalFlowNodeServiceConfigurationProperty {
                                         S3 = new RetrievalFlowNodeS3ConfigurationProperty {
                                             BucketName = "bucketName"
                                         }
                                     }
                                 },
                                 Storage = new StorageFlowNodeConfigurationProperty {
                                     ServiceConfiguration = new StorageFlowNodeServiceConfigurationProperty {
                                         S3 = new StorageFlowNodeS3ConfigurationProperty {
                                             BucketName = "bucketName"
                                         }
                                     }
                                 }
                             },
                             Inputs = new [] { new FlowNodeInputProperty {
                                 Expression = "expression",
                                 Name = "name",
                                 Type = "type"
                             } },
                             Name = "name",
                             Outputs = new [] { new FlowNodeOutputProperty {
                                 Name = "name",
                                 Type = "type"
                             } },
                             Type = "type"
                         } }
                     }
                 };

    Synopsis

    Constructors

    LoopFlowNodeConfigurationProperty()

    Contains configurations for the nodes of a DoWhile loop in your flow.

    Properties

    Definition

    The definition of the DoWhile loop nodes and connections between nodes in the flow.

    Constructors

    LoopFlowNodeConfigurationProperty()

    Contains configurations for the nodes of a DoWhile loop in your flow.

    public LoopFlowNodeConfigurationProperty()
    Remarks

    A DoWhile loop is made up of the following nodes:

      These nodes work together to create a loop that runs at least once and continues until a specified condition is met or a maximum number of iterations is reached.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-loopflownodeconfiguration.html

      ExampleMetadata: fixture=_generated

      Examples
      // The code below shows an example of how to instantiate this type.
                   // The values are placeholders you should change.
                   using Amazon.CDK.CfnPropertyMixins.AWS.Bedrock;
      
                   var additionalModelRequestFields;
                   var collector;
                   var input;
                   var iterator;
                   LoopFlowNodeConfigurationProperty loopFlowNodeConfigurationProperty_;
                   var loopInput;
                   var output;
      
                   var loopFlowNodeConfigurationProperty = new LoopFlowNodeConfigurationProperty {
                       Definition = new FlowDefinitionProperty {
                           Connections = new [] { new FlowConnectionProperty {
                               Configuration = new FlowConnectionConfigurationProperty {
                                   Conditional = new FlowConditionalConnectionConfigurationProperty {
                                       Condition = "condition"
                                   },
                                   Data = new FlowDataConnectionConfigurationProperty {
                                       SourceOutput = "sourceOutput",
                                       TargetInput = "targetInput"
                                   }
                               },
                               Name = "name",
                               Source = "source",
                               Target = "target",
                               Type = "type"
                           } },
                           Nodes = new [] { new FlowNodeProperty {
                               Configuration = new FlowNodeConfigurationProperty {
                                   Agent = new AgentFlowNodeConfigurationProperty {
                                       AgentAliasArn = "agentAliasArn"
                                   },
                                   Collector = collector,
                                   Condition = new ConditionFlowNodeConfigurationProperty {
                                       Conditions = new [] { new FlowConditionProperty {
                                           Expression = "expression",
                                           Name = "name"
                                       } }
                                   },
                                   InlineCode = new InlineCodeFlowNodeConfigurationProperty {
                                       Code = "code",
                                       Language = "language"
                                   },
                                   Input = input,
                                   Iterator = iterator,
                                   KnowledgeBase = new KnowledgeBaseFlowNodeConfigurationProperty {
                                       GuardrailConfiguration = new GuardrailConfigurationProperty {
                                           GuardrailIdentifier = "guardrailIdentifier",
                                           GuardrailVersion = "guardrailVersion"
                                       },
                                       InferenceConfiguration = new PromptInferenceConfigurationProperty {
                                           Text = new PromptModelInferenceConfigurationProperty {
                                               MaxTokens = 123,
                                               StopSequences = new [] { "stopSequences" },
                                               Temperature = 123,
                                               TopP = 123
                                           }
                                       },
                                       KnowledgeBaseId = "knowledgeBaseId",
                                       ModelId = "modelId",
                                       NumberOfResults = 123,
                                       OrchestrationConfiguration = new KnowledgeBaseOrchestrationConfigurationProperty {
                                           AdditionalModelRequestFields = additionalModelRequestFields,
                                           InferenceConfig = new PromptInferenceConfigurationProperty {
                                               Text = new PromptModelInferenceConfigurationProperty {
                                                   MaxTokens = 123,
                                                   StopSequences = new [] { "stopSequences" },
                                                   Temperature = 123,
                                                   TopP = 123
                                               }
                                           },
                                           PerformanceConfig = new PerformanceConfigurationProperty {
                                               Latency = "latency"
                                           },
                                           PromptTemplate = new KnowledgeBasePromptTemplateProperty {
                                               TextPromptTemplate = "textPromptTemplate"
                                           }
                                       },
                                       PromptTemplate = new KnowledgeBasePromptTemplateProperty {
                                           TextPromptTemplate = "textPromptTemplate"
                                       },
                                       RerankingConfiguration = new VectorSearchRerankingConfigurationProperty {
                                           BedrockRerankingConfiguration = new VectorSearchBedrockRerankingConfigurationProperty {
                                               MetadataConfiguration = new MetadataConfigurationForRerankingProperty {
                                                   SelectionMode = "selectionMode",
                                                   SelectiveModeConfiguration = new RerankingMetadataSelectiveModeConfigurationProperty {
                                                       FieldsToExclude = new [] { new FieldForRerankingProperty {
                                                           FieldName = "fieldName"
                                                       } },
                                                       FieldsToInclude = new [] { new FieldForRerankingProperty {
                                                           FieldName = "fieldName"
                                                       } }
                                                   }
                                               },
                                               ModelConfiguration = new VectorSearchBedrockRerankingModelConfigurationProperty {
                                                   AdditionalModelRequestFields = additionalModelRequestFields,
                                                   ModelArn = "modelArn"
                                               },
                                               NumberOfRerankedResults = 123
                                           },
                                           Type = "type"
                                       }
                                   },
                                   LambdaFunction = new LambdaFunctionFlowNodeConfigurationProperty {
                                       LambdaArn = "lambdaArn"
                                   },
                                   Lex = new LexFlowNodeConfigurationProperty {
                                       BotAliasArn = "botAliasArn",
                                       LocaleId = "localeId"
                                   },
                                   Loop = loopFlowNodeConfigurationProperty_,
                                   LoopController = new LoopControllerFlowNodeConfigurationProperty {
                                       ContinueCondition = new FlowConditionProperty {
                                           Expression = "expression",
                                           Name = "name"
                                       },
                                       MaxIterations = 123
                                   },
                                   LoopInput = loopInput,
                                   Output = output,
                                   Prompt = new PromptFlowNodeConfigurationProperty {
                                       GuardrailConfiguration = new GuardrailConfigurationProperty {
                                           GuardrailIdentifier = "guardrailIdentifier",
                                           GuardrailVersion = "guardrailVersion"
                                       },
                                       SourceConfiguration = new PromptFlowNodeSourceConfigurationProperty {
                                           Inline = new PromptFlowNodeInlineConfigurationProperty {
                                               InferenceConfiguration = new PromptInferenceConfigurationProperty {
                                                   Text = new PromptModelInferenceConfigurationProperty {
                                                       MaxTokens = 123,
                                                       StopSequences = new [] { "stopSequences" },
                                                       Temperature = 123,
                                                       TopP = 123
                                                   }
                                               },
                                               ModelId = "modelId",
                                               TemplateConfiguration = new PromptTemplateConfigurationProperty {
                                                   Text = new TextPromptTemplateConfigurationProperty {
                                                       InputVariables = new [] { new PromptInputVariableProperty {
                                                           Name = "name"
                                                       } },
                                                       Text = "text"
                                                   }
                                               },
                                               TemplateType = "templateType"
                                           },
                                           Resource = new PromptFlowNodeResourceConfigurationProperty {
                                               PromptArn = "promptArn"
                                           }
                                       }
                                   },
                                   Retrieval = new RetrievalFlowNodeConfigurationProperty {
                                       ServiceConfiguration = new RetrievalFlowNodeServiceConfigurationProperty {
                                           S3 = new RetrievalFlowNodeS3ConfigurationProperty {
                                               BucketName = "bucketName"
                                           }
                                       }
                                   },
                                   Storage = new StorageFlowNodeConfigurationProperty {
                                       ServiceConfiguration = new StorageFlowNodeServiceConfigurationProperty {
                                           S3 = new StorageFlowNodeS3ConfigurationProperty {
                                               BucketName = "bucketName"
                                           }
                                       }
                                   }
                               },
                               Inputs = new [] { new FlowNodeInputProperty {
                                   Expression = "expression",
                                   Name = "name",
                                   Type = "type"
                               } },
                               Name = "name",
                               Outputs = new [] { new FlowNodeOutputProperty {
                                   Name = "name",
                                   Type = "type"
                               } },
                               Type = "type"
                           } }
                       }
                   };

      Properties

      Definition

      The definition of the DoWhile loop nodes and connections between nodes in the flow.

      public object? Definition { get; set; }
      Property Value

      object

      Remarks

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-loopflownodeconfiguration.html#cfn-bedrock-flowversion-loopflownodeconfiguration-definition

      Type union: either IResolvable or CfnFlowVersionPropsMixin.IFlowDefinitionProperty

      Implements

      CfnFlowVersionPropsMixin.ILoopFlowNodeConfigurationProperty
      Back to top Generated by DocFX