{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-documentdb/json-schema/amazon-documentdb-create-global-cluster-result-schema.json",
  "title": "CreateGlobalClusterResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-documentdb-global-cluster-api-openapi.yml#/components/schemas/CreateGlobalClusterResult",
  "type": "object",
  "properties": {
    "GlobalCluster": {
      "$ref": "#/$defs/GlobalCluster"
    }
  },
  "$defs": {
    "FailoverState": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "pending",
            "failing-over",
            "cancelling"
          ],
          "description": "The current status of the global cluster. Possible values are as follows: pending – The service received a request to switch over or fail over the global cluster. The global cluster's primary cluster and the specified secondary cluster are being verified before the operation starts. failing-over – The chosen secondary cluster is being promoted to become the new primary cluster to fail over the global cluster. cancelling – The request to switch over or fail over the global cluster was cancelled and the primary cluster and the selected secondary cluster are returning to their previous states."
        },
        "FromDbClusterArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon DocumentDB cluster that is currently being demoted, and which is associated with this state."
        },
        "ToDbClusterArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon DocumentDB cluster that is currently being promoted, and which is associated with this state."
        },
        "IsDataLossAllowed": {
          "type": "boolean",
          "description": "Indicates whether the operation is a global switchover or a global failover. If data loss is allowed, then the operation is a global failover. Otherwise, it's a switchover."
        }
      }
    },
    "GlobalCluster": {
      "type": "object",
      "properties": {
        "GlobalClusterIdentifier": {
          "type": "string",
          "description": "Contains a user-supplied global cluster identifier. This identifier is the unique key that identifies a global cluster."
        },
        "GlobalClusterResourceId": {
          "type": "string",
          "description": "The Amazon Web Services RegionRegion-unique, immutable identifier for the global database cluster. This identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed."
        },
        "GlobalClusterArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) for the global cluster."
        },
        "Status": {
          "type": "string",
          "description": "Specifies the current state of this global cluster."
        },
        "Engine": {
          "type": "string",
          "description": "The Amazon DocumentDB database engine used by the global cluster."
        },
        "EngineVersion": {
          "type": "string",
          "description": "Indicates the database engine version."
        },
        "DatabaseName": {
          "type": "string",
          "description": "The default database name within the new global cluster."
        },
        "StorageEncrypted": {
          "type": "boolean",
          "description": "The storage encryption setting for the global cluster."
        },
        "DeletionProtection": {
          "type": "boolean",
          "description": "The deletion protection setting for the new global cluster."
        },
        "GlobalClusterMembers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GlobalClusterMember"
          },
          "description": "The list of cluster IDs for secondary clusters within the global cluster. Currently limited to one item."
        },
        "FailoverState": {
          "$ref": "#/$defs/FailoverState"
        },
        "TagList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "A list of global cluster tags."
        }
      }
    },
    "GlobalClusterMember": {
      "type": "object",
      "properties": {
        "DBClusterArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) for each Amazon DocumentDB cluster."
        },
        "Readers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Amazon DocumentDB global cluster."
        },
        "IsWriter": {
          "type": "boolean",
          "description": "Specifies whether the Amazon DocumentDB cluster is the primary cluster (that is, has read-write capability) for the Amazon DocumentDB global cluster with which it is associated."
        },
        "SynchronizationStatus": {
          "type": "string",
          "enum": [
            "connected",
            "pending-resync"
          ],
          "description": "The status of synchronization of each Amazon DocumentDB cluster in the global cluster."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with \"aws:\" or \"rds:\". The string can contain only the set of Unicode letters, digits, white space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\")."
        },
        "Value": {
          "type": "string",
          "description": "The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with \"aws:\" or \"rds:\". The string can contain only the set of Unicode letters, digits, white space, '_', '.', '/', '=', '+', '-' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\")."
        }
      }
    }
  }
}