KbTemplateConfiguration
The template configuration for a knowledge base. This object contains connector-specific configuration that defines how data is crawled and indexed.
Contents
Note
In the following list, the required parameters are described first.
- template
-
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. The required fields vary by connector type:
-
Amazon S3 (
S3V2) – RequiresconnectionConfigurationwithbucketName. SupportsfilterConfigurationfor inclusion and exclusion prefixes and patterns. SupportsaccessControlConfigurationanddeletionProtectionConfiguration. -
Google Drive (
GOOGLEDRIVEV3) – RequiresconnectionConfigurationwithauthTypeset toSERVICE_ACCOUNT. SupportsdataEntityConfigurationwithcrawlMyDrive,crawlSharedWithMe, andcrawlSharedDrives. -
OneDrive (
ONEDRIVEV3) – RequiresauthTypeat the template root level set toTWO_LEGGED_OAUTH. RequiresconnectionConfigurationwithtenantIdin UUID format. SupportsdataEntityConfigurationwithcrawlPersonalDrivesandcrawlSharedWithMe. -
SharePoint (
SHAREPOINTV3) – RequiresconnectionConfigurationwithtenantIdin UUID format. SupportsdataEntityConfigurationwithsiteUrls,crawlFiles, andcrawlPages. -
Web Crawler (
WEBCRAWLERV3) – RequiresconnectionConfigurationwithseedUrlsorsiteMapUrls(mutually exclusive) andauthType. SupportscrawlConfigurationfor crawl depth, rate limits, and scope. SupportsfilterConfigurationfor file size limits and URL patterns. Valid values forauthType:NO_AUTH,BASIC_AUTH,FORM,SAML.
The optional
deletionProtectionConfigurationobject is supported by all connector types. It containsenableDeletionProtectionanddeletionProtectionThreshold.Type: JSON value
Required: No
-
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: