{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-wisdom-knowledgebase.json",
  "title": "AWSWisdomKnowledgeBaseProperties",
  "description": "Definition of AWS::Wisdom::KnowledgeBase Resource Type. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-wisdom-knowledgebase.json",
    "sourceSha256": "b8d31b0d3c9ca048c7b13a9d14953fb77a403d9d866811a2d2b443fac846ebcd"
  },
  "type": "object",
  "properties": {
    "Description": {
      "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"
        }
      ]
    },
    "KnowledgeBaseType": {
      "$ref": "#/$defs/KnowledgeBaseType"
    },
    "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"
        }
      ]
    },
    "RenderingConfiguration": {
      "$ref": "#/$defs/RenderingConfiguration"
    },
    "ServerSideEncryptionConfiguration": {
      "$ref": "#/$defs/ServerSideEncryptionConfiguration"
    },
    "SourceConfiguration": {
      "$ref": "#/$defs/SourceConfiguration"
    },
    "Tags": {
      "insertionOrder": false,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "type": "array"
    }
  },
  "typeName": "AWS::Wisdom::KnowledgeBase",
  "replacementStrategy": "delete_then_create",
  "additionalProperties": false,
  "taggable": false,
  "required": [
    "KnowledgeBaseType",
    "Name"
  ],
  "readOnlyProperties": [
    "/properties/KnowledgeBaseId",
    "/properties/KnowledgeBaseArn"
  ],
  "createOnlyProperties": [
    "/properties/Description",
    "/properties/KnowledgeBaseType",
    "/properties/Name",
    "/properties/ServerSideEncryptionConfiguration",
    "/properties/SourceConfiguration",
    "/properties/Tags"
  ],
  "primaryIdentifier": [
    "/properties/KnowledgeBaseId"
  ],
  "additionalIdentifiers": [
    [
      "/properties/KnowledgeBaseArn"
    ]
  ],
  "$defs": {
    "AppIntegrationsConfiguration": {
      "type": "object",
      "properties": {
        "ObjectFields": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 4096,
            "minLength": 1
          },
          "insertionOrder": false,
          "maxItems": 100,
          "minItems": 1
        },
        "AppIntegrationArn": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2048,
              "minLength": 1,
              "pattern": "^arn:[a-z-]+?:[a-z-]+?:[a-z0-9-]*?:([0-9]{12})?:[a-zA-Z0-9-:/]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AppIntegrationArn"
      ],
      "title": "AWSWisdomKnowledgeBaseAppIntegrationsConfigurationDefinition",
      "additionalProperties": false
    },
    "KnowledgeBaseType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "EXTERNAL",
            "CUSTOM"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSWisdomKnowledgeBaseKnowledgeBaseTypeDefinition"
    },
    "RenderingConfiguration": {
      "type": "object",
      "properties": {
        "TemplateUri": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 4096,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSWisdomKnowledgeBaseRenderingConfigurationDefinition",
      "additionalProperties": false
    },
    "ServerSideEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "KmsKeyId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 4096,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSWisdomKnowledgeBaseServerSideEncryptionConfigurationDefinition",
      "additionalProperties": false
    },
    "SourceConfiguration": {
      "type": "object",
      "properties": {
        "AppIntegrations": {
          "$ref": "#/$defs/AppIntegrationsConfiguration"
        }
      },
      "oneOf": [
        {
          "required": [
            "AppIntegrations"
          ]
        }
      ],
      "title": "AWSWisdomKnowledgeBaseSourceConfigurationDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "title": "AWSWisdomKnowledgeBaseTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "type": "object",
      "additionalProperties": false
    }
  }
}
