{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-chime/json-schema/amazon-chime-list-channel-flows-response-schema.json",
  "title": "ListChannelFlowsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-chime-channel-flows-api-openapi.yml#/components/schemas/ListChannelFlowsResponse",
  "type": "object",
  "properties": {
    "ChannelFlows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChannelFlowSummary"
      },
      "description": "The information about each channel flow."
    },
    "NextToken": {
      "type": "string",
      "description": "The token passed by previous API calls until all requested channels are returned."
    }
  },
  "$defs": {
    "ChannelFlowSummary": {
      "type": "object",
      "properties": {
        "ChannelFlowArn": {
          "type": "string",
          "description": "The ARN of the channel flow."
        },
        "Name": {
          "type": "string",
          "description": "The name of the channel flow."
        },
        "Processors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Processor"
          },
          "description": "Information about the processor Lambda functions."
        }
      }
    },
    "LambdaConfiguration": {
      "type": "object",
      "properties": {
        "ResourceArn": {
          "type": "string",
          "description": "The ARN of the Lambda message processing function."
        },
        "InvocationType": {
          "type": "string",
          "enum": [
            "ASYNC"
          ],
          "description": "Controls how the Lambda function is invoked."
        }
      },
      "required": [
        "ResourceArn",
        "InvocationType"
      ]
    },
    "Processor": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the channel flow."
        },
        "Configuration": {
          "$ref": "#/$defs/ProcessorConfiguration"
        },
        "ExecutionOrder": {
          "type": "integer",
          "description": "The sequence in which processors run. If you have multiple processors in a channel flow, message processing goes through each processor in the sequence. The value determines the sequence. At this point, we support only 1 processor within a flow."
        },
        "FallbackAction": {
          "type": "string",
          "enum": [
            "CONTINUE",
            "ABORT"
          ],
          "description": "Determines whether to continue with message processing or stop it in cases where communication with a processor fails. If a processor has a fallback action of ABORT and communication with it fails, the processor sets the message status to FAILED and does not send the message to any recipients. Note that if the last processor in the channel flow sequence has a fallback action of CONTINUE and communication with the processor fails, then the message is considered processed and sent to recipients of the channel."
        }
      },
      "required": [
        "Name",
        "Configuration",
        "ExecutionOrder",
        "FallbackAction"
      ]
    },
    "ProcessorConfiguration": {
      "type": "object",
      "properties": {
        "Lambda": {
          "$ref": "#/$defs/LambdaConfiguration"
        }
      },
      "required": [
        "Lambda"
      ]
    }
  }
}