# CfnAIWorkloadConfigProps

Properties for defining a `CfnAIWorkloadConfig`.

Extends: CfnAIWorkloadConfigProps
Used as props by: CfnAIWorkloadConfig

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```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 cfnAIWorkloadConfigProps: sagemaker.CfnAIWorkloadConfigProps = {
  aiWorkloadConfigName: 'aiWorkloadConfigName',

  // the properties below are optional
  aiWorkloadConfigs: {
    workloadSpec: {
      inline: 'inline',
    },
  },
  datasetConfig: {
    inputDataConfig: [{
      channelName: 'channelName',
      dataSource: {
        s3DataSource: {
          s3Uri: 's3Uri',
        },
      },
    }],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `aiWorkloadConfigName`: string (required) — The name of the AI workload configuration.

  The name must be unique within your AWS account in the current AWS Region. Only lowercase letters and digits are accepted: DeleteAIWorkloadConfig lowercases the name before looking it up, so a name containing an uppercase letter produces a configuration that can be created and read but never deleted.

- `aiWorkloadConfigs`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAIWorkloadConfig.AIWorkloadConfigsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnAIWorkloadConfig.AIWorkloadConfigsProperty.html) — The benchmark tool configuration for an AI workload.

- `datasetConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAIWorkloadConfig.AIDatasetConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnAIWorkloadConfig.AIDatasetConfigProperty.html) — The dataset configuration for an AI workload.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The metadata that you apply to the AI workload configuration to help you categorize and organize it.
