Struct aws_sdk_qbusiness::types::HookConfiguration
source · #[non_exhaustive]pub struct HookConfiguration {
pub invocation_condition: Option<DocumentAttributeCondition>,
pub lambda_arn: Option<String>,
pub s3_bucket_name: Option<String>,
pub role_arn: Option<String>,
}Expand description
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.
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.invocation_condition: Option<DocumentAttributeCondition>The condition used for when a Lambda function should be invoked.
For example, you can specify a condition that if there are empty date-time values, then Amazon Q should invoke a function that inserts the current date-time.
lambda_arn: Option<String>The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion. For more information, see IAM roles for Custom Document Enrichment (CDE).
s3_bucket_name: Option<String>Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
role_arn: Option<String>The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process.
Implementations§
source§impl HookConfiguration
impl HookConfiguration
sourcepub fn invocation_condition(&self) -> Option<&DocumentAttributeCondition>
pub fn invocation_condition(&self) -> Option<&DocumentAttributeCondition>
The condition used for when a Lambda function should be invoked.
For example, you can specify a condition that if there are empty date-time values, then Amazon Q should invoke a function that inserts the current date-time.
sourcepub fn lambda_arn(&self) -> Option<&str>
pub fn lambda_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion. For more information, see IAM roles for Custom Document Enrichment (CDE).
sourcepub fn s3_bucket_name(&self) -> Option<&str>
pub fn s3_bucket_name(&self) -> Option<&str>
Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
source§impl HookConfiguration
impl HookConfiguration
sourcepub fn builder() -> HookConfigurationBuilder
pub fn builder() -> HookConfigurationBuilder
Creates a new builder-style object to manufacture HookConfiguration.
Trait Implementations§
source§impl Clone for HookConfiguration
impl Clone for HookConfiguration
source§fn clone(&self) -> HookConfiguration
fn clone(&self) -> HookConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HookConfiguration
impl Debug for HookConfiguration
source§impl PartialEq for HookConfiguration
impl PartialEq for HookConfiguration
source§fn eq(&self, other: &HookConfiguration) -> bool
fn eq(&self, other: &HookConfiguration) -> bool
self and other values to be equal, and is used
by ==.