#[non_exhaustive]pub struct DocumentEnrichmentConfiguration {
pub inline_configurations: Option<Vec<InlineDocumentEnrichmentConfiguration>>,
pub pre_extraction_hook_configuration: Option<HookConfiguration>,
pub post_extraction_hook_configuration: Option<HookConfiguration>,
}Expand description
Provides the configuration information for altering document metadata and content during the document ingestion process.
For more information, see Custom document enrichment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inline_configurations: Option<Vec<InlineDocumentEnrichmentConfiguration>>Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q.
pre_extraction_hook_configuration: Option<HookConfiguration>Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q.
You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents.
If you want to apply advanced alterations on the Amazon Q structured documents, you must configure your Lambda function using PostExtractionHookConfiguration.
You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment.
post_extraction_hook_configuration: Option<HookConfiguration>Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q.
You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents.
If you want to apply advanced alterations on the Amazon Q structured documents, you must configure your Lambda function using PostExtractionHookConfiguration.
You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment.
Implementations§
source§impl DocumentEnrichmentConfiguration
impl DocumentEnrichmentConfiguration
sourcepub fn inline_configurations(&self) -> &[InlineDocumentEnrichmentConfiguration]
pub fn inline_configurations(&self) -> &[InlineDocumentEnrichmentConfiguration]
Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .inline_configurations.is_none().
sourcepub fn pre_extraction_hook_configuration(&self) -> Option<&HookConfiguration>
pub fn pre_extraction_hook_configuration(&self) -> Option<&HookConfiguration>
Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q.
You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents.
If you want to apply advanced alterations on the Amazon Q structured documents, you must configure your Lambda function using PostExtractionHookConfiguration.
You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment.
sourcepub fn post_extraction_hook_configuration(&self) -> Option<&HookConfiguration>
pub fn post_extraction_hook_configuration(&self) -> Option<&HookConfiguration>
Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Q.
You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents.
If you want to apply advanced alterations on the Amazon Q structured documents, you must configure your Lambda function using PostExtractionHookConfiguration.
You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Custom document enrichment.
source§impl DocumentEnrichmentConfiguration
impl DocumentEnrichmentConfiguration
sourcepub fn builder() -> DocumentEnrichmentConfigurationBuilder
pub fn builder() -> DocumentEnrichmentConfigurationBuilder
Creates a new builder-style object to manufacture DocumentEnrichmentConfiguration.
Trait Implementations§
source§impl Clone for DocumentEnrichmentConfiguration
impl Clone for DocumentEnrichmentConfiguration
source§fn clone(&self) -> DocumentEnrichmentConfiguration
fn clone(&self) -> DocumentEnrichmentConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for DocumentEnrichmentConfiguration
impl PartialEq for DocumentEnrichmentConfiguration
source§fn eq(&self, other: &DocumentEnrichmentConfiguration) -> bool
fn eq(&self, other: &DocumentEnrichmentConfiguration) -> bool
self and other values to be equal, and is used
by ==.