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

com.pulumi.awsnative.qbusiness.kotlin.inputs.DataSourceDocumentEnrichmentConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.qbusiness.kotlin.inputs

import com.pulumi.awsnative.qbusiness.inputs.DataSourceDocumentEnrichmentConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @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 DataSourceDocumentEnrichmentConfigurationArgs(
    public val inlineConfigurations: Output>? = null,
    public val postExtractionHookConfiguration: Output? = null,
    public val preExtractionHookConfiguration: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.qbusiness.inputs.DataSourceDocumentEnrichmentConfigurationArgs =
        com.pulumi.awsnative.qbusiness.inputs.DataSourceDocumentEnrichmentConfigurationArgs.builder()
            .inlineConfigurations(
                inlineConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .postExtractionHookConfiguration(
                postExtractionHookConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .preExtractionHookConfiguration(
                preExtractionHookConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

/**
 * Builder for [DataSourceDocumentEnrichmentConfigurationArgs].
 */
@PulumiTagMarker
public class DataSourceDocumentEnrichmentConfigurationArgsBuilder internal constructor() {
    private var inlineConfigurations:
        Output>? = null

    private var postExtractionHookConfiguration: Output? = null

    private var preExtractionHookConfiguration: Output? = null

    /**
     * @param value Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("pecdnpvrhtwbelak")
    public suspend fun inlineConfigurations(`value`: Output>) {
        this.inlineConfigurations = value
    }

    @JvmName("ijftjfmhdvspyqmj")
    public suspend fun inlineConfigurations(vararg values: Output) {
        this.inlineConfigurations = Output.all(values.asList())
    }

    /**
     * @param values Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("pruimvyspinxmthv")
    public suspend fun inlineConfigurations(values: List>) {
        this.inlineConfigurations = Output.all(values)
    }

    /**
     * @param value 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) .
     */
    @JvmName("pnnntxlkpaughaex")
    public suspend fun postExtractionHookConfiguration(`value`: Output) {
        this.postExtractionHookConfiguration = value
    }

    /**
     * @param value 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) .
     */
    @JvmName("hvidninlaaekbmmw")
    public suspend fun preExtractionHookConfiguration(`value`: Output) {
        this.preExtractionHookConfiguration = value
    }

    /**
     * @param value Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("biwjabrvnnbpwejt")
    public suspend fun inlineConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inlineConfigurations = mapped
    }

    /**
     * @param argument Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("oawjqahtmubsyool")
    public suspend fun inlineConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSourceInlineDocumentEnrichmentConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inlineConfigurations = mapped
    }

    /**
     * @param argument Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("lqtierewfjyqeyux")
    public suspend fun inlineConfigurations(vararg argument: suspend DataSourceInlineDocumentEnrichmentConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSourceInlineDocumentEnrichmentConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inlineConfigurations = mapped
    }

    /**
     * @param argument Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("pknbqkdthmjbfpsb")
    public suspend fun inlineConfigurations(argument: suspend DataSourceInlineDocumentEnrichmentConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                DataSourceInlineDocumentEnrichmentConfigurationArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.inlineConfigurations = mapped
    }

    /**
     * @param values Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business.
     */
    @JvmName("mfeuediogmyrjabd")
    public suspend fun inlineConfigurations(vararg values: DataSourceInlineDocumentEnrichmentConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inlineConfigurations = mapped
    }

    /**
     * @param value 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) .
     */
    @JvmName("kmlfvthmsangvcox")
    public suspend fun postExtractionHookConfiguration(`value`: DataSourceHookConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.postExtractionHookConfiguration = mapped
    }

    /**
     * @param argument 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) .
     */
    @JvmName("fjmygrefaeekgmqb")
    public suspend fun postExtractionHookConfiguration(argument: suspend DataSourceHookConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceHookConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.postExtractionHookConfiguration = mapped
    }

    /**
     * @param value 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) .
     */
    @JvmName("faqvtlgkmhhrksqs")
    public suspend fun preExtractionHookConfiguration(`value`: DataSourceHookConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preExtractionHookConfiguration = mapped
    }

    /**
     * @param argument 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) .
     */
    @JvmName("kfyqflvjpwtpynaa")
    public suspend fun preExtractionHookConfiguration(argument: suspend DataSourceHookConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceHookConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.preExtractionHookConfiguration = mapped
    }

    internal fun build(): DataSourceDocumentEnrichmentConfigurationArgs =
        DataSourceDocumentEnrichmentConfigurationArgs(
            inlineConfigurations = inlineConfigurations,
            postExtractionHookConfiguration = postExtractionHookConfiguration,
            preExtractionHookConfiguration = preExtractionHookConfiguration,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy