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

com.pulumi.awsnative.workspacesthinclient.kotlin.EnvironmentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.workspacesthinclient.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.workspacesthinclient.EnvironmentArgs.builder
import com.pulumi.awsnative.workspacesthinclient.kotlin.enums.EnvironmentSoftwareSetUpdateMode
import com.pulumi.awsnative.workspacesthinclient.kotlin.enums.EnvironmentSoftwareSetUpdateSchedule
import com.pulumi.awsnative.workspacesthinclient.kotlin.inputs.EnvironmentMaintenanceWindowArgs
import com.pulumi.awsnative.workspacesthinclient.kotlin.inputs.EnvironmentMaintenanceWindowArgsBuilder
import com.pulumi.awsnative.workspacesthinclient.kotlin.inputs.EnvironmentTagArgs
import com.pulumi.awsnative.workspacesthinclient.kotlin.inputs.EnvironmentTagArgsBuilder
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::WorkSpacesThinClient::Environment.
 * @property desiredSoftwareSetId The ID of the software set to apply.
 * @property desktopArn The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.
 * @property desktopEndpoint The URL for the identity provider login (only for environments that use AppStream 2.0).
 * @property deviceCreationTags An array of key-value pairs to apply to the newly created devices for this environment.
 * @property kmsKeyArn The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment.
 * @property maintenanceWindow A specification for a time window to apply software updates.
 * @property name The name of the environment.
 * @property softwareSetUpdateMode An option to define which software updates to apply.
 * @property softwareSetUpdateSchedule An option to define if software updates should be applied within a maintenance window.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class EnvironmentArgs(
    public val desiredSoftwareSetId: Output? = null,
    public val desktopArn: Output? = null,
    public val desktopEndpoint: Output? = null,
    public val deviceCreationTags: Output>? = null,
    public val kmsKeyArn: Output? = null,
    public val maintenanceWindow: Output? = null,
    public val name: Output? = null,
    public val softwareSetUpdateMode: Output? = null,
    public val softwareSetUpdateSchedule: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspacesthinclient.EnvironmentArgs =
        com.pulumi.awsnative.workspacesthinclient.EnvironmentArgs.builder()
            .desiredSoftwareSetId(desiredSoftwareSetId?.applyValue({ args0 -> args0 }))
            .desktopArn(desktopArn?.applyValue({ args0 -> args0 }))
            .desktopEndpoint(desktopEndpoint?.applyValue({ args0 -> args0 }))
            .deviceCreationTags(
                deviceCreationTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .kmsKeyArn(kmsKeyArn?.applyValue({ args0 -> args0 }))
            .maintenanceWindow(maintenanceWindow?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .softwareSetUpdateMode(
                softwareSetUpdateMode?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .softwareSetUpdateSchedule(
                softwareSetUpdateSchedule?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EnvironmentArgs].
 */
@PulumiTagMarker
public class EnvironmentArgsBuilder internal constructor() {
    private var desiredSoftwareSetId: Output? = null

    private var desktopArn: Output? = null

    private var desktopEndpoint: Output? = null

    private var deviceCreationTags: Output>? = null

    private var kmsKeyArn: Output? = null

    private var maintenanceWindow: Output? = null

    private var name: Output? = null

    private var softwareSetUpdateMode: Output? = null

    private var softwareSetUpdateSchedule: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ID of the software set to apply.
     */
    @JvmName("bhghencfrccksdsa")
    public suspend fun desiredSoftwareSetId(`value`: Output) {
        this.desiredSoftwareSetId = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.
     */
    @JvmName("qpwblaqnnvoltcai")
    public suspend fun desktopArn(`value`: Output) {
        this.desktopArn = value
    }

    /**
     * @param value The URL for the identity provider login (only for environments that use AppStream 2.0).
     */
    @JvmName("fjxvvnyqurxpacib")
    public suspend fun desktopEndpoint(`value`: Output) {
        this.desktopEndpoint = value
    }

    /**
     * @param value An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("wavkthpbuhwvufhf")
    public suspend fun deviceCreationTags(`value`: Output>) {
        this.deviceCreationTags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("qfnvkcxoetrwtmuk")
    public suspend fun deviceCreationTags(values: List>) {
        this.deviceCreationTags = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment.
     */
    @JvmName("welveawfkvvivtep")
    public suspend fun kmsKeyArn(`value`: Output) {
        this.kmsKeyArn = value
    }

    /**
     * @param value A specification for a time window to apply software updates.
     */
    @JvmName("ltvgwggvfakstqfv")
    public suspend fun maintenanceWindow(`value`: Output) {
        this.maintenanceWindow = value
    }

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

    /**
     * @param value An option to define which software updates to apply.
     */
    @JvmName("yyqdgtkbsgseeeli")
    public suspend fun softwareSetUpdateMode(`value`: Output) {
        this.softwareSetUpdateMode = value
    }

    /**
     * @param value An option to define if software updates should be applied within a maintenance window.
     */
    @JvmName("ocaygooqdiqmwufv")
    public suspend fun softwareSetUpdateSchedule(`value`: Output) {
        this.softwareSetUpdateSchedule = value
    }

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

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

    /**
     * @param value The ID of the software set to apply.
     */
    @JvmName("nsspuicgedoicktd")
    public suspend fun desiredSoftwareSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.desiredSoftwareSetId = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.
     */
    @JvmName("kmlivrwjyhdbegue")
    public suspend fun desktopArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.desktopArn = mapped
    }

    /**
     * @param value The URL for the identity provider login (only for environments that use AppStream 2.0).
     */
    @JvmName("bgodnqnafyqfucao")
    public suspend fun desktopEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.desktopEndpoint = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("ojahhjriyfkntwah")
    public suspend fun deviceCreationTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deviceCreationTags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("hsxquqajcnbhkyjp")
    public suspend fun deviceCreationTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.deviceCreationTags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("piycmgypsbsdtryu")
    public suspend fun deviceCreationTags(vararg argument: suspend EnvironmentTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.deviceCreationTags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("jablofikxnpofvfc")
    public suspend fun deviceCreationTags(argument: suspend EnvironmentTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EnvironmentTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.deviceCreationTags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to the newly created devices for this environment.
     */
    @JvmName("aojcmrufswwrxewy")
    public suspend fun deviceCreationTags(vararg values: EnvironmentTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deviceCreationTags = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment.
     */
    @JvmName("uwvvowbmjwyaggnf")
    public suspend fun kmsKeyArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyArn = mapped
    }

    /**
     * @param value A specification for a time window to apply software updates.
     */
    @JvmName("ievvojfqsbtmowfj")
    public suspend fun maintenanceWindow(`value`: EnvironmentMaintenanceWindowArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceWindow = mapped
    }

    /**
     * @param argument A specification for a time window to apply software updates.
     */
    @JvmName("awalcctkcojgsllo")
    public suspend fun maintenanceWindow(argument: suspend EnvironmentMaintenanceWindowArgsBuilder.() -> Unit) {
        val toBeMapped = EnvironmentMaintenanceWindowArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.maintenanceWindow = mapped
    }

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

    /**
     * @param value An option to define which software updates to apply.
     */
    @JvmName("vhkrhcopnjuqjwfx")
    public suspend fun softwareSetUpdateMode(`value`: EnvironmentSoftwareSetUpdateMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.softwareSetUpdateMode = mapped
    }

    /**
     * @param value An option to define if software updates should be applied within a maintenance window.
     */
    @JvmName("kkyyvqjduhdoxwcv")
    public suspend fun softwareSetUpdateSchedule(`value`: EnvironmentSoftwareSetUpdateSchedule?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.softwareSetUpdateSchedule = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("oakstrbqnpvuohiw")
    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("uqreutrharvdqtmt")
    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("xomxmlvbjefjoxnb")
    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("wibiggruvbdaidmh")
    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("qhwsrdfwnfatrtrf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): EnvironmentArgs = EnvironmentArgs(
        desiredSoftwareSetId = desiredSoftwareSetId,
        desktopArn = desktopArn,
        desktopEndpoint = desktopEndpoint,
        deviceCreationTags = deviceCreationTags,
        kmsKeyArn = kmsKeyArn,
        maintenanceWindow = maintenanceWindow,
        name = name,
        softwareSetUpdateMode = softwareSetUpdateMode,
        softwareSetUpdateSchedule = softwareSetUpdateSchedule,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy