
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy