{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-create-collection-group-request-schema.json",
  "title": "CreateCollectionGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-collection-group-api-openapi.yml#/components/schemas/CreateCollectionGroupRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the collection group."
    },
    "standbyReplicas": {
      "type": "string",
      "description": "Indicates whether standby replicas should be used for a collection group."
    },
    "description": {
      "type": "string",
      "description": "A description of the collection group."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AossTag"
      },
      "description": "An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection group."
    },
    "capacityLimits": {
      "$ref": "#/$defs/CollectionGroupCapacityLimits"
    },
    "generation": {
      "type": "string",
      "description": "The generation of Amazon OpenSearch Serverless for the collection group. Valid values are CLASSIC and NEXTGEN."
    },
    "clientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier to ensure idempotency of the request."
    }
  },
  "required": [
    "name",
    "standbyReplicas"
  ],
  "$defs": {
    "AossTag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key to use in the tag."
        },
        "value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "CollectionGroupCapacityLimits": {
      "type": "object",
      "properties": {
        "maxIndexingCapacityInOCU": {
          "type": "number",
          "description": "The maximum indexing capacity for collections in the group."
        },
        "maxSearchCapacityInOCU": {
          "type": "number",
          "description": "The maximum search capacity for collections in the group."
        },
        "minIndexingCapacityInOCU": {
          "type": "number",
          "description": "The minimum indexing capacity for collections in the group."
        },
        "minSearchCapacityInOCU": {
          "type": "number",
          "description": "The minimum search capacity for collections in the group."
        }
      }
    }
  }
}