Skip to content
v2.277.0

FileSourceProperty Struct ​

Contains details regarding the file source.

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 fileSourceProperty: sagemaker.CfnModelPackage.FileSourceProperty = {
  s3Uri: 's3Uri',

  // the properties below are optional
  contentDigest: 'contentDigest',
  contentType: 'contentType',
};
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

file_source_property = sagemaker.CfnModelPackage.FileSourceProperty(
    s3_uri="s3Uri",

    # the properties below are optional
    content_digest="contentDigest",
    content_type="contentType"
)
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.*;

FileSourceProperty fileSourceProperty = FileSourceProperty.builder()
        .s3Uri("s3Uri")

        // the properties below are optional
        .contentDigest("contentDigest")
        .contentType("contentType")
        .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 fileSourceProperty = new FileSourceProperty {
    S3Uri = "s3Uri",

    // the properties below are optional
    ContentDigest = "contentDigest",
    ContentType = "contentType"
};
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"

fileSourceProperty := &FileSourceProperty{
	S3Uri: jsii.String("s3Uri"),

	// the properties below are optional
	ContentDigest: jsii.String("contentDigest"),
	ContentType: jsii.String("contentType"),
}

Properties ​

contentDigestoptionalstringcontent_digestoptionalstrcontentDigestoptionalStringContentDigestoptionalstringContentDigestoptional*string#
The digest of the file source.
contentTypeoptionalstringcontent_typeoptionalstrcontentTypeoptionalStringContentTypeoptionalstringContentTypeoptional*string#
The type of content stored in the file source.
s3Uristrings3_uristrs3UriStringS3UristringS3Uri*stringrequired#
The Amazon S3 URI for the file source.