All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.qbusiness.kotlin.outputs.DataSourceDocumentEnrichmentConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.qbusiness.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property inlineConfigurations Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
 * @property postExtractionHookConfiguration Configuration information for invoking a Lambda function in AWS Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see [Using Lambda functions](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/cde-lambda-operations.html) .
 * @property preExtractionHookConfiguration Configuration information for invoking a Lambda function in AWS Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see [Using Lambda functions](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/cde-lambda-operations.html) .
 */
public data class DataSourceDocumentEnrichmentConfiguration(
    public val inlineConfigurations: List? = null,
    public val postExtractionHookConfiguration: DataSourceHookConfiguration? = null,
    public val preExtractionHookConfiguration: DataSourceHookConfiguration? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.qbusiness.outputs.DataSourceDocumentEnrichmentConfiguration): DataSourceDocumentEnrichmentConfiguration = DataSourceDocumentEnrichmentConfiguration(
            inlineConfigurations = javaType.inlineConfigurations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.qbusiness.kotlin.outputs.DataSourceInlineDocumentEnrichmentConfiguration.Companion.toKotlin(args0)
                })
            }),
            postExtractionHookConfiguration = javaType.postExtractionHookConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.qbusiness.kotlin.outputs.DataSourceHookConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            preExtractionHookConfiguration = javaType.preExtractionHookConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.qbusiness.kotlin.outputs.DataSourceHookConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy