logo
pub struct SalesforceConfiguration {
    pub chatter_feed_configuration: Option<SalesforceChatterFeedConfiguration>,
    pub crawl_attachments: Option<bool>,
    pub exclude_attachment_file_patterns: Option<Vec<String>>,
    pub include_attachment_file_patterns: Option<Vec<String>>,
    pub knowledge_article_configuration: Option<SalesforceKnowledgeArticleConfiguration>,
    pub secret_arn: String,
    pub server_url: String,
    pub standard_object_attachment_configuration: Option<SalesforceStandardObjectAttachmentConfiguration>,
    pub standard_object_configurations: Option<Vec<SalesforceStandardObjectConfiguration>>,
}
Expand description

Provides configuration information for connecting to a Salesforce data source.

Fields

chatter_feed_configuration: Option<SalesforceChatterFeedConfiguration>

Specifies configuration information for Salesforce chatter feeds.

crawl_attachments: Option<bool>

Indicates whether Amazon Kendra should index attachments to Salesforce objects.

exclude_attachment_file_patterns: Option<Vec<String>>

A list of regular expression patterns. 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 exclusion pattern and an inclusion pattern, the document is not included in the index.

The regex is applied to the name of the attached file.

include_attachment_file_patterns: Option<Vec<String>>

A list of regular expression patterns. 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 pattern and an exclusion pattern, the document is not included in the index.

The regex is applied to the name of the attached file.

knowledge_article_configuration: Option<SalesforceKnowledgeArticleConfiguration>

Specifies configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.

secret_arn: String

The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the key/value pairs required to connect to your Salesforce instance. 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 account logging in to the Salesforce instance.

  • username - The user name of the user logging in to the Salesforce instance.

server_url: String

The instance URL for the Salesforce site that you want to index.

standard_object_attachment_configuration: Option<SalesforceStandardObjectAttachmentConfiguration>

Provides configuration information for processing attachments to Salesforce standard objects.

standard_object_configurations: Option<Vec<SalesforceStandardObjectConfiguration>>

Specifies the Salesforce standard objects that Amazon Kendra indexes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more