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

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

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

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

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

/**
 * The container configuration for a SageMaker image.
 * @property containerArguments A list of arguments to apply to the container.
 * @property containerEntrypoint The custom entry point to use on container.
 * @property containerEnvironmentVariables A list of variables to apply to the custom container.
 */
public data class AppImageConfigContainerConfigArgs(
    public val containerArguments: Output>? = null,
    public val containerEntrypoint: Output>? = null,
    public val containerEnvironmentVariables: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.AppImageConfigContainerConfigArgs =
        com.pulumi.awsnative.sagemaker.inputs.AppImageConfigContainerConfigArgs.builder()
            .containerArguments(containerArguments?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .containerEntrypoint(containerEntrypoint?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .containerEnvironmentVariables(
                containerEnvironmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

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

    private var containerEntrypoint: Output>? = null

    private var containerEnvironmentVariables:
        Output>? = null

    /**
     * @param value A list of arguments to apply to the container.
     */
    @JvmName("hasgnckcewrtihbm")
    public suspend fun containerArguments(`value`: Output>) {
        this.containerArguments = value
    }

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

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

    /**
     * @param value The custom entry point to use on container.
     */
    @JvmName("elccdcnxvkblxvqp")
    public suspend fun containerEntrypoint(`value`: Output>) {
        this.containerEntrypoint = value
    }

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

    /**
     * @param values The custom entry point to use on container.
     */
    @JvmName("vcmetbachhksekbw")
    public suspend fun containerEntrypoint(values: List>) {
        this.containerEntrypoint = Output.all(values)
    }

    /**
     * @param value A list of variables to apply to the custom container.
     */
    @JvmName("jpyatfuexpyybjpj")
    public suspend fun containerEnvironmentVariables(`value`: Output>) {
        this.containerEnvironmentVariables = value
    }

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

    /**
     * @param values A list of variables to apply to the custom container.
     */
    @JvmName("wyprldegvjqggnef")
    public suspend fun containerEnvironmentVariables(values: List>) {
        this.containerEnvironmentVariables = Output.all(values)
    }

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

    /**
     * @param values A list of arguments to apply to the container.
     */
    @JvmName("qkuxsnydodkrdivd")
    public suspend fun containerArguments(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerArguments = mapped
    }

    /**
     * @param value The custom entry point to use on container.
     */
    @JvmName("gbchtmwkpbjipxqs")
    public suspend fun containerEntrypoint(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerEntrypoint = mapped
    }

    /**
     * @param values The custom entry point to use on container.
     */
    @JvmName("yobsxkndpoadhvqc")
    public suspend fun containerEntrypoint(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerEntrypoint = mapped
    }

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

    /**
     * @param argument A list of variables to apply to the custom container.
     */
    @JvmName("gcqpmhjfertalblr")
    public suspend fun containerEnvironmentVariables(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AppImageConfigCustomImageContainerEnvironmentVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.containerEnvironmentVariables = mapped
    }

    /**
     * @param argument A list of variables to apply to the custom container.
     */
    @JvmName("tpophgdchivoeedd")
    public suspend fun containerEnvironmentVariables(vararg argument: suspend AppImageConfigCustomImageContainerEnvironmentVariableArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AppImageConfigCustomImageContainerEnvironmentVariableArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.containerEnvironmentVariables = mapped
    }

    /**
     * @param argument A list of variables to apply to the custom container.
     */
    @JvmName("rhsmgekufyarknrf")
    public suspend fun containerEnvironmentVariables(argument: suspend AppImageConfigCustomImageContainerEnvironmentVariableArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AppImageConfigCustomImageContainerEnvironmentVariableArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.containerEnvironmentVariables = mapped
    }

    /**
     * @param values A list of variables to apply to the custom container.
     */
    @JvmName("veubqgncpconswpx")
    public suspend fun containerEnvironmentVariables(vararg values: AppImageConfigCustomImageContainerEnvironmentVariableArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerEnvironmentVariables = mapped
    }

    internal fun build(): AppImageConfigContainerConfigArgs = AppImageConfigContainerConfigArgs(
        containerArguments = containerArguments,
        containerEntrypoint = containerEntrypoint,
        containerEnvironmentVariables = containerEnvironmentVariables,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy