{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-get-index-response-schema.json",
  "title": "GetIndexResponse",
  "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/GetIndexResponse",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business application associated with 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."
    },
    "indexArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Q Business index."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "ACTIVE",
        "DELETING",
        "FAILED",
        "UPDATING"
      ],
      "description": "The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the ErrorMessage field contains a message that explains why."
    },
    "type": {
      "type": "string",
      "enum": [
        "ENTERPRISE",
        "STARTER"
      ],
      "description": "The type of index attached to your Amazon Q Business application."
    },
    "description": {
      "type": "string",
      "description": "The description for the Amazon Q Business index."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The Unix timestamp when the Amazon Q Business index was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The Unix timestamp when the Amazon Q Business index was last updated."
    },
    "capacityConfiguration": {
      "$ref": "#/$defs/IndexCapacityConfiguration"
    },
    "documentAttributeConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentAttributeConfiguration"
      },
      "description": "Configuration information for document attributes or metadata. Document metadata are fields associated with your documents. For example, the company department name associated with each document. For more information, see Understanding document attributes."
    },
    "error": {
      "$ref": "#/$defs/ErrorDetail"
    },
    "indexStatistics": {
      "$ref": "#/$defs/IndexStatistics"
    }
  },
  "$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."
        }
      }
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "errorMessage": {
          "type": "string",
          "description": "The message explaining the Amazon Q Business request error."
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "InternalError",
            "InvalidRequest",
            "ResourceInactive",
            "ResourceNotFound"
          ],
          "description": "The code associated with the Amazon Q Business request error."
        }
      }
    },
    "IndexCapacityConfiguration": {
      "type": "object",
      "properties": {
        "units": {
          "type": "integer",
          "description": "The number of storage units configured for an Amazon Q Business index."
        }
      }
    },
    "IndexStatistics": {
      "type": "object",
      "properties": {
        "textDocumentStatistics": {
          "$ref": "#/$defs/TextDocumentStatistics"
        }
      }
    },
    "TextDocumentStatistics": {
      "type": "object",
      "properties": {
        "indexedTextBytes": {
          "type": "integer",
          "description": "The total size, in bytes, of the indexed documents."
        },
        "indexedTextDocumentCount": {
          "type": "integer",
          "description": "The number of text documents indexed."
        }
      }
    }
  }
}