{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-glue-schema.json",
  "title": "AWSGlueSchemaProperties",
  "description": "This resource represents a schema of Glue Schema Registry.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-glue.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-glue-schema.json",
    "sourceSha256": "b83ec18ea2bb5d488a7899d370c0c55063a5d58f71e573444017640bf50cf1db"
  },
  "type": "object",
  "properties": {
    "Registry": {
      "$ref": "#/$defs/Registry"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the schema."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A description of the schema. If description is not provided, there will not be any default value for this."
    },
    "DataFormat": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "AVRO",
            "JSON",
            "PROTOBUF"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Data format name to use for the schema. Accepted values: 'AVRO', 'JSON', 'PROTOBUF'"
    },
    "Compatibility": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "NONE",
            "DISABLED",
            "BACKWARD",
            "BACKWARD_ALL",
            "FORWARD",
            "FORWARD_ALL",
            "FULL",
            "FULL_ALL"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Compatibility setting for the schema."
    },
    "SchemaDefinition": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 170000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Definition for the initial schema version in plain-text."
    },
    "CheckpointVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "Tags": {
      "description": "List of tags to tag the schema",
      "type": "array",
      "minItems": 0,
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Glue::Schema",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-glue.git",
  "additionalProperties": false,
  "writeOnlyProperties": [
    "/properties/SchemaDefinition"
  ],
  "$defs": {
    "Registry": {
      "type": "object",
      "description": "Identifier for the registry which the schema is part of.",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the registry in which the schema will be created."
        },
        "Arn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "arn:aws(-(cn|us-gov|iso(-[bef])?))?:glue:.*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Amazon Resource Name for the Registry."
        }
      },
      "title": "AWSGlueSchemaRegistryDefinition",
      "additionalProperties": false
    },
    "SchemaVersion": {
      "type": "object",
      "description": "Specify checkpoint version for update. This is only required to update the Compatibility.",
      "properties": {
        "IsLatest": {
          "description": "Indicates if the latest version needs to be updated.",
          "type": "boolean"
        },
        "VersionNumber": {
          "description": "Indicates the version number in the schema to update.",
          "type": "integer",
          "minimum": 1,
          "maximum": 100000
        }
      },
      "title": "AWSGlueSchemaSchemaVersionDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A key to identify the tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Corresponding tag value for the key."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSGlueSchemaTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "DataFormat",
    "SchemaDefinition",
    "Compatibility"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/InitialSchemaVersionId"
  ],
  "createOnlyProperties": [
    "/properties/Registry",
    "/properties/Name",
    "/properties/DataFormat",
    "/properties/SchemaDefinition"
  ]
}
