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

com.pulumi.awsnative.sagemaker.kotlin.inputs.UserProfileKernelGatewayAppSettingsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin.inputs

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

/**
 * The kernel gateway app settings.
 * @property customImages A list of custom SageMaker images that are configured to run as a KernelGateway app.
 * @property defaultResourceSpec The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the KernelGateway app.
 */
public data class UserProfileKernelGatewayAppSettingsArgs(
    public val customImages: Output>? = null,
    public val defaultResourceSpec: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.UserProfileKernelGatewayAppSettingsArgs =
        com.pulumi.awsnative.sagemaker.inputs.UserProfileKernelGatewayAppSettingsArgs.builder()
            .customImages(
                customImages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .defaultResourceSpec(
                defaultResourceSpec?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var defaultResourceSpec: Output? = null

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

    @JvmName("ypkdfrcrweaqajuj")
    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 KernelGateway app.
     */
    @JvmName("vryyxdtfmsluwbqb")
    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 KernelGateway app.
     */
    @JvmName("nhqksimyluprhtic")
    public suspend fun defaultResourceSpec(`value`: Output) {
        this.defaultResourceSpec = value
    }

    /**
     * @param value A list of custom SageMaker images that are configured to run as a KernelGateway app.
     */
    @JvmName("ronxsmbrrvclpyfb")
    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 KernelGateway app.
     */
    @JvmName("bklkaaeldvsrfakv")
    public suspend fun customImages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            UserProfileCustomImageArgsBuilder().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 KernelGateway app.
     */
    @JvmName("ekcyjuxgmysentrg")
    public suspend fun customImages(vararg argument: suspend UserProfileCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            UserProfileCustomImageArgsBuilder().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 KernelGateway app.
     */
    @JvmName("dfeqxbrcybeohuny")
    public suspend fun customImages(argument: suspend UserProfileCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(UserProfileCustomImageArgsBuilder().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 KernelGateway app.
     */
    @JvmName("uvhaershsubvkpyt")
    public suspend fun customImages(vararg values: UserProfileCustomImageArgs) {
        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 KernelGateway app.
     */
    @JvmName("dvwtmjdjhcpnnesv")
    public suspend fun defaultResourceSpec(`value`: UserProfileResourceSpecArgs?) {
        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 KernelGateway app.
     */
    @JvmName("vngftuqtuhglcyww")
    public suspend fun defaultResourceSpec(argument: suspend UserProfileResourceSpecArgsBuilder.() -> Unit) {
        val toBeMapped = UserProfileResourceSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.defaultResourceSpec = mapped
    }

    internal fun build(): UserProfileKernelGatewayAppSettingsArgs =
        UserProfileKernelGatewayAppSettingsArgs(
            customImages = customImages,
            defaultResourceSpec = defaultResourceSpec,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy