Interface CfnModelPackage.IS3ModelDataSourceProperty
Specifies the S3 location of ML model data to deploy.
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IS3ModelDataSourceProperty
Syntax (vb)
Public Interface IS3ModelDataSourceProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 s3ModelDataSourceProperty = new S3ModelDataSourceProperty {
CompressionType = "compressionType",
S3DataType = "s3DataType",
S3Uri = "s3Uri",
// the properties below are optional
ModelAccessConfig = new ModelAccessConfigProperty {
AcceptEula = false
}
};
Synopsis
Properties
Compression |
Specifies how the ML model data is prepared. |
Model |
Specifies the access configuration file for the ML model. |
S3Data |
Specifies the type of ML model data to deploy. |
S3Uri | Specifies the S3 path of ML model data to deploy. |
Properties
CompressionType
Specifies how the ML model data is prepared.
string CompressionType { get; }
Property Value
System.
Remarks
If you choose Gzip
and choose S3Object
as the value of S3DataType
, S3Uri
identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment.
If you choose None
and chooose S3Object
as the value of S3DataType
, S3Uri
identifies an object that represents an uncompressed ML model to deploy.
If you choose None and choose S3Prefix
as the value of S3DataType
, S3Uri
identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy.
If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code:
ModelAccessConfig
Specifies the access configuration file for the ML model.
virtual object ModelAccessConfig { get; }
Property Value
System.
Remarks
You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig
. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.
S3DataType
Specifies the type of ML model data to deploy.
string S3DataType { get; }
Property Value
System.
Remarks
If you choose S3Prefix
, S3Uri
identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix as part of the ML model data to deploy. A valid key name prefix identified by S3Uri
always ends with a forward slash (/).
If you choose S3Object
, S3Uri
identifies an object that is the ML model data to deploy.
S3Uri
Specifies the S3 path of ML model data to deploy.
string S3Uri { get; }
Property Value
System.