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

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

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

import com.pulumi.awsnative.sagemaker.inputs.ModelPackageDataSourceArgs.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.jvm.JvmName

/**
 * Describes the input source of a transform job and the way the transform job consumes it.
 * @property s3DataSource The S3 location of the data source that is associated with a channel.
 */
public data class ModelPackageDataSourceArgs(
    public val s3DataSource: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageDataSourceArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelPackageDataSourceArgs.builder()
            .s3DataSource(s3DataSource.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ModelPackageDataSourceArgs].
 */
@PulumiTagMarker
public class ModelPackageDataSourceArgsBuilder internal constructor() {
    private var s3DataSource: Output? = null

    /**
     * @param value The S3 location of the data source that is associated with a channel.
     */
    @JvmName("uxvvxhhmivvhwrek")
    public suspend fun s3DataSource(`value`: Output) {
        this.s3DataSource = value
    }

    /**
     * @param value The S3 location of the data source that is associated with a channel.
     */
    @JvmName("htsciejitsfcrwar")
    public suspend fun s3DataSource(`value`: ModelPackageS3DataSourceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.s3DataSource = mapped
    }

    /**
     * @param argument The S3 location of the data source that is associated with a channel.
     */
    @JvmName("gsttghgadrqbfkoe")
    public suspend fun s3DataSource(argument: suspend ModelPackageS3DataSourceArgsBuilder.() -> Unit) {
        val toBeMapped = ModelPackageS3DataSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.s3DataSource = mapped
    }

    internal fun build(): ModelPackageDataSourceArgs = ModelPackageDataSourceArgs(
        s3DataSource = s3DataSource ?: throw PulumiNullFieldException("s3DataSource"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy