
com.pulumi.aws.sagemaker.kotlin.inputs.ModelPrimaryContainerMultiModelConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.sagemaker.kotlin.inputs
import com.pulumi.aws.sagemaker.inputs.ModelPrimaryContainerMultiModelConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property modelCacheSetting Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to `Disabled`. Allowed values are: `Enabled` and `Disabled`.
*/
public data class ModelPrimaryContainerMultiModelConfigArgs(
public val modelCacheSetting: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.sagemaker.inputs.ModelPrimaryContainerMultiModelConfigArgs =
com.pulumi.aws.sagemaker.inputs.ModelPrimaryContainerMultiModelConfigArgs.builder()
.modelCacheSetting(modelCacheSetting?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModelPrimaryContainerMultiModelConfigArgs].
*/
@PulumiTagMarker
public class ModelPrimaryContainerMultiModelConfigArgsBuilder internal constructor() {
private var modelCacheSetting: Output? = null
/**
* @param value Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to `Disabled`. Allowed values are: `Enabled` and `Disabled`.
*/
@JvmName("cqjitustnbhtsjcg")
public suspend fun modelCacheSetting(`value`: Output) {
this.modelCacheSetting = value
}
/**
* @param value Whether to cache models for a multi-model endpoint. By default, multi-model endpoints cache models so that a model does not have to be loaded into memory each time it is invoked. Some use cases do not benefit from model caching. For example, if an endpoint hosts a large number of models that are each invoked infrequently, the endpoint might perform better if you disable model caching. To disable model caching, set the value of this parameter to `Disabled`. Allowed values are: `Enabled` and `Disabled`.
*/
@JvmName("uvwytrqpfmxqvose")
public suspend fun modelCacheSetting(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.modelCacheSetting = mapped
}
internal fun build(): ModelPrimaryContainerMultiModelConfigArgs =
ModelPrimaryContainerMultiModelConfigArgs(
modelCacheSetting = modelCacheSetting,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy