{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-rekognition-collection.json",
  "title": "AWSRekognitionCollectionProperties",
  "description": "The AWS::Rekognition::Collection type creates an Amazon Rekognition Collection. A collection is a logical grouping of information about detected faces which can later be referenced for searches on the group. Source:- <https://docs.aws.amazon.com/rekognition/latest/dg/collections.html>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-rekognition-collection.json",
    "sourceSha256": "fb6b339ab94921ec46bb1179348b3b10c212a24bdaf7f107dfccee1baa1fcafe"
  },
  "type": "object",
  "properties": {
    "CollectionId": {
      "$ref": "#/$defs/CollectionId"
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "minItems": 0,
      "maxItems": 200,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Rekognition::Collection",
  "primaryIdentifier": [
    "/properties/CollectionId"
  ],
  "sourceUrl": "https://docs.aws.amazon.com/rekognition/latest/dg/collections.html",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/CollectionId"
  ],
  "taggable": true,
  "$defs": {
    "Arn": {
      "oneOf": [
        {
          "$comment": "Use the `definitions` block to provide shared resource property schemas",
          "type": "string",
          "maxLength": 2048,
          "format": "(^arn:[a-z\\d-]+:rekognition:[a-z\\d-]+:\\d{12}:collection\\/([a-zA-Z0-9_.\\-]+){1,255})"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRekognitionCollectionArnDefinition"
    },
    "CollectionId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 255,
          "pattern": "^[a-zA-Z0-9_\\.\\-]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the collection",
      "title": "AWSRekognitionCollectionCollectionIdDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128,
              "pattern": "^(?!aws:)[a-zA-Z0-9+\\-=\\._\\:\\/@]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256,
              "pattern": "^[a-zA-Z0-9+\\-=\\._\\:\\/@]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSRekognitionCollectionTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "CollectionId"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ]
}
