# CfnTrialComponentProps

Properties for defining a `CfnTrialComponent`.

Used as props by: [CfnTrialComponent](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnTrialComponent.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 cfnTrialComponentProps: sagemaker.CfnTrialComponentProps = {
  trialComponentName: 'trialComponentName',

  // the properties below are optional
  displayName: 'displayName',
  inputArtifacts: {
    inputArtifactsKey: {
      value: 'value',

      // the properties below are optional
      mediaType: 'mediaType',
    },
  },
  metadataProperties: {
    commitId: 'commitId',
    generatedBy: 'generatedBy',
    projectId: 'projectId',
    repository: 'repository',
  },
  outputArtifacts: {
    outputArtifactsKey: {
      value: 'value',

      // the properties below are optional
      mediaType: 'mediaType',
    },
  },
  parameters: {
    parametersKey: {
      numberValue: 123,
      stringValue: 'stringValue',
    },
  },
  status: {
    message: 'message',
    primaryStatus: 'primaryStatus',
  },
  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_trial_component_props = sagemaker.CfnTrialComponentProps(
    trial_component_name="trialComponentName",

    # the properties below are optional
    display_name="displayName",
    input_artifacts={
        "input_artifacts_key": sagemaker.CfnTrialComponent.TrialComponentArtifactProperty(
            value="value",

            # the properties below are optional
            media_type="mediaType"
        )
    },
    metadata_properties=sagemaker.CfnTrialComponent.MetadataPropertiesProperty(
        commit_id="commitId",
        generated_by="generatedBy",
        project_id="projectId",
        repository="repository"
    ),
    output_artifacts={
        "output_artifacts_key": sagemaker.CfnTrialComponent.TrialComponentArtifactProperty(
            value="value",

            # the properties below are optional
            media_type="mediaType"
        )
    },
    parameters={
        "parameters_key": sagemaker.CfnTrialComponent.TrialComponentParameterValueProperty(
            number_value=123,
            string_value="stringValue"
        )
    },
    status=sagemaker.CfnTrialComponent.TrialComponentStatusProperty(
        message="message",
        primary_status="primaryStatus"
    ),
    tags=[sagemaker.CfnTrialComponent.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.*;

CfnTrialComponentProps cfnTrialComponentProps = CfnTrialComponentProps.builder()
        .trialComponentName("trialComponentName")

        // the properties below are optional
        .displayName("displayName")
        .inputArtifacts(Map.of(
                "inputArtifactsKey", TrialComponentArtifactProperty.builder()
                        .value("value")

                        // the properties below are optional
                        .mediaType("mediaType")
                        .build()))
        .metadataProperties(MetadataPropertiesProperty.builder()
                .commitId("commitId")
                .generatedBy("generatedBy")
                .projectId("projectId")
                .repository("repository")
                .build())
        .outputArtifacts(Map.of(
                "outputArtifactsKey", TrialComponentArtifactProperty.builder()
                        .value("value")

                        // the properties below are optional
                        .mediaType("mediaType")
                        .build()))
        .parameters(Map.of(
                "parametersKey", TrialComponentParameterValueProperty.builder()
                        .numberValue(123)
                        .stringValue("stringValue")
                        .build()))
        .status(TrialComponentStatusProperty.builder()
                .message("message")
                .primaryStatus("primaryStatus")
                .build())
        .tags(List.of(TagsItemsProperty.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.Sagemaker;

var cfnTrialComponentProps = new CfnTrialComponentProps {
    TrialComponentName = "trialComponentName",

    // the properties below are optional
    DisplayName = "displayName",
    InputArtifacts = new Dictionary<string, object> {
        { "inputArtifactsKey", new TrialComponentArtifactProperty {
            Value = "value",

            // the properties below are optional
            MediaType = "mediaType"
        } }
    },
    MetadataProperties = new MetadataPropertiesProperty {
        CommitId = "commitId",
        GeneratedBy = "generatedBy",
        ProjectId = "projectId",
        Repository = "repository"
    },
    OutputArtifacts = new Dictionary<string, object> {
        { "outputArtifactsKey", new TrialComponentArtifactProperty {
            Value = "value",

            // the properties below are optional
            MediaType = "mediaType"
        } }
    },
    Parameters = new Dictionary<string, object> {
        { "parametersKey", new TrialComponentParameterValueProperty {
            NumberValue = 123,
            StringValue = "stringValue"
        } }
    },
    Status = new TrialComponentStatusProperty {
        Message = "message",
        PrimaryStatus = "primaryStatus"
    },
    Tags = new [] { new TagsItemsProperty {
        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"

cfnTrialComponentProps := &CfnTrialComponentProps{
	TrialComponentName: jsii.String("trialComponentName"),

	// the properties below are optional
	DisplayName: jsii.String("displayName"),
	InputArtifacts: map[string]interface{}{
		"inputArtifactsKey": &TrialComponentArtifactProperty{
			"value": jsii.String("value"),

			// the properties below are optional
			"mediaType": jsii.String("mediaType"),
		},
	},
	MetadataProperties: &MetadataPropertiesProperty{
		CommitId: jsii.String("commitId"),
		GeneratedBy: jsii.String("generatedBy"),
		ProjectId: jsii.String("projectId"),
		Repository: jsii.String("repository"),
	},
	OutputArtifacts: map[string]interface{}{
		"outputArtifactsKey": &TrialComponentArtifactProperty{
			"value": jsii.String("value"),

			// the properties below are optional
			"mediaType": jsii.String("mediaType"),
		},
	},
	Parameters: map[string]interface{}{
		"parametersKey": &TrialComponentParameterValueProperty{
			"numberValue": jsii.Number(123),
			"stringValue": jsii.String("stringValue"),
		},
	},
	Status: &TrialComponentStatusProperty{
		Message: jsii.String("message"),
		PrimaryStatus: jsii.String("primaryStatus"),
	},
	Tags: []TagsItemsProperty{
		&TagsItemsProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

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

  If DisplayName isn't specified, TrialComponentName is displayed.

- `inputArtifacts`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrialComponent.TrialComponentArtifactProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnTrialComponent.TrialComponentArtifactProperty.html) } — The input artifacts for the component.

- `metadataProperties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrialComponent.MetadataPropertiesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnTrialComponent.MetadataPropertiesProperty.html) — Metadata properties of the tracking entity, trial, or trial component.

- `outputArtifacts`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrialComponent.TrialComponentArtifactProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnTrialComponent.TrialComponentArtifactProperty.html) } — The output artifacts for the component.

- `parameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrialComponent.TrialComponentParameterValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnTrialComponent.TrialComponentParameterValueProperty.html) } — The hyperparameters for the component.

- `status`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrialComponent.TrialComponentStatusProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnTrialComponent.TrialComponentStatusProperty.html) — The status of the trial component.

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

- `trialComponentName`: string (required) — The name of the trial component.

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