com.pulumi.aws.comprehend.kotlin.inputs.EntityRecognizerInputDataConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.comprehend.kotlin.inputs
import com.pulumi.aws.comprehend.inputs.EntityRecognizerInputDataConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 annotations Specifies location of the document annotation data.
* See the `annotations` Configuration Block section below.
* One of `annotations` or `entity_list` is required.
* @property augmentedManifests List of training datasets produced by Amazon SageMaker Ground Truth.
* Used if `data_format` is `AUGMENTED_MANIFEST`.
* See the `augmented_manifests` Configuration Block section below.
* @property dataFormat The format for the training data.
* One of `COMPREHEND_CSV` or `AUGMENTED_MANIFEST`.
* @property documents Specifies a collection of training documents.
* Used if `data_format` is `COMPREHEND_CSV`.
* See the `documents` Configuration Block section below.
* @property entityList Specifies location of the entity list data.
* See the `entity_list` Configuration Block section below.
* One of `entity_list` or `annotations` is required.
* @property entityTypes Set of entity types to be recognized.
* Has a maximum of 25 items.
* See the `entity_types` Configuration Block section below.
*/
public data class EntityRecognizerInputDataConfigArgs(
public val annotations: Output? = null,
public val augmentedManifests: Output>? =
null,
public val dataFormat: Output? = null,
public val documents: Output? = null,
public val entityList: Output? = null,
public val entityTypes: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.comprehend.inputs.EntityRecognizerInputDataConfigArgs =
com.pulumi.aws.comprehend.inputs.EntityRecognizerInputDataConfigArgs.builder()
.annotations(annotations?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.augmentedManifests(
augmentedManifests?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.dataFormat(dataFormat?.applyValue({ args0 -> args0 }))
.documents(documents?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.entityList(entityList?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.entityTypes(
entityTypes.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [EntityRecognizerInputDataConfigArgs].
*/
@PulumiTagMarker
public class EntityRecognizerInputDataConfigArgsBuilder internal constructor() {
private var annotations: Output? = null
private var augmentedManifests:
Output>? = null
private var dataFormat: Output? = null
private var documents: Output? = null
private var entityList: Output? = null
private var entityTypes: Output>? = null
/**
* @param value Specifies location of the document annotation data.
* See the `annotations` Configuration Block section below.
* One of `annotations` or `entity_list` is required.
*/
@JvmName("eohbikgmkqmclphp")
public suspend fun annotations(`value`: Output) {
this.annotations = value
}
/**
* @param value List of training datasets produced by Amazon SageMaker Ground Truth.
* Used if `data_format` is `AUGMENTED_MANIFEST`.
* See the `augmented_manifests` Configuration Block section below.
*/
@JvmName("gxtwjgddbeiijtbs")
public suspend fun augmentedManifests(`value`: Output>) {
this.augmentedManifests = value
}
@JvmName("hmavlidbjrtifrtv")
public suspend fun augmentedManifests(vararg values: Output) {
this.augmentedManifests = Output.all(values.asList())
}
/**
* @param values List of training datasets produced by Amazon SageMaker Ground Truth.
* Used if `data_format` is `AUGMENTED_MANIFEST`.
* See the `augmented_manifests` Configuration Block section below.
*/
@JvmName("gniejmmuidmoyecn")
public suspend fun augmentedManifests(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy