SegmentOverrideProperty Struct
Use this structure to specify different traffic splits for one or more audience segments .
A segment is a portion of your audience that share one or more characteristics. Examples could be Chrome browser users, users in Europe, or Firefox browser users in Europe who also fit other criteria that your application collects, such as age.
For more information, see Use segments to focus your audience .
This sructure is an array of up to six segment override objects. Each of these objects specifies a segment that you have already created, and defines the traffic split for that segment.
| Source | |
|---|---|
| Type last changed |
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 segmentOverrideProperty: evidently.CfnLaunch.SegmentOverrideProperty = {
evaluationOrder: 123,
segment: 'segment',
weights: [{
groupName: 'groupName',
splitWeight: 123,
}],
};
# 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
segment_override_property = evidently.CfnLaunch.SegmentOverrideProperty(
evaluation_order=123,
segment="segment",
weights=[evidently.CfnLaunch.GroupToWeightProperty(
group_name="groupName",
split_weight=123
)]
)
// 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.*;
SegmentOverrideProperty segmentOverrideProperty = SegmentOverrideProperty.builder()
.evaluationOrder(123)
.segment("segment")
.weights(List.of(GroupToWeightProperty.builder()
.groupName("groupName")
.splitWeight(123)
.build()))
.build();
// 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 segmentOverrideProperty = new SegmentOverrideProperty {
EvaluationOrder = 123,
Segment = "segment",
Weights = new [] { new GroupToWeightProperty {
GroupName = "groupName",
SplitWeight = 123
} }
};
// 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"
segmentOverrideProperty := &SegmentOverrideProperty{
EvaluationOrder: jsii.Number(123),
Segment: jsii.String("segment"),
Weights: []interface{}{
&GroupToWeightProperty{
GroupName: jsii.String("groupName"),
SplitWeight: jsii.Number(123),
},
},
}
Properties
evaluationOrdernumberevaluation_orderint | floatevaluationOrderNumberEvaluationOrderdoubleEvaluationOrder*float64 required #Segment overrides with lower numbers are evaluated first.
weightsIResolvable | IResolvable | CfnLaunch.GroupToWeightProperty[]weightstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, GroupToWeightProperty]]]weightsIResolvableWeightsIResolvableWeightsinterface{} required #notes
This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.