Skip to content
v2.278.0

DataSourceProperty Struct ​

Describes the location of the channel data.

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 dataSourceProperty: sagemaker.CfnModelPackage.DataSourceProperty = {
  s3DataSource: {
    s3DataType: 's3DataType',
    s3Uri: 's3Uri',
  },
};
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

data_source_property = sagemaker.CfnModelPackage.DataSourceProperty(
    s3_data_source=sagemaker.CfnModelPackage.S3DataSourceProperty(
        s3_data_type="s3DataType",
        s3_uri="s3Uri"
    )
)
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.*;

DataSourceProperty dataSourceProperty = DataSourceProperty.builder()
        .s3DataSource(S3DataSourceProperty.builder()
                .s3DataType("s3DataType")
                .s3Uri("s3Uri")
                .build())
        .build();
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 dataSourceProperty = new DataSourceProperty {
    S3DataSource = new S3DataSourceProperty {
        S3DataType = "s3DataType",
        S3Uri = "s3Uri"
    }
};
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"

dataSourceProperty := &DataSourceProperty{
	S3DataSource: &S3DataSourceProperty{
		S3DataType: jsii.String("s3DataType"),
		S3Uri: jsii.String("s3Uri"),
	},
}

Properties ​

s3DataSourceIResolvable | CfnModelPackage.S3DataSourcePropertys3_data_sourcetyping.Union[IResolvable, S3DataSourceProperty]s3DataSourceIResolvableS3DataSourceIResolvableS3DataSourceinterface{} required #
The S3 location of the data source that is associated with a channel.