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

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

import com.pulumi.awsnative.sagemaker.inputs.DomainCodeEditorAppSettingsArgs.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

/**
 * The CodeEditor app settings.
 * @property customImages A list of custom images for use for CodeEditor apps.
 * @property defaultResourceSpec The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the CodeEditor app.
 * @property lifecycleConfigArns A list of LifecycleConfigArns available for use with CodeEditor apps.
 */
public data class DomainCodeEditorAppSettingsArgs(
    public val customImages: Output>? = null,
    public val defaultResourceSpec: Output? = null,
    public val lifecycleConfigArns: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.DomainCodeEditorAppSettingsArgs =
        com.pulumi.awsnative.sagemaker.inputs.DomainCodeEditorAppSettingsArgs.builder()
            .customImages(
                customImages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .defaultResourceSpec(
                defaultResourceSpec?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .lifecycleConfigArns(
                lifecycleConfigArns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [DomainCodeEditorAppSettingsArgs].
 */
@PulumiTagMarker
public class DomainCodeEditorAppSettingsArgsBuilder internal constructor() {
    private var customImages: Output>? = null

    private var defaultResourceSpec: Output? = null

    private var lifecycleConfigArns: Output>? = null

    /**
     * @param value A list of custom images for use for CodeEditor apps.
     */
    @JvmName("txbdxfowlsnnegyc")
    public suspend fun customImages(`value`: Output>) {
        this.customImages = value
    }

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

    /**
     * @param values A list of custom images for use for CodeEditor apps.
     */
    @JvmName("hyxptmktmqxvjtvi")
    public suspend fun customImages(values: List>) {
        this.customImages = Output.all(values)
    }

    /**
     * @param value The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the CodeEditor app.
     */
    @JvmName("ehkchiwvburqftlk")
    public suspend fun defaultResourceSpec(`value`: Output) {
        this.defaultResourceSpec = value
    }

    /**
     * @param value A list of LifecycleConfigArns available for use with CodeEditor apps.
     */
    @JvmName("cljkflcbmmqagiqm")
    public suspend fun lifecycleConfigArns(`value`: Output>) {
        this.lifecycleConfigArns = value
    }

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

    /**
     * @param values A list of LifecycleConfigArns available for use with CodeEditor apps.
     */
    @JvmName("anndvehgbmrmqkgs")
    public suspend fun lifecycleConfigArns(values: List>) {
        this.lifecycleConfigArns = Output.all(values)
    }

    /**
     * @param value A list of custom images for use for CodeEditor apps.
     */
    @JvmName("suaonabtqiqhijmq")
    public suspend fun customImages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customImages = mapped
    }

    /**
     * @param argument A list of custom images for use for CodeEditor apps.
     */
    @JvmName("fbujoqsujpgwhtqs")
    public suspend fun customImages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DomainCustomImageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customImages = mapped
    }

    /**
     * @param argument A list of custom images for use for CodeEditor apps.
     */
    @JvmName("xdjbykkfnwfjgxgp")
    public suspend fun customImages(vararg argument: suspend DomainCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DomainCustomImageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customImages = mapped
    }

    /**
     * @param argument A list of custom images for use for CodeEditor apps.
     */
    @JvmName("aatclhgxgdbdqpmx")
    public suspend fun customImages(argument: suspend DomainCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DomainCustomImageArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.customImages = mapped
    }

    /**
     * @param values A list of custom images for use for CodeEditor apps.
     */
    @JvmName("mswxlfrjsefkayyi")
    public suspend fun customImages(vararg values: DomainCustomImageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customImages = mapped
    }

    /**
     * @param value The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the CodeEditor app.
     */
    @JvmName("ruvekbrsucevedvn")
    public suspend fun defaultResourceSpec(`value`: DomainResourceSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultResourceSpec = mapped
    }

    /**
     * @param argument The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the CodeEditor app.
     */
    @JvmName("mmikedlhhjwfjeuj")
    public suspend fun defaultResourceSpec(argument: suspend DomainResourceSpecArgsBuilder.() -> Unit) {
        val toBeMapped = DomainResourceSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultResourceSpec = mapped
    }

    /**
     * @param value A list of LifecycleConfigArns available for use with CodeEditor apps.
     */
    @JvmName("fyhvyphkxqnhgtnp")
    public suspend fun lifecycleConfigArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lifecycleConfigArns = mapped
    }

    /**
     * @param values A list of LifecycleConfigArns available for use with CodeEditor apps.
     */
    @JvmName("xdaessmpprummvaw")
    public suspend fun lifecycleConfigArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lifecycleConfigArns = mapped
    }

    internal fun build(): DomainCodeEditorAppSettingsArgs = DomainCodeEditorAppSettingsArgs(
        customImages = customImages,
        defaultResourceSpec = defaultResourceSpec,
        lifecycleConfigArns = lifecycleConfigArns,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy