{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-flow-response-schema.json",
  "title": "GetFlowResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-flows-api-openapi.yml#/components/schemas/GetFlowResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the flow."
    },
    "description": {
      "type": "string",
      "description": "The description of the flow."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the service role with permissions to create a flow. For more information, see Create a service row for flows in the Amazon Bedrock User Guide."
    },
    "customerEncryptionKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key that the flow is encrypted with."
    },
    "id": {
      "type": "string",
      "description": "The unique identifier of the flow."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the flow."
    },
    "status": {
      "type": "string",
      "enum": [
        "Failed",
        "Prepared",
        "Preparing",
        "NotPrepared"
      ],
      "description": "The status of the flow. The following statuses are possible: NotPrepared – The flow has been created or updated, but hasn't been prepared. If you just created the flow, you can't test it. If you updated the flow, the DRAFT version won't contain the latest changes for testing. Send a PrepareFlow request to package the latest changes into the DRAFT version. Preparing – The flow is being prepared so that the DRAFT version contains the latest changes for testing. Prepared – The flow is prepared and the DRAFT version contains the latest changes for testing. Failed – The last API operation that you "
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the flow was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the flow was last updated."
    },
    "version": {
      "type": "string",
      "description": "The version of the flow for which information was retrieved."
    },
    "definition": {
      "$ref": "#/$defs/FlowDefinition"
    },
    "validations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FlowValidation"
      },
      "description": "A list of validation error messages related to the last failed operation on the flow."
    }
  },
  "required": [
    "name",
    "executionRoleArn",
    "id",
    "arn",
    "status",
    "createdAt",
    "updatedAt",
    "version"
  ],
  "$defs": {
    "AgentFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "agentAliasArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the alias of the agent to invoke."
        }
      },
      "required": [
        "agentAliasArn"
      ]
    },
    "AnyToolChoice": {
      "type": "object",
      "properties": {}
    },
    "AutoToolChoice": {
      "type": "object",
      "properties": {}
    },
    "BedrockAgentCachePointBlock": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "default"
          ],
          "description": "Indicates that the CachePointBlock is of the default type"
        }
      },
      "required": [
        "type"
      ]
    },
    "BedrockAgentContentBlock": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text in the message."
        },
        "cachePoint": {
          "$ref": "#/$defs/BedrockAgentCachePointBlock"
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentFieldForReranking": {
      "type": "object",
      "properties": {
        "fieldName": {
          "type": "string",
          "description": "The name of the metadata field to include or exclude during reranking."
        }
      },
      "required": [
        "fieldName"
      ]
    },
    "BedrockAgentGuardrailConfiguration": {
      "type": "object",
      "properties": {
        "guardrailIdentifier": {
          "type": "string",
          "description": "The unique identifier of the guardrail."
        },
        "guardrailVersion": {
          "type": "string",
          "description": "The version of the guardrail."
        }
      }
    },
    "BedrockAgentMessage": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "description": "The role that the message belongs to."
        },
        "content": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentContentBlock"
          },
          "description": "The content in the message."
        }
      },
      "required": [
        "role",
        "content"
      ]
    },
    "BedrockAgentMetadataConfigurationForReranking": {
      "type": "object",
      "properties": {
        "selectionMode": {
          "type": "string",
          "enum": [
            "SELECTIVE",
            "ALL"
          ],
          "description": "The mode for selecting metadata fields for reranking."
        },
        "selectiveModeConfiguration": {
          "$ref": "#/$defs/BedrockAgentRerankingMetadataSelectiveModeConfiguration"
        }
      },
      "required": [
        "selectionMode"
      ]
    },
    "BedrockAgentPerformanceConfiguration": {
      "type": "object",
      "properties": {
        "latency": {
          "type": "string",
          "enum": [
            "standard",
            "optimized"
          ],
          "description": "The latency optimization setting."
        }
      }
    },
    "BedrockAgentRerankingMetadataSelectiveModeConfiguration": {
      "type": "object",
      "properties": {
        "fieldsToInclude": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentFieldForReranking"
          },
          "description": "Specifies the metadata fields to include in the reranking process."
        },
        "fieldsToExclude": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentFieldForReranking"
          },
          "description": "Specifies the metadata fields to exclude from the reranking process."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentSystemContentBlock": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text in the system prompt."
        },
        "cachePoint": {
          "$ref": "#/$defs/BedrockAgentCachePointBlock"
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentTool": {
      "type": "object",
      "properties": {
        "toolSpec": {
          "$ref": "#/$defs/BedrockAgentToolSpecification"
        },
        "cachePoint": {
          "$ref": "#/$defs/BedrockAgentCachePointBlock"
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentToolConfiguration": {
      "type": "object",
      "properties": {
        "tools": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentTool"
          },
          "description": "An array of tools to pass to a model."
        },
        "toolChoice": {
          "$ref": "#/$defs/ToolChoice"
        }
      },
      "required": [
        "tools"
      ]
    },
    "BedrockAgentToolInputSchema": {
      "type": "object",
      "properties": {
        "json": {
          "type": "object",
          "description": "A JSON object defining the input schema for the tool."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentToolSpecification": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the tool."
        },
        "description": {
          "type": "string",
          "description": "The description of the tool."
        },
        "inputSchema": {
          "$ref": "#/$defs/BedrockAgentToolInputSchema"
        },
        "strict": {
          "type": "boolean",
          "description": "Whether the tool schema is strictly enforced."
        }
      },
      "required": [
        "name",
        "inputSchema"
      ]
    },
    "BedrockAgentVectorSearchBedrockRerankingConfiguration": {
      "type": "object",
      "properties": {
        "modelConfiguration": {
          "$ref": "#/$defs/BedrockAgentVectorSearchBedrockRerankingModelConfiguration"
        },
        "numberOfRerankedResults": {
          "type": "integer",
          "description": "Specifies the number of results to return after reranking."
        },
        "metadataConfiguration": {
          "$ref": "#/$defs/BedrockAgentMetadataConfigurationForReranking"
        }
      },
      "required": [
        "modelConfiguration"
      ]
    },
    "BedrockAgentVectorSearchBedrockRerankingModelConfiguration": {
      "type": "object",
      "properties": {
        "modelArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Bedrock reranker model."
        },
        "additionalModelRequestFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "description": "Specifies additional model-specific request parameters as key-value pairs that are included in the request to the Amazon Bedrock reranker model."
        }
      },
      "required": [
        "modelArn"
      ]
    },
    "BedrockAgentVectorSearchRerankingConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "BEDROCK_RERANKING_MODEL"
          ],
          "description": "Specifies the type of reranking model to use. Currently, the only supported value is BEDROCK_RERANKING_MODEL."
        },
        "bedrockRerankingConfiguration": {
          "$ref": "#/$defs/BedrockAgentVectorSearchBedrockRerankingConfiguration"
        }
      },
      "required": [
        "type"
      ]
    },
    "ChatPromptTemplateConfiguration": {
      "type": "object",
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentMessage"
          },
          "description": "Contains messages in the chat for the prompt."
        },
        "system": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentSystemContentBlock"
          },
          "description": "Contains system prompts to provide context to the model or to describe how it should behave."
        },
        "inputVariables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PromptInputVariable"
          },
          "description": "An array of the variables in the prompt template."
        },
        "toolConfiguration": {
          "$ref": "#/$defs/BedrockAgentToolConfiguration"
        }
      },
      "required": [
        "messages"
      ]
    },
    "CollectorFlowNodeConfiguration": {
      "type": "object",
      "properties": {}
    },
    "ConditionFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowCondition"
          },
          "description": "An array of conditions. Each member contains the name of a condition and an expression that defines the condition."
        }
      },
      "required": [
        "conditions"
      ]
    },
    "CyclicConnectionFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection that causes the cycle in the flow."
        }
      },
      "required": [
        "connection"
      ]
    },
    "DuplicateConditionExpressionFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the duplicate condition expressions."
        },
        "expression": {
          "type": "string",
          "description": "The duplicated condition expression."
        }
      },
      "required": [
        "node",
        "expression"
      ]
    },
    "DuplicateConnectionsFlowValidationDetails": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "The name of the source node where the duplicate connection starts."
        },
        "target": {
          "type": "string",
          "description": "The name of the target node where the duplicate connection ends."
        }
      },
      "required": [
        "source",
        "target"
      ]
    },
    "FlowCondition": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "A name for the condition that you can reference."
        },
        "expression": {
          "type": "string",
          "description": "Defines the condition. You must refer to at least one of the inputs in the condition. For more information, expand the Condition node section in Node types in prompt flows."
        }
      },
      "required": [
        "name"
      ]
    },
    "FlowConditionalConnectionConfiguration": {
      "type": "object",
      "properties": {
        "condition": {
          "type": "string",
          "description": "The condition that triggers this connection. For more information about how to write conditions, see the Condition node type in the Node types topic in the Amazon Bedrock User Guide."
        }
      },
      "required": [
        "condition"
      ]
    },
    "FlowConnection": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Data",
            "Conditional"
          ],
          "description": "Whether the source node that the connection begins from is a condition node (Conditional) or not (Data)."
        },
        "name": {
          "type": "string",
          "description": "A name for the connection that you can reference."
        },
        "source": {
          "type": "string",
          "description": "The node that the connection starts at."
        },
        "target": {
          "type": "string",
          "description": "The node that the connection ends at."
        },
        "configuration": {
          "$ref": "#/$defs/FlowConnectionConfiguration"
        }
      },
      "required": [
        "type",
        "name",
        "source",
        "target"
      ]
    },
    "FlowConnectionConfiguration": {
      "type": "object",
      "properties": {
        "data": {
          "$ref": "#/$defs/FlowDataConnectionConfiguration"
        },
        "conditional": {
          "$ref": "#/$defs/FlowConditionalConnectionConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "FlowDataConnectionConfiguration": {
      "type": "object",
      "properties": {
        "sourceOutput": {
          "type": "string",
          "description": "The name of the output in the source node that the connection begins from."
        },
        "targetInput": {
          "type": "string",
          "description": "The name of the input in the target node that the connection ends at."
        }
      },
      "required": [
        "sourceOutput",
        "targetInput"
      ]
    },
    "FlowDefinition": {
      "type": "object",
      "properties": {
        "nodes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowNode"
          },
          "description": "An array of node definitions in the flow."
        },
        "connections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowConnection"
          },
          "description": "An array of connection definitions in the flow."
        }
      }
    },
    "FlowNode": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "A name for the node."
        },
        "type": {
          "type": "string",
          "enum": [
            "Input",
            "Output",
            "KnowledgeBase",
            "Condition",
            "Lex",
            "Prompt",
            "LambdaFunction",
            "Storage",
            "Agent",
            "Retrieval",
            "Iterator",
            "Collector",
            "InlineCode",
            "Loop",
            "LoopInput",
            "LoopController"
          ],
          "description": "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": {
          "$ref": "#/$defs/FlowNodeConfiguration"
        },
        "inputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowNodeInput"
          },
          "description": "An array of objects, each of which contains information about an input into the node."
        },
        "outputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowNodeOutput"
          },
          "description": "A list of objects, each of which contains information about an output from the node."
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "FlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "input": {
          "$ref": "#/$defs/InputFlowNodeConfiguration"
        },
        "output": {
          "$ref": "#/$defs/OutputFlowNodeConfiguration"
        },
        "knowledgeBase": {
          "$ref": "#/$defs/KnowledgeBaseFlowNodeConfiguration"
        },
        "condition": {
          "$ref": "#/$defs/ConditionFlowNodeConfiguration"
        },
        "lex": {
          "$ref": "#/$defs/LexFlowNodeConfiguration"
        },
        "prompt": {
          "$ref": "#/$defs/PromptFlowNodeConfiguration"
        },
        "lambdaFunction": {
          "$ref": "#/$defs/LambdaFunctionFlowNodeConfiguration"
        },
        "storage": {
          "$ref": "#/$defs/StorageFlowNodeConfiguration"
        },
        "agent": {
          "$ref": "#/$defs/AgentFlowNodeConfiguration"
        },
        "retrieval": {
          "$ref": "#/$defs/RetrievalFlowNodeConfiguration"
        },
        "iterator": {
          "$ref": "#/$defs/IteratorFlowNodeConfiguration"
        },
        "collector": {
          "$ref": "#/$defs/CollectorFlowNodeConfiguration"
        },
        "inlineCode": {
          "$ref": "#/$defs/InlineCodeFlowNodeConfiguration"
        },
        "loop": {
          "$ref": "#/$defs/LoopFlowNodeConfiguration"
        },
        "loopInput": {
          "$ref": "#/$defs/LoopInputFlowNodeConfiguration"
        },
        "loopController": {
          "$ref": "#/$defs/LoopControllerFlowNodeConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "FlowNodeInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Specifies a name for the input that you can reference."
        },
        "type": {
          "type": "string",
          "enum": [
            "String",
            "Number",
            "Boolean",
            "Object",
            "Array"
          ],
          "description": "Specifies the data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown."
        },
        "expression": {
          "type": "string",
          "description": "An expression that formats the input for the node. For an explanation of how to create expressions, see Expressions in Prompt flows in Amazon Bedrock."
        },
        "category": {
          "type": "string",
          "enum": [
            "LoopCondition",
            "ReturnValueToLoopStart",
            "ExitLoop"
          ],
          "description": "Specifies how input data flows between iterations in a DoWhile loop. LoopCondition - Controls whether the loop continues by evaluating condition expressions against the input data. Use this category to define the condition that determines if the loop should continue. ReturnValueToLoopStart - Defines data to pass back to the start of the loop's next iteration. Use this category for variables that you want to update for each loop iteration. ExitLoop - Defines the value that's available once the loop ends. Use this category to expose loop results to nodes outside the loop."
        }
      },
      "required": [
        "name",
        "type",
        "expression"
      ]
    },
    "FlowNodeOutput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "A name for the output that you can reference."
        },
        "type": {
          "type": "string",
          "enum": [
            "String",
            "Number",
            "Boolean",
            "Object",
            "Array"
          ],
          "description": "The data type of the output. If the output doesn't match this type at runtime, a validation error will be thrown."
        }
      },
      "required": [
        "name",
        "type"
      ]
    },
    "FlowValidation": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "A message describing the validation error."
        },
        "severity": {
          "type": "string",
          "enum": [
            "Warning",
            "Error"
          ],
          "description": "The severity of the issue described in the message."
        },
        "details": {
          "$ref": "#/$defs/FlowValidationDetails"
        },
        "type": {
          "type": "string",
          "enum": [
            "CyclicConnection",
            "DuplicateConnections",
            "DuplicateConditionExpression",
            "UnreachableNode",
            "UnknownConnectionSource",
            "UnknownConnectionSourceOutput",
            "UnknownConnectionTarget",
            "UnknownConnectionTargetInput",
            "UnknownConnectionCondition",
            "MalformedConditionExpression",
            "MalformedNodeInputExpression",
            "MismatchedNodeInputType",
            "MismatchedNodeOutputType",
            "IncompatibleConnectionDataType",
            "MissingConnectionConfiguration",
            "MissingDefaultCondition",
            "MissingEndingNodes",
            "MissingNodeConfiguration",
            "MissingNodeInput",
            "MissingNodeOutput",
            "MissingStartingNodes",
            "MultipleNodeInputConnections",
            "UnfulfilledNodeInput",
            "UnsatisfiedConnectionConditions",
            "Unspecified",
            "UnknownNodeInput",
            "UnknownNodeOutput",
            "MissingLoopInputNode",
            "MissingLoopControllerNode",
            "MultipleLoopInputNodes",
            "MultipleLoopControllerNodes",
            "LoopIncompatibleNodeType",
            "InvalidLoopBoundary"
          ],
          "description": "The type of validation issue encountered in the flow."
        }
      },
      "required": [
        "message",
        "severity"
      ]
    },
    "FlowValidationDetails": {
      "type": "object",
      "properties": {
        "cyclicConnection": {
          "$ref": "#/$defs/CyclicConnectionFlowValidationDetails"
        },
        "duplicateConnections": {
          "$ref": "#/$defs/DuplicateConnectionsFlowValidationDetails"
        },
        "duplicateConditionExpression": {
          "$ref": "#/$defs/DuplicateConditionExpressionFlowValidationDetails"
        },
        "unreachableNode": {
          "$ref": "#/$defs/UnreachableNodeFlowValidationDetails"
        },
        "unknownConnectionSource": {
          "$ref": "#/$defs/UnknownConnectionSourceFlowValidationDetails"
        },
        "unknownConnectionSourceOutput": {
          "$ref": "#/$defs/UnknownConnectionSourceOutputFlowValidationDetails"
        },
        "unknownConnectionTarget": {
          "$ref": "#/$defs/UnknownConnectionTargetFlowValidationDetails"
        },
        "unknownConnectionTargetInput": {
          "$ref": "#/$defs/UnknownConnectionTargetInputFlowValidationDetails"
        },
        "unknownConnectionCondition": {
          "$ref": "#/$defs/UnknownConnectionConditionFlowValidationDetails"
        },
        "malformedConditionExpression": {
          "$ref": "#/$defs/MalformedConditionExpressionFlowValidationDetails"
        },
        "malformedNodeInputExpression": {
          "$ref": "#/$defs/MalformedNodeInputExpressionFlowValidationDetails"
        },
        "mismatchedNodeInputType": {
          "$ref": "#/$defs/MismatchedNodeInputTypeFlowValidationDetails"
        },
        "mismatchedNodeOutputType": {
          "$ref": "#/$defs/MismatchedNodeOutputTypeFlowValidationDetails"
        },
        "incompatibleConnectionDataType": {
          "$ref": "#/$defs/IncompatibleConnectionDataTypeFlowValidationDetails"
        },
        "missingConnectionConfiguration": {
          "$ref": "#/$defs/MissingConnectionConfigurationFlowValidationDetails"
        },
        "missingDefaultCondition": {
          "$ref": "#/$defs/MissingDefaultConditionFlowValidationDetails"
        },
        "missingEndingNodes": {
          "$ref": "#/$defs/MissingEndingNodesFlowValidationDetails"
        },
        "missingNodeConfiguration": {
          "$ref": "#/$defs/MissingNodeConfigurationFlowValidationDetails"
        },
        "missingNodeInput": {
          "$ref": "#/$defs/MissingNodeInputFlowValidationDetails"
        },
        "missingNodeOutput": {
          "$ref": "#/$defs/MissingNodeOutputFlowValidationDetails"
        },
        "missingStartingNodes": {
          "$ref": "#/$defs/MissingStartingNodesFlowValidationDetails"
        },
        "multipleNodeInputConnections": {
          "$ref": "#/$defs/MultipleNodeInputConnectionsFlowValidationDetails"
        },
        "unfulfilledNodeInput": {
          "$ref": "#/$defs/UnfulfilledNodeInputFlowValidationDetails"
        },
        "unsatisfiedConnectionConditions": {
          "$ref": "#/$defs/UnsatisfiedConnectionConditionsFlowValidationDetails"
        },
        "unspecified": {
          "$ref": "#/$defs/UnspecifiedFlowValidationDetails"
        },
        "unknownNodeInput": {
          "$ref": "#/$defs/UnknownNodeInputFlowValidationDetails"
        },
        "unknownNodeOutput": {
          "$ref": "#/$defs/UnknownNodeOutputFlowValidationDetails"
        },
        "missingLoopInputNode": {
          "$ref": "#/$defs/MissingLoopInputNodeFlowValidationDetails"
        },
        "missingLoopControllerNode": {
          "$ref": "#/$defs/MissingLoopControllerNodeFlowValidationDetails"
        },
        "multipleLoopInputNodes": {
          "$ref": "#/$defs/MultipleLoopInputNodesFlowValidationDetails"
        },
        "multipleLoopControllerNodes": {
          "$ref": "#/$defs/MultipleLoopControllerNodesFlowValidationDetails"
        },
        "loopIncompatibleNodeType": {
          "$ref": "#/$defs/LoopIncompatibleNodeTypeFlowValidationDetails"
        },
        "invalidLoopBoundary": {
          "$ref": "#/$defs/InvalidLoopBoundaryFlowValidationDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "IncompatibleConnectionDataTypeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with incompatible data types."
        }
      },
      "required": [
        "connection"
      ]
    },
    "InlineCodeFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The code that's executed in your inline code node. The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow. The code must be valid in the programming language that you specify."
        },
        "language": {
          "type": "string",
          "enum": [
            "Python_3"
          ],
          "description": "The programming language used by your inline code node. The code must be valid in the programming language that you specify. Currently, only Python 3 (Python_3) is supported."
        }
      },
      "required": [
        "code",
        "language"
      ]
    },
    "InputFlowNodeConfiguration": {
      "type": "object",
      "properties": {}
    },
    "InvalidLoopBoundaryFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection that violates loop boundary rules."
        },
        "source": {
          "type": "string",
          "description": "The source node of the connection that violates DoWhile loop boundary rules."
        },
        "target": {
          "type": "string",
          "description": "The target node of the connection that violates DoWhile loop boundary rules."
        }
      },
      "required": [
        "connection",
        "source",
        "target"
      ]
    },
    "IteratorFlowNodeConfiguration": {
      "type": "object",
      "properties": {}
    },
    "KnowledgeBaseFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "knowledgeBaseId": {
          "type": "string",
          "description": "The unique identifier of the knowledge base to query."
        },
        "modelId": {
          "type": "string",
          "description": "The unique identifier of the model or inference profile to use to generate a response from the query results. Omit this field if you want to return the retrieved results as an array."
        },
        "guardrailConfiguration": {
          "$ref": "#/$defs/BedrockAgentGuardrailConfiguration"
        },
        "numberOfResults": {
          "type": "integer",
          "description": "The number of results to retrieve from the knowledge base."
        },
        "promptTemplate": {
          "$ref": "#/$defs/KnowledgeBasePromptTemplate"
        },
        "inferenceConfiguration": {
          "$ref": "#/$defs/PromptInferenceConfiguration"
        },
        "rerankingConfiguration": {
          "$ref": "#/$defs/BedrockAgentVectorSearchRerankingConfiguration"
        },
        "orchestrationConfiguration": {
          "$ref": "#/$defs/KnowledgeBaseOrchestrationConfiguration"
        }
      },
      "required": [
        "knowledgeBaseId"
      ]
    },
    "KnowledgeBaseOrchestrationConfiguration": {
      "type": "object",
      "properties": {
        "promptTemplate": {
          "$ref": "#/$defs/KnowledgeBasePromptTemplate"
        },
        "inferenceConfig": {
          "$ref": "#/$defs/PromptInferenceConfiguration"
        },
        "additionalModelRequestFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "description": "The additional model-specific request parameters as key-value pairs to be included in the request to the foundation model."
        },
        "performanceConfig": {
          "$ref": "#/$defs/BedrockAgentPerformanceConfiguration"
        }
      }
    },
    "KnowledgeBasePromptTemplate": {
      "type": "object",
      "properties": {
        "textPromptTemplate": {
          "type": "string",
          "description": "The text of the prompt template."
        }
      }
    },
    "LambdaFunctionFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "lambdaArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function to invoke."
        }
      },
      "required": [
        "lambdaArn"
      ]
    },
    "LexFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "botAliasArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke."
        },
        "localeId": {
          "type": "string",
          "description": "The Region to invoke the Amazon Lex bot in."
        }
      },
      "required": [
        "botAliasArn",
        "localeId"
      ]
    },
    "LoopControllerFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "continueCondition": {
          "$ref": "#/$defs/FlowCondition"
        },
        "maxIterations": {
          "type": "integer",
          "description": "Specifies the maximum number of times the DoWhile loop can iterate before the flow exits the loop."
        }
      },
      "required": [
        "continueCondition"
      ]
    },
    "LoopFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "definition": {
          "$ref": "#/$defs/FlowDefinition"
        }
      },
      "required": [
        "definition"
      ]
    },
    "LoopIncompatibleNodeTypeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The Loop container node that contains an incompatible node."
        },
        "incompatibleNodeType": {
          "type": "string",
          "enum": [
            "Input",
            "Condition",
            "Iterator",
            "Collector"
          ],
          "description": "The node type of the incompatible node in the DoWhile loop. Some node types, like a condition node, aren't allowed in a DoWhile loop."
        },
        "incompatibleNodeName": {
          "type": "string",
          "description": "The node that's incompatible in the DoWhile loop."
        }
      },
      "required": [
        "node",
        "incompatibleNodeType",
        "incompatibleNodeName"
      ]
    },
    "LoopInputFlowNodeConfiguration": {
      "type": "object",
      "properties": {}
    },
    "MalformedConditionExpressionFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the malformed condition expression."
        },
        "condition": {
          "type": "string",
          "description": "The name of the malformed condition."
        },
        "cause": {
          "type": "string",
          "description": "The error message describing why the condition expression is malformed."
        }
      },
      "required": [
        "node",
        "condition",
        "cause"
      ]
    },
    "MalformedNodeInputExpressionFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the malformed input expression."
        },
        "input": {
          "type": "string",
          "description": "The name of the input with the malformed expression."
        },
        "cause": {
          "type": "string",
          "description": "The error message describing why the input expression is malformed."
        }
      },
      "required": [
        "node",
        "input",
        "cause"
      ]
    },
    "MismatchedNodeInputTypeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the input with the mismatched data type."
        },
        "input": {
          "type": "string",
          "description": "The name of the input with the mismatched data type."
        },
        "expectedType": {
          "type": "string",
          "enum": [
            "String",
            "Number",
            "Boolean",
            "Object",
            "Array"
          ],
          "description": "The expected data type for the node input."
        }
      },
      "required": [
        "node",
        "input",
        "expectedType"
      ]
    },
    "MismatchedNodeOutputTypeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the output with the mismatched data type."
        },
        "output": {
          "type": "string",
          "description": "The name of the output with the mismatched data type."
        },
        "expectedType": {
          "type": "string",
          "enum": [
            "String",
            "Number",
            "Boolean",
            "Object",
            "Array"
          ],
          "description": "The expected data type for the node output."
        }
      },
      "required": [
        "node",
        "output",
        "expectedType"
      ]
    },
    "MissingConnectionConfigurationFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection missing configuration."
        }
      },
      "required": [
        "connection"
      ]
    },
    "MissingDefaultConditionFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node missing the default condition."
        }
      },
      "required": [
        "node"
      ]
    },
    "MissingEndingNodesFlowValidationDetails": {
      "type": "object",
      "properties": {}
    },
    "MissingLoopControllerNodeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "loopNode": {
          "type": "string",
          "description": "The DoWhile loop in a flow that's missing a required LoopController node."
        }
      },
      "required": [
        "loopNode"
      ]
    },
    "MissingLoopInputNodeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "loopNode": {
          "type": "string",
          "description": "The DoWhile loop in a flow that's missing a required LoopInput node."
        }
      },
      "required": [
        "loopNode"
      ]
    },
    "MissingNodeConfigurationFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node missing a required configuration."
        }
      },
      "required": [
        "node"
      ]
    },
    "MissingNodeInputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node missing the required input."
        },
        "input": {
          "type": "string",
          "description": "The name of the missing input."
        }
      },
      "required": [
        "node",
        "input"
      ]
    },
    "MissingNodeOutputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node missing the required output."
        },
        "output": {
          "type": "string",
          "description": "The name of the missing output."
        }
      },
      "required": [
        "node",
        "output"
      ]
    },
    "MissingStartingNodesFlowValidationDetails": {
      "type": "object",
      "properties": {}
    },
    "MultipleLoopControllerNodesFlowValidationDetails": {
      "type": "object",
      "properties": {
        "loopNode": {
          "type": "string",
          "description": "The DoWhile loop in a flow that contains multiple LoopController nodes."
        }
      },
      "required": [
        "loopNode"
      ]
    },
    "MultipleLoopInputNodesFlowValidationDetails": {
      "type": "object",
      "properties": {
        "loopNode": {
          "type": "string",
          "description": "The DoWhile loop in a flow that contains multiple LoopInput nodes."
        }
      },
      "required": [
        "loopNode"
      ]
    },
    "MultipleNodeInputConnectionsFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the input with multiple connections."
        },
        "input": {
          "type": "string",
          "description": "The name of the input with multiple connections to it."
        }
      },
      "required": [
        "node",
        "input"
      ]
    },
    "OutputFlowNodeConfiguration": {
      "type": "object",
      "properties": {}
    },
    "PromptFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "sourceConfiguration": {
          "$ref": "#/$defs/PromptFlowNodeSourceConfiguration"
        },
        "guardrailConfiguration": {
          "$ref": "#/$defs/BedrockAgentGuardrailConfiguration"
        }
      },
      "required": [
        "sourceConfiguration"
      ]
    },
    "PromptFlowNodeInlineConfiguration": {
      "type": "object",
      "properties": {
        "templateType": {
          "type": "string",
          "enum": [
            "TEXT",
            "CHAT"
          ],
          "description": "The type of prompt template."
        },
        "templateConfiguration": {
          "$ref": "#/$defs/PromptTemplateConfiguration"
        },
        "modelId": {
          "type": "string",
          "description": "The unique identifier of the model or inference profile to run inference with."
        },
        "inferenceConfiguration": {
          "$ref": "#/$defs/PromptInferenceConfiguration"
        },
        "additionalModelRequestFields": {
          "type": "object",
          "description": "Additional fields to be included in the model request for the Prompt node."
        }
      },
      "required": [
        "templateType",
        "templateConfiguration",
        "modelId"
      ]
    },
    "PromptFlowNodeResourceConfiguration": {
      "type": "object",
      "properties": {
        "promptArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the prompt from Prompt management."
        }
      },
      "required": [
        "promptArn"
      ]
    },
    "PromptFlowNodeSourceConfiguration": {
      "type": "object",
      "properties": {
        "resource": {
          "$ref": "#/$defs/PromptFlowNodeResourceConfiguration"
        },
        "inline": {
          "$ref": "#/$defs/PromptFlowNodeInlineConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "PromptInferenceConfiguration": {
      "type": "object",
      "properties": {
        "text": {
          "$ref": "#/$defs/PromptModelInferenceConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "PromptInputVariable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the variable."
        }
      }
    },
    "PromptModelInferenceConfiguration": {
      "type": "object",
      "properties": {
        "temperature": {
          "type": "number",
          "description": "Controls the randomness of the response. Choose a lower value for more predictable outputs and a higher value for more surprising outputs."
        },
        "topP": {
          "type": "number",
          "description": "The percentage of most-likely candidates that the model considers for the next token."
        },
        "maxTokens": {
          "type": "integer",
          "description": "The maximum number of tokens to return in the response."
        },
        "stopSequences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of strings that define sequences after which the model will stop generating."
        }
      }
    },
    "PromptTemplateConfiguration": {
      "type": "object",
      "properties": {
        "text": {
          "$ref": "#/$defs/TextPromptTemplateConfiguration"
        },
        "chat": {
          "$ref": "#/$defs/ChatPromptTemplateConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "RetrievalFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "serviceConfiguration": {
          "$ref": "#/$defs/RetrievalFlowNodeServiceConfiguration"
        }
      },
      "required": [
        "serviceConfiguration"
      ]
    },
    "RetrievalFlowNodeS3Configuration": {
      "type": "object",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The name of the Amazon S3 bucket from which to retrieve data."
        }
      },
      "required": [
        "bucketName"
      ]
    },
    "RetrievalFlowNodeServiceConfiguration": {
      "type": "object",
      "properties": {
        "s3": {
          "$ref": "#/$defs/RetrievalFlowNodeS3Configuration"
        }
      },
      "description": "Exactly one member is set."
    },
    "SpecificToolChoice": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the tool that the model must request."
        }
      },
      "required": [
        "name"
      ]
    },
    "StorageFlowNodeConfiguration": {
      "type": "object",
      "properties": {
        "serviceConfiguration": {
          "$ref": "#/$defs/StorageFlowNodeServiceConfiguration"
        }
      },
      "required": [
        "serviceConfiguration"
      ]
    },
    "StorageFlowNodeS3Configuration": {
      "type": "object",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The name of the Amazon S3 bucket in which to store the input into the node."
        }
      },
      "required": [
        "bucketName"
      ]
    },
    "StorageFlowNodeServiceConfiguration": {
      "type": "object",
      "properties": {
        "s3": {
          "$ref": "#/$defs/StorageFlowNodeS3Configuration"
        }
      },
      "description": "Exactly one member is set."
    },
    "TextPromptTemplateConfiguration": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The message for the prompt."
        },
        "cachePoint": {
          "$ref": "#/$defs/BedrockAgentCachePointBlock"
        },
        "inputVariables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PromptInputVariable"
          },
          "description": "An array of the variables in the prompt template."
        }
      },
      "required": [
        "text"
      ]
    },
    "ToolChoice": {
      "type": "object",
      "properties": {
        "auto": {
          "$ref": "#/$defs/AutoToolChoice"
        },
        "any": {
          "$ref": "#/$defs/AnyToolChoice"
        },
        "tool": {
          "$ref": "#/$defs/SpecificToolChoice"
        }
      },
      "description": "Exactly one member is set."
    },
    "UnfulfilledNodeInputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node containing the unfulfilled input."
        },
        "input": {
          "type": "string",
          "description": "The name of the unfulfilled input. An input is unfulfilled if there are no data connections to it."
        }
      },
      "required": [
        "node",
        "input"
      ]
    },
    "UnknownConnectionConditionFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with the unknown condition."
        }
      },
      "required": [
        "connection"
      ]
    },
    "UnknownConnectionSourceFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with the unknown source."
        }
      },
      "required": [
        "connection"
      ]
    },
    "UnknownConnectionSourceOutputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with the unknown source output."
        }
      },
      "required": [
        "connection"
      ]
    },
    "UnknownConnectionTargetFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with the unknown target."
        }
      },
      "required": [
        "connection"
      ]
    },
    "UnknownConnectionTargetInputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with the unknown target input."
        }
      },
      "required": [
        "connection"
      ]
    },
    "UnknownNodeInputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the unknown input."
        },
        "input": {
          "type": "string",
          "description": "The name of the node with the unknown input."
        }
      },
      "required": [
        "node",
        "input"
      ]
    },
    "UnknownNodeOutputFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the node with the unknown output."
        },
        "output": {
          "type": "string",
          "description": "The name of the unknown output."
        }
      },
      "required": [
        "node",
        "output"
      ]
    },
    "UnreachableNodeFlowValidationDetails": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string",
          "description": "The name of the unreachable node."
        }
      },
      "required": [
        "node"
      ]
    },
    "UnsatisfiedConnectionConditionsFlowValidationDetails": {
      "type": "object",
      "properties": {
        "connection": {
          "type": "string",
          "description": "The name of the connection with unsatisfied conditions."
        }
      },
      "required": [
        "connection"
      ]
    },
    "UnspecifiedFlowValidationDetails": {
      "type": "object",
      "properties": {}
    }
  }
}