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

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

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

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

import com.pulumi.awsnative.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 configuration for the file system and kernels in a SageMaker image running as a KernelGateway app.
 * @property fileSystemConfig The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.
 * @property kernelSpecs The specification of the Jupyter kernels in the image.
 */
public data class AppImageConfigKernelGatewayImageConfigArgs(
    public val fileSystemConfig: Output? = null,
    public val kernelSpecs: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigArgs =
        com.pulumi.awsnative.sagemaker.inputs.AppImageConfigKernelGatewayImageConfigArgs.builder()
            .fileSystemConfig(fileSystemConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kernelSpecs(
                kernelSpecs.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AppImageConfigKernelGatewayImageConfigArgs].
 */
@PulumiTagMarker
public class AppImageConfigKernelGatewayImageConfigArgsBuilder internal constructor() {
    private var fileSystemConfig: Output? = null

    private var kernelSpecs: Output>? = null

    /**
     * @param value The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.
     */
    @JvmName("hvonipcneqisqbqa")
    public suspend fun fileSystemConfig(`value`: Output) {
        this.fileSystemConfig = value
    }

    /**
     * @param value The specification of the Jupyter kernels in the image.
     */
    @JvmName("mxgjmbajymicqxmr")
    public suspend fun kernelSpecs(`value`: Output>) {
        this.kernelSpecs = value
    }

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

    /**
     * @param values The specification of the Jupyter kernels in the image.
     */
    @JvmName("mjdfshbbfxoiojsd")
    public suspend fun kernelSpecs(values: List>) {
        this.kernelSpecs = Output.all(values)
    }

    /**
     * @param value The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.
     */
    @JvmName("qubfxvgmcmhcnbod")
    public suspend fun fileSystemConfig(`value`: AppImageConfigFileSystemConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileSystemConfig = mapped
    }

    /**
     * @param argument The Amazon Elastic File System (EFS) storage configuration for a SageMaker image.
     */
    @JvmName("ayfjlsspriargpke")
    public suspend fun fileSystemConfig(argument: suspend AppImageConfigFileSystemConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AppImageConfigFileSystemConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.fileSystemConfig = mapped
    }

    /**
     * @param value The specification of the Jupyter kernels in the image.
     */
    @JvmName("cucgsevxrgoafctv")
    public suspend fun kernelSpecs(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kernelSpecs = mapped
    }

    /**
     * @param argument The specification of the Jupyter kernels in the image.
     */
    @JvmName("ftkumwucfodormeh")
    public suspend fun kernelSpecs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AppImageConfigKernelSpecArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.kernelSpecs = mapped
    }

    /**
     * @param argument The specification of the Jupyter kernels in the image.
     */
    @JvmName("rwhlyghoysnwqcck")
    public suspend fun kernelSpecs(vararg argument: suspend AppImageConfigKernelSpecArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AppImageConfigKernelSpecArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.kernelSpecs = mapped
    }

    /**
     * @param argument The specification of the Jupyter kernels in the image.
     */
    @JvmName("brwxxhhxonxoljts")
    public suspend fun kernelSpecs(argument: suspend AppImageConfigKernelSpecArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AppImageConfigKernelSpecArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.kernelSpecs = mapped
    }

    /**
     * @param values The specification of the Jupyter kernels in the image.
     */
    @JvmName("pldovlybeqavbgwq")
    public suspend fun kernelSpecs(vararg values: AppImageConfigKernelSpecArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.kernelSpecs = mapped
    }

    internal fun build(): AppImageConfigKernelGatewayImageConfigArgs =
        AppImageConfigKernelGatewayImageConfigArgs(
            fileSystemConfig = fileSystemConfig,
            kernelSpecs = kernelSpecs ?: throw PulumiNullFieldException("kernelSpecs"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy