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 deletionProtectionConfiguration object is supported by all connector types. It contains enableDeletionProtection and deletionProtectionThreshold.