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

com.pulumi.awsnative.sagemaker.kotlin.inputs.UserProfileUserSettingsArgs.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.UserProfileUserSettingsArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.UserProfileUserSettingsStudioWebPortal
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

/**
 * A collection of settings that apply to users of Amazon SageMaker Studio. These settings are specified when the CreateUserProfile API is called, and as DefaultUserSettings when the CreateDomain API is called.
 * @property codeEditorAppSettings The Code Editor application settings.
 * @property customFileSystemConfigs The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
 * @property customPosixUserConfig Details about the POSIX identity that is used for file system operations.
 * @property defaultLandingUri Defines which Amazon SageMaker application users are directed to by default.
 * @property executionRole The user profile Amazon Resource Name (ARN).
 * @property jupyterLabAppSettings The settings for the JupyterLab application.
 * @property jupyterServerAppSettings The Jupyter server's app settings.
 * @property kernelGatewayAppSettings The kernel gateway app settings.
 * @property rStudioServerProAppSettings A collection of settings that configure user interaction with the `RStudioServerPro` app.
 * @property securityGroups The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.
 * @property sharingSettings The sharing settings.
 * @property spaceStorageSettings The storage settings for a space.
 * @property studioWebPortal Indicates whether the Studio experience is available to users. If not, users cannot access Studio.
 * @property studioWebPortalSettings Studio settings. If these settings are applied on a user level, they take priority over the settings applied on a domain level.
 */
public data class UserProfileUserSettingsArgs(
    public val codeEditorAppSettings: Output? = null,
    public val customFileSystemConfigs: Output>? = null,
    public val customPosixUserConfig: Output? = null,
    public val defaultLandingUri: Output? = null,
    public val executionRole: Output? = null,
    public val jupyterLabAppSettings: Output? = null,
    public val jupyterServerAppSettings: Output? = null,
    public val kernelGatewayAppSettings: Output? = null,
    public val rStudioServerProAppSettings: Output? =
        null,
    public val securityGroups: Output>? = null,
    public val sharingSettings: Output? = null,
    public val spaceStorageSettings: Output? = null,
    public val studioWebPortal: Output? = null,
    public val studioWebPortalSettings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.UserProfileUserSettingsArgs =
        com.pulumi.awsnative.sagemaker.inputs.UserProfileUserSettingsArgs.builder()
            .codeEditorAppSettings(
                codeEditorAppSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .customFileSystemConfigs(
                customFileSystemConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .customPosixUserConfig(
                customPosixUserConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .defaultLandingUri(defaultLandingUri?.applyValue({ args0 -> args0 }))
            .executionRole(executionRole?.applyValue({ args0 -> args0 }))
            .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()
                    })
                }),
            )
            .rStudioServerProAppSettings(
                rStudioServerProAppSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .securityGroups(securityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sharingSettings(sharingSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .spaceStorageSettings(
                spaceStorageSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .studioWebPortal(studioWebPortal?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .studioWebPortalSettings(
                studioWebPortalSettings?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [UserProfileUserSettingsArgs].
 */
@PulumiTagMarker
public class UserProfileUserSettingsArgsBuilder internal constructor() {
    private var codeEditorAppSettings: Output? = null

    private var customFileSystemConfigs: Output>? = null

    private var customPosixUserConfig: Output? = null

    private var defaultLandingUri: Output? = null

    private var executionRole: Output? = null

    private var jupyterLabAppSettings: Output? = null

    private var jupyterServerAppSettings: Output? = null

    private var kernelGatewayAppSettings: Output? = null

    private var rStudioServerProAppSettings: Output? =
        null

    private var securityGroups: Output>? = null

    private var sharingSettings: Output? = null

    private var spaceStorageSettings: Output? = null

    private var studioWebPortal: Output? = null

    private var studioWebPortalSettings: Output? = null

    /**
     * @param value The Code Editor application settings.
     */
    @JvmName("onsenshthquofctm")
    public suspend fun codeEditorAppSettings(`value`: Output) {
        this.codeEditorAppSettings = value
    }

    /**
     * @param value The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("mejyqrtvdiyalgcd")
    public suspend fun customFileSystemConfigs(`value`: Output>) {
        this.customFileSystemConfigs = value
    }

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

    /**
     * @param values The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("bvlopkrmnxwajyyx")
    public suspend fun customFileSystemConfigs(values: List>) {
        this.customFileSystemConfigs = Output.all(values)
    }

    /**
     * @param value Details about the POSIX identity that is used for file system operations.
     */
    @JvmName("bnhlgpwbdwoxmcre")
    public suspend fun customPosixUserConfig(`value`: Output) {
        this.customPosixUserConfig = value
    }

    /**
     * @param value Defines which Amazon SageMaker application users are directed to by default.
     */
    @JvmName("ideclmyxxomvroxy")
    public suspend fun defaultLandingUri(`value`: Output) {
        this.defaultLandingUri = value
    }

    /**
     * @param value The user profile Amazon Resource Name (ARN).
     */
    @JvmName("kkpqajfqlgxqsnpi")
    public suspend fun executionRole(`value`: Output) {
        this.executionRole = value
    }

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

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

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

    /**
     * @param value A collection of settings that configure user interaction with the `RStudioServerPro` app.
     */
    @JvmName("lqehxwjgpvtcfcjx")
    public suspend fun rStudioServerProAppSettings(`value`: Output) {
        this.rStudioServerProAppSettings = value
    }

    /**
     * @param value The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.
     */
    @JvmName("ksjadmudjwhkdrer")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

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

    /**
     * @param values The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.
     */
    @JvmName("teaxagaubpwinlmu")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value The sharing settings.
     */
    @JvmName("geyjennbpcimlrlu")
    public suspend fun sharingSettings(`value`: Output) {
        this.sharingSettings = value
    }

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

    /**
     * @param value Indicates whether the Studio experience is available to users. If not, users cannot access Studio.
     */
    @JvmName("ephqlyixlbtvrraw")
    public suspend fun studioWebPortal(`value`: Output) {
        this.studioWebPortal = value
    }

    /**
     * @param value Studio settings. If these settings are applied on a user level, they take priority over the settings applied on a domain level.
     */
    @JvmName("mgxliytpcqnbwmdr")
    public suspend fun studioWebPortalSettings(`value`: Output) {
        this.studioWebPortalSettings = value
    }

    /**
     * @param value The Code Editor application settings.
     */
    @JvmName("bpcrvorsnwppsjrm")
    public suspend fun codeEditorAppSettings(`value`: UserProfileCodeEditorAppSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codeEditorAppSettings = mapped
    }

    /**
     * @param argument The Code Editor application settings.
     */
    @JvmName("jrtavjqgmnxplihw")
    public suspend fun codeEditorAppSettings(argument: suspend UserProfileCodeEditorAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileCodeEditorAppSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.codeEditorAppSettings = mapped
    }

    /**
     * @param value The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("vmmtuluvobcnrsfu")
    public suspend fun customFileSystemConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customFileSystemConfigs = mapped
    }

    /**
     * @param argument The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("gwbbwhucemrukrod")
    public suspend fun customFileSystemConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserProfileCustomFileSystemConfigArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.customFileSystemConfigs = mapped
    }

    /**
     * @param argument The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("inmnhgnwngecgyig")
    public suspend fun customFileSystemConfigs(vararg argument: suspend UserProfileCustomFileSystemConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserProfileCustomFileSystemConfigArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.customFileSystemConfigs = mapped
    }

    /**
     * @param argument The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("roacgadwiywcsvdu")
    public suspend fun customFileSystemConfigs(argument: suspend UserProfileCustomFileSystemConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            UserProfileCustomFileSystemConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.customFileSystemConfigs = mapped
    }

    /**
     * @param values The settings for assigning a custom file system to a user profile. Permitted users can access this file system in Amazon SageMaker Studio.
     */
    @JvmName("oeudnqjbsotgpugm")
    public suspend fun customFileSystemConfigs(vararg values: UserProfileCustomFileSystemConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customFileSystemConfigs = mapped
    }

    /**
     * @param value Details about the POSIX identity that is used for file system operations.
     */
    @JvmName("auwhxebwpupefuyq")
    public suspend fun customPosixUserConfig(`value`: UserProfileCustomPosixUserConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customPosixUserConfig = mapped
    }

    /**
     * @param argument Details about the POSIX identity that is used for file system operations.
     */
    @JvmName("fenstjarqlxbnscn")
    public suspend fun customPosixUserConfig(argument: suspend UserProfileCustomPosixUserConfigArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileCustomPosixUserConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customPosixUserConfig = mapped
    }

    /**
     * @param value Defines which Amazon SageMaker application users are directed to by default.
     */
    @JvmName("tairgacxcwvsiwoy")
    public suspend fun defaultLandingUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultLandingUri = mapped
    }

    /**
     * @param value The user profile Amazon Resource Name (ARN).
     */
    @JvmName("gdquhdobolydlsfu")
    public suspend fun executionRole(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.executionRole = mapped
    }

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

    /**
     * @param argument The settings for the JupyterLab application.
     */
    @JvmName("wkbkmjcrxjjkauqf")
    public suspend fun jupyterLabAppSettings(argument: suspend UserProfileJupyterLabAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileJupyterLabAppSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.jupyterLabAppSettings = mapped
    }

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

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

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

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

    /**
     * @param value A collection of settings that configure user interaction with the `RStudioServerPro` app.
     */
    @JvmName("gtviocoegtcgflfa")
    public suspend fun rStudioServerProAppSettings(`value`: UserProfileRStudioServerProAppSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rStudioServerProAppSettings = mapped
    }

    /**
     * @param argument A collection of settings that configure user interaction with the `RStudioServerPro` app.
     */
    @JvmName("kntqaxnbyyutkhjs")
    public suspend fun rStudioServerProAppSettings(argument: suspend UserProfileRStudioServerProAppSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileRStudioServerProAppSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.rStudioServerProAppSettings = mapped
    }

    /**
     * @param value The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.
     */
    @JvmName("bwydbsoxdbahbbai")
    public suspend fun securityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param values The security groups for the Amazon Virtual Private Cloud (VPC) that Studio uses for communication.
     */
    @JvmName("wxrkpmvjovomvcrr")
    public suspend fun securityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param value The sharing settings.
     */
    @JvmName("kxowftktsyopirwa")
    public suspend fun sharingSettings(`value`: UserProfileSharingSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sharingSettings = mapped
    }

    /**
     * @param argument The sharing settings.
     */
    @JvmName("nthnhkewgwlrixvg")
    public suspend fun sharingSettings(argument: suspend UserProfileSharingSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileSharingSettingsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sharingSettings = mapped
    }

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

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

    /**
     * @param value Indicates whether the Studio experience is available to users. If not, users cannot access Studio.
     */
    @JvmName("ftjdatbnroixcbcj")
    public suspend fun studioWebPortal(`value`: UserProfileUserSettingsStudioWebPortal?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.studioWebPortal = mapped
    }

    /**
     * @param value Studio settings. If these settings are applied on a user level, they take priority over the settings applied on a domain level.
     */
    @JvmName("pxwridvogupotrat")
    public suspend fun studioWebPortalSettings(`value`: UserProfileStudioWebPortalSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.studioWebPortalSettings = mapped
    }

    /**
     * @param argument Studio settings. If these settings are applied on a user level, they take priority over the settings applied on a domain level.
     */
    @JvmName("hgoouywvlhvmmkts")
    public suspend fun studioWebPortalSettings(argument: suspend UserProfileStudioWebPortalSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileStudioWebPortalSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.studioWebPortalSettings = mapped
    }

    internal fun build(): UserProfileUserSettingsArgs = UserProfileUserSettingsArgs(
        codeEditorAppSettings = codeEditorAppSettings,
        customFileSystemConfigs = customFileSystemConfigs,
        customPosixUserConfig = customPosixUserConfig,
        defaultLandingUri = defaultLandingUri,
        executionRole = executionRole,
        jupyterLabAppSettings = jupyterLabAppSettings,
        jupyterServerAppSettings = jupyterServerAppSettings,
        kernelGatewayAppSettings = kernelGatewayAppSettings,
        rStudioServerProAppSettings = rStudioServerProAppSettings,
        securityGroups = securityGroups,
        sharingSettings = sharingSettings,
        spaceStorageSettings = spaceStorageSettings,
        studioWebPortal = studioWebPortal,
        studioWebPortalSettings = studioWebPortalSettings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy