{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-kafka-connect-mirror-summaries-v2-schema.json",
  "title": "KafkaConnectMirrorSummariesV2",
  "description": "A listable data source of all Mirrors within a Kafka Connect Cluster.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instaclustr-apache-kafka-connect-mirror-v2-api-openapi.yml#/components/schemas/KafkaConnectMirrorSummariesV2",
  "type": "object",
  "properties": {
    "mirrors": {
      "type": "array",
      "description": "List of all mirrors in the cluster.",
      "items": {
        "$ref": "#/$defs/KafkaConnectMirrorSummaryV2"
      }
    },
    "clusterId": {
      "type": "string",
      "description": "ID of the kafka Connect cluster",
      "x-terraform-id": true
    }
  },
  "$defs": {
    "KafkaConnectExternalSourceClusterDetailsV2": {
      "required": [
        "sourceConnectionProperties"
      ],
      "type": "object",
      "properties": {
        "sourceConnectionProperties": {
          "type": "string",
          "description": "Kafka connection properties string used to connect to external kafka cluster",
          "x-terraform-force-new": true
        }
      },
      "description": ""
    },
    "KafkaConnectManagedSourceClusterDetailsV2": {
      "required": [
        "sourceKafkaClusterId",
        "usePrivateIps"
      ],
      "type": "object",
      "properties": {
        "usePrivateIps": {
          "type": "boolean",
          "description": "Whether or not to connect to source cluster's private IP addresses.",
          "x-terraform-force-new": true
        },
        "sourceKafkaClusterId": {
          "type": "string",
          "description": "Source kafka cluster id.",
          "x-terraform-force-new": true
        }
      },
      "description": ""
    },
    "KafkaConnectMirrorSourceClusterDetailsV2": {
      "required": [
        "alias"
      ],
      "type": "object",
      "properties": {
        "alias": {
          "type": "string",
          "description": "Alias to use for the source kafka cluster. This will be used to rename topics if renameMirroredTopics is turned on",
          "x-terraform-force-new": true
        },
        "externalCluster": {
          "maxItems": 1,
          "type": "array",
          "description": "Details to connect to a Non-Instaclustr managed cluster. Cannot be provided if targeting an Instaclustr managed cluster.",
          "items": {
            "$ref": "#/$defs/KafkaConnectExternalSourceClusterDetailsV2"
          },
          "x-terraform-force-new": true
        },
        "managedCluster": {
          "maxItems": 1,
          "type": "array",
          "description": "Details to connect to a Instaclustr managed cluster. Cannot be provided if targeting a non-Instaclustr managed cluster.",
          "items": {
            "$ref": "#/$defs/KafkaConnectManagedSourceClusterDetailsV2"
          },
          "x-terraform-force-new": true
        }
      },
      "description": "Details to connect to the source kafka cluster."
    },
    "KafkaConnectMirrorSummaryV2": {
      "title": "",
      "required": [
        "kafkaConnectClusterId",
        "maxTasks",
        "renameMirroredTopics",
        "sourceCluster",
        "targetLatency",
        "topicsRegex"
      ],
      "type": "object",
      "properties": {
        "targetLatency": {
          "type": "integer",
          "description": "The latency in milliseconds above which this mirror will be considered out of sync. It can not be less than 1000ms. The suggested initial latency is 30000ms  for connectors to be created."
        },
        "kafkaConnectClusterId": {
          "type": "string",
          "description": "ID of the kafka connect cluster",
          "x-terraform-force-new": true
        },
        "sourceCluster": {
          "maxItems": 1,
          "minItems": 1,
          "type": "array",
          "description": "Details to connect to the source kafka cluster",
          "items": {
            "$ref": "#/$defs/KafkaConnectMirrorSourceClusterDetailsV2"
          },
          "x-terraform-force-new": true
        },
        "maxTasks": {
          "type": "integer",
          "description": "Maximum number of tasks for Kafka Connect to use. Should be greater than 0.",
          "x-terraform-force-new": true
        },
        "renameMirroredTopics": {
          "type": "boolean",
          "description": "Whether to rename topics as they are mirrored, by prefixing the sourceCluster.alias to the topic name.",
          "x-terraform-force-new": true
        },
        "connectorName": {
          "type": "string",
          "description": "Name of the mirror connector. The value of this property has the form: [source-cluster].[target-cluster].[random-string]",
          "readOnly": true
        },
        "id": {
          "type": "string",
          "description": "ID of the mirror",
          "format": "uuid",
          "readOnly": true
        },
        "topicsRegex": {
          "type": "string",
          "description": "Regex to select which topics to mirror.",
          "x-terraform-force-new": true
        }
      },
      "description": "Summary of a Mirrors within a Kafka Connect Cluster. Root type for KafkaConnectMirrorV2"
    }
  }
}