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

com.pulumi.aws.sagemaker.kotlin.inputs.SpaceSpaceSettingsKernelGatewayAppSettingsArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.sagemaker.kotlin.inputs

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

/**
 *
 * @property customImages A list of custom SageMaker images that are configured to run as a KernelGateway app. See `custom_image` Block below.
 * @property defaultResourceSpec The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. See `default_resource_spec` Block below.
 * @property lifecycleConfigArns The Amazon Resource Name (ARN) of the Lifecycle Configurations.
 */
public data class SpaceSpaceSettingsKernelGatewayAppSettingsArgs(
    public val customImages: Output>? =
        null,
    public val defaultResourceSpec: Output,
    public val lifecycleConfigArns: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.sagemaker.inputs.SpaceSpaceSettingsKernelGatewayAppSettingsArgs =
        com.pulumi.aws.sagemaker.inputs.SpaceSpaceSettingsKernelGatewayAppSettingsArgs.builder()
            .customImages(
                customImages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .defaultResourceSpec(
                defaultResourceSpec.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .lifecycleConfigArns(
                lifecycleConfigArns?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var defaultResourceSpec:
        Output? = null

    private var lifecycleConfigArns: Output>? = null

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

    @JvmName("oasqcvlfyohvitjl")
    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. See `custom_image` Block below.
     */
    @JvmName("kqywdyirlsyyagdy")
    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 SageMaker image created on the instance. See `default_resource_spec` Block below.
     */
    @JvmName("smywcdlmvvuirldo")
    public suspend fun defaultResourceSpec(`value`: Output) {
        this.defaultResourceSpec = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("petrwfkobonoufpc")
    public suspend fun lifecycleConfigArns(`value`: Output>) {
        this.lifecycleConfigArns = value
    }

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

    /**
     * @param values The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("jcmujtyhyckqhdlj")
    public suspend fun lifecycleConfigArns(values: List>) {
        this.lifecycleConfigArns = Output.all(values)
    }

    /**
     * @param value A list of custom SageMaker images that are configured to run as a KernelGateway app. See `custom_image` Block below.
     */
    @JvmName("lnjxbbebdhatrkme")
    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. See `custom_image` Block below.
     */
    @JvmName("bckwwvmlycvyvvux")
    public suspend fun customImages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgsBuilder().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. See `custom_image` Block below.
     */
    @JvmName("wqcogvwlxmsngmdl")
    public suspend fun customImages(vararg argument: suspend SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgsBuilder().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. See `custom_image` Block below.
     */
    @JvmName("hvvwdcvvjquijyyo")
    public suspend fun customImages(argument: suspend SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgsBuilder().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. See `custom_image` Block below.
     */
    @JvmName("atjgfqjsbjbnieia")
    public suspend fun customImages(vararg values: SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgs) {
        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 SageMaker image created on the instance. See `default_resource_spec` Block below.
     */
    @JvmName("decrscwfykcrorbc")
    public suspend fun defaultResourceSpec(`value`: SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgs) {
        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 SageMaker image created on the instance. See `default_resource_spec` Block below.
     */
    @JvmName("drhxprcldiqesavc")
    public suspend fun defaultResourceSpec(argument: suspend SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgsBuilder.() -> Unit) {
        val toBeMapped =
            SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.defaultResourceSpec = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("komcvpfstfeisewv")
    public suspend fun lifecycleConfigArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lifecycleConfigArns = mapped
    }

    /**
     * @param values The Amazon Resource Name (ARN) of the Lifecycle Configurations.
     */
    @JvmName("cgcpoyhcvbpgjddd")
    public suspend fun lifecycleConfigArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lifecycleConfigArns = mapped
    }

    internal fun build(): SpaceSpaceSettingsKernelGatewayAppSettingsArgs =
        SpaceSpaceSettingsKernelGatewayAppSettingsArgs(
            customImages = customImages,
            defaultResourceSpec = defaultResourceSpec ?: throw PulumiNullFieldException("defaultResourceSpec"),
            lifecycleConfigArns = lifecycleConfigArns,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy