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

com.pulumi.awsnative.sagemaker.kotlin.AppImageConfigArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.sagemaker.AppImageConfigArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppImageConfigCodeEditorAppImageConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppImageConfigCodeEditorAppImageConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppImageConfigJupyterLabAppImageConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppImageConfigJupyterLabAppImageConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppImageConfigKernelGatewayImageConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.AppImageConfigKernelGatewayImageConfigArgsBuilder
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

/**
 * Resource Type definition for AWS::SageMaker::AppImageConfig
 * @property appImageConfigName The Name of the AppImageConfig.
 * @property codeEditorAppImageConfig The CodeEditorAppImageConfig.
 * @property jupyterLabAppImageConfig The JupyterLabAppImageConfig.
 * @property kernelGatewayImageConfig The KernelGatewayImageConfig.
 * @property tags A list of tags to apply to the AppImageConfig.
 */
public data class AppImageConfigArgs(
    public val appImageConfigName: Output? = null,
    public val codeEditorAppImageConfig: Output? = null,
    public val jupyterLabAppImageConfig: Output? = null,
    public val kernelGatewayImageConfig: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.AppImageConfigArgs =
        com.pulumi.awsnative.sagemaker.AppImageConfigArgs.builder()
            .appImageConfigName(appImageConfigName?.applyValue({ args0 -> args0 }))
            .codeEditorAppImageConfig(
                codeEditorAppImageConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .jupyterLabAppImageConfig(
                jupyterLabAppImageConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kernelGatewayImageConfig(
                kernelGatewayImageConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AppImageConfigArgs].
 */
@PulumiTagMarker
public class AppImageConfigArgsBuilder internal constructor() {
    private var appImageConfigName: Output? = null

    private var codeEditorAppImageConfig: Output? = null

    private var jupyterLabAppImageConfig: Output? = null

    private var kernelGatewayImageConfig: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Name of the AppImageConfig.
     */
    @JvmName("ybihxokrsknbhqtp")
    public suspend fun appImageConfigName(`value`: Output) {
        this.appImageConfigName = value
    }

    /**
     * @param value The CodeEditorAppImageConfig.
     */
    @JvmName("nsocoreihrpvgyyc")
    public suspend fun codeEditorAppImageConfig(`value`: Output) {
        this.codeEditorAppImageConfig = value
    }

    /**
     * @param value The JupyterLabAppImageConfig.
     */
    @JvmName("ncmgkhvnckbuuwvf")
    public suspend fun jupyterLabAppImageConfig(`value`: Output) {
        this.jupyterLabAppImageConfig = value
    }

    /**
     * @param value The KernelGatewayImageConfig.
     */
    @JvmName("efanqoyyfmlipvfn")
    public suspend fun kernelGatewayImageConfig(`value`: Output) {
        this.kernelGatewayImageConfig = value
    }

    /**
     * @param value A list of tags to apply to the AppImageConfig.
     */
    @JvmName("teohdnrqffidsiml")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of tags to apply to the AppImageConfig.
     */
    @JvmName("qyncnscuxpocsufx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The Name of the AppImageConfig.
     */
    @JvmName("gxcecfdxeoejitny")
    public suspend fun appImageConfigName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appImageConfigName = mapped
    }

    /**
     * @param value The CodeEditorAppImageConfig.
     */
    @JvmName("qgoyqgxndeylomjn")
    public suspend fun codeEditorAppImageConfig(`value`: AppImageConfigCodeEditorAppImageConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.codeEditorAppImageConfig = mapped
    }

    /**
     * @param argument The CodeEditorAppImageConfig.
     */
    @JvmName("dxedpfwgxdlkoawr")
    public suspend fun codeEditorAppImageConfig(argument: suspend AppImageConfigCodeEditorAppImageConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AppImageConfigCodeEditorAppImageConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.codeEditorAppImageConfig = mapped
    }

    /**
     * @param value The JupyterLabAppImageConfig.
     */
    @JvmName("hvvapfmamxhdemua")
    public suspend fun jupyterLabAppImageConfig(`value`: AppImageConfigJupyterLabAppImageConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jupyterLabAppImageConfig = mapped
    }

    /**
     * @param argument The JupyterLabAppImageConfig.
     */
    @JvmName("iywqkmqdbutwjynq")
    public suspend fun jupyterLabAppImageConfig(argument: suspend AppImageConfigJupyterLabAppImageConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AppImageConfigJupyterLabAppImageConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.jupyterLabAppImageConfig = mapped
    }

    /**
     * @param value The KernelGatewayImageConfig.
     */
    @JvmName("uleibwtaakpepcrx")
    public suspend fun kernelGatewayImageConfig(`value`: AppImageConfigKernelGatewayImageConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kernelGatewayImageConfig = mapped
    }

    /**
     * @param argument The KernelGatewayImageConfig.
     */
    @JvmName("qybjkkipvxsssijh")
    public suspend fun kernelGatewayImageConfig(argument: suspend AppImageConfigKernelGatewayImageConfigArgsBuilder.() -> Unit) {
        val toBeMapped = AppImageConfigKernelGatewayImageConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.kernelGatewayImageConfig = mapped
    }

    /**
     * @param value A list of tags to apply to the AppImageConfig.
     */
    @JvmName("qubopgvdijoerkjc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to apply to the AppImageConfig.
     */
    @JvmName("wrgkwgbwxhcmhntk")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to apply to the AppImageConfig.
     */
    @JvmName("hajodnqqqvkfcovi")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of tags to apply to the AppImageConfig.
     */
    @JvmName("rfyslkmtkcqjoqef")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of tags to apply to the AppImageConfig.
     */
    @JvmName("txotgikmxcyovgwv")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AppImageConfigArgs = AppImageConfigArgs(
        appImageConfigName = appImageConfigName,
        codeEditorAppImageConfig = codeEditorAppImageConfig,
        jupyterLabAppImageConfig = jupyterLabAppImageConfig,
        kernelGatewayImageConfig = kernelGatewayImageConfig,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy