{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-start-flow-execution-request-schema.json",
  "title": "StartFlowExecutionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-executions-api-openapi.yml#/components/schemas/StartFlowExecutionRequest",
  "type": "object",
  "properties": {
    "flowIdentifier": {
      "type": "string",
      "description": "The unique identifier of the flow to execute."
    },
    "flowAliasIdentifier": {
      "type": "string",
      "description": "The unique identifier of the flow alias to use for the flow execution."
    },
    "flowExecutionName": {
      "type": "string",
      "description": "The unique name for the flow execution. If you don't provide one, a system-generated name is used."
    },
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FlowInput"
      },
      "description": "The input data required for the flow execution. This must match the input schema defined in the flow."
    },
    "modelPerformanceConfiguration": {
      "$ref": "#/$defs/ModelPerformanceConfiguration"
    }
  },
  "required": [
    "flowIdentifier",
    "flowAliasIdentifier",
    "inputs"
  ],
  "$defs": {
    "BedrockAgentRuntimePerformanceConfiguration": {
      "type": "object",
      "properties": {
        "latency": {
          "type": "string",
          "enum": [
            "standard",
            "optimized"
          ],
          "description": "To use a latency-optimized version of the model, set to optimized."
        }
      }
    },
    "FlowInput": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the flow input node that begins the prompt flow."
        },
        "nodeOutputName": {
          "type": "string",
          "description": "The name of the output from the flow input node that begins the prompt flow."
        },
        "content": {
          "$ref": "#/$defs/FlowInputContent"
        },
        "nodeInputName": {
          "type": "string",
          "description": "The name of the input from the flow input node."
        }
      },
      "required": [
        "nodeName",
        "content"
      ]
    },
    "FlowInputContent": {
      "type": "object",
      "properties": {
        "document": {
          "type": "object",
          "description": "The input to send to the prompt flow input node."
        }
      },
      "description": "Exactly one member is set."
    },
    "ModelPerformanceConfiguration": {
      "type": "object",
      "properties": {
        "performanceConfig": {
          "$ref": "#/$defs/BedrockAgentRuntimePerformanceConfiguration"
        }
      }
    }
  }
}