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

cloudshift.awscdk.dsl.services.evidently.CfnExperimentTreatmentToWeightPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.evidently

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import kotlin.String
import software.amazon.awscdk.services.evidently.CfnExperiment

/**
 * This structure defines how much experiment traffic to allocate to one treatment used in the
 * experiment.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.evidently.*;
 * TreatmentToWeightProperty treatmentToWeightProperty = TreatmentToWeightProperty.builder()
 * .splitWeight(123)
 * .treatment("treatment")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-experiment-treatmenttoweight.html)
 */
@CdkDslMarker
public class CfnExperimentTreatmentToWeightPropertyDsl {
  private val cdkBuilder: CfnExperiment.TreatmentToWeightProperty.Builder =
      CfnExperiment.TreatmentToWeightProperty.builder()

  /**
   * @param splitWeight The portion of experiment traffic to allocate to this treatment. 
   * Specify the traffic portion in thousandths of a percent, so 20,000 allocated to a treatment
   * would allocate 20% of the experiment traffic to that treatment.
   */
  public fun splitWeight(splitWeight: Number) {
    cdkBuilder.splitWeight(splitWeight)
  }

  /**
   * @param treatment The name of the treatment. 
   */
  public fun treatment(treatment: String) {
    cdkBuilder.treatment(treatment)
  }

  public fun build(): CfnExperiment.TreatmentToWeightProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy