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

com.pulumi.awsnative.connect.kotlin.InstanceArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connect.kotlin

import com.pulumi.awsnative.connect.InstanceArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.InstanceIdentityManagementType
import com.pulumi.awsnative.connect.kotlin.inputs.InstanceAttributesArgs
import com.pulumi.awsnative.connect.kotlin.inputs.InstanceAttributesArgsBuilder
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

/**
 * Resource Type definition for AWS::Connect::Instance
 * @property attributes The attributes for the instance.
 * @property directoryId Existing directoryId user wants to map to the new Connect instance.
 * @property identityManagementType Specifies the type of directory integration for new instance.
 * @property instanceAlias Alias of the new directory created as part of new instance creation.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class InstanceArgs(
    public val attributes: Output? = null,
    public val directoryId: Output? = null,
    public val identityManagementType: Output? = null,
    public val instanceAlias: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.InstanceArgs =
        com.pulumi.awsnative.connect.InstanceArgs.builder()
            .attributes(attributes?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .directoryId(directoryId?.applyValue({ args0 -> args0 }))
            .identityManagementType(
                identityManagementType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .instanceAlias(instanceAlias?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [InstanceArgs].
 */
@PulumiTagMarker
public class InstanceArgsBuilder internal constructor() {
    private var attributes: Output? = null

    private var directoryId: Output? = null

    private var identityManagementType: Output? = null

    private var instanceAlias: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The attributes for the instance.
     */
    @JvmName("ntoplgakvbnacnld")
    public suspend fun attributes(`value`: Output) {
        this.attributes = value
    }

    /**
     * @param value Existing directoryId user wants to map to the new Connect instance.
     */
    @JvmName("sgfosgosiseyugrw")
    public suspend fun directoryId(`value`: Output) {
        this.directoryId = value
    }

    /**
     * @param value Specifies the type of directory integration for new instance.
     */
    @JvmName("qdclpmgrodncfqjc")
    public suspend fun identityManagementType(`value`: Output) {
        this.identityManagementType = value
    }

    /**
     * @param value Alias of the new directory created as part of new instance creation.
     */
    @JvmName("uaejwntyvybdntar")
    public suspend fun instanceAlias(`value`: Output) {
        this.instanceAlias = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ryrjcqhfdtsrkryf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("wrqgaohfmenbklna")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The attributes for the instance.
     */
    @JvmName("fyomecsshrjxanyw")
    public suspend fun attributes(`value`: InstanceAttributesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param argument The attributes for the instance.
     */
    @JvmName("nhxkngqoosmlluxm")
    public suspend fun attributes(argument: suspend InstanceAttributesArgsBuilder.() -> Unit) {
        val toBeMapped = InstanceAttributesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param value Existing directoryId user wants to map to the new Connect instance.
     */
    @JvmName("rrsxlxopoqajmnwr")
    public suspend fun directoryId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.directoryId = mapped
    }

    /**
     * @param value Specifies the type of directory integration for new instance.
     */
    @JvmName("raodgwkcqqnrxrcg")
    public suspend fun identityManagementType(`value`: InstanceIdentityManagementType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityManagementType = mapped
    }

    /**
     * @param value Alias of the new directory created as part of new instance creation.
     */
    @JvmName("ulcfkhugvavnehds")
    public suspend fun instanceAlias(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceAlias = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("rjlfhepmagcosuji")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("qwffflykdetgjgjx")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("etrmbipeaytrmwwj")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("mqbkyfssjtclnyma")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("vpbbexrnnwabwgdy")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): InstanceArgs = InstanceArgs(
        attributes = attributes,
        directoryId = directoryId,
        identityManagementType = identityManagementType,
        instanceAlias = instanceAlias,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy