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

com.pulumi.awsnative.sagemaker.kotlin.AppArgs.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.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.sagemaker.AppArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.AppType
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppResourceSpecArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppResourceSpecArgsBuilder
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::SageMaker::App
 * @property appName The name of the app.
 * @property appType The type of app.
 * @property domainId The domain ID.
 * @property resourceSpec The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
 * @property tags A list of tags to apply to the app.
 * @property userProfileName The user profile name.
 */
public data class AppArgs(
    public val appName: Output? = null,
    public val appType: Output? = null,
    public val domainId: Output? = null,
    public val resourceSpec: Output? = null,
    public val tags: Output>? = null,
    public val userProfileName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.AppArgs =
        com.pulumi.awsnative.sagemaker.AppArgs.builder()
            .appName(appName?.applyValue({ args0 -> args0 }))
            .appType(appType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .domainId(domainId?.applyValue({ args0 -> args0 }))
            .resourceSpec(resourceSpec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .userProfileName(userProfileName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppArgs].
 */
@PulumiTagMarker
public class AppArgsBuilder internal constructor() {
    private var appName: Output? = null

    private var appType: Output? = null

    private var domainId: Output? = null

    private var resourceSpec: Output? = null

    private var tags: Output>? = null

    private var userProfileName: Output? = null

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

    /**
     * @param value The type of app.
     */
    @JvmName("ohcrxjygioslrumh")
    public suspend fun appType(`value`: Output) {
        this.appType = value
    }

    /**
     * @param value The domain ID.
     */
    @JvmName("nerdidtxflrgbiby")
    public suspend fun domainId(`value`: Output) {
        this.domainId = value
    }

    /**
     * @param value The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
     */
    @JvmName("xxuupirdnlqjqpgx")
    public suspend fun resourceSpec(`value`: Output) {
        this.resourceSpec = value
    }

    /**
     * @param value A list of tags to apply to the app.
     */
    @JvmName("iksjktdxxxlpftwh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of tags to apply to the app.
     */
    @JvmName("ttlvwmgmvyjkbnds")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The user profile name.
     */
    @JvmName("ovyqgreqjydiyxyp")
    public suspend fun userProfileName(`value`: Output) {
        this.userProfileName = value
    }

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

    /**
     * @param value The type of app.
     */
    @JvmName("yrhkhyswolcyghmc")
    public suspend fun appType(`value`: AppType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appType = mapped
    }

    /**
     * @param value The domain ID.
     */
    @JvmName("jjqfsqskbvkjxtdd")
    public suspend fun domainId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainId = mapped
    }

    /**
     * @param value The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
     */
    @JvmName("yuhcqlbvymqoocng")
    public suspend fun resourceSpec(`value`: AppResourceSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceSpec = mapped
    }

    /**
     * @param argument The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.
     */
    @JvmName("hhlxbsinlfijnoyw")
    public suspend fun resourceSpec(argument: suspend AppResourceSpecArgsBuilder.() -> Unit) {
        val toBeMapped = AppResourceSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resourceSpec = mapped
    }

    /**
     * @param value A list of tags to apply to the app.
     */
    @JvmName("ipotmvnwwftuwkgo")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to apply to the app.
     */
    @JvmName("llpqatlogpnwanmm")
    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 A list of tags to apply to the app.
     */
    @JvmName("bfasrolbtbdjecvv")
    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 A list of tags to apply to the app.
     */
    @JvmName("qsngeniphvmadago")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of tags to apply to the app.
     */
    @JvmName("yeclhkcbjldxabfl")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

    internal fun build(): AppArgs = AppArgs(
        appName = appName,
        appType = appType,
        domainId = domainId,
        resourceSpec = resourceSpec,
        tags = tags,
        userProfileName = userProfileName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy