interface TreatmentToWeightProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Evidently.CfnExperimentPropsMixin.TreatmentToWeightProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsevidently#CfnExperimentPropsMixin_TreatmentToWeightProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnExperimentPropsMixin.TreatmentToWeightProperty |
Python | aws_cdk.cfn_property_mixins.aws_evidently.CfnExperimentPropsMixin.TreatmentToWeightProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_evidently » CfnExperimentPropsMixin » 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/cfn-property-mixins';
const treatmentToWeightProperty: evidently.CfnExperimentPropsMixin.TreatmentToWeightProperty = {
splitWeight: 123,
treatment: 'treatment',
};
Properties
| Name | Type | Description |
|---|---|---|
| split | number | The portion of experiment traffic to allocate to this treatment. |
| treatment? | string | The name of the treatment. |
splitWeight?
Type:
number
(optional)
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
(optional)
The name of the treatment.

.NET
Go
Java
Python
TypeScript