# CfnLaunchProps

Properties for defining a `CfnLaunch`.

Used as props by: [CfnLaunch](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently.CfnLaunch.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## 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 cfnLaunchProps: evidently.CfnLaunchProps = {
  groups: [{
    feature: 'feature',
    groupName: 'groupName',
    variation: 'variation',

    // the properties below are optional
    description: 'description',
  }],
  name: 'name',
  project: 'project',
  scheduledSplitsConfig: [{
    groupWeights: [{
      groupName: 'groupName',
      splitWeight: 123,
    }],
    startTime: 'startTime',

    // the properties below are optional
    segmentOverrides: [{
      evaluationOrder: 123,
      segment: 'segment',
      weights: [{
        groupName: 'groupName',
        splitWeight: 123,
      }],
    }],
  }],

  // the properties below are optional
  description: 'description',
  executionStatus: {
    status: 'status',

    // the properties below are optional
    desiredState: 'desiredState',
    reason: 'reason',
  },
  metricMonitors: [{
    entityIdKey: 'entityIdKey',
    metricName: 'metricName',
    valueKey: 'valueKey',

    // the properties below are optional
    eventPattern: 'eventPattern',
    unitLabel: 'unitLabel',
  }],
  randomizationSalt: 'randomizationSalt',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_launch_props = evidently.CfnLaunchProps(
    groups=[evidently.CfnLaunch.LaunchGroupObjectProperty(
        feature="feature",
        group_name="groupName",
        variation="variation",

        # the properties below are optional
        description="description"
    )],
    name="name",
    project="project",
    scheduled_splits_config=[evidently.CfnLaunch.StepConfigProperty(
        group_weights=[evidently.CfnLaunch.GroupToWeightProperty(
            group_name="groupName",
            split_weight=123
        )],
        start_time="startTime",

        # the properties below are optional
        segment_overrides=[evidently.CfnLaunch.SegmentOverrideProperty(
            evaluation_order=123,
            segment="segment",
            weights=[evidently.CfnLaunch.GroupToWeightProperty(
                group_name="groupName",
                split_weight=123
            )]
        )]
    )],

    # the properties below are optional
    description="description",
    execution_status=evidently.CfnLaunch.ExecutionStatusObjectProperty(
        status="status",

        # the properties below are optional
        desired_state="desiredState",
        reason="reason"
    ),
    metric_monitors=[evidently.CfnLaunch.MetricDefinitionObjectProperty(
        entity_id_key="entityIdKey",
        metric_name="metricName",
        value_key="valueKey",

        # the properties below are optional
        event_pattern="eventPattern",
        unit_label="unitLabel"
    )],
    randomization_salt="randomizationSalt",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.*;

CfnLaunchProps cfnLaunchProps = CfnLaunchProps.builder()
        .groups(List.of(LaunchGroupObjectProperty.builder()
                .feature("feature")
                .groupName("groupName")
                .variation("variation")

                // the properties below are optional
                .description("description")
                .build()))
        .name("name")
        .project("project")
        .scheduledSplitsConfig(List.of(StepConfigProperty.builder()
                .groupWeights(List.of(GroupToWeightProperty.builder()
                        .groupName("groupName")
                        .splitWeight(123)
                        .build()))
                .startTime("startTime")

                // the properties below are optional
                .segmentOverrides(List.of(SegmentOverrideProperty.builder()
                        .evaluationOrder(123)
                        .segment("segment")
                        .weights(List.of(GroupToWeightProperty.builder()
                                .groupName("groupName")
                                .splitWeight(123)
                                .build()))
                        .build()))
                .build()))

        // the properties below are optional
        .description("description")
        .executionStatus(ExecutionStatusObjectProperty.builder()
                .status("status")

                // the properties below are optional
                .desiredState("desiredState")
                .reason("reason")
                .build())
        .metricMonitors(List.of(MetricDefinitionObjectProperty.builder()
                .entityIdKey("entityIdKey")
                .metricName("metricName")
                .valueKey("valueKey")

                // the properties below are optional
                .eventPattern("eventPattern")
                .unitLabel("unitLabel")
                .build()))
        .randomizationSalt("randomizationSalt")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnLaunchProps = new CfnLaunchProps {
    Groups = new [] { new LaunchGroupObjectProperty {
        Feature = "feature",
        GroupName = "groupName",
        Variation = "variation",

        // the properties below are optional
        Description = "description"
    } },
    Name = "name",
    Project = "project",
    ScheduledSplitsConfig = new [] { new StepConfigProperty {
        GroupWeights = new [] { new GroupToWeightProperty {
            GroupName = "groupName",
            SplitWeight = 123
        } },
        StartTime = "startTime",

        // the properties below are optional
        SegmentOverrides = new [] { new SegmentOverrideProperty {
            EvaluationOrder = 123,
            Segment = "segment",
            Weights = new [] { new GroupToWeightProperty {
                GroupName = "groupName",
                SplitWeight = 123
            } }
        } }
    } },

    // the properties below are optional
    Description = "description",
    ExecutionStatus = new ExecutionStatusObjectProperty {
        Status = "status",

        // the properties below are optional
        DesiredState = "desiredState",
        Reason = "reason"
    },
    MetricMonitors = new [] { new MetricDefinitionObjectProperty {
        EntityIdKey = "entityIdKey",
        MetricName = "metricName",
        ValueKey = "valueKey",

        // the properties below are optional
        EventPattern = "eventPattern",
        UnitLabel = "unitLabel"
    } },
    RandomizationSalt = "randomizationSalt",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnLaunchProps := &CfnLaunchProps{
	Groups: []interface{}{
		&LaunchGroupObjectProperty{
			Feature: jsii.String("feature"),
			GroupName: jsii.String("groupName"),
			Variation: jsii.String("variation"),

			// the properties below are optional
			Description: jsii.String("description"),
		},
	},
	Name: jsii.String("name"),
	Project: jsii.String("project"),
	ScheduledSplitsConfig: []interface{}{
		&StepConfigProperty{
			GroupWeights: []interface{}{
				&GroupToWeightProperty{
					GroupName: jsii.String("groupName"),
					SplitWeight: jsii.Number(123),
				},
			},
			StartTime: jsii.String("startTime"),

			// the properties below are optional
			SegmentOverrides: []interface{}{
				&SegmentOverrideProperty{
					EvaluationOrder: jsii.Number(123),
					Segment: jsii.String("segment"),
					Weights: []interface{}{
						&GroupToWeightProperty{
							GroupName: jsii.String("groupName"),
							SplitWeight: jsii.Number(123),
						},
					},
				},
			},
		},
	},

	// the properties below are optional
	Description: jsii.String("description"),
	ExecutionStatus: &ExecutionStatusObjectProperty{
		Status: jsii.String("status"),

		// the properties below are optional
		DesiredState: jsii.String("desiredState"),
		Reason: jsii.String("reason"),
	},
	MetricMonitors: []interface{}{
		&MetricDefinitionObjectProperty{
			EntityIdKey: jsii.String("entityIdKey"),
			MetricName: jsii.String("metricName"),
			ValueKey: jsii.String("valueKey"),

			// the properties below are optional
			EventPattern: jsii.String("eventPattern"),
			UnitLabel: jsii.String("unitLabel"),
		},
	},
	RandomizationSalt: jsii.String("randomizationSalt"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — An optional description for the launch.

- `executionStatus`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLaunch.ExecutionStatusObjectProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently.CfnLaunch.ExecutionStatusObjectProperty.html) — A structure that you can use to start and stop the launch.

- `groups`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLaunch.LaunchGroupObjectProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently.CfnLaunch.LaunchGroupObjectProperty.html)[] (required) — An array of structures that contains the feature and variations that are to be used for the launch.

  You can up to five launch groups in a launch.

- `metricMonitors`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLaunch.MetricDefinitionObjectProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently.CfnLaunch.MetricDefinitionObjectProperty.html)[] — An array of structures that define the metrics that will be used to monitor the launch performance.

  You can have up to three metric monitors in the array.

- `name`: string (required) — The name for the launch.

  It can include up to 127 characters.

- `project`: string | [IProjectRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_evidently.IProjectRef.html) (required) — The name or ARN of the project that you want to create the launch in.

- `randomizationSalt`: string — When Evidently assigns a particular user session to a launch, it must use a randomization ID to determine which variation the user session is served.

  This randomization ID is a combination of the entity ID and `randomizationSalt` . If you omit `randomizationSalt` , Evidently uses the launch name as the `randomizationsSalt` .

- `scheduledSplitsConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLaunch.StepConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_evidently.CfnLaunch.StepConfigProperty.html)[] (required) — An array of structures that define the traffic allocation percentages among the feature variations during each step of the launch.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Assigns one or more tags (key-value pairs) to the launch.

  Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

  Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

  You can associate as many as 50 tags with a launch.

  For more information, see [Tagging AWS resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) .
