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

com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceCustomDocumentEnrichmentConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.kendra.kotlin.inputs

import com.pulumi.awsnative.kendra.inputs.DataSourceCustomDocumentEnrichmentConfigurationArgs.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.String
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 Kendra.
 * @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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
 * @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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
 * @property roleArn The Amazon Resource Name (ARN) of an IAM role with permission to run `PreExtractionHookConfiguration` and `PostExtractionHookConfiguration` for altering document metadata and content during the document ingestion process. For more information, see [an IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html) .
 */
public data class DataSourceCustomDocumentEnrichmentConfigurationArgs(
    public val inlineConfigurations: Output>? = null,
    public val postExtractionHookConfiguration: Output? = null,
    public val preExtractionHookConfiguration: Output? = null,
    public val roleArn: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceCustomDocumentEnrichmentConfigurationArgs =
        com.pulumi.awsnative.kendra.inputs.DataSourceCustomDocumentEnrichmentConfigurationArgs.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() })
                }),
            )
            .roleArn(roleArn?.applyValue({ args0 -> args0 })).build()
}

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

    private var postExtractionHookConfiguration: Output? = null

    private var preExtractionHookConfiguration: Output? = null

    private var roleArn: Output? = null

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

    @JvmName("ooaaitfhrjmhghtw")
    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 Kendra.
     */
    @JvmName("guwwtkeyvqvokisk")
    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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
     */
    @JvmName("dabrwqwteopypvar")
    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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
     */
    @JvmName("oacyhpnohyaekdfd")
    public suspend fun preExtractionHookConfiguration(`value`: Output) {
        this.preExtractionHookConfiguration = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an IAM role with permission to run `PreExtractionHookConfiguration` and `PostExtractionHookConfiguration` for altering document metadata and content during the document ingestion process. For more information, see [an IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html) .
     */
    @JvmName("tpbhduqqtfmcdhfb")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.
     */
    @JvmName("cmodypapidynjydd")
    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 Kendra.
     */
    @JvmName("nmpdgygefhhfckdv")
    public suspend fun inlineConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSourceInlineCustomDocumentEnrichmentConfigurationArgsBuilder().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 Kendra.
     */
    @JvmName("rcvytuhnsmyvxsba")
    public suspend fun inlineConfigurations(vararg argument: suspend DataSourceInlineCustomDocumentEnrichmentConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSourceInlineCustomDocumentEnrichmentConfigurationArgsBuilder().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 Kendra.
     */
    @JvmName("mromjbejcxfcntcp")
    public suspend fun inlineConfigurations(argument: suspend DataSourceInlineCustomDocumentEnrichmentConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                DataSourceInlineCustomDocumentEnrichmentConfigurationArgsBuilder().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 Kendra.
     */
    @JvmName("gkwuumsqrcciulov")
    public suspend fun inlineConfigurations(vararg values: DataSourceInlineCustomDocumentEnrichmentConfigurationArgs) {
        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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
     */
    @JvmName("jkftxhxbuxptrctr")
    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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
     */
    @JvmName("ravsitudmxfbnexc")
    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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
     */
    @JvmName("icyspwpjmlsvutsy")
    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 [Advanced data manipulation](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html#advanced-data-manipulation) .
     */
    @JvmName("hwgceoyjipnvxvba")
    public suspend fun preExtractionHookConfiguration(argument: suspend DataSourceHookConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceHookConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.preExtractionHookConfiguration = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an IAM role with permission to run `PreExtractionHookConfiguration` and `PostExtractionHookConfiguration` for altering document metadata and content during the document ingestion process. For more information, see [an IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html) .
     */
    @JvmName("ntwwkafpxqscgdux")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy