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

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

package com.pulumi.awsnative.appstream.kotlin

import com.pulumi.awsnative.appstream.ApplicationArgs.builder
import com.pulumi.awsnative.appstream.kotlin.inputs.ApplicationS3LocationArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.ApplicationS3LocationArgsBuilder
import com.pulumi.awsnative.appstream.kotlin.inputs.ApplicationTag0PropertiesArgs
import com.pulumi.awsnative.appstream.kotlin.inputs.ApplicationTag1PropertiesArgs
import com.pulumi.core.Either
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::AppStream::Application
 * @property appBlockArn The app block ARN with which the application should be associated.
 * @property attributesToDelete A list of attributes to delete from an application.
 * @property description The description of the application.
 * @property displayName The display name of the application. This name is visible to users in the application catalog.
 * @property iconS3Location The icon S3 location of the application.
 * @property instanceFamilies The instance families the application supports.
 * *Allowed Values* : `GENERAL_PURPOSE` | `GRAPHICS_G4`
 * @property launchParameters The launch parameters of the application.
 * @property launchPath The launch path of the application.
 * @property name The name of the application. This name is visible to users when a name is not specified in the DisplayName property.
 * *Pattern* : `^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$`
 * @property platforms The platforms the application supports.
 * *Allowed Values* : `WINDOWS_SERVER_2019` | `AMAZON_LINUX2`
 * @property tags The tags of the application.
 * @property workingDirectory The working directory of the application.
 */
public data class ApplicationArgs(
    public val appBlockArn: Output? = null,
    public val attributesToDelete: Output>? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val iconS3Location: Output? = null,
    public val instanceFamilies: Output>? = null,
    public val launchParameters: Output? = null,
    public val launchPath: Output? = null,
    public val name: Output? = null,
    public val platforms: Output>? = null,
    public val tags: Output>>? = null,
    public val workingDirectory: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appstream.ApplicationArgs =
        com.pulumi.awsnative.appstream.ApplicationArgs.builder()
            .appBlockArn(appBlockArn?.applyValue({ args0 -> args0 }))
            .attributesToDelete(attributesToDelete?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .iconS3Location(iconS3Location?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .instanceFamilies(instanceFamilies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .launchParameters(launchParameters?.applyValue({ args0 -> args0 }))
            .launchPath(launchPath?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .platforms(platforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform({ args0 ->
                            args0.let({ args0 ->
                                args0.toJava()
                            })
                        }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                    })
                }),
            )
            .workingDirectory(workingDirectory?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationArgs].
 */
@PulumiTagMarker
public class ApplicationArgsBuilder internal constructor() {
    private var appBlockArn: Output? = null

    private var attributesToDelete: Output>? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var iconS3Location: Output? = null

    private var instanceFamilies: Output>? = null

    private var launchParameters: Output? = null

    private var launchPath: Output? = null

    private var name: Output? = null

    private var platforms: Output>? = null

    private var tags:
        Output>>? = null

    private var workingDirectory: Output? = null

    /**
     * @param value The app block ARN with which the application should be associated.
     */
    @JvmName("fheqhttxflltkayy")
    public suspend fun appBlockArn(`value`: Output) {
        this.appBlockArn = value
    }

    /**
     * @param value A list of attributes to delete from an application.
     */
    @JvmName("efrslsfduexalpcl")
    public suspend fun attributesToDelete(`value`: Output>) {
        this.attributesToDelete = value
    }

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

    /**
     * @param values A list of attributes to delete from an application.
     */
    @JvmName("cfiavyepkhtajvtf")
    public suspend fun attributesToDelete(values: List>) {
        this.attributesToDelete = Output.all(values)
    }

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

    /**
     * @param value The display name of the application. This name is visible to users in the application catalog.
     */
    @JvmName("vcllorpsabdvjcai")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The icon S3 location of the application.
     */
    @JvmName("fhikqoawagnvixip")
    public suspend fun iconS3Location(`value`: Output) {
        this.iconS3Location = value
    }

    /**
     * @param value The instance families the application supports.
     * *Allowed Values* : `GENERAL_PURPOSE` | `GRAPHICS_G4`
     */
    @JvmName("mohxwqbwqmykdqvp")
    public suspend fun instanceFamilies(`value`: Output>) {
        this.instanceFamilies = value
    }

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

    /**
     * @param values The instance families the application supports.
     * *Allowed Values* : `GENERAL_PURPOSE` | `GRAPHICS_G4`
     */
    @JvmName("jxyocrqgujpfemdn")
    public suspend fun instanceFamilies(values: List>) {
        this.instanceFamilies = Output.all(values)
    }

    /**
     * @param value The launch parameters of the application.
     */
    @JvmName("srppfikhjjkliken")
    public suspend fun launchParameters(`value`: Output) {
        this.launchParameters = value
    }

    /**
     * @param value The launch path of the application.
     */
    @JvmName("ptodddcjqsayohbk")
    public suspend fun launchPath(`value`: Output) {
        this.launchPath = value
    }

    /**
     * @param value The name of the application. This name is visible to users when a name is not specified in the DisplayName property.
     * *Pattern* : `^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$`
     */
    @JvmName("tkyssngsdqghegca")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The platforms the application supports.
     * *Allowed Values* : `WINDOWS_SERVER_2019` | `AMAZON_LINUX2`
     */
    @JvmName("vbqxxrjyvebxobmd")
    public suspend fun platforms(`value`: Output>) {
        this.platforms = value
    }

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

    /**
     * @param values The platforms the application supports.
     * *Allowed Values* : `WINDOWS_SERVER_2019` | `AMAZON_LINUX2`
     */
    @JvmName("xtdyemquadrwidgi")
    public suspend fun platforms(values: List>) {
        this.platforms = Output.all(values)
    }

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

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

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

    /**
     * @param value The working directory of the application.
     */
    @JvmName("jyjgvrlmtfmjxesk")
    public suspend fun workingDirectory(`value`: Output) {
        this.workingDirectory = value
    }

    /**
     * @param value The app block ARN with which the application should be associated.
     */
    @JvmName("eqdjlnewhtjavgbw")
    public suspend fun appBlockArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appBlockArn = mapped
    }

    /**
     * @param value A list of attributes to delete from an application.
     */
    @JvmName("gslsjigwnbsxjamm")
    public suspend fun attributesToDelete(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributesToDelete = mapped
    }

    /**
     * @param values A list of attributes to delete from an application.
     */
    @JvmName("cioqouoxevjexlkj")
    public suspend fun attributesToDelete(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributesToDelete = mapped
    }

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

    /**
     * @param value The display name of the application. This name is visible to users in the application catalog.
     */
    @JvmName("kdykpnopaitednos")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The icon S3 location of the application.
     */
    @JvmName("sjlgvdepremvbcpm")
    public suspend fun iconS3Location(`value`: ApplicationS3LocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iconS3Location = mapped
    }

    /**
     * @param argument The icon S3 location of the application.
     */
    @JvmName("qvkslfjrompusjie")
    public suspend fun iconS3Location(argument: suspend ApplicationS3LocationArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationS3LocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.iconS3Location = mapped
    }

    /**
     * @param value The instance families the application supports.
     * *Allowed Values* : `GENERAL_PURPOSE` | `GRAPHICS_G4`
     */
    @JvmName("sdcmfrojcyqjtind")
    public suspend fun instanceFamilies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceFamilies = mapped
    }

    /**
     * @param values The instance families the application supports.
     * *Allowed Values* : `GENERAL_PURPOSE` | `GRAPHICS_G4`
     */
    @JvmName("qsdnrpurdjfkmkvb")
    public suspend fun instanceFamilies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceFamilies = mapped
    }

    /**
     * @param value The launch parameters of the application.
     */
    @JvmName("idokdtfdwgvicxey")
    public suspend fun launchParameters(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchParameters = mapped
    }

    /**
     * @param value The launch path of the application.
     */
    @JvmName("jpnfbcdiyplxieis")
    public suspend fun launchPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchPath = mapped
    }

    /**
     * @param value The name of the application. This name is visible to users when a name is not specified in the DisplayName property.
     * *Pattern* : `^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$`
     */
    @JvmName("fxrfwsoctgtewvoi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The platforms the application supports.
     * *Allowed Values* : `WINDOWS_SERVER_2019` | `AMAZON_LINUX2`
     */
    @JvmName("expnjcnuovfxxyuw")
    public suspend fun platforms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platforms = mapped
    }

    /**
     * @param values The platforms the application supports.
     * *Allowed Values* : `WINDOWS_SERVER_2019` | `AMAZON_LINUX2`
     */
    @JvmName("bktvwnwxwuwhjkxa")
    public suspend fun platforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.platforms = mapped
    }

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

    /**
     * @param values The tags of the application.
     */
    @JvmName("glaguusjdmkxmmpm")
    public suspend fun tags(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The working directory of the application.
     */
    @JvmName("adweulfmiprgudqq")
    public suspend fun workingDirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workingDirectory = mapped
    }

    internal fun build(): ApplicationArgs = ApplicationArgs(
        appBlockArn = appBlockArn,
        attributesToDelete = attributesToDelete,
        description = description,
        displayName = displayName,
        iconS3Location = iconS3Location,
        instanceFamilies = instanceFamilies,
        launchParameters = launchParameters,
        launchPath = launchPath,
        name = name,
        platforms = platforms,
        tags = tags,
        workingDirectory = workingDirectory,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy