@Stability(value=Stable)
public static interface CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
ServiceNowKnowledgeArticleConfigurationProperty serviceNowKnowledgeArticleConfigurationProperty = ServiceNowKnowledgeArticleConfigurationProperty.builder()
.documentDataFieldName("documentDataFieldName")
// the properties below are optional
.crawlAttachments(false)
.documentTitleFieldName("documentTitleFieldName")
.excludeAttachmentFilePatterns(List.of("excludeAttachmentFilePatterns"))
.fieldMappings(List.of(DataSourceToIndexFieldMappingProperty.builder()
.dataSourceFieldName("dataSourceFieldName")
.indexFieldName("indexFieldName")
// the properties below are optional
.dateFieldFormat("dateFieldFormat")
.build()))
.filterQuery("filterQuery")
.includeAttachmentFilePatterns(List.of("includeAttachmentFilePatterns"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder
|
static class |
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Jsii$Proxy
An implementation for
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder |
builder() |
default Object |
getCrawlAttachments()
Indicates whether Amazon Kendra should index attachments to knowledge articles.
|
String |
getDocumentDataFieldName()
The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.
|
default String |
getDocumentTitleFieldName()
The name of the ServiceNow field that is mapped to the index document title field.
|
default List<String> |
getExcludeAttachmentFilePatterns()
List of regular expressions applied to knowledge articles.
|
default Object |
getFieldMappings()
Mapping between ServiceNow fields and Amazon Kendra index fields.
|
default String |
getFilterQuery()
A query that selects the knowledge articles to index.
|
default List<String> |
getIncludeAttachmentFilePatterns()
List of regular expressions applied to knowledge articles.
|
@Stability(value=Stable) @NotNull String getDocumentDataFieldName()
@Stability(value=Stable) @Nullable default Object getCrawlAttachments()
@Stability(value=Stable) @Nullable default String getDocumentTitleFieldName()
@Stability(value=Stable) @Nullable default List<String> getExcludeAttachmentFilePatterns()
Items that don't match the inclusion pattern are not indexed. The regex is applied to the field specified in the PatternTargetField
@Stability(value=Stable) @Nullable default Object getFieldMappings()
You must create the index field before you map the field.
@Stability(value=Stable) @Nullable default String getFilterQuery()
The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.
The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query .
@Stability(value=Stable) @Nullable default List<String> getIncludeAttachmentFilePatterns()
Items that don't match the inclusion pattern are not indexed. The regex is applied to the field specified in the PatternTargetField .
@Stability(value=Stable) static CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.