Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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