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

com.pulumi.awsnative.wisdom.kotlin.AssistantArgs.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.AssistantArgs.builder
import com.pulumi.awsnative.wisdom.kotlin.enums.AssistantType
import com.pulumi.awsnative.wisdom.kotlin.inputs.AssistantServerSideEncryptionConfigurationArgs
import com.pulumi.awsnative.wisdom.kotlin.inputs.AssistantServerSideEncryptionConfigurationArgsBuilder
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::Assistant Resource Type
 * @property description The description of the assistant.
 * @property name The name of the assistant.
 * @property serverSideEncryptionConfiguration The configuration information for the customer managed key used for encryption. The 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. To use Wisdom with chat, the key policy must also allow `kms:Decrypt` , `kms:GenerateDataKey*` , and `kms:DescribeKey` permissions to the `connect.amazonaws.com` service principal. 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) .
 * @property tags The tags used to organize, track, or control access for this resource.
 * @property type The type of assistant.
 */
public data class AssistantArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val serverSideEncryptionConfiguration: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wisdom.AssistantArgs =
        com.pulumi.awsnative.wisdom.AssistantArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .serverSideEncryptionConfiguration(
                serverSideEncryptionConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var name: Output? = null

    private var serverSideEncryptionConfiguration:
        Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

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

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

    /**
     * @param value The configuration information for the customer managed key used for encryption. The 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. To use Wisdom with chat, the key policy must also allow `kms:Decrypt` , `kms:GenerateDataKey*` , and `kms:DescribeKey` permissions to the `connect.amazonaws.com` service principal. 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) .
     */
    @JvmName("gqrogmbpbxnghdtn")
    public suspend fun serverSideEncryptionConfiguration(`value`: Output) {
        this.serverSideEncryptionConfiguration = value
    }

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

    @JvmName("qmirdnyldwougupt")
    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("ngnvvosxorkbkoch")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of assistant.
     */
    @JvmName("uewikjehhsqvbasg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

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

    /**
     * @param value The configuration information for the customer managed key used for encryption. The 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. To use Wisdom with chat, the key policy must also allow `kms:Decrypt` , `kms:GenerateDataKey*` , and `kms:DescribeKey` permissions to the `connect.amazonaws.com` service principal. 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) .
     */
    @JvmName("rrmxjamwharnajyc")
    public suspend fun serverSideEncryptionConfiguration(`value`: AssistantServerSideEncryptionConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverSideEncryptionConfiguration = mapped
    }

    /**
     * @param argument The configuration information for the customer managed key used for encryption. The 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. To use Wisdom with chat, the key policy must also allow `kms:Decrypt` , `kms:GenerateDataKey*` , and `kms:DescribeKey` permissions to the `connect.amazonaws.com` service principal. 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) .
     */
    @JvmName("igthsunjleaddxij")
    public suspend fun serverSideEncryptionConfiguration(argument: suspend AssistantServerSideEncryptionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AssistantServerSideEncryptionConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.serverSideEncryptionConfiguration = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("dpfhcoqjemwnwhbp")
    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("yitgyljvqhltiknc")
    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("bgatpvorvqsqqooy")
    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("gbqjjnuwympwcgcc")
    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("sxnjfuduexxvxfqk")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): AssistantArgs = AssistantArgs(
        description = description,
        name = name,
        serverSideEncryptionConfiguration = serverSideEncryptionConfiguration,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy