
com.pulumi.awsnative.evidently.kotlin.inputs.ExperimentOnlineAbConfigObjectArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.evidently.kotlin.inputs
import com.pulumi.awsnative.evidently.inputs.ExperimentOnlineAbConfigObjectArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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
/**
*
* @property controlTreatmentName The name of the variation that is to be the default variation that the other variations are compared to.
* @property treatmentWeights A set of key-value pairs. The keys are treatment names, and the values are the portion of experiment traffic to be assigned to that treatment. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
*/
public data class ExperimentOnlineAbConfigObjectArgs(
public val controlTreatmentName: Output? = null,
public val treatmentWeights: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.evidently.inputs.ExperimentOnlineAbConfigObjectArgs =
com.pulumi.awsnative.evidently.inputs.ExperimentOnlineAbConfigObjectArgs.builder()
.controlTreatmentName(controlTreatmentName?.applyValue({ args0 -> args0 }))
.treatmentWeights(
treatmentWeights?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ExperimentOnlineAbConfigObjectArgs].
*/
@PulumiTagMarker
public class ExperimentOnlineAbConfigObjectArgsBuilder internal constructor() {
private var controlTreatmentName: Output? = null
private var treatmentWeights: Output>? = null
/**
* @param value The name of the variation that is to be the default variation that the other variations are compared to.
*/
@JvmName("gxvfnfhvcdvlsubr")
public suspend fun controlTreatmentName(`value`: Output) {
this.controlTreatmentName = value
}
/**
* @param value A set of key-value pairs. The keys are treatment names, and the values are the portion of experiment traffic to be assigned to that treatment. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
*/
@JvmName("gfxwkyiilbcxjtul")
public suspend fun treatmentWeights(`value`: Output>) {
this.treatmentWeights = value
}
@JvmName("hwjykaffcwmilpqf")
public suspend fun treatmentWeights(vararg values: Output) {
this.treatmentWeights = Output.all(values.asList())
}
/**
* @param values A set of key-value pairs. The keys are treatment names, and the values are the portion of experiment traffic to be assigned to that treatment. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
*/
@JvmName("yohndcwakinjxkyv")
public suspend fun treatmentWeights(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy