TreatmentObjectProperty
Struct External
A structure that defines one treatment in an experiment.
A treatment is a variation of the feature that you are including in the experiment.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 treatmentObjectProperty: evidently.CfnExperiment.TreatmentObjectProperty = {
feature: 'feature',
treatmentName: 'treatmentName',
variation: 'variation',
// the properties below are optional
description: 'description',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_evidently as evidently
treatment_object_property = evidently.CfnExperiment.TreatmentObjectProperty(
feature="feature",
treatment_name="treatmentName",
variation="variation",
# the properties below are optional
description="description"
)
java
// 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.*;
TreatmentObjectProperty treatmentObjectProperty = TreatmentObjectProperty.builder()
.feature("feature")
.treatmentName("treatmentName")
.variation("variation")
// the properties below are optional
.description("description")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Evidently;
var treatmentObjectProperty = new TreatmentObjectProperty {
Feature = "feature",
TreatmentName = "treatmentName",
Variation = "variation",
// the properties below are optional
Description = "description"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
treatmentObjectProperty := &TreatmentObjectProperty{
Feature: jsii.String("feature"),
TreatmentName: jsii.String("treatmentName"),
Variation: jsii.String("variation"),
// the properties below are optional
Description: jsii.String("description"),
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the treatment.
The name of the feature for this experiment.
treatmentNamestringtreatment_namestrtreatmentNameStringTreatmentNamestringTreatmentName*string required #A name for this treatment.
It can include up to 127 characters.
The name of the variation to use for this treatment.