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

com.pulumi.awsnative.workspaces.kotlin.WorkspacesPoolArgs.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.workspaces.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.workspaces.WorkspacesPoolArgs.builder
import com.pulumi.awsnative.workspaces.kotlin.inputs.WorkspacesPoolApplicationSettingsArgs
import com.pulumi.awsnative.workspaces.kotlin.inputs.WorkspacesPoolApplicationSettingsArgsBuilder
import com.pulumi.awsnative.workspaces.kotlin.inputs.WorkspacesPoolCapacityArgs
import com.pulumi.awsnative.workspaces.kotlin.inputs.WorkspacesPoolCapacityArgsBuilder
import com.pulumi.awsnative.workspaces.kotlin.inputs.WorkspacesPoolTimeoutSettingsArgs
import com.pulumi.awsnative.workspaces.kotlin.inputs.WorkspacesPoolTimeoutSettingsArgsBuilder
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::WorkSpaces::WorkspacesPool
 * @property applicationSettings The persistent application settings for users of the pool.
 * @property bundleId The identifier of the bundle used by the pool.
 * @property capacity Describes the user capacity for the pool.
 * @property description The description of the pool.
 * @property directoryId The identifier of the directory used by the pool.
 * @property poolName The name of the pool.
 * @property tags The tags for the pool.
 * @property timeoutSettings The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance.
 */
public data class WorkspacesPoolArgs(
    public val applicationSettings: Output? = null,
    public val bundleId: Output? = null,
    public val capacity: Output? = null,
    public val description: Output? = null,
    public val directoryId: Output? = null,
    public val poolName: Output? = null,
    public val tags: Output>? = null,
    public val timeoutSettings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspaces.WorkspacesPoolArgs =
        com.pulumi.awsnative.workspaces.WorkspacesPoolArgs.builder()
            .applicationSettings(
                applicationSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .bundleId(bundleId?.applyValue({ args0 -> args0 }))
            .capacity(capacity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .directoryId(directoryId?.applyValue({ args0 -> args0 }))
            .poolName(poolName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .timeoutSettings(
                timeoutSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [WorkspacesPoolArgs].
 */
@PulumiTagMarker
public class WorkspacesPoolArgsBuilder internal constructor() {
    private var applicationSettings: Output? = null

    private var bundleId: Output? = null

    private var capacity: Output? = null

    private var description: Output? = null

    private var directoryId: Output? = null

    private var poolName: Output? = null

    private var tags: Output>? = null

    private var timeoutSettings: Output? = null

    /**
     * @param value The persistent application settings for users of the pool.
     */
    @JvmName("bephtdvqhcgslued")
    public suspend fun applicationSettings(`value`: Output) {
        this.applicationSettings = value
    }

    /**
     * @param value The identifier of the bundle used by the pool.
     */
    @JvmName("cckkiylwdukvgkhl")
    public suspend fun bundleId(`value`: Output) {
        this.bundleId = value
    }

    /**
     * @param value Describes the user capacity for the pool.
     */
    @JvmName("vukodbdumejuvdcw")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

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

    /**
     * @param value The identifier of the directory used by the pool.
     */
    @JvmName("nygjyddupesccukx")
    public suspend fun directoryId(`value`: Output) {
        this.directoryId = value
    }

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

    /**
     * @param value The tags for the pool.
     */
    @JvmName("depghlqpmpufhwvn")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags for the pool.
     */
    @JvmName("vdluiprrorufrmis")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance.
     */
    @JvmName("pbxhfgalgnitpkwd")
    public suspend fun timeoutSettings(`value`: Output) {
        this.timeoutSettings = value
    }

    /**
     * @param value The persistent application settings for users of the pool.
     */
    @JvmName("clxjnlfllulmhoql")
    public suspend fun applicationSettings(`value`: WorkspacesPoolApplicationSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationSettings = mapped
    }

    /**
     * @param argument The persistent application settings for users of the pool.
     */
    @JvmName("ydstgicphqubclvt")
    public suspend fun applicationSettings(argument: suspend WorkspacesPoolApplicationSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspacesPoolApplicationSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.applicationSettings = mapped
    }

    /**
     * @param value The identifier of the bundle used by the pool.
     */
    @JvmName("fmtwnhfihssnxbno")
    public suspend fun bundleId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bundleId = mapped
    }

    /**
     * @param value Describes the user capacity for the pool.
     */
    @JvmName("bnsaveccenvxfjnb")
    public suspend fun capacity(`value`: WorkspacesPoolCapacityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param argument Describes the user capacity for the pool.
     */
    @JvmName("ahiatucrtyssiirc")
    public suspend fun capacity(argument: suspend WorkspacesPoolCapacityArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspacesPoolCapacityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.capacity = mapped
    }

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

    /**
     * @param value The identifier of the directory used by the pool.
     */
    @JvmName("cqcdqqnseyruelsh")
    public suspend fun directoryId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.directoryId = mapped
    }

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

    /**
     * @param value The tags for the pool.
     */
    @JvmName("gadromcapwnqsoha")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags for the pool.
     */
    @JvmName("kgebvsfgrjueuavh")
    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 for the pool.
     */
    @JvmName("qiyhhhcropullwup")
    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 for the pool.
     */
    @JvmName("cwnsteugxeursfjl")
    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 for the pool.
     */
    @JvmName("gtrqswjibpibadqf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance.
     */
    @JvmName("ckwehjqkdmowrqqt")
    public suspend fun timeoutSettings(`value`: WorkspacesPoolTimeoutSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutSettings = mapped
    }

    /**
     * @param argument The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance.
     */
    @JvmName("pavqvyhxoqxjnjcy")
    public suspend fun timeoutSettings(argument: suspend WorkspacesPoolTimeoutSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = WorkspacesPoolTimeoutSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.timeoutSettings = mapped
    }

    internal fun build(): WorkspacesPoolArgs = WorkspacesPoolArgs(
        applicationSettings = applicationSettings,
        bundleId = bundleId,
        capacity = capacity,
        description = description,
        directoryId = directoryId,
        poolName = poolName,
        tags = tags,
        timeoutSettings = timeoutSettings,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy