com.pulumi.awsnative.wisdom.kotlin.AssistantArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.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