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

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

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.workspaces.ConnectionAliasArgs.builder
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::ConnectionAlias
 * @property connectionString The connection string specified for the connection alias. The connection string must be in the form of a fully qualified domain name (FQDN), such as `www.example.com` .
 * @property tags The tags to associate with the connection alias.
 */
public data class ConnectionAliasArgs(
    public val connectionString: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.workspaces.ConnectionAliasArgs =
        com.pulumi.awsnative.workspaces.ConnectionAliasArgs.builder()
            .connectionString(connectionString?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectionAliasArgs].
 */
@PulumiTagMarker
public class ConnectionAliasArgsBuilder internal constructor() {
    private var connectionString: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The connection string specified for the connection alias. The connection string must be in the form of a fully qualified domain name (FQDN), such as `www.example.com` .
     */
    @JvmName("srvcxpkjfjtmywxx")
    public suspend fun connectionString(`value`: Output) {
        this.connectionString = value
    }

    /**
     * @param value The tags to associate with the connection alias.
     */
    @JvmName("jgxqpmqllbuluffc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to associate with the connection alias.
     */
    @JvmName("pdxdlfhjrpgalare")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The connection string specified for the connection alias. The connection string must be in the form of a fully qualified domain name (FQDN), such as `www.example.com` .
     */
    @JvmName("bppolpigdfqsjyej")
    public suspend fun connectionString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionString = mapped
    }

    /**
     * @param value The tags to associate with the connection alias.
     */
    @JvmName("larkixqcnvkvuqlh")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to associate with the connection alias.
     */
    @JvmName("xxyqvphashieguxc")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to associate with the connection alias.
     */
    @JvmName("wxapshneybelokvh")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags to associate with the connection alias.
     */
    @JvmName("aatxrhmypvlgtblv")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to associate with the connection alias.
     */
    @JvmName("owghjviwdqnxipmv")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConnectionAliasArgs = ConnectionAliasArgs(
        connectionString = connectionString,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy