public static final class CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder documentDataFieldName(java.lang.String documentDataFieldName)
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getDocumentDataFieldName()
documentDataFieldName
- The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index. This parameter is required.this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder crawlAttachments(java.lang.Boolean crawlAttachments)
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getCrawlAttachments()
crawlAttachments
- Indicates whether Amazon Kendra should index attachments to knowledge articles.this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder crawlAttachments(IResolvable crawlAttachments)
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getCrawlAttachments()
crawlAttachments
- Indicates whether Amazon Kendra should index attachments to knowledge articles.this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder documentTitleFieldName(java.lang.String documentTitleFieldName)
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getDocumentTitleFieldName()
documentTitleFieldName
- The name of the ServiceNow field that is mapped to the index document title field.this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder excludeAttachmentFilePatterns(java.util.List<java.lang.String> excludeAttachmentFilePatterns)
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getExcludeAttachmentFilePatterns()
excludeAttachmentFilePatterns
- A list of regular expression patterns to exclude certain attachments of knowledge articles in your ServiceNow.
Item that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
The regex is applied to the field specified in the PatternTargetField
.
this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings)
fieldMappings
- Maps attributes or field names of knoweldge articles to Amazon Kendra index field names.
To create custom fields, use the UpdateIndex
API before you map to ServiceNow fields. For more information, see Mapping data source fields . The ServiceNow data source field names must exist in your ServiceNow custom metadata.this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder fieldMappings(java.util.List<? extends java.lang.Object> fieldMappings)
fieldMappings
- Maps attributes or field names of knoweldge articles to Amazon Kendra index field names.
To create custom fields, use the UpdateIndex
API before you map to ServiceNow fields. For more information, see Mapping data source fields . The ServiceNow data source field names must exist in your ServiceNow custom metadata.this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder filterQuery(java.lang.String filterQuery)
filterQuery
- A query that selects the knowledge articles to index.
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 .
this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder includeAttachmentFilePatterns(java.util.List<java.lang.String> includeAttachmentFilePatterns)
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.getIncludeAttachmentFilePatterns()
includeAttachmentFilePatterns
- A list of regular expression patterns to include certain attachments of knowledge articles in your ServiceNow.
Item that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.
The regex is applied to the field specified in the PatternTargetField
.
this
public CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty build()
CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided