SalesforceConfigurationProperty Struct
Provides the configuration information to connect to Salesforce as your data source.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const salesforceConfigurationProperty: kendra.CfnDataSource.SalesforceConfigurationProperty = {
secretArn: 'secretArn',
serverUrl: 'serverUrl',
// the properties below are optional
chatterFeedConfiguration: {
documentDataFieldName: 'documentDataFieldName',
// the properties below are optional
documentTitleFieldName: 'documentTitleFieldName',
fieldMappings: [{
dataSourceFieldName: 'dataSourceFieldName',
indexFieldName: 'indexFieldName',
// the properties below are optional
dateFieldFormat: 'dateFieldFormat',
}],
includeFilterTypes: ['includeFilterTypes'],
},
crawlAttachments: false,
excludeAttachmentFilePatterns: ['excludeAttachmentFilePatterns'],
includeAttachmentFilePatterns: ['includeAttachmentFilePatterns'],
knowledgeArticleConfiguration: {
includedStates: ['includedStates'],
// the properties below are optional
customKnowledgeArticleTypeConfigurations: [{
documentDataFieldName: 'documentDataFieldName',
name: 'name',
// the properties below are optional
documentTitleFieldName: 'documentTitleFieldName',
fieldMappings: [{
dataSourceFieldName: 'dataSourceFieldName',
indexFieldName: 'indexFieldName',
// the properties below are optional
dateFieldFormat: 'dateFieldFormat',
}],
}],
standardKnowledgeArticleTypeConfiguration: {
documentDataFieldName: 'documentDataFieldName',
// the properties below are optional
documentTitleFieldName: 'documentTitleFieldName',
fieldMappings: [{
dataSourceFieldName: 'dataSourceFieldName',
indexFieldName: 'indexFieldName',
// the properties below are optional
dateFieldFormat: 'dateFieldFormat',
}],
},
},
standardObjectAttachmentConfiguration: {
documentTitleFieldName: 'documentTitleFieldName',
fieldMappings: [{
dataSourceFieldName: 'dataSourceFieldName',
indexFieldName: 'indexFieldName',
// the properties below are optional
dateFieldFormat: 'dateFieldFormat',
}],
},
standardObjectConfigurations: [{
documentDataFieldName: 'documentDataFieldName',
name: 'name',
// the properties below are optional
documentTitleFieldName: 'documentTitleFieldName',
fieldMappings: [{
dataSourceFieldName: 'dataSourceFieldName',
indexFieldName: 'indexFieldName',
// the properties below are optional
dateFieldFormat: 'dateFieldFormat',
}],
}],
};
Properties
chatterFeedConfigurationoptionalIResolvable | CfnDataSource.SalesforceChatterFeedConfigurationPropertychatter_feed_configurationoptionaltyping.Union[IResolvable, SalesforceChatterFeedConfigurationProperty]chatterFeedConfigurationoptionalIResolvableChatterFeedConfigurationoptionalIResolvableChatterFeedConfigurationoptionalinterface{}#crawlAttachmentsoptionalboolean | IResolvablecrawl_attachmentsoptionaltyping.Union[bool, IResolvable]crawlAttachmentsoptionalBooleanCrawlAttachmentsoptionalboolCrawlAttachmentsoptionalinterface{}#excludeAttachmentFilePatternsoptionalstring[]exclude_attachment_file_patternsoptionaltyping.List[str]excludeAttachmentFilePatternsoptionalList<String>ExcludeAttachmentFilePatternsoptionalstring[]ExcludeAttachmentFilePatternsoptional*[]*string#notes
Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.
The pattern is applied to the name of the attached file.
includeAttachmentFilePatternsoptionalstring[]include_attachment_file_patternsoptionaltyping.List[str]includeAttachmentFilePatternsoptionalList<String>IncludeAttachmentFilePatternsoptionalstring[]IncludeAttachmentFilePatternsoptional*[]*string#notes
Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.
The pattern is applied to the name of the attached file.
knowledgeArticleConfigurationoptionalIResolvable | CfnDataSource.SalesforceKnowledgeArticleConfigurationPropertyknowledge_article_configurationoptionaltyping.Union[IResolvable, SalesforceKnowledgeArticleConfigurationProperty]knowledgeArticleConfigurationoptionalIResolvableKnowledgeArticleConfigurationoptionalIResolvableKnowledgeArticleConfigurationoptionalinterface{}#Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.
notes
The secret must contain a JSON structure with the following keys:
- authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.
- consumerKey - The application public key generated when you created your Salesforce application.
- consumerSecret - The application private key generated when you created your Salesforce application.
- password - The password associated with the user logging in to the Salesforce instance.
- securityToken - The token associated with the user logging in to the Salesforce instance.
- username - The user name of the user logging in to the Salesforce instance.
standardObjectAttachmentConfigurationoptionalIResolvable | CfnDataSource.SalesforceStandardObjectAttachmentConfigurationPropertystandard_object_attachment_configurationoptionaltyping.Union[IResolvable, SalesforceStandardObjectAttachmentConfigurationProperty]standardObjectAttachmentConfigurationoptionalIResolvableStandardObjectAttachmentConfigurationoptionalIResolvableStandardObjectAttachmentConfigurationoptionalinterface{}#standardObjectConfigurationsoptionalIResolvable | IResolvable | CfnDataSource.SalesforceStandardObjectConfigurationProperty[]standard_object_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SalesforceStandardObjectConfigurationProperty]]]standardObjectConfigurationsoptionalIResolvableStandardObjectConfigurationsoptionalIResolvableStandardObjectConfigurationsoptionalinterface{}#