{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-data-pipeline/json-schema/amazon-data-pipeline-query-objects-input-schema.json",
  "title": "QueryObjectsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-data-pipeline-operations-api-openapi.yml#/components/schemas/QueryObjectsInput",
  "type": "object",
  "properties": {
    "pipelineId": {
      "type": "string",
      "description": "The ID of the pipeline."
    },
    "query": {
      "$ref": "#/$defs/Query"
    },
    "sphere": {
      "type": "string",
      "description": "Indicates whether the query applies to components or instances. The possible values are: COMPONENT, INSTANCE, and ATTEMPT."
    },
    "marker": {
      "type": "string",
      "description": "The starting point for the results to be returned. For the first call, this value should be empty. As long as there are more results, continue to call QueryObjects with the marker value from the previous call to retrieve the next set of results."
    },
    "limit": {
      "type": "integer",
      "description": "The maximum number of object names that QueryObjects will return in a single call. The default value is 100."
    }
  },
  "required": [
    "pipelineId",
    "sphere"
  ],
  "$defs": {
    "Operator": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EQ",
            "REF_EQ",
            "LE",
            "GE",
            "BETWEEN"
          ],
          "description": "The logical operation to be performed: equal (EQ), equal reference (REF_EQ), less than or equal (LE), greater than or equal (GE), or between (BETWEEN). Equal reference (REF_EQ) can be used only with reference fields. The other comparison types can be used only with String fields. The comparison types you can use apply only to certain object fields, as detailed below. The comparison operators EQ and REF_EQ act on the following fields: name @sphere parent @componentParent @instanceParent @status @scheduledStartTime @scheduledEndTime @actualStartTime @actualEndTime The comparison operators GE, LE"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value that the actual field value will be compared with."
        }
      }
    },
    "Query": {
      "type": "object",
      "properties": {
        "selectors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Selector"
          },
          "description": "List of selectors that define the query. An object must satisfy all of the selectors to match the query."
        }
      }
    },
    "Selector": {
      "type": "object",
      "properties": {
        "fieldName": {
          "type": "string",
          "description": "The name of the field that the operator will be applied to. The field name is the \"key\" portion of the field definition in the pipeline definition syntax that is used by the AWS Data Pipeline API. If the field is not set on the object, the condition fails."
        },
        "operator": {
          "$ref": "#/$defs/Operator"
        }
      }
    }
  }
}