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

com.pulumi.awsnative.voiceid.kotlin.DomainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.voiceid.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.voiceid.DomainArgs.builder
import com.pulumi.awsnative.voiceid.kotlin.inputs.DomainServerSideEncryptionConfigurationArgs
import com.pulumi.awsnative.voiceid.kotlin.inputs.DomainServerSideEncryptionConfigurationArgsBuilder
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

/**
 * The AWS::VoiceID::Domain resource specifies an Amazon VoiceID Domain.
 * @property description The description of the domain.
 * @property name The name for the domain.
 * @property serverSideEncryptionConfiguration The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
 * @property tags The tags used to organize, track, or control access for this resource.
 */
public data class DomainArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val serverSideEncryptionConfiguration: Output? =
        null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.voiceid.DomainArgs =
        com.pulumi.awsnative.voiceid.DomainArgs.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()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var serverSideEncryptionConfiguration:
        Output? = null

    private var tags: Output>? = null

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

    /**
     * @param value The name for the domain.
     */
    @JvmName("tvakihacsrcvrhge")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
     */
    @JvmName("ehwcdvcvapxmiilp")
    public suspend fun serverSideEncryptionConfiguration(`value`: Output) {
        this.serverSideEncryptionConfiguration = value
    }

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

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

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

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

    /**
     * @param value The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
     */
    @JvmName("bpanrqcdfetkwqxy")
    public suspend fun serverSideEncryptionConfiguration(`value`: DomainServerSideEncryptionConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverSideEncryptionConfiguration = mapped
    }

    /**
     * @param argument The server-side encryption configuration containing the KMS key identifier you want Voice ID to use to encrypt your data.
     */
    @JvmName("dvtqfpcqhgustoup")
    public suspend fun serverSideEncryptionConfiguration(argument: suspend DomainServerSideEncryptionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DomainServerSideEncryptionConfigurationArgsBuilder().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("cugbodghspowwgmn")
    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("aneyviljnflkfnbx")
    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 The tags used to organize, track, or control access for this resource.
     */
    @JvmName("sokoaygdfefpqwfq")
    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 The tags used to organize, track, or control access for this resource.
     */
    @JvmName("wrogfrmpfjnkkdbp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().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("dqxemorvpuuhgqrk")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy