Skip to content
v2.274.0

CfnAIWorkloadConfigProps Struct ​

Properties for defining a CfnAIWorkloadConfig.

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 ​

aiWorkloadConfigNamestringai_workload_config_namestraiWorkloadConfigNameStringAiWorkloadConfigNamestringAiWorkloadConfigName*stringrequired#
The name of the AI workload configuration.
notes

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.

aiWorkloadConfigsIResolvable | CfnAIWorkloadConfig.AIWorkloadConfigsPropertyai_workload_configstyping.Union[IResolvable, AIWorkloadConfigsProperty]aiWorkloadConfigsIResolvableAiWorkloadConfigsIResolvableAiWorkloadConfigsinterface{}#
The benchmark tool configuration for an AI workload.
datasetConfigIResolvable | CfnAIWorkloadConfig.AIDatasetConfigPropertydataset_configtyping.Union[IResolvable, AIDatasetConfigProperty]datasetConfigIResolvableDatasetConfigIResolvableDatasetConfiginterface{}#
The dataset configuration for an AI workload.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The metadata that you apply to the AI workload configuration to help you categorize and organize it.

Used as props by ​