{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-update-index-request-schema.json",
  "title": "UpdateIndexRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-indices-api-openapi.yml#/components/schemas/UpdateIndexRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business application connected to the index."
    },
    "indexId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business index."
    },
    "displayName": {
      "type": "string",
      "description": "The name of the Amazon Q Business index."
    },
    "description": {
      "type": "string",
      "description": "The description of the Amazon Q Business index."
    },
    "capacityConfiguration": {
      "$ref": "#/$defs/IndexCapacityConfiguration"
    },
    "documentAttributeConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentAttributeConfiguration"
      },
      "description": "Configuration information for document metadata or fields. Document metadata are fields or attributes associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes."
    }
  },
  "required": [
    "applicationId",
    "indexId"
  ],
  "$defs": {
    "DocumentAttributeConfiguration": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the document attribute."
        },
        "type": {
          "type": "string",
          "enum": [
            "STRING",
            "STRING_LIST",
            "NUMBER",
            "DATE"
          ],
          "description": "The type of document attribute."
        },
        "search": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Information about whether the document attribute can be used by an end user to search for information on their web experience."
        }
      }
    },
    "IndexCapacityConfiguration": {
      "type": "object",
      "properties": {
        "units": {
          "type": "integer",
          "description": "The number of storage units configured for an Amazon Q Business index."
        }
      }
    }
  }
}