{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-knowledge-base-request-schema.json",
  "title": "UpdateKnowledgeBaseRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-knowledge-bases-api-openapi.yml#/components/schemas/UpdateKnowledgeBaseRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account that contains the knowledge base."
    },
    "KnowledgeBaseId": {
      "type": "string",
      "description": "The unique identifier for the knowledge base."
    },
    "Name": {
      "type": "string",
      "description": "The name of the knowledge base. If you don't specify a name, the existing name is retained."
    },
    "Description": {
      "type": "string",
      "description": "A description for the knowledge base. If you don't specify a description, the existing description is retained."
    },
    "KnowledgeBaseConfiguration": {
      "$ref": "#/$defs/KnowledgeBaseConfiguration"
    },
    "MediaExtractionConfiguration": {
      "$ref": "#/$defs/MediaExtractionConfiguration"
    },
    "IsEmailNotificationOptedForIngestionFailures": {
      "type": "boolean",
      "description": "Specifies whether email notifications are enabled for ingestion failures."
    },
    "AccessControlConfiguration": {
      "$ref": "#/$defs/AccessControlConfiguration"
    }
  },
  "required": [
    "AwsAccountId",
    "KnowledgeBaseId"
  ],
  "$defs": {
    "AccessControlConfiguration": {
      "type": "object",
      "properties": {
        "isACLEnabled": {
          "type": "boolean",
          "description": "Specifies whether ACLs are enabled for the knowledge base. This setting works together with the data source connector's ACL crawling. To enforce document-level access control end to end, set isACLEnabled to true and enable ACL crawling on the connector. For example, for an Amazon S3 data source, set accessControlConfiguration.crawlAcl to true in the connector template. For more information, see KbTemplateConfiguration. Enabling only one of the two settings does not produce a fully ACL-enforced knowledge base."
        }
      }
    },
    "AudioExtractionConfiguration": {
      "type": "object",
      "properties": {
        "audioExtractionStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of audio extraction. Valid values are ENABLED and DISABLED."
        }
      },
      "required": [
        "audioExtractionStatus"
      ]
    },
    "ImageExtractionConfiguration": {
      "type": "object",
      "properties": {
        "imageExtractionStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of image extraction. Valid values are ENABLED and DISABLED."
        }
      },
      "required": [
        "imageExtractionStatus"
      ]
    },
    "KbTemplateConfiguration": {
      "type": "object",
      "properties": {
        "template": {
          "type": "object",
          "description": "The connector configuration for the knowledge base data source. The structure depends on the connector type of the data source referenced by DataSourceArn. The template must be a JSON object. All connector types share the following top-level keys. The value of type and the contents of connectionConfiguration vary by connector type. type – (Required) The connector type of the data source. This value identifies the connector. Valid values: S3V2, WEBCRAWLERV3, GOOGLEDRIVEV3, ONEDRIVEV3, SHAREPOINTV3. For the fields required by each connector, see the connector-specific list that follows. connecti"
        }
      }
    },
    "KnowledgeBaseConfiguration": {
      "type": "object",
      "properties": {
        "templateConfiguration": {
          "$ref": "#/$defs/KbTemplateConfiguration"
        }
      }
    },
    "MediaExtractionConfiguration": {
      "type": "object",
      "properties": {
        "imageExtractionConfiguration": {
          "$ref": "#/$defs/ImageExtractionConfiguration"
        },
        "audioExtractionConfiguration": {
          "$ref": "#/$defs/AudioExtractionConfiguration"
        },
        "videoExtractionConfiguration": {
          "$ref": "#/$defs/VideoExtractionConfiguration"
        }
      }
    },
    "VideoExtractionConfiguration": {
      "type": "object",
      "properties": {
        "videoExtractionStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of video extraction. Valid values are ENABLED and DISABLED."
        },
        "videoExtractionType": {
          "type": "string",
          "enum": [
            "AUDIO_TRANSCRIPTION_ONLY",
            "VISUAL_CONTENT_AND_AUDIO_TRANSCRIPTION"
          ],
          "description": "The type of video extraction to perform."
        }
      },
      "required": [
        "videoExtractionStatus"
      ]
    }
  }
}