com.pulumi.awsnative.kendra.kotlin.FaqArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.kendra.kotlin
import com.pulumi.awsnative.kendra.FaqArgs.builder
import com.pulumi.awsnative.kendra.kotlin.enums.FaqFileFormat
import com.pulumi.awsnative.kendra.kotlin.inputs.FaqS3PathArgs
import com.pulumi.awsnative.kendra.kotlin.inputs.FaqS3PathArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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
/**
* A Kendra FAQ resource
* @property description FAQ description
* @property fileFormat FAQ file format
* @property indexId Index ID
* @property languageCode The code for a language. This shows a supported language for the FAQ document as part of the summary information for FAQs. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html) .
* @property name FAQ name
* @property roleArn FAQ role ARN
* @property s3Path FAQ S3 path
* @property tags Tags for labeling the FAQ
*/
public data class FaqArgs(
public val description: Output? = null,
public val fileFormat: Output? = null,
public val indexId: Output? = null,
public val languageCode: Output? = null,
public val name: Output? = null,
public val roleArn: Output? = null,
public val s3Path: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.kendra.FaqArgs =
com.pulumi.awsnative.kendra.FaqArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.fileFormat(fileFormat?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.indexId(indexId?.applyValue({ args0 -> args0 }))
.languageCode(languageCode?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.roleArn(roleArn?.applyValue({ args0 -> args0 }))
.s3Path(s3Path?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [FaqArgs].
*/
@PulumiTagMarker
public class FaqArgsBuilder internal constructor() {
private var description: Output? = null
private var fileFormat: Output? = null
private var indexId: Output? = null
private var languageCode: Output? = null
private var name: Output? = null
private var roleArn: Output? = null
private var s3Path: Output? = null
private var tags: Output>? = null
/**
* @param value FAQ description
*/
@JvmName("yicpvldkwaloodkd")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value FAQ file format
*/
@JvmName("duieuqmlkqjskkds")
public suspend fun fileFormat(`value`: Output) {
this.fileFormat = value
}
/**
* @param value Index ID
*/
@JvmName("etynrdsjmeoqktrx")
public suspend fun indexId(`value`: Output) {
this.indexId = value
}
/**
* @param value The code for a language. This shows a supported language for the FAQ document as part of the summary information for FAQs. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html) .
*/
@JvmName("ylywlbsrnhjwojxx")
public suspend fun languageCode(`value`: Output) {
this.languageCode = value
}
/**
* @param value FAQ name
*/
@JvmName("uikustnbifjojdsl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value FAQ role ARN
*/
@JvmName("fnqfabtwnxauupkp")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value FAQ S3 path
*/
@JvmName("pkscdppephkksqkg")
public suspend fun s3Path(`value`: Output) {
this.s3Path = value
}
/**
* @param value Tags for labeling the FAQ
*/
@JvmName("rmmewdslgjqfgshq")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("ksdibwbvukfiajod")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values Tags for labeling the FAQ
*/
@JvmName("mbvushfklljdgjdj")
public suspend fun tags(values: List