{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-batch/json-schema/aws-batch-list-jobs-by-consumable-resource-request-schema.json",
  "title": "ListJobsByConsumableResourceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-batch-operations-api-openapi.yml#/components/schemas/ListJobsByConsumableResourceRequest",
  "type": "object",
  "properties": {
    "consumableResource": {
      "type": "string",
      "description": "The name or ARN of the consumable resource."
    },
    "filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KeyValuesPair"
      },
      "description": "The filters to apply to the job list query. If used, only those jobs requiring the specified consumable resource (consumableResource) and that match the value of the filters are listed. The filter names and values can be: name: JOB_STATUS values: SUBMITTED | PENDING | RUNNABLE | STARTING | RUNNING | SUCCEEDED | FAILED name: JOB_NAME The values are case-insensitive matches for the job name. If a filter value ends with an asterisk (*), it matches any job name that begins with the string before the '*'."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results returned by ListJobsByConsumableResource in paginated output. When this parameter is used, ListJobsByConsumableResource only returns maxResults results in a single page and a nextToken response element. The remaining results of the initial request can be seen by sending another ListJobsByConsumableResource request with the returned nextToken value. This value can be between 1 and 100. If this parameter isn't used, then ListJobsByConsumableResource returns up to 100 results and a nextToken value if applicable."
    },
    "nextToken": {
      "type": "string",
      "description": "The nextToken value returned from a previous paginated ListJobsByConsumableResource request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. Treat this token as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes."
    }
  },
  "required": [
    "consumableResource"
  ],
  "$defs": {
    "KeyValuesPair": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the filter. Filter names are case sensitive."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The filter values."
        }
      }
    }
  }
}