{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-create-collection-request-schema.json",
  "title": "CreateCollectionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-collection-api-openapi.yml#/components/schemas/CreateCollectionRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the collection."
    },
    "type": {
      "type": "string",
      "description": "The type of collection."
    },
    "description": {
      "type": "string",
      "description": "Description of the collection."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AossTag"
      },
      "description": "An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection."
    },
    "standbyReplicas": {
      "type": "string",
      "description": "Indicates whether standby replicas should be used for a collection."
    },
    "vectorOptions": {
      "$ref": "#/$defs/VectorOptions"
    },
    "collectionGroupName": {
      "type": "string",
      "description": "The name of the collection group to associate with the collection."
    },
    "encryptionConfig": {
      "$ref": "#/$defs/EncryptionConfig"
    },
    "deletionProtection": {
      "type": "string",
      "description": "Indicates whether to enable deletion protection for the collection. When set to ENABLED, the collection cannot be deleted."
    },
    "clientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier to ensure idempotency of the request."
    }
  },
  "required": [
    "name"
  ],
  "$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"
      ]
    },
    "EncryptionConfig": {
      "type": "object",
      "properties": {
        "aWSOwnedKey": {
          "type": "boolean",
          "description": "Indicates whether to use an Amazon Web Services-owned key for encryption."
        },
        "kmsKeyArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services Key Management Service key used to encrypt the collection."
        }
      }
    },
    "VectorOptions": {
      "type": "object",
      "properties": {
        "ServerlessVectorAcceleration": {
          "type": "string",
          "description": "Specifies whether serverless vector acceleration is enabled for the collection."
        }
      },
      "required": [
        "ServerlessVectorAcceleration"
      ]
    }
  }
}