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

com.pulumi.awsnative.sagemaker.kotlin.StudioLifecycleConfigArgs.kt Maven / Gradle / Ivy

@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.StudioLifecycleConfigArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.StudioLifecycleConfigAppType
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::StudioLifecycleConfig
 * @property studioLifecycleConfigAppType The App type that the Lifecycle Configuration is attached to.
 * @property studioLifecycleConfigContent The content of your Amazon SageMaker Studio Lifecycle Configuration script.
 * @property studioLifecycleConfigName The name of the Amazon SageMaker Studio Lifecycle Configuration.
 * @property tags Tags to be associated with the Lifecycle Configuration.
 */
public data class StudioLifecycleConfigArgs(
    public val studioLifecycleConfigAppType: Output? = null,
    public val studioLifecycleConfigContent: Output? = null,
    public val studioLifecycleConfigName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.StudioLifecycleConfigArgs =
        com.pulumi.awsnative.sagemaker.StudioLifecycleConfigArgs.builder()
            .studioLifecycleConfigAppType(
                studioLifecycleConfigAppType?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .studioLifecycleConfigContent(studioLifecycleConfigContent?.applyValue({ args0 -> args0 }))
            .studioLifecycleConfigName(studioLifecycleConfigName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StudioLifecycleConfigArgs].
 */
@PulumiTagMarker
public class StudioLifecycleConfigArgsBuilder internal constructor() {
    private var studioLifecycleConfigAppType: Output? = null

    private var studioLifecycleConfigContent: Output? = null

    private var studioLifecycleConfigName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The App type that the Lifecycle Configuration is attached to.
     */
    @JvmName("ngkmatnrytcbqlqy")
    public suspend fun studioLifecycleConfigAppType(`value`: Output) {
        this.studioLifecycleConfigAppType = value
    }

    /**
     * @param value The content of your Amazon SageMaker Studio Lifecycle Configuration script.
     */
    @JvmName("fnubfdimhtnlkhgr")
    public suspend fun studioLifecycleConfigContent(`value`: Output) {
        this.studioLifecycleConfigContent = value
    }

    /**
     * @param value The name of the Amazon SageMaker Studio Lifecycle Configuration.
     */
    @JvmName("aacrkcphkrxvdpwn")
    public suspend fun studioLifecycleConfigName(`value`: Output) {
        this.studioLifecycleConfigName = value
    }

    /**
     * @param value Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("jrlotsinnmkrkwas")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("qqbpvwsdikoqybcc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The App type that the Lifecycle Configuration is attached to.
     */
    @JvmName("slqjxkwfwotqkmog")
    public suspend fun studioLifecycleConfigAppType(`value`: StudioLifecycleConfigAppType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.studioLifecycleConfigAppType = mapped
    }

    /**
     * @param value The content of your Amazon SageMaker Studio Lifecycle Configuration script.
     */
    @JvmName("ssucauaphyfxfxgs")
    public suspend fun studioLifecycleConfigContent(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.studioLifecycleConfigContent = mapped
    }

    /**
     * @param value The name of the Amazon SageMaker Studio Lifecycle Configuration.
     */
    @JvmName("fcpegboekaqedsby")
    public suspend fun studioLifecycleConfigName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.studioLifecycleConfigName = mapped
    }

    /**
     * @param value Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("wiiwmcuwkgqgkily")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("upplrioqorwjnpcs")
    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 Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("cgxseeucrilmsgcp")
    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 Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("isxugxmmcdwxqpgw")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags to be associated with the Lifecycle Configuration.
     */
    @JvmName("bfqcprgyljphvdlu")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StudioLifecycleConfigArgs = StudioLifecycleConfigArgs(
        studioLifecycleConfigAppType = studioLifecycleConfigAppType,
        studioLifecycleConfigContent = studioLifecycleConfigContent,
        studioLifecycleConfigName = studioLifecycleConfigName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy