aws-cdk-lib.aws_stepfunctions_tasks.TransformResources

interface TransformResources

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.TransformResources
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#TransformResources
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.TransformResources
Pythonaws_cdk.aws_stepfunctions_tasks.TransformResources
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » TransformResources

ML compute instances for the transform job.

Example

new tasks.SageMakerCreateTransformJob(this, 'Batch Inference', {
  transformJobName: 'MyTransformJob',
  modelName: 'MyModelName',
  modelClientOptions: {
    invocationsMaxRetries: 3,  // default is 0
    invocationsTimeout: Duration.minutes(5),  // default is 60 seconds
  },
  transformInput: {
    transformDataSource: {
      s3DataSource: {
        s3Uri: 's3://inputbucket/train',
        s3DataType: tasks.S3DataType.S3_PREFIX,
      }
    }
  },
  transformOutput: {
    s3OutputPath: 's3://outputbucket/TransformJobOutputPath',
  },
  transformResources: {
    instanceCount: 1,
    instanceType: ec2.InstanceType.of(ec2.InstanceClass.M4, ec2.InstanceSize.XLARGE),
  }
});

Properties

NameTypeDescription
instanceCountnumberNumber of ML compute instances to use in the transform job.
instanceTypeInstanceTypeML compute instance type for the transform job.
volumeEncryptionKey?IKeyAWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s).

instanceCount

Type: number

Number of ML compute instances to use in the transform job.


instanceType

Type: InstanceType

ML compute instance type for the transform job.


volumeEncryptionKey?

Type: IKey (optional, default: None)

AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s).