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

com.pulumi.awsnative.sagemaker.kotlin.inputs.SpaceSettingsArgs.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.SpaceSettingsArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.SpaceAppType
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of settings that apply to spaces of Amazon SageMaker Studio. These settings are specified when the CreateSpace API is called.
 * @property appType The type of app created within the space.
 * @property codeEditorAppSettings The CodeEditor app settings.
 * @property customFileSystems A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
 * @property jupyterLabAppSettings The JupyterLab app settings.
 * @property jupyterServerAppSettings The Jupyter server's app settings.
 * @property kernelGatewayAppSettings The kernel gateway app settings.
 * @property spaceStorageSettings Default storage settings for a space.
 */
public data class SpaceSettingsArgs(
    public val appType: Output? = null,
    public val codeEditorAppSettings: Output? = null,
    public val customFileSystems: Output>? = null,
    public val jupyterLabAppSettings: Output? = null,
    public val jupyterServerAppSettings: Output? = null,
    public val kernelGatewayAppSettings: Output? = null,
    public val spaceStorageSettings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.SpaceSettingsArgs =
        com.pulumi.awsnative.sagemaker.inputs.SpaceSettingsArgs.builder()
            .appType(appType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .codeEditorAppSettings(
                codeEditorAppSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .customFileSystems(
                customFileSystems?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .jupyterLabAppSettings(
                jupyterLabAppSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .jupyterServerAppSettings(
                jupyterServerAppSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kernelGatewayAppSettings(
                kernelGatewayAppSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .spaceStorageSettings(
                spaceStorageSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [SpaceSettingsArgs].
 */
@PulumiTagMarker
public class SpaceSettingsArgsBuilder internal constructor() {
    private var appType: Output? = null

    private var codeEditorAppSettings: Output? = null

    private var customFileSystems: Output>? = null

    private var jupyterLabAppSettings: Output? = null

    private var jupyterServerAppSettings: Output? = null

    private var kernelGatewayAppSettings: Output? = null

    private var spaceStorageSettings: Output? = null

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

    /**
     * @param value The CodeEditor app settings.
     */
    @JvmName("gkaboljrngdckkyp")
    public suspend fun codeEditorAppSettings(`value`: Output) {
        this.codeEditorAppSettings = value
    }

    /**
     * @param value A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("btohlptufburcrob")
    public suspend fun customFileSystems(`value`: Output>) {
        this.customFileSystems = value
    }

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

    /**
     * @param values A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("kgavawhsndjvenpn")
    public suspend fun customFileSystems(values: List>) {
        this.customFileSystems = Output.all(values)
    }

    /**
     * @param value The JupyterLab app settings.
     */
    @JvmName("yxudvebvugguyjxm")
    public suspend fun jupyterLabAppSettings(`value`: Output) {
        this.jupyterLabAppSettings = value
    }

    /**
     * @param value The Jupyter server's app settings.
     */
    @JvmName("agtrpsqryevfnjqe")
    public suspend fun jupyterServerAppSettings(`value`: Output) {
        this.jupyterServerAppSettings = value
    }

    /**
     * @param value The kernel gateway app settings.
     */
    @JvmName("dupedkxnmnlsucnf")
    public suspend fun kernelGatewayAppSettings(`value`: Output) {
        this.kernelGatewayAppSettings = value
    }

    /**
     * @param value Default storage settings for a space.
     */
    @JvmName("hbradaebuneyptet")
    public suspend fun spaceStorageSettings(`value`: Output) {
        this.spaceStorageSettings = value
    }

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

    /**
     * @param value The CodeEditor app settings.
     */
    @JvmName("jauhmpcixhusknvq")
    public suspend fun codeEditorAppSettings(`value`: SpaceCodeEditorAppSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codeEditorAppSettings = mapped
    }

    /**
     * @param argument The CodeEditor app settings.
     */
    @JvmName("igdanqvtspforaux")
    public suspend fun codeEditorAppSettings(argument: suspend SpaceCodeEditorAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = SpaceCodeEditorAppSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.codeEditorAppSettings = mapped
    }

    /**
     * @param value A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("vbvuqkimlskyxrcp")
    public suspend fun customFileSystems(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customFileSystems = mapped
    }

    /**
     * @param argument A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("fmcnoibpgqgpatqc")
    public suspend fun customFileSystems(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpaceCustomFileSystemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customFileSystems = mapped
    }

    /**
     * @param argument A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("jlwxhfgeojkkaerp")
    public suspend fun customFileSystems(vararg argument: suspend SpaceCustomFileSystemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpaceCustomFileSystemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.customFileSystems = mapped
    }

    /**
     * @param argument A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("soacpyvpyaymhnwr")
    public suspend fun customFileSystems(argument: suspend SpaceCustomFileSystemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SpaceCustomFileSystemArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.customFileSystems = mapped
    }

    /**
     * @param values A file system, created by you, that you assign to a space for an Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("rrmemamwlnrquyjn")
    public suspend fun customFileSystems(vararg values: SpaceCustomFileSystemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customFileSystems = mapped
    }

    /**
     * @param value The JupyterLab app settings.
     */
    @JvmName("apkknhexlhmqglxg")
    public suspend fun jupyterLabAppSettings(`value`: SpaceJupyterLabAppSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jupyterLabAppSettings = mapped
    }

    /**
     * @param argument The JupyterLab app settings.
     */
    @JvmName("rqjqvsfsrisdyoov")
    public suspend fun jupyterLabAppSettings(argument: suspend SpaceJupyterLabAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = SpaceJupyterLabAppSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.jupyterLabAppSettings = mapped
    }

    /**
     * @param value The Jupyter server's app settings.
     */
    @JvmName("hvjokxuslwkjgldx")
    public suspend fun jupyterServerAppSettings(`value`: SpaceJupyterServerAppSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jupyterServerAppSettings = mapped
    }

    /**
     * @param argument The Jupyter server's app settings.
     */
    @JvmName("cjlxdqhljhdlgfor")
    public suspend fun jupyterServerAppSettings(argument: suspend SpaceJupyterServerAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = SpaceJupyterServerAppSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.jupyterServerAppSettings = mapped
    }

    /**
     * @param value The kernel gateway app settings.
     */
    @JvmName("lmjduvgkialvuhnx")
    public suspend fun kernelGatewayAppSettings(`value`: SpaceKernelGatewayAppSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kernelGatewayAppSettings = mapped
    }

    /**
     * @param argument The kernel gateway app settings.
     */
    @JvmName("bjlwiapfubytrpdw")
    public suspend fun kernelGatewayAppSettings(argument: suspend SpaceKernelGatewayAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = SpaceKernelGatewayAppSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.kernelGatewayAppSettings = mapped
    }

    /**
     * @param value Default storage settings for a space.
     */
    @JvmName("pebkmbbmvlbnwfwq")
    public suspend fun spaceStorageSettings(`value`: SpaceStorageSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spaceStorageSettings = mapped
    }

    /**
     * @param argument Default storage settings for a space.
     */
    @JvmName("yjqubhsybxhubboo")
    public suspend fun spaceStorageSettings(argument: suspend SpaceStorageSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = SpaceStorageSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.spaceStorageSettings = mapped
    }

    internal fun build(): SpaceSettingsArgs = SpaceSettingsArgs(
        appType = appType,
        codeEditorAppSettings = codeEditorAppSettings,
        customFileSystems = customFileSystems,
        jupyterLabAppSettings = jupyterLabAppSettings,
        jupyterServerAppSettings = jupyterServerAppSettings,
        kernelGatewayAppSettings = kernelGatewayAppSettings,
        spaceStorageSettings = spaceStorageSettings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy