{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-flow-request-schema.json",
  "title": "CreateFlowRequest",
  "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/CreateFlowRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "A name for the flow."
    },
    "description": {
      "type": "string",
      "description": "A description for the flow."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the service role with permissions to create and manage a flow. For more information, see Create a service role for flows in Amazon Bedrock in the Amazon Bedrock User Guide."
    },
    "customerEncryptionKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key to encrypt the flow."
    },
    "definition": {
      "$ref": "#/$defs/FlowDefinition"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Any tags that you want to attach to the flow. For more information, see Tagging resources in Amazon Bedrock."
    }
  },
  "required": [
    "name",
    "executionRoleArn"
  ],
  "$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"
      ]
    },
    "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"
      ]
    },
    "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": {}
    },
    "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"
      ]
    },
    "LoopInputFlowNodeConfiguration": {
      "type": "object",
      "properties": {}
    },
    "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."
    }
  }
}