{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-kendra-faq.json",
  "title": "AWSKendraFaqProperties",
  "description": "A Kendra FAQ resource. Source:- <https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-kendra-faq.json",
    "sourceSha256": "4897965503359dee744032b5bb7c77969fe176a1f0ebbe0b977987f4a0c76a14"
  },
  "type": "object",
  "properties": {
    "IndexId": {
      "description": "Index ID",
      "$ref": "#/$defs/IndexId"
    },
    "Name": {
      "description": "FAQ name",
      "$ref": "#/$defs/FaqName"
    },
    "Description": {
      "description": "FAQ description",
      "$ref": "#/$defs/Description"
    },
    "FileFormat": {
      "description": "FAQ file format",
      "$ref": "#/$defs/FileFormat"
    },
    "S3Path": {
      "description": "FAQ S3 path",
      "$ref": "#/$defs/S3Path"
    },
    "RoleArn": {
      "description": "FAQ role ARN",
      "$ref": "#/$defs/RoleArn"
    },
    "Tags": {
      "description": "Tags for labeling the FAQ",
      "$ref": "#/$defs/TagList"
    }
  },
  "typeName": "AWS::Kendra::Faq",
  "primaryIdentifier": [
    "/properties/Id",
    "/properties/IndexId"
  ],
  "sourceUrl": "https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/IndexId",
    "/properties/Name",
    "/properties/S3Path",
    "/properties/RoleArn",
    "/properties/Description",
    "/properties/FileFormat"
  ],
  "required": [
    "IndexId",
    "Name",
    "S3Path",
    "RoleArn"
  ],
  "$defs": {
    "Tag": {
      "description": "A label for tagging Kendra resources",
      "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 string used to identify this 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": "A string containing the value for the tag"
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSKendraFaqTagDefinition",
      "additionalProperties": false
    },
    "TagList": {
      "description": "List of tags",
      "type": "array",
      "maxItems": 200,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "title": "AWSKendraFaqTagListDefinition"
    },
    "IndexId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 36,
          "maxLength": 36
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique ID of Index",
      "title": "AWSKendraFaqIndexIdDefinition"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Description of the FAQ",
      "title": "AWSKendraFaqDescriptionDefinition"
    },
    "FileFormat": {
      "oneOf": [
        {
          "enum": [
            "CSV",
            "CSV_WITH_HEADER",
            "JSON"
          ],
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Format of the input file",
      "title": "AWSKendraFaqFileFormatDefinition"
    },
    "S3Path": {
      "type": "object",
      "properties": {
        "Bucket": {
          "$ref": "#/$defs/S3BucketName"
        },
        "Key": {
          "$ref": "#/$defs/S3ObjectKey"
        }
      },
      "title": "AWSKendraFaqS3PathDefinition",
      "required": [
        "Bucket",
        "Key"
      ],
      "additionalProperties": false
    },
    "S3BucketName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 63,
          "pattern": "[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSKendraFaqS3BucketNameDefinition"
    },
    "S3ObjectKey": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSKendraFaqS3ObjectKeyDefinition"
    },
    "FaqName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSKendraFaqFaqNameDefinition"
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1284,
          "pattern": "arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSKendraFaqRoleArnDefinition"
    },
    "Id": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique ID of the FAQ",
      "title": "AWSKendraFaqIdDefinition"
    }
  },
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/Arn"
  ]
}
