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

com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelPackageAdditionalInferenceSpecificationDefinitionArgs.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.ModelPackageAdditionalInferenceSpecificationDefinitionArgs.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

/**
 * Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package.AdditionalInferenceSpecifications can be added to existing model packages using AdditionalInferenceSpecificationsToAdd.
 * @property containers The Amazon ECR registry path of the Docker image that contains the inference code.
 * @property description A description of the additional Inference specification.
 * @property name A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.
 * @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 ModelPackageAdditionalInferenceSpecificationDefinitionArgs(
    public val containers: Output>,
    public val description: Output? = null,
    public val name: Output,
    public val supportedContentTypes: Output>? = null,
    public val supportedRealtimeInferenceInstanceTypes: Output>? = null,
    public val supportedResponseMimeTypes: Output>? = null,
    public val supportedTransformInstanceTypes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.ModelPackageAdditionalInferenceSpecificationDefinitionArgs =
        com.pulumi.awsnative.sagemaker.inputs.ModelPackageAdditionalInferenceSpecificationDefinitionArgs.builder()
            .containers(
                containers.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .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 [ModelPackageAdditionalInferenceSpecificationDefinitionArgs].
 */
@PulumiTagMarker
public class ModelPackageAdditionalInferenceSpecificationDefinitionArgsBuilder internal constructor() {
    private var containers: Output>? = null

    private var description: Output? = null

    private var name: 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("scbgrosbbeboenwr")
    public suspend fun containers(`value`: Output>) {
        this.containers = value
    }

    @JvmName("vfbfbkcwkhuhkqgb")
    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("cpogmupfxmecoryh")
    public suspend fun containers(values: List>) {
        this.containers = Output.all(values)
    }

    /**
     * @param value A description of the additional Inference specification.
     */
    @JvmName("fvcwcofhijouqgfy")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.
     */
    @JvmName("vwhfovaqhdcwubru")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

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

    /**
     * @param values The supported MIME types for the input data.
     */
    @JvmName("evfhgdqdpwyxxqah")
    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("mliniktcemdvoplj")
    public suspend fun supportedRealtimeInferenceInstanceTypes(`value`: Output>) {
        this.supportedRealtimeInferenceInstanceTypes = value
    }

    @JvmName("pgbalmvxyprhgrdw")
    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("dqnftxraptnvxbxk")
    public suspend fun supportedRealtimeInferenceInstanceTypes(values: List>) {
        this.supportedRealtimeInferenceInstanceTypes = Output.all(values)
    }

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

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

    /**
     * @param values The supported MIME types for the output data.
     */
    @JvmName("yhpamemoyeagflfw")
    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("voxudiirdqxitwpb")
    public suspend fun supportedTransformInstanceTypes(`value`: Output>) {
        this.supportedTransformInstanceTypes = value
    }

    @JvmName("jlcatcwwrdvqacdv")
    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("qiyhaxkxfkoavxee")
    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("fjfdhdtuahbspcfe")
    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("dqidtcyagjvqpwfl")
    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("oapmavqvjvafkjuu")
    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("wgdjlrkyyakymawx")
    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("kqvprcvihkeyfspw")
    public suspend fun containers(vararg values: ModelPackageContainerDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containers = mapped
    }

    /**
     * @param value A description of the additional Inference specification.
     */
    @JvmName("ykrarlepexaqnnuf")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A unique name to identify the additional inference specification. The name must be unique within the list of your additional inference specifications for a particular model package.
     */
    @JvmName("bbynqipqvynnpryo")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The supported MIME types for the input data.
     */
    @JvmName("hkngcigqhpfssgqi")
    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("tltxgqpijscuxfuu")
    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("tymuyqlbgoeikkxi")
    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("dkofunayjoloiyhf")
    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("xpribveuvvquwkxo")
    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("fvqbjxfblgxyfqfc")
    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("ausvpsrvbkxmhsnj")
    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("yyvipeqkpaqgopoh")
    public suspend fun supportedTransformInstanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedTransformInstanceTypes = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy