{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-lex-botversion.json",
  "title": "AWSLexBotVersionProperties",
  "description": "A version is a numbered snapshot of your work that you can publish for use in different parts of your workflow, such as development, beta deployment, and production.. Source:- <https://docs.aws.amazon.com/lexv2/latest/dg/API_CreateBotVersion.html>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-lex-botversion.json",
    "sourceSha256": "03d877665712719dee2b1f91034566ac4972da2636018287914b73cc8ceee209"
  },
  "type": "object",
  "properties": {
    "BotId": {
      "$ref": "#/$defs/Id"
    },
    "Description": {
      "$ref": "#/$defs/Description"
    },
    "BotVersionLocaleSpecification": {
      "$ref": "#/$defs/BotVersionLocaleSpecificationList"
    }
  },
  "typeName": "AWS::Lex::BotVersion",
  "primaryIdentifier": [
    "/properties/BotId",
    "/properties/BotVersion"
  ],
  "sourceUrl": "https://docs.aws.amazon.com/lexv2/latest/dg/API_CreateBotVersion.html",
  "additionalProperties": false,
  "writeOnlyProperties": [
    "/properties/BotVersionLocaleSpecification"
  ],
  "taggable": false,
  "$defs": {
    "Id": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 10,
          "maxLength": 10,
          "pattern": "^[0-9a-zA-Z]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique ID of resource",
      "title": "AWSLexBotVersionIdDefinition"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A description of the version. Use the description to help identify the version in lists.",
      "title": "AWSLexBotVersionDescriptionDefinition"
    },
    "LocaleId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier of the language and locale that the bot will be used in.",
      "title": "AWSLexBotVersionLocaleIdDefinition"
    },
    "BotVersion": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 5,
          "pattern": "^(DRAFT|[0-9]+)$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The version of a bot.",
      "title": "AWSLexBotVersionBotVersionDefinition"
    },
    "BotVersionLocaleDetails": {
      "description": "The version of a bot used for a bot locale.",
      "type": "object",
      "properties": {
        "SourceBotVersion": {
          "$ref": "#/$defs/BotVersion"
        }
      },
      "required": [
        "SourceBotVersion"
      ],
      "title": "AWSLexBotVersionBotVersionLocaleDetailsDefinition",
      "additionalProperties": false
    },
    "BotVersionLocaleSpecification": {
      "type": "object",
      "properties": {
        "LocaleId": {
          "$ref": "#/$defs/LocaleId"
        },
        "BotVersionLocaleDetails": {
          "$ref": "#/$defs/BotVersionLocaleDetails"
        }
      },
      "required": [
        "LocaleId",
        "BotVersionLocaleDetails"
      ],
      "title": "AWSLexBotVersionBotVersionLocaleSpecificationDefinition",
      "additionalProperties": false
    },
    "BotVersionLocaleSpecificationList": {
      "description": "Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale.",
      "type": "array",
      "insertionOrder": false,
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/BotVersionLocaleSpecification"
      },
      "title": "AWSLexBotVersionBotVersionLocaleSpecificationListDefinition"
    }
  },
  "required": [
    "BotId",
    "BotVersionLocaleSpecification"
  ],
  "readOnlyProperties": [
    "/properties/BotVersion"
  ],
  "createOnlyProperties": [
    "/properties/BotId"
  ]
}
