aws-cdk-lib.aws_evidently.CfnExperiment.TreatmentToWeightProperty

interface TreatmentToWeightProperty

LanguageType name
.NETAmazon.CDK.AWS.Evidently.CfnExperiment.TreatmentToWeightProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevidently#CfnExperiment_TreatmentToWeightProperty
Javasoftware.amazon.awscdk.services.evidently.CfnExperiment.TreatmentToWeightProperty
Pythonaws_cdk.aws_evidently.CfnExperiment.TreatmentToWeightProperty
TypeScript aws-cdk-lib » aws_evidently » CfnExperiment » TreatmentToWeightProperty

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 { aws_evidently as evidently } from 'aws-cdk-lib';
const treatmentToWeightProperty: evidently.CfnExperiment.TreatmentToWeightProperty = {
  splitWeight: 123,
  treatment: 'treatment',
};

Properties

NameTypeDescription
splitWeightnumberThe portion of experiment traffic to allocate to this treatment.
treatmentstringThe name of the treatment.

splitWeight

Type: number

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.


treatment

Type: string

The name of the treatment.