{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-create-partition-index-request-schema.json",
  "title": "CreatePartitionIndexRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-glue-aws-glue-x-amz-target-awsglue-createpartitionindex-api-api-openapi.yml#/components/schemas/CreatePartitionIndexRequest",
  "type": "object",
  "properties": {
    "CatalogId": {
      "type": "string",
      "description": "The catalog ID where the table resides."
    },
    "DatabaseName": {
      "type": "string",
      "description": "Specifies the name of a database in which you want to create a partition index."
    },
    "TableName": {
      "type": "string",
      "description": "Specifies the name of a table in which you want to create a partition index."
    },
    "PartitionIndex": {
      "$ref": "#/$defs/PartitionIndex"
    }
  },
  "required": [
    "DatabaseName",
    "TableName",
    "PartitionIndex"
  ],
  "$defs": {
    "PartitionIndex": {
      "type": "object",
      "properties": {
        "Keys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The keys for the partition index."
        },
        "IndexName": {
          "type": "string",
          "description": "The name of the partition index."
        }
      },
      "required": [
        "Keys",
        "IndexName"
      ]
    }
  }
}