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

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>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value FAQ description
     */
    @JvmName("jxmtuymcevunpnyd")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value FAQ file format
     */
    @JvmName("vxsofmswyhggthjk")
    public suspend fun fileFormat(`value`: FaqFileFormat?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileFormat = mapped
    }

    /**
     * @param value Index ID
     */
    @JvmName("xoaebdebkdocmjcy")
    public suspend fun indexId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.indexId = mapped
    }

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

    /**
     * @param value FAQ name
     */
    @JvmName("fuvweygtjbihvloy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value FAQ role ARN
     */
    @JvmName("cioycvuwyiypkhdg")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value FAQ S3 path
     */
    @JvmName("sltactjquigpluoy")
    public suspend fun s3Path(`value`: FaqS3PathArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.s3Path = mapped
    }

    /**
     * @param argument FAQ S3 path
     */
    @JvmName("qmtkvmubfjhuqqxe")
    public suspend fun s3Path(argument: suspend FaqS3PathArgsBuilder.() -> Unit) {
        val toBeMapped = FaqS3PathArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.s3Path = mapped
    }

    /**
     * @param value Tags for labeling the FAQ
     */
    @JvmName("wrtrklfrvjssrhmi")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags for labeling the FAQ
     */
    @JvmName("qhhokapdchfhixir")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags for labeling the FAQ
     */
    @JvmName("ebklebakjxxnfgfr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags for labeling the FAQ
     */
    @JvmName("eopdlguvohmifhsx")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags for labeling the FAQ
     */
    @JvmName("qfufqcugnaposkcj")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): FaqArgs = FaqArgs(
        description = description,
        fileFormat = fileFormat,
        indexId = indexId,
        languageCode = languageCode,
        name = name,
        roleArn = roleArn,
        s3Path = s3Path,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy