Struct aws_sdk_qbusiness::types::builders::HookConfigurationBuilder
source · #[non_exhaustive]pub struct HookConfigurationBuilder { /* private fields */ }Expand description
A builder for HookConfiguration.
Implementations§
source§impl HookConfigurationBuilder
impl HookConfigurationBuilder
sourcepub fn invocation_condition(self, input: DocumentAttributeCondition) -> Self
pub fn invocation_condition(self, input: DocumentAttributeCondition) -> Self
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 set_invocation_condition(
self,
input: Option<DocumentAttributeCondition>
) -> Self
pub fn set_invocation_condition( self, input: Option<DocumentAttributeCondition> ) -> Self
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 get_invocation_condition(&self) -> &Option<DocumentAttributeCondition>
pub fn get_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, input: impl Into<String>) -> Self
pub fn lambda_arn(self, input: impl Into<String>) -> Self
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 set_lambda_arn(self, input: Option<String>) -> Self
pub fn set_lambda_arn(self, input: Option<String>) -> Self
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 get_lambda_arn(&self) -> &Option<String>
pub fn get_lambda_arn(&self) -> &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).
sourcepub fn s3_bucket_name(self, input: impl Into<String>) -> Self
pub fn s3_bucket_name(self, input: impl Into<String>) -> Self
Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
sourcepub fn set_s3_bucket_name(self, input: Option<String>) -> Self
pub fn set_s3_bucket_name(self, input: Option<String>) -> Self
Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
sourcepub fn get_s3_bucket_name(&self) -> &Option<String>
pub fn get_s3_bucket_name(&self) -> &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.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &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.
sourcepub fn build(self) -> HookConfiguration
pub fn build(self) -> HookConfiguration
Consumes the builder and constructs a HookConfiguration.
Trait Implementations§
source§impl Clone for HookConfigurationBuilder
impl Clone for HookConfigurationBuilder
source§fn clone(&self) -> HookConfigurationBuilder
fn clone(&self) -> HookConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HookConfigurationBuilder
impl Debug for HookConfigurationBuilder
source§impl Default for HookConfigurationBuilder
impl Default for HookConfigurationBuilder
source§fn default() -> HookConfigurationBuilder
fn default() -> HookConfigurationBuilder
source§impl PartialEq for HookConfigurationBuilder
impl PartialEq for HookConfigurationBuilder
source§fn eq(&self, other: &HookConfigurationBuilder) -> bool
fn eq(&self, other: &HookConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.