{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-index-request-schema.json",
  "title": "CreateIndexRequest",
  "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/CreateIndexRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business application using the index."
    },
    "displayName": {
      "type": "string",
      "description": "A name for the Amazon Q Business index."
    },
    "description": {
      "type": "string",
      "description": "A description for the Amazon Q Business index."
    },
    "type": {
      "type": "string",
      "enum": [
        "ENTERPRISE",
        "STARTER"
      ],
      "description": "The index type that's suitable for your needs. For more information on what's included in each type of index, see Amazon Q Business tiers."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of key-value pairs that identify or categorize the index. You can also use tags to help control access to the index. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @."
    },
    "capacityConfiguration": {
      "$ref": "#/$defs/IndexCapacityConfiguration"
    },
    "clientToken": {
      "type": "string",
      "description": "A token that you provide to identify the request to create an index. Multiple calls to the CreateIndex API with the same client token will create only one index."
    }
  },
  "required": [
    "applicationId",
    "displayName"
  ],
  "$defs": {
    "IndexCapacityConfiguration": {
      "type": "object",
      "properties": {
        "units": {
          "type": "integer",
          "description": "The number of storage units configured for an Amazon Q Business index."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key for the tag. Keys are not case sensitive and must be unique for the Amazon Q Business application or data source."
        },
        "value": {
          "type": "string",
          "description": "The value associated with the tag. The value may be an empty string but it can't be null."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}