Interface CfnDataSource.WorkDocsConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSource.WorkDocsConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSource
WorkDocs connector is available in Oregon, North Virginia, Sydney, Singapore and Ireland regions.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kendra.*;
WorkDocsConfigurationProperty workDocsConfigurationProperty = WorkDocsConfigurationProperty.builder()
.organizationId("organizationId")
// the properties below are optional
.crawlComments(false)
.exclusionPatterns(List.of("exclusionPatterns"))
.fieldMappings(List.of(DataSourceToIndexFieldMappingProperty.builder()
.dataSourceFieldName("dataSourceFieldName")
.indexFieldName("indexFieldName")
// the properties below are optional
.dateFieldFormat("dateFieldFormat")
.build()))
.inclusionPatterns(List.of("inclusionPatterns"))
.useChangeLog(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSource.WorkDocsConfigurationPropertystatic final classAn implementation forCfnDataSource.WorkDocsConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectTRUEto include comments on documents in your index.A list of regular expression patterns to exclude certain files in your WorkDocs site repository.default ObjectA list ofDataSourceToIndexFieldMappingobjects that map WorkDocs data source attributes or field names to Amazon Kendra index field names.A list of regular expression patterns to include certain files in your WorkDocs site repository.The identifier of the directory corresponding to your WorkDocs site repository.default ObjectTRUEto use the WorkDocs change log to determine which documents require updating in the index.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOrganizationId
The identifier of the directory corresponding to your WorkDocs site repository.You can find the organization ID in the AWS 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 AWS Directory Service console and enable a WorkDocs site for the directory in the WorkDocs console.
- See Also:
-
getCrawlComments
TRUEto 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.Returns union: either
BooleanorIResolvable- See Also:
-
getExclusionPatterns
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.
- See Also:
-
getFieldMappings
A list ofDataSourceToIndexFieldMappingobjects that map WorkDocs data source attributes or field names to Amazon Kendra index field names.To create custom fields, use the
UpdateIndexAPI 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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataSource.DataSourceToIndexFieldMappingProperty>- See Also:
-
getInclusionPatterns
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.
- See Also:
-
getUseChangeLog
TRUEto use the WorkDocs change log to determine which documents require updating in the index.Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in WorkDocs.
Returns union: either
BooleanorIResolvable- See Also:
-
builder
-