{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-describe-domain-replication-response-schema.json",
  "title": "DescribeDomainReplicationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-replication-api-openapi.yml#/components/schemas/DescribeDomainReplicationResponse",
  "type": "object",
  "properties": {
    "DomainArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the domain described."
    },
    "Role": {
      "type": "string",
      "enum": [
        "PRIMARY",
        "SECONDARY"
      ],
      "description": "The domain's role in the arrangement, either PRIMARY or SECONDARY. Absent when the domain is not replicating."
    },
    "Peers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReplicationPeer"
      },
      "description": "The domains that this domain replicates with. Each entry carries the state of that one relationship. Empty when the domain is not replicating."
    }
  },
  "$defs": {
    "ReplicationPeer": {
      "type": "object",
      "properties": {
        "PeerDomainArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the peer domain."
        },
        "PeerRole": {
          "type": "string",
          "enum": [
            "PRIMARY",
            "SECONDARY"
          ],
          "description": "The peer's role in the relationship, either PRIMARY or SECONDARY."
        },
        "Status": {
          "type": "string",
          "enum": [
            "PENDING_SETUP",
            "ACTIVE",
            "SWITCHING_OVER",
            "FAILING_OVER",
            "PENDING_REMOVAL",
            "DETACHED",
            "EJECTED",
            "FAILED"
          ],
          "description": "The state of the relationship: PENDING_SETUP - replication is being established. ACTIVE - replication is running. SWITCHING_OVER - a planned promotion is in progress. FAILING_OVER - an unplanned promotion is in progress. PENDING_REMOVAL - replication is being stopped. DETACHED - the relationship has ended. EJECTED - a failover promoted the other domain. The former primary keeps the data it had when it was ejected and stays read-only until you remove the peer, or discard that data and pair again. FAILED - setup or teardown could not complete. You can still remove the relationship. A relationshi"
        },
        "StatusMessage": {
          "type": "string",
          "description": "An explanation of why the relationship is in its current state, when more detail is available."
        }
      }
    }
  }
}