Class TransformResources
ML compute instances for the transform job.
Inheritance
System.Object
TransformResources
Implements
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TransformResources : Object, ITransformResources
Syntax (vb)
Public Class TransformResources
Inherits Object
Implements ITransformResources
Remarks
ExampleMetadata: infused
Examples
new SageMakerCreateTransformJob(this, "Batch Inference", new SageMakerCreateTransformJobProps {
TransformJobName = "MyTransformJob",
ModelName = "MyModelName",
ModelClientOptions = new ModelClientOptions {
InvocationsMaxRetries = 3, // default is 0
InvocationsTimeout = Duration.Minutes(5)
},
TransformInput = new TransformInput {
TransformDataSource = new TransformDataSource {
S3DataSource = new TransformS3DataSource {
S3Uri = "s3://inputbucket/train",
S3DataType = S3DataType.S3_PREFIX
}
}
},
TransformOutput = new TransformOutput {
S3OutputPath = "s3://outputbucket/TransformJobOutputPath"
},
TransformResources = new TransformResources {
InstanceCount = 1,
InstanceType = InstanceType.Of(InstanceClass.M4, InstanceSize.XLARGE)
}
});
Synopsis
Constructors
TransformResources() |
Properties
InstanceCount | Number of ML compute instances to use in the transform job. |
InstanceType | ML compute instance type for the transform job. |
VolumeEncryptionKey | AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s). |
Constructors
TransformResources()
public TransformResources()
Properties
InstanceCount
Number of ML compute instances to use in the transform job.
public double InstanceCount { get; set; }
Property Value
System.Double
InstanceType
ML compute instance type for the transform job.
public InstanceType InstanceType { get; set; }
Property Value
VolumeEncryptionKey
AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s).
public IKey VolumeEncryptionKey { get; set; }
Property Value
Remarks
Default: - None