Interface TransformResources

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
TransformResources.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.250Z") @Stability(Stable) public interface TransformResources extends software.amazon.jsii.JsiiSerializable
ML compute instances for the transform job.

Example:

 SageMakerCreateTransformJob.Builder.create(this, "Batch Inference")
         .transformJobName("MyTransformJob")
         .modelName("MyModelName")
         .modelClientOptions(ModelClientOptions.builder()
                 .invocationsMaxRetries(3) // default is 0
                 .invocationsTimeout(Duration.minutes(5))
                 .build())
         .transformInput(TransformInput.builder()
                 .transformDataSource(TransformDataSource.builder()
                         .s3DataSource(TransformS3DataSource.builder()
                                 .s3Uri("s3://inputbucket/train")
                                 .s3DataType(S3DataType.S3_PREFIX)
                                 .build())
                         .build())
                 .build())
         .transformOutput(TransformOutput.builder()
                 .s3OutputPath("s3://outputbucket/TransformJobOutputPath")
                 .build())
         .transformResources(TransformResources.builder()
                 .instanceCount(1)
                 .instanceType(InstanceType.of(InstanceClass.M4, InstanceSize.XLARGE))
                 .build())
         .build();
 
  • Method Details

    • getInstanceCount

      @Stability(Stable) @NotNull Number getInstanceCount()
      Number of ML compute instances to use in the transform job.
    • getInstanceType

      @Stability(Stable) @NotNull InstanceType getInstanceType()
      ML compute instance type for the transform job.
    • getVolumeEncryptionKey

      @Stability(Stable) @Nullable default IKey getVolumeEncryptionKey()
      AWS KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s).

      Default: - None

    • builder

      @Stability(Stable) static TransformResources.Builder builder()
      Returns:
      a TransformResources.Builder of TransformResources