# CfnExperimentProps

Struct · External

Properties for defining a `CfnExperiment`.

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

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnExperimentProps: sagemaker.CfnExperimentProps = {
  experimentName: 'experimentName',

  // the properties below are optional
  description: 'description',
  displayName: 'displayName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

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_sagemaker as sagemaker

cfn_experiment_props = sagemaker.CfnExperimentProps(
    experiment_name="experimentName",

    # the properties below are optional
    description="description",
    display_name="displayName",
    tags=[sagemaker.CfnExperiment.TagsItemsProperty(
        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.sagemaker.*;

CfnExperimentProps cfnExperimentProps = CfnExperimentProps.builder()
        .experimentName("experimentName")

        // the properties below are optional
        .description("description")
        .displayName("displayName")
        .tags(List.of(TagsItemsProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C#:

```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.Sagemaker;

var cfnExperimentProps = new CfnExperimentProps {
    ExperimentName = "experimentName",

    // the properties below are optional
    Description = "description",
    DisplayName = "displayName",
    Tags = new [] { new TagsItemsProperty {
        Key = "key",
        Value = "value"
    } }
};
```

Go:

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

cfnExperimentProps := &CfnExperimentProps{
	ExperimentName: jsii.String("experimentName"),

	// the properties below are optional
	Description: jsii.String("description"),
	DisplayName: jsii.String("displayName"),
	Tags: []TagsItemsProperty{
		&TagsItemsProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The description of the experiment.

- `displayName`: string — The name of the experiment as displayed.

  The name does not need to be unique.

- `experimentName`: string (required) — The name of the experiment.

  Must be unique in your AWS account and is not case-sensitive.

- `tags`: [CfnExperiment.TagsItemsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnExperiment.TagsItemsProperty.html)[] — A list of tags to associate with the experiment.
