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

com.pulumi.aws.sagemaker.kotlin.inputs.UserProfileUserSettingsCodeEditorAppSettingsArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.sagemaker.kotlin.inputs

import com.pulumi.aws.sagemaker.inputs.UserProfileUserSettingsCodeEditorAppSettingsArgs.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

/**
 *
 * @property appLifecycleManagement Indicates whether idle shutdown is activated for JupyterLab applications. see `app_lifecycle_management` Block below.
 * @property builtInLifecycleConfigArn The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.
 * @property customImages A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
 * @property defaultResourceSpec The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
 * @property lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations.
 */
public data class UserProfileUserSettingsCodeEditorAppSettingsArgs(
    public val appLifecycleManagement: Output? = null,
    public val builtInLifecycleConfigArn: Output? = null,
    public val customImages: Output>? = null,
    public val defaultResourceSpec: Output? = null,
    public val lifecycleConfigArns: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.sagemaker.inputs.UserProfileUserSettingsCodeEditorAppSettingsArgs =
        com.pulumi.aws.sagemaker.inputs.UserProfileUserSettingsCodeEditorAppSettingsArgs.builder()
            .appLifecycleManagement(
                appLifecycleManagement?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .builtInLifecycleConfigArn(builtInLifecycleConfigArn?.applyValue({ args0 -> args0 }))
            .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 [UserProfileUserSettingsCodeEditorAppSettingsArgs].
 */
@PulumiTagMarker
public class UserProfileUserSettingsCodeEditorAppSettingsArgsBuilder internal constructor() {
    private var appLifecycleManagement:
        Output? = null

    private var builtInLifecycleConfigArn: Output? = null

    private var customImages:
        Output>? = null

    private var defaultResourceSpec:
        Output? = null

    private var lifecycleConfigArns: Output>? = null

    /**
     * @param value Indicates whether idle shutdown is activated for JupyterLab applications. see `app_lifecycle_management` Block below.
     */
    @JvmName("ryicavowsuuuxcsm")
    public suspend fun appLifecycleManagement(`value`: Output) {
        this.appLifecycleManagement = value
    }

    /**
     * @param value The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.
     */
    @JvmName("pautlojawtapyqvm")
    public suspend fun builtInLifecycleConfigArn(`value`: Output) {
        this.builtInLifecycleConfigArn = value
    }

    /**
     * @param value A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("cganounmtgqojsxp")
    public suspend fun customImages(`value`: Output>) {
        this.customImages = value
    }

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

    /**
     * @param values A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("dihmvfooyacstndi")
    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 SageMaker image created on the instance. see Default Resource Spec below.
     */
    @JvmName("avvhbawjpmkpcquc")
    public suspend fun defaultResourceSpec(`value`: Output) {
        this.defaultResourceSpec = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("jvoiuuywmufbuojk")
    public suspend fun lifecycleConfigArns(`value`: Output>) {
        this.lifecycleConfigArns = value
    }

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

    /**
     * @param values The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("mrnfguwrcthxpfjq")
    public suspend fun lifecycleConfigArns(values: List>) {
        this.lifecycleConfigArns = Output.all(values)
    }

    /**
     * @param value Indicates whether idle shutdown is activated for JupyterLab applications. see `app_lifecycle_management` Block below.
     */
    @JvmName("ktpynqcfgetdpwlk")
    public suspend fun appLifecycleManagement(`value`: UserProfileUserSettingsCodeEditorAppSettingsAppLifecycleManagementArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appLifecycleManagement = mapped
    }

    /**
     * @param argument Indicates whether idle shutdown is activated for JupyterLab applications. see `app_lifecycle_management` Block below.
     */
    @JvmName("iadscrmxddcdkbgt")
    public suspend fun appLifecycleManagement(argument: suspend UserProfileUserSettingsCodeEditorAppSettingsAppLifecycleManagementArgsBuilder.() -> Unit) {
        val toBeMapped =
            UserProfileUserSettingsCodeEditorAppSettingsAppLifecycleManagementArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.appLifecycleManagement = mapped
    }

    /**
     * @param value The lifecycle configuration that runs before the default lifecycle configuration. It can override changes made in the default lifecycle configuration.
     */
    @JvmName("lerysndkxhjafiwa")
    public suspend fun builtInLifecycleConfigArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.builtInLifecycleConfigArn = mapped
    }

    /**
     * @param value A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("kopvedrlcrohvigs")
    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 SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("pncnijcxsukyvrxp")
    public suspend fun customImages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserProfileUserSettingsCodeEditorAppSettingsCustomImageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customImages = mapped
    }

    /**
     * @param argument A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("nixyuksuvtbwgpfh")
    public suspend fun customImages(vararg argument: suspend UserProfileUserSettingsCodeEditorAppSettingsCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserProfileUserSettingsCodeEditorAppSettingsCustomImageArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customImages = mapped
    }

    /**
     * @param argument A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("hrkaqaoyghxngchf")
    public suspend fun customImages(argument: suspend UserProfileUserSettingsCodeEditorAppSettingsCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                UserProfileUserSettingsCodeEditorAppSettingsCustomImageArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.customImages = mapped
    }

    /**
     * @param values A list of custom SageMaker images that are configured to run as a CodeEditor app. see Custom Image below.
     */
    @JvmName("wjbxtsjnxljgdvpr")
    public suspend fun customImages(vararg values: UserProfileUserSettingsCodeEditorAppSettingsCustomImageArgs) {
        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 SageMaker image created on the instance. see Default Resource Spec below.
     */
    @JvmName("ppkpqgivpkpdvfhk")
    public suspend fun defaultResourceSpec(`value`: UserProfileUserSettingsCodeEditorAppSettingsDefaultResourceSpecArgs?) {
        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 SageMaker image created on the instance. see Default Resource Spec below.
     */
    @JvmName("cpsprhoscaklaakn")
    public suspend fun defaultResourceSpec(argument: suspend UserProfileUserSettingsCodeEditorAppSettingsDefaultResourceSpecArgsBuilder.() -> Unit) {
        val toBeMapped =
            UserProfileUserSettingsCodeEditorAppSettingsDefaultResourceSpecArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.defaultResourceSpec = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("lkpdorniruktpdto")
    public suspend fun lifecycleConfigArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lifecycleConfigArns = mapped
    }

    /**
     * @param values The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("hitmmyioiedgpubl")
    public suspend fun lifecycleConfigArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lifecycleConfigArns = mapped
    }

    internal fun build(): UserProfileUserSettingsCodeEditorAppSettingsArgs =
        UserProfileUserSettingsCodeEditorAppSettingsArgs(
            appLifecycleManagement = appLifecycleManagement,
            builtInLifecycleConfigArn = builtInLifecycleConfigArn,
            customImages = customImages,
            defaultResourceSpec = defaultResourceSpec,
            lifecycleConfigArns = lifecycleConfigArns,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy