Skip to content
v2.278.0

GroupToWeightProperty Struct ​

A structure containing the percentage of launch traffic to allocate to one launch group.

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 groupToWeightProperty: evidently.CfnLaunch.GroupToWeightProperty = {
  groupName: 'groupName',
  splitWeight: 123,
};
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

group_to_weight_property = evidently.CfnLaunch.GroupToWeightProperty(
    group_name="groupName",
    split_weight=123
)
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.*;

GroupToWeightProperty groupToWeightProperty = GroupToWeightProperty.builder()
        .groupName("groupName")
        .splitWeight(123)
        .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 groupToWeightProperty = new GroupToWeightProperty {
    GroupName = "groupName",
    SplitWeight = 123
};
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"

groupToWeightProperty := &GroupToWeightProperty{
	GroupName: jsii.String("groupName"),
	SplitWeight: jsii.Number(123),
}

Properties ​

groupNamestringgroup_namestrgroupNameStringGroupNamestringGroupName*string required #
The name of the launch group.

It can include up to 127 characters.

splitWeightnumbersplit_weightint | floatsplitWeightNumberSplitWeightdoubleSplitWeight*float64 required #
The portion of launch traffic to allocate to this launch group.

This is represented in thousandths of a percent. For example, specify 20,000 to allocate 20% of the launch audience to this launch group.