{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-list-documents-request-schema.json",
  "title": "ListDocumentsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-documents-api-openapi.yml#/components/schemas/ListDocumentsRequest",
  "type": "object",
  "properties": {
    "DocumentFilterList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentFilter"
      },
      "description": "This data type is deprecated. Instead, use Filters."
    },
    "Filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentKeyValuesFilter"
      },
      "description": "One or more DocumentKeyValuesFilter objects. Use a filter to return a more specific list of results. For keys, you can specify one or more key-value pair tags that have been applied to a document. Other valid keys include Owner, Name, PlatformTypes, DocumentType, and TargetType. For example, to return documents you own use Key=Owner,Values=Self. To specify a custom key-value pair, use the format Key=tag:tagName,Values=valueName. This API operation only supports filtering documents by using a single tag key and one or more tag values. For example: Key=tag:tagName,Values=valueName1,valueName2"
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. (You received this token from a previous call.)"
    }
  },
  "$defs": {
    "DocumentFilter": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "Name",
            "Owner",
            "PlatformTypes",
            "DocumentType"
          ],
          "description": "The name of the filter."
        },
        "value": {
          "type": "string",
          "description": "The value of the filter."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "DocumentKeyValuesFilter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name of the filter key."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value for the filter key."
        }
      }
    }
  }
}