
com.pulumi.awsnative.sagemaker.kotlin.inputs.InferenceExperimentShadowModelVariantConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.inputs
import com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentShadowModelVariantConfigArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The name and sampling percentage of a shadow variant.
* @property samplingPercentage The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.
* @property shadowModelVariantName The name of the shadow variant.
*/
public data class InferenceExperimentShadowModelVariantConfigArgs(
public val samplingPercentage: Output,
public val shadowModelVariantName: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentShadowModelVariantConfigArgs =
com.pulumi.awsnative.sagemaker.inputs.InferenceExperimentShadowModelVariantConfigArgs.builder()
.samplingPercentage(samplingPercentage.applyValue({ args0 -> args0 }))
.shadowModelVariantName(shadowModelVariantName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InferenceExperimentShadowModelVariantConfigArgs].
*/
@PulumiTagMarker
public class InferenceExperimentShadowModelVariantConfigArgsBuilder internal constructor() {
private var samplingPercentage: Output? = null
private var shadowModelVariantName: Output? = null
/**
* @param value The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.
*/
@JvmName("bipvhsfriuvseyuv")
public suspend fun samplingPercentage(`value`: Output) {
this.samplingPercentage = value
}
/**
* @param value The name of the shadow variant.
*/
@JvmName("cjndtnutdyedcktc")
public suspend fun shadowModelVariantName(`value`: Output) {
this.shadowModelVariantName = value
}
/**
* @param value The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.
*/
@JvmName("tncroofeytjjdxyn")
public suspend fun samplingPercentage(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.samplingPercentage = mapped
}
/**
* @param value The name of the shadow variant.
*/
@JvmName("nerahlinqcyhdofu")
public suspend fun shadowModelVariantName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.shadowModelVariantName = mapped
}
internal fun build(): InferenceExperimentShadowModelVariantConfigArgs =
InferenceExperimentShadowModelVariantConfigArgs(
samplingPercentage = samplingPercentage ?: throw PulumiNullFieldException("samplingPercentage"),
shadowModelVariantName = shadowModelVariantName ?: throw
PulumiNullFieldException("shadowModelVariantName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy