# GroupToWeightProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `groupName`: string (required) — The name of the launch group.

  It can include up to 127 characters.

- `splitWeight`: number (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.
