WorkDocsConfiguration
¶
Source code in docs_src/capo_kendra/types/work_docs_configuration.py
crawl_comments
instance-attribute
¶
crawl_comments: Boolean
TRUE to include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.
The default is set to FALSE.
exclusion_patterns
instance-attribute
¶
exclusion_patterns: NotRequired[DataSourceInclusionsExclusionsStrings]
A list of regular expression patterns to exclude certain files in your WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
field_mappings
instance-attribute
¶
field_mappings: NotRequired[DataSourceToIndexFieldMappingList]
A list of DataSourceToIndexFieldMapping objects that map WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to WorkDocs fields. For more information, see Mapping data source fields. The WorkDocs data source field names must exist in your WorkDocs custom metadata.
inclusion_patterns
instance-attribute
¶
inclusion_patterns: NotRequired[DataSourceInclusionsExclusionsStrings]
A list of regular expression patterns to include certain files in your WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
organization_id
instance-attribute
¶
organization_id: OrganizationId
The identifier of the directory corresponding to your WorkDocs site repository.
You can find the organization ID in the Directory Service by going to Active Directory, then Directories. Your WorkDocs site directory has an ID, which is the organization ID. You can also set up a new WorkDocs directory in the Directory Service console and enable a WorkDocs site for the directory in the WorkDocs console.