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

com.pulumi.awsnative.sagemaker.kotlin.AppImageConfig.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.outputs.CreateOnlyTag
import com.pulumi.awsnative.sagemaker.kotlin.outputs.AppImageConfigCodeEditorAppImageConfig
import com.pulumi.awsnative.sagemaker.kotlin.outputs.AppImageConfigJupyterLabAppImageConfig
import com.pulumi.awsnative.sagemaker.kotlin.outputs.AppImageConfigKernelGatewayImageConfig
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.CreateOnlyTag.Companion.toKotlin as createOnlyTagToKotlin
import com.pulumi.awsnative.sagemaker.kotlin.outputs.AppImageConfigCodeEditorAppImageConfig.Companion.toKotlin as appImageConfigCodeEditorAppImageConfigToKotlin
import com.pulumi.awsnative.sagemaker.kotlin.outputs.AppImageConfigJupyterLabAppImageConfig.Companion.toKotlin as appImageConfigJupyterLabAppImageConfigToKotlin
import com.pulumi.awsnative.sagemaker.kotlin.outputs.AppImageConfigKernelGatewayImageConfig.Companion.toKotlin as appImageConfigKernelGatewayImageConfigToKotlin

/**
 * Builder for [AppImageConfig].
 */
@PulumiTagMarker
public class AppImageConfigResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: AppImageConfigArgs = AppImageConfigArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend AppImageConfigArgsBuilder.() -> Unit) {
        val builder = AppImageConfigArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): AppImageConfig {
        val builtJavaResource = com.pulumi.awsnative.sagemaker.AppImageConfig(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return AppImageConfig(builtJavaResource)
    }
}

/**
 * Resource Type definition for AWS::SageMaker::AppImageConfig
 */
public class AppImageConfig internal constructor(
    override val javaResource: com.pulumi.awsnative.sagemaker.AppImageConfig,
) : KotlinCustomResource(javaResource, AppImageConfigMapper) {
    /**
     * The Amazon Resource Name (ARN) of the AppImageConfig.
     */
    public val appImageConfigArn: Output
        get() = javaResource.appImageConfigArn().applyValue({ args0 -> args0 })

    /**
     * The Name of the AppImageConfig.
     */
    public val appImageConfigName: Output
        get() = javaResource.appImageConfigName().applyValue({ args0 -> args0 })

    /**
     * The CodeEditorAppImageConfig.
     */
    public val codeEditorAppImageConfig: Output?
        get() = javaResource.codeEditorAppImageConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> appImageConfigCodeEditorAppImageConfigToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The JupyterLabAppImageConfig.
     */
    public val jupyterLabAppImageConfig: Output?
        get() = javaResource.jupyterLabAppImageConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> appImageConfigJupyterLabAppImageConfigToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The KernelGatewayImageConfig.
     */
    public val kernelGatewayImageConfig: Output?
        get() = javaResource.kernelGatewayImageConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> appImageConfigKernelGatewayImageConfigToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * A list of tags to apply to the AppImageConfig.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> createOnlyTagToKotlin(args0) })
                })
            }).orElse(null)
        })
}

public object AppImageConfigMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.sagemaker.AppImageConfig::class == javaResource::class

    override fun map(javaResource: Resource): AppImageConfig = AppImageConfig(
        javaResource as
            com.pulumi.awsnative.sagemaker.AppImageConfig,
    )
}

/**
 * @see [AppImageConfig].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [AppImageConfig].
 */
public suspend fun appImageConfig(
    name: String,
    block: suspend AppImageConfigResourceBuilder.() -> Unit,
): AppImageConfig {
    val builder = AppImageConfigResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [AppImageConfig].
 * @param name The _unique_ name of the resulting resource.
 */
public fun appImageConfig(name: String): AppImageConfig {
    val builder = AppImageConfigResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy