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

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

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

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

import com.pulumi.awsnative.sagemaker.inputs.ModelPackageInferenceSpecificationArgs.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

/**
 * Details about inference jobs that can be run with models based on this model package.
 * @property containers The Amazon ECR registry path of the Docker image that contains the inference code.
 * @property supportedContentTypes The supported MIME types for the input data.
 * @property supportedRealtimeInferenceInstanceTypes A list of the instance types that are used to generate inferences in real-time
 * @property supportedResponseMimeTypes The supported MIME types for the output data.
 * @property supportedTransformInstanceTypes A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
 */
public data class ModelPackageInferenceSpecificationArgs(
    public val containers: Output>,
    public val supportedContentTypes: Output>,
    public val supportedRealtimeInferenceInstanceTypes: Output>? = null,
    public val supportedResponseMimeTypes: Output>,
    public val supportedTransformInstanceTypes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageInferenceSpecificationArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelPackageInferenceSpecificationArgs.builder()
            .containers(
                containers.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .supportedContentTypes(supportedContentTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .supportedRealtimeInferenceInstanceTypes(
                supportedRealtimeInferenceInstanceTypes?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .supportedResponseMimeTypes(
                supportedResponseMimeTypes.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .supportedTransformInstanceTypes(
                supportedTransformInstanceTypes?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            ).build()
}

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

    private var supportedContentTypes: Output>? = null

    private var supportedRealtimeInferenceInstanceTypes: Output>? = null

    private var supportedResponseMimeTypes: Output>? = null

    private var supportedTransformInstanceTypes: Output>? = null

    /**
     * @param value The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("gqpwesdmtqkmsnwt")
    public suspend fun containers(`value`: Output>) {
        this.containers = value
    }

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

    /**
     * @param values The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("wmocutaaikocppnd")
    public suspend fun containers(values: List>) {
        this.containers = Output.all(values)
    }

    /**
     * @param value The supported MIME types for the input data.
     */
    @JvmName("gagcxqjxxjixclvh")
    public suspend fun supportedContentTypes(`value`: Output>) {
        this.supportedContentTypes = value
    }

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

    /**
     * @param values The supported MIME types for the input data.
     */
    @JvmName("bkxwwjekijnanprl")
    public suspend fun supportedContentTypes(values: List>) {
        this.supportedContentTypes = Output.all(values)
    }

    /**
     * @param value A list of the instance types that are used to generate inferences in real-time
     */
    @JvmName("tfeihyobgatwyovg")
    public suspend fun supportedRealtimeInferenceInstanceTypes(`value`: Output>) {
        this.supportedRealtimeInferenceInstanceTypes = value
    }

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

    /**
     * @param values A list of the instance types that are used to generate inferences in real-time
     */
    @JvmName("fofuaigsslbjgslq")
    public suspend fun supportedRealtimeInferenceInstanceTypes(values: List>) {
        this.supportedRealtimeInferenceInstanceTypes = Output.all(values)
    }

    /**
     * @param value The supported MIME types for the output data.
     */
    @JvmName("gccmncyhmgpqrtqp")
    public suspend fun supportedResponseMimeTypes(`value`: Output>) {
        this.supportedResponseMimeTypes = value
    }

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

    /**
     * @param values The supported MIME types for the output data.
     */
    @JvmName("uspdrbeoyhcpnfho")
    public suspend fun supportedResponseMimeTypes(values: List>) {
        this.supportedResponseMimeTypes = Output.all(values)
    }

    /**
     * @param value A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
     */
    @JvmName("qtiehogcklbrkcey")
    public suspend fun supportedTransformInstanceTypes(`value`: Output>) {
        this.supportedTransformInstanceTypes = value
    }

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

    /**
     * @param values A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
     */
    @JvmName("ovxncqxnnrnymbyi")
    public suspend fun supportedTransformInstanceTypes(values: List>) {
        this.supportedTransformInstanceTypes = Output.all(values)
    }

    /**
     * @param value The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("hpsqyaxrkfvvlyno")
    public suspend fun containers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param argument The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("lkmhmrrfekkdxbji")
    public suspend fun containers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ModelPackageContainerDefinitionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param argument The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("pqsyvhnttarkuqnw")
    public suspend fun containers(vararg argument: suspend ModelPackageContainerDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ModelPackageContainerDefinitionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param argument The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("cbftdmwnggbadfca")
    public suspend fun containers(argument: suspend ModelPackageContainerDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ModelPackageContainerDefinitionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.containers = mapped
    }

    /**
     * @param values The Amazon ECR registry path of the Docker image that contains the inference code.
     */
    @JvmName("mpddiovmonocukpg")
    public suspend fun containers(vararg values: ModelPackageContainerDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param value The supported MIME types for the input data.
     */
    @JvmName("yspflsksjqhbxrfn")
    public suspend fun supportedContentTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedContentTypes = mapped
    }

    /**
     * @param values The supported MIME types for the input data.
     */
    @JvmName("exfrwvhihmuysxpt")
    public suspend fun supportedContentTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedContentTypes = mapped
    }

    /**
     * @param value A list of the instance types that are used to generate inferences in real-time
     */
    @JvmName("wlqsbdpwbsxybaac")
    public suspend fun supportedRealtimeInferenceInstanceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedRealtimeInferenceInstanceTypes = mapped
    }

    /**
     * @param values A list of the instance types that are used to generate inferences in real-time
     */
    @JvmName("tosboknmuokvdles")
    public suspend fun supportedRealtimeInferenceInstanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedRealtimeInferenceInstanceTypes = mapped
    }

    /**
     * @param value The supported MIME types for the output data.
     */
    @JvmName("stetmpogmodupjnx")
    public suspend fun supportedResponseMimeTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedResponseMimeTypes = mapped
    }

    /**
     * @param values The supported MIME types for the output data.
     */
    @JvmName("hahbdqyoviwmhaci")
    public suspend fun supportedResponseMimeTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedResponseMimeTypes = mapped
    }

    /**
     * @param value A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
     */
    @JvmName("rqkkopsokiqllqde")
    public suspend fun supportedTransformInstanceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedTransformInstanceTypes = mapped
    }

    /**
     * @param values A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
     */
    @JvmName("kqomeomvlikbafyu")
    public suspend fun supportedTransformInstanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedTransformInstanceTypes = mapped
    }

    internal fun build(): ModelPackageInferenceSpecificationArgs =
        ModelPackageInferenceSpecificationArgs(
            containers = containers ?: throw PulumiNullFieldException("containers"),
            supportedContentTypes = supportedContentTypes ?: throw
                PulumiNullFieldException("supportedContentTypes"),
            supportedRealtimeInferenceInstanceTypes = supportedRealtimeInferenceInstanceTypes,
            supportedResponseMimeTypes = supportedResponseMimeTypes ?: throw
                PulumiNullFieldException("supportedResponseMimeTypes"),
            supportedTransformInstanceTypes = supportedTransformInstanceTypes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy