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

com.pulumi.awsnative.wisdom.kotlin.KnowledgeBaseArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wisdom.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.wisdom.KnowledgeBaseArgs.builder
import com.pulumi.awsnative.wisdom.kotlin.enums.KnowledgeBaseType
import com.pulumi.awsnative.wisdom.kotlin.inputs.KnowledgeBaseRenderingConfigurationArgs
import com.pulumi.awsnative.wisdom.kotlin.inputs.KnowledgeBaseRenderingConfigurationArgsBuilder
import com.pulumi.awsnative.wisdom.kotlin.inputs.KnowledgeBaseServerSideEncryptionConfigurationArgs
import com.pulumi.awsnative.wisdom.kotlin.inputs.KnowledgeBaseServerSideEncryptionConfigurationArgsBuilder
import com.pulumi.awsnative.wisdom.kotlin.inputs.KnowledgeBaseSourceConfigurationArgs
import com.pulumi.awsnative.wisdom.kotlin.inputs.KnowledgeBaseSourceConfigurationArgsBuilder
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

/**
 * Definition of AWS::Wisdom::KnowledgeBase Resource Type
 * @property description The description.
 * @property knowledgeBaseType The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
 * @property name The name of the knowledge base.
 * @property renderingConfiguration Information about how to render the content.
 * @property serverSideEncryptionConfiguration This customer managed key must have a policy that allows `kms:CreateGrant` and `kms:DescribeKey` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see [Enable Amazon Connect Wisdom for your instance](https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html) . For information about valid ID values, see [Key identifiers (KeyId)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in the *AWS Key Management Service Developer Guide* .
 * @property sourceConfiguration The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
 * @property tags The tags used to organize, track, or control access for this resource.
 */
public data class KnowledgeBaseArgs(
    public val description: Output? = null,
    public val knowledgeBaseType: Output? = null,
    public val name: Output? = null,
    public val renderingConfiguration: Output? = null,
    public val serverSideEncryptionConfiguration: Output? = null,
    public val sourceConfiguration: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wisdom.KnowledgeBaseArgs =
        com.pulumi.awsnative.wisdom.KnowledgeBaseArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .knowledgeBaseType(knowledgeBaseType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .renderingConfiguration(
                renderingConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serverSideEncryptionConfiguration(
                serverSideEncryptionConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .sourceConfiguration(
                sourceConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [KnowledgeBaseArgs].
 */
@PulumiTagMarker
public class KnowledgeBaseArgsBuilder internal constructor() {
    private var description: Output? = null

    private var knowledgeBaseType: Output? = null

    private var name: Output? = null

    private var renderingConfiguration: Output? = null

    private var serverSideEncryptionConfiguration:
        Output? = null

    private var sourceConfiguration: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The description.
     */
    @JvmName("rnkujdocxpsmgbyv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
     */
    @JvmName("lfjmfbpttayoxrcb")
    public suspend fun knowledgeBaseType(`value`: Output) {
        this.knowledgeBaseType = value
    }

    /**
     * @param value The name of the knowledge base.
     */
    @JvmName("blbyyroecxdtpnxw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Information about how to render the content.
     */
    @JvmName("giqevupsgblphenu")
    public suspend fun renderingConfiguration(`value`: Output) {
        this.renderingConfiguration = value
    }

    /**
     * @param value This customer managed key must have a policy that allows `kms:CreateGrant` and `kms:DescribeKey` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see [Enable Amazon Connect Wisdom for your instance](https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html) . For information about valid ID values, see [Key identifiers (KeyId)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in the *AWS Key Management Service Developer Guide* .
     */
    @JvmName("cgkmagrkaokmdgma")
    public suspend fun serverSideEncryptionConfiguration(`value`: Output) {
        this.serverSideEncryptionConfiguration = value
    }

    /**
     * @param value The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
     */
    @JvmName("axjthgashhvcalgv")
    public suspend fun sourceConfiguration(`value`: Output) {
        this.sourceConfiguration = value
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("fasguabawmbjudif")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("cpmygaerdlqrctys")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("effnoyiepqxcivdh")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
     */
    @JvmName("xxniudkebpklpxjs")
    public suspend fun knowledgeBaseType(`value`: KnowledgeBaseType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.knowledgeBaseType = mapped
    }

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

    /**
     * @param value Information about how to render the content.
     */
    @JvmName("ibkneujlsoyfgcah")
    public suspend fun renderingConfiguration(`value`: KnowledgeBaseRenderingConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.renderingConfiguration = mapped
    }

    /**
     * @param argument Information about how to render the content.
     */
    @JvmName("tmtjfbqiqhnjgcgn")
    public suspend fun renderingConfiguration(argument: suspend KnowledgeBaseRenderingConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = KnowledgeBaseRenderingConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.renderingConfiguration = mapped
    }

    /**
     * @param value This customer managed key must have a policy that allows `kms:CreateGrant` and `kms:DescribeKey` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see [Enable Amazon Connect Wisdom for your instance](https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html) . For information about valid ID values, see [Key identifiers (KeyId)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in the *AWS Key Management Service Developer Guide* .
     */
    @JvmName("wyvsdwaitdpfitip")
    public suspend fun serverSideEncryptionConfiguration(`value`: KnowledgeBaseServerSideEncryptionConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverSideEncryptionConfiguration = mapped
    }

    /**
     * @param argument This customer managed key must have a policy that allows `kms:CreateGrant` and `kms:DescribeKey` permissions to the IAM identity using the key to invoke Wisdom. For more information about setting up a customer managed key for Wisdom, see [Enable Amazon Connect Wisdom for your instance](https://docs.aws.amazon.com/connect/latest/adminguide/enable-wisdom.html) . For information about valid ID values, see [Key identifiers (KeyId)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id) in the *AWS Key Management Service Developer Guide* .
     */
    @JvmName("udbieuqqcaaxmsbk")
    public suspend fun serverSideEncryptionConfiguration(argument: suspend KnowledgeBaseServerSideEncryptionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = KnowledgeBaseServerSideEncryptionConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serverSideEncryptionConfiguration = mapped
    }

    /**
     * @param value The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
     */
    @JvmName("fwjejgxvwiifkkpc")
    public suspend fun sourceConfiguration(`value`: KnowledgeBaseSourceConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceConfiguration = mapped
    }

    /**
     * @param argument The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
     */
    @JvmName("nsmutkcohryvopif")
    public suspend fun sourceConfiguration(argument: suspend KnowledgeBaseSourceConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = KnowledgeBaseSourceConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sourceConfiguration = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("ufhhjddjpvxsvijy")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("hdbkglkovyejyjfg")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("dhrgdfbffwvpppkg")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("xtgwnjenjlqlnvts")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("vtxhbntnylbiqjpe")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): KnowledgeBaseArgs = KnowledgeBaseArgs(
        description = description,
        knowledgeBaseType = knowledgeBaseType,
        name = name,
        renderingConfiguration = renderingConfiguration,
        serverSideEncryptionConfiguration = serverSideEncryptionConfiguration,
        sourceConfiguration = sourceConfiguration,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy