Skip to content
v2.275.0

ModelDataSourceProperty Struct ​

Specifies the location of ML model data to deploy.

If specified, you must specify one and only one of the available data sources.

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 modelDataSourceProperty: sagemaker.CfnModel.ModelDataSourceProperty = {
  s3DataSource: {
    compressionType: 'compressionType',
    s3DataType: 's3DataType',
    s3Uri: 's3Uri',

    // the properties below are optional
    hubAccessConfig: {
      hubContentArn: 'hubContentArn',
    },
    modelAccessConfig: {
      acceptEula: false,
    },
  },
};

Properties ​

s3DataSourceIResolvable | CfnModel.S3DataSourcePropertys3_data_sourcetyping.Union[IResolvable, S3DataSourceProperty]s3DataSourceIResolvableS3DataSourceIResolvableS3DataSourceinterface{}required#
Specifies the S3 location of ML model data to deploy.