{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-kafka-topic-update-v3-schema.json",
  "title": "KafkaTopicUpdateV3",
  "description": "A listable data source of all non-default topic configs and partition count within a Kafka topic",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instaclustr-apache-kafka-topic-v3-api-openapi.yml#/components/schemas/KafkaTopicUpdateV3",
  "required": [
    "configs"
  ],
  "type": "object",
  "properties": {
    "partitions": {
      "type": "integer",
      "description": "Topic partition count"
    },
    "configs": {
      "type": "array",
      "description": "List of Kafka topic configs which have non-default values. These could be set by terraform or other methods like kafka cli etc.",
      "items": {
        "$ref": "#/$defs/KafkaTopicConfigV2"
      },
      "x-terraform-ignore-order": true
    }
  },
  "$defs": {
    "KafkaTopicConfigV2": {
      "required": [
        "key",
        "value"
      ],
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Kafka Topic config value"
        },
        "key": {
          "type": "string",
          "description": "Kafka Topic config key"
        }
      },
      "description": "Definition of a Kafka Topic Config to be applied to a Kafka topic of a cluster"
    }
  }
}