{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-opensearchserverless-collection.json",
  "title": "AWSOpenSearchServerlessCollectionProperties",
  "description": "Amazon OpenSearchServerless collection resource. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-opensearchserverless-collection.json",
    "sourceSha256": "2f8b3b6d496067bc11c956795c00f76fc9865a2c70d2c89513c87a8a90a08a75"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the collection"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 32,
          "minLength": 3,
          "pattern": "^[a-z][a-z0-9-]{2,31}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the collection.\n\nThe name must meet the following criteria:\nUnique to your account and AWS Region\nStarts with a lowercase letter\nContains only lowercase letters a-z, the numbers 0-9 and the hyphen (-)\nContains between 3 and 32 characters\n"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "maxItems": 50,
      "minItems": 0,
      "insertionOrder": false,
      "description": "List of tags to be added to the resource"
    },
    "Type": {
      "$ref": "#/$defs/CollectionType"
    }
  },
  "typeName": "AWS::OpenSearchServerless::Collection",
  "$defs": {
    "Tag": {
      "type": "object",
      "description": "A key-value pair metadata associated with resource",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key in the key-value pair"
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256,
              "minLength": 0
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value in the key-value pair"
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSOpenSearchServerlessCollectionTagDefinition",
      "additionalProperties": false
    },
    "CollectionType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "SEARCH",
            "TIMESERIES"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The possible types for the collection",
      "title": "AWSOpenSearchServerlessCollectionCollectionTypeDefinition"
    }
  },
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": false,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "additionalProperties": false,
  "additionalIdentifiers": [
    [
      "/properties/Name"
    ],
    [
      "/properties/Arn"
    ]
  ],
  "required": [
    "Name"
  ],
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/Arn",
    "/properties/CollectionEndpoint",
    "/properties/DashboardEndpoint"
  ],
  "writeOnlyProperties": [
    "/properties/Tags"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Tags",
    "/properties/Type"
  ],
  "primaryIdentifier": [
    "/properties/Id"
  ]
}
